Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ The form data that a renderer gets is no longer a proxy.
A change of the data thus needs a `dispatch` of an `update` action, which the `useJsonFormsControl` composition and its relatives do for you through `handleChange`.
A custom renderer that writes into the data object directly, for example with a `v-model` on a nested field, must use `handleChange` instead.

### Vue and Vue Vanilla bundles now target ES2021

The ESM and CJS bundles of `@jsonforms/vue` and `@jsonforms/vue-vanilla` are no longer transpiled to ES5 with Babel.
They now target ES2021, like the ESM bundles of `@jsonforms/core` already do, and use syntax such as arrow functions, object spread, optional chaining (`?.`) and nullish coalescing (`??`).

Modern browsers and bundlers support this out of the box.
If your application has to support environments without ES2021 support, configure your bundler to transpile these packages from `node_modules`.

## Migrating to JSON Forms 3.8

### `Translator` type changed from overloaded signatures to a generic conditional type
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@
"build:examples-app": "lerna run build:examples-app && node packages/examples-app/prepare-examples-app.js"
},
"devDependencies": {
"@babel/preset-env": "^7.29.7",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/lodash": "^4.14.149",
"ajv": "^8.18.0",
"ajv-formats": "^2.1.0",
"babel-loader": "^8.0.6",
"core-js": "^3.9.1",
"coveralls": "^3.0.9",
"cross-env": "^10.1.0",
"css-loader": "^3.2.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@
"test-cov": "jest --no-cache --coverage",
"doc": "typedoc --name 'JSON Forms React Core' --out docs src"
},
"ava": {
"verbose": true,
"require": [
"babel-register"
],
"babel": "inherit"
},
"jest": {
"moduleFileExtensions": [
"ts",
Expand Down
5 changes: 0 additions & 5 deletions packages/vue-vanilla/babel.config.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/vue-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,18 @@
"lodash": "^4.18.1"
},
"devDependencies": {
"@babel/core": "^7.29.7",
"@babel/preset-env": "^7.29.7",
"@babel/preset-typescript": "^7.29.7",
"@jsonforms/core": "workspace:*",
"@jsonforms/vue": "workspace:*",
"@types/chai": "^4.2.11",
"@types/jest": "^29.5.14",
"@types/mocha": "^5.2.4",
"@types/node": "^24.12.2",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-typescript": "~5.0.8",
"@vue/cli-plugin-unit-mocha": "~5.0.8",
"@vue/cli-service": "~5.0.8",
"@vue/eslint-config-typescript": "^11.0.2",
"@vue/test-utils": "^2.4.5",
"@vue/vue3-jest": "^29.2.6",
"chai": "^4.1.2",
"cross-env": "^10.1.0",
"eslint": "^8.56.0",
Expand All @@ -85,7 +79,6 @@
"prettier": "^2.8.4",
"rimraf": "^6.1.0",
"rollup": "^2.78.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-typescript2": "^0.34.1",
"rollup-plugin-visualizer": "^5.4.1",
Expand Down
10 changes: 0 additions & 10 deletions packages/vue-vanilla/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import vue from 'rollup-plugin-vue';
import alias from '@rollup/plugin-alias';
import babel from 'rollup-plugin-babel';
import typescript from 'rollup-plugin-typescript2';
import cleanup from 'rollup-plugin-cleanup';
import { visualizer } from 'rollup-plugin-visualizer';
Expand Down Expand Up @@ -40,10 +39,6 @@ const buildFormats = [
isProduction: true,
},
}),
babel({
exclude: 'node_modules/**',
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
}),
cleanup({ extensions: ['js', 'ts', 'jsx', 'tsx', 'vue'] }),
visualizer({ open: false }),
],
Expand All @@ -60,7 +55,6 @@ const buildFormats = [
tsconfigOverride: {
include: null,
exclude: ['node_modules', 'tests', 'dev'],
target: 'ES5',
},
}),
alias({
Expand All @@ -72,10 +66,6 @@ const buildFormats = [
isProduction: true,
},
}),
babel({
exclude: 'node_modules/**',
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
}),
cleanup({ extensions: ['js', 'ts', 'jsx', 'tsx', 'vue'] }),
],
},
Expand Down
1 change: 0 additions & 1 deletion packages/vue-vuetify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
"@vue/tsconfig": "^0.5.1",
"ajv": "^8.18.0",
"ajv-keywords": "^5.1.0",
"core-js": "^3.9.1",
"cross-env": "^10.1.0",
"dayjs": "^1.11.11",
"eslint": "^8.57.0",
Expand Down
5 changes: 0 additions & 5 deletions packages/vue/babel.config.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,17 @@
"lodash": "^4.18.1"
},
"devDependencies": {
"@babel/core": "^7.29.7",
"@babel/preset-env": "^7.29.7",
"@babel/preset-typescript": "^7.29.7",
"@jsonforms/core": "workspace:*",
"@rollup/plugin-alias": "^3.1.8",
"@types/jest": "^29.5.14",
"@types/node": "^24.12.2",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-typescript": "~5.0.8",
"@vue/cli-service": "~5.0.8",
"@vue/eslint-config-typescript": "^11.0.2",
"@vue/test-utils": "^2.4.5",
"@vue/vue3-jest": "^29.2.6",
"core-js": "^3.9.1",
"cross-env": "^10.1.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.7.0",
Expand All @@ -78,7 +73,6 @@
"prettier": "^2.8.4",
"rimraf": "^6.1.0",
"rollup": "^2.78.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-typescript2": "^0.34.1",
"rollup-plugin-visualizer": "^5.4.1",
Expand Down
10 changes: 0 additions & 10 deletions packages/vue/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import vue from 'rollup-plugin-vue';
import alias from '@rollup/plugin-alias';
import babel from 'rollup-plugin-babel';
import typescript from 'rollup-plugin-typescript2';
import cleanup from 'rollup-plugin-cleanup';
import { visualizer } from 'rollup-plugin-visualizer';
Expand Down Expand Up @@ -40,10 +39,6 @@ const buildFormats = [
isProduction: true,
},
}),
babel({
exclude: 'node_modules/**',
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
}),
cleanup({ extensions: ['js', 'ts', 'jsx', 'tsx', 'vue'] }),
visualizer({ open: false }),
],
Expand All @@ -60,7 +55,6 @@ const buildFormats = [
tsconfigOverride: {
include: null,
exclude: ['node_modules', 'tests', 'dev'],
target: 'ES5',
},
}),
alias({
Expand All @@ -72,10 +66,6 @@ const buildFormats = [
isProduction: true,
},
}),
babel({
exclude: 'node_modules/**',
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
}),
cleanup({ extensions: ['js', 'ts', 'jsx', 'tsx', 'vue'] }),
],
},
Expand Down
Loading
Loading