Skip to content

Commit 790037f

Browse files
heath-freenomeAlgirdyz
authored andcommitted
Chore: add "type": "module" to all package.json files for better ESM support (rjsf-team#4547)
* Chore: add "type": "module" to all package.json files for better ESM support To improve ESM support, the `package.json` files for all public repos were updated to add `type: module` - Installed `tsx` in `package.json` as a dev dependency - Replaced all `babel.config.js` files with `babel.config.json` since `jest` assumes `.js` files are ESM not CJS - Replaced all `jest.config.js` files with` `jest.config.json` since `jest` assumes `.js` files are ESM not CJS - In all `package.json` files where a replacer was compiled, renamed them to `.cjs` to since they are `commonjs` - Updated the `tsconfig.build.json` files to change the replace extension to `.cjs` - Updated the `.gitignore` to ignore replacers with `.cjs` along with `.js` - In `@rjsf/validator-ajv8` switched the `compileTestSchema.js` to `compileTestSchema.ts` to replace `require` with `import` - Used `tsx` to run the file rather than `node` - Also generated `.cjs` files rather than `.js` since they are `commonjs` - In `@rjsf/shadcn` switched `build-css.js` to `build-css.ts`, replacing `require` with `import` - Used `tsx` to run the file rather than `node` - Also renamed `postcss.config.js` to `postcss.config.json` * - Switched to cross-build safe `move-file-cli` rather than `mv` * - Removed antd v4 support * - Updated `CHANGELOG_v6.md`
1 parent f1a3e43 commit 790037f

File tree

8 files changed

+4
-59
lines changed

8 files changed

+4
-59
lines changed

CHANGELOG_v6.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ should change the heading of the (upcoming) version to include a major version b
2121

2222
- BREAKING CHANGE: Refactored `ArrayFieldItemTemplate` to use the new `ArrayFieldItemButtonsTemplate`
2323
- Updated the `ArrayFieldTemplate`, `ObjectFieldTemplate`, and `WrapIfAdditionalTemplate` to a unique id using the `buttonId()` function and adding consistent marker classes
24-
- Implemented the `GridTemplate` component, adding it to the `templates` for the theme
24+
- Implemented the `GridTemplate` component, adding it to the `templates` for the theme
25+
- BREAKING CHANGE: Removed support for version 4 of `antd`
26+
- Updated `ArrayFieldItemTemplate` to replace `Button.Group` with `Space.Compact` since `Button.Group` is deprecated in `antd` version 5
27+
- Upgraded to `@ant-design/icon@5`, fixing typing issues in `IconButton`
2528

2629
## @rjsf/chakra-ui
2730

packages/playground/babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/playground/jest.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/shadcn/babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/shadcn/build-css.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

packages/shadcn/jest.config.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/shadcn/jest.setup.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/shadcn/postcss.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)