Skip to content
Merged
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ should change the heading of the (upcoming) version to include a major version b
## Dev / docs / playground

- Updated the documentation to remove `formContext` from the interface documentation, adding a BREAKING CHANGE notification in the `v6.x upgrade guide`
- POTENTIAL BREAKING CHANGE: Updated the `cjs` build for all packages to generate `.cjs` files instead of `.js` files and updating the `exports` to make the `require` statements use `.cjs`, fixing [#4754]https://github.com/rjsf-team/react-jsonschema-form/issues/4754)
- Updated `v6.x upgrade guide.md` to note the change to the `cjs` builds

# 6.0.0-beta.15

Expand Down
14 changes: 7 additions & 7 deletions packages/antd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
},
"./dist": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./dist/*.js": {
"./dist/*.cjs": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
}
},
"scripts": {
"compileReplacer": "tsc -p tsconfig.replacer.json && move-file lodashReplacer.js lodashReplacer.cjs",
"build:ts": "npm run compileReplacer && rimraf ./lib && tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --sourcemap --packages=external --format=cjs",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs",
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/antd.esm.js --sourcemap --packages=external --format=esm",
"build:umd": "rollup dist/antd.esm.js --format=umd --file=dist/antd.umd.js --name=@rjsf/antd",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
Expand Down
14 changes: 7 additions & 7 deletions packages/chakra-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
},
"./dist": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./dist/*.js": {
"./dist/*.cjs": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
}
},
Expand All @@ -40,7 +40,7 @@
],
"scripts": {
"build:ts": "tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --sourcemap --packages=external --format=cjs",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs",
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/chakra-ui.esm.js --sourcemap --packages=external --format=esm",
"build:umd": "rollup dist/chakra-ui.esm.js --format=umd --file=dist/chakra-ui.umd.js --name=@rjsf/chakra-ui",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
Expand Down
14 changes: 7 additions & 7 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"compileReplacer": "tsc -p tsconfig.replacer.json && move-file lodashReplacer.js lodashReplacer.cjs",
"build:ts": "npm run compileReplacer && rimraf ./lib && tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --sourcemap --packages=external --format=cjs",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs",
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/index.esm.js --sourcemap --packages=external --format=esm",
"build:umd": "rollup dist/index.esm.js --format=umd --file=dist/core.umd.js --name=JSONSchemaForm",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
Expand All @@ -32,27 +32,27 @@
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
},
"./dist": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./dist/*.js": {
"./dist/*.cjs": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
}
},
Expand Down
14 changes: 7 additions & 7 deletions packages/daisyui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
},
"./dist": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./dist/*.js": {
"./dist/*.cjs": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
}
},
Expand All @@ -44,7 +44,7 @@
},
"scripts": {
"build:ts": "tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --sourcemap --packages=external --format=cjs",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs",
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/chakra-ui.esm.js --sourcemap --packages=external --format=esm",
"build:umd": "rollup dist/chakra-ui.esm.js --format=umd --file=dist/chakra-ui.umd.js --name=@rjsf/chakra-ui",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
Expand Down
5 changes: 5 additions & 0 deletions packages/docs/docs/migration-guides/v6.x upgrade guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ There are 5 new packages added in RJSF version 6:

## Breaking changes

### CJS build changes

Due to making all of the `package.json` files for the `@rjsf/*` libraries include `"type": "module"` to better support modern `ESM` builds, the generation of the Common JS distributions were updated to produce `.cjs` files rather than `.js` files.
Hopefully this will not cause any issues with existing uses of the libraries. If so, one may need to switch from doing an `import` of the CJS build to doing a `require()`.

### Theme removals

The following themes were removed due to duplication of a framework with a newer theme
Expand Down
14 changes: 7 additions & 7 deletions packages/fluentui-rc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "FluentUI React Components theme, fields and widgets for react-jsonschema-form",
"scripts": {
"build:ts": "tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --sourcemap --packages=external --format=cjs",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs",
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/index.esm.js --sourcemap --packages=external --format=esm",
"build:umd": "rollup dist/index.esm.js --format=umd --file=dist/core.umd.js --name=JSONSchemaForm",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
Expand All @@ -31,27 +31,27 @@
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
},
"./dist": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./dist/*.js": {
"./dist/*.cjs": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
}
},
Expand Down
14 changes: 7 additions & 7 deletions packages/mantine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
},
"./dist": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./dist/*.js": {
"./dist/*.cjs": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
}
},
Expand All @@ -44,7 +44,7 @@
},
"scripts": {
"build:ts": "tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --sourcemap --packages=external --format=cjs",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs",
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/mantine.esm.js --sourcemap --packages=external --format=esm",
"build:umd": "rollup dist/mantine.esm.js --format=umd --file=dist/mantine.umd.js --name=@rjsf/mantine",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
Expand Down
16 changes: 8 additions & 8 deletions packages/mui/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"name": "@rjsf/mui",
"version": "6.0.0-beta.15",
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"type": "module",
"description": "Material UI 7 theme, fields and widgets for react-jsonschema-form",
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
},
"./dist": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./dist/*.js": {
"./dist/*.cjs": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
}
},
Expand All @@ -40,7 +40,7 @@
],
"scripts": {
"build:ts": "rimraf ./lib && tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --sourcemap --packages=external --format=cjs",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs",
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/mui.esm.js --sourcemap --packages=external --format=esm",
"build:umd": "rollup dist/mui.esm.js --format=umd --file=dist/mui.umd.js --name=@rjsf/mui",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
Expand Down
14 changes: 7 additions & 7 deletions packages/primereact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
},
"./dist": {
"types": "./lib/index.d.ts",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./lib/index.js"
},
"./dist/*.js": {
"./dist/*.cjs": {
"types": "./lib/*.d.ts",
"require": "./dist/*.js",
"require": "./dist/*.cjs",
"import": "./lib/*.js"
}
},
"scripts": {
"build:ts": "tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --sourcemap --packages=external --format=cjs",
"build:cjs": "esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --sourcemap --packages=external --format=cjs",
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/primereact.esm.js --sourcemap --packages=external --format=esm",
"build:umd": "rollup dist/primereact.esm.js --format=umd --file=dist/primereact.umd.js --name=@rjsf/primereact",
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
Expand Down
Loading