Skip to content

Commit a754e6e

Browse files
Releasing 6.0.0 beta.1 (#4595)
* - Improved the `contributing.md` file * - Bumped versions * - updated docs for the new release process and added `nuke-build-env`
1 parent bf49ef1 commit a754e6e

File tree

15 files changed

+358
-114
lines changed

15 files changed

+358
-114
lines changed

package-lock.json

+266-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"refresh-node-modules": "rimraf packages/*/node_modules && rimraf node_modules && npm install",
2525
"commit-package-changes": "git add package-lock.json packages/*/package*.json && cross-env CI=skipPrecommit git commit -m 'updated package*.json after versioning' && git push",
2626
"post-versioning": "echo 'This will take a while...' && npm run bump-peer-deps && npm run refresh-node-modules && npm run commit-package-changes && npm run update-version-tags",
27-
"update-version-tags": "git tag -f $(node scripts/get-version-tag.js) && git push -f origin $(node scripts/get-version-tag.js)"
27+
"update-version-tags": "git tag -f $(node scripts/get-version-tag.js) && git push -f origin $(node scripts/get-version-tag.js)",
28+
"nuke-build-env": "rimraf .nx && rimraf package-lock.json"
2829
},
2930
"license": "Apache-2.0",
3031
"homepage": "https://github.com/rjsf-team/react-jsonschema-form",

packages/antd/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/antd",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"description": "Ant Design theme, fields and widgets for react-jsonschema-form",
55
"main": "dist/index.js",
66
"module": "lib/index.js",
@@ -77,10 +77,10 @@
7777
},
7878
"devDependencies": {
7979
"@ant-design/icons": "^6.0.0",
80-
"@rjsf/core": "^6.0.0-alpha.0",
81-
"@rjsf/snapshot-tests": "^6.0.0-alpha.0",
82-
"@rjsf/utils": "^6.0.0-alpha.0",
83-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
80+
"@rjsf/core": "^6.0.0-beta.1",
81+
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
82+
"@rjsf/utils": "^6.0.0-beta.1",
83+
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
8484
"@rollup/plugin-replace": "^6.0.2",
8585
"antd": "^5.24.9",
8686
"atob": "^2.1.2",

packages/chakra-ui/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/chakra-ui",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"description": "Chakra UI theme, fields, and widgets for react-jsonschema-form",
55
"main": "dist/index.js",
66
"module": "lib/index.js",
@@ -87,10 +87,10 @@
8787
"@emotion/jest": "^11.13.0",
8888
"@emotion/react": "^11.14.0",
8989
"@emotion/styled": "^11.14.0",
90-
"@rjsf/core": "^6.0.0-alpha.0",
91-
"@rjsf/snapshot-tests": "^6.0.0-alpha.0",
92-
"@rjsf/utils": "^6.0.0-alpha.0",
93-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
90+
"@rjsf/core": "^6.0.0-beta.1",
91+
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
92+
"@rjsf/utils": "^6.0.0-beta.1",
93+
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
9494
"chakra-react-select": "6.1.0",
9595
"eslint": "^8.56.0",
9696
"lucide-react": "^0.488.0"

packages/core/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/core",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"description": "A simple React component capable of building HTML forms out of a JSON schema.",
55
"scripts": {
66
"compileReplacer": "tsc -p tsconfig.replacer.json && move-file lodashReplacer.js lodashReplacer.cjs",
@@ -77,9 +77,9 @@
7777
"prop-types": "^15.8.1"
7878
},
7979
"devDependencies": {
80-
"@rjsf/snapshot-tests": "^6.0.0-alpha.0",
81-
"@rjsf/utils": "^6.0.0-alpha.0",
82-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
80+
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
81+
"@rjsf/utils": "^6.0.0-beta.1",
82+
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
8383
"@testing-library/jest-dom": "^6.6.3",
8484
"@testing-library/react": "^16.2.0",
8585
"@testing-library/user-event": "^14.6.1",

packages/daisyui/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/daisyui",
3-
"version": "6.0.0",
3+
"version": "6.0.0-beta.1",
44
"description": "Daisy UI components for react-jsonschema-form",
55
"main": "dist/index.js",
66
"module": "lib/index.js",
@@ -76,10 +76,10 @@
7676
"react": ">=18"
7777
},
7878
"devDependencies": {
79-
"@rjsf/core": "^6.0.0-alpha.0",
80-
"@rjsf/snapshot-tests": "^6.0.0-alpha.0",
81-
"@rjsf/utils": "^6.0.0-alpha.0",
82-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
79+
"@rjsf/core": "^6.0.0-beta.1",
80+
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
81+
"@rjsf/utils": "^6.0.0-beta.1",
82+
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
8383
"@testing-library/jest-dom": "^6.1.3",
8484
"@testing-library/react": "^14.0.0"
8585
},

packages/docs/docs/contributing.md

+39-11
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ If that is the situation for you, you can instead use `npm run build-serial` to
2929
Also, if you are only working on one package, you can `npm run build` and `npm run test` from within the subdirectory.
3030
Finally, you can simply `npm start` inside of the `playground` directory to test changes if you have already built all of your packages, without needing to watch all of the packages via the root directory `npm start`.
3131

32+
### Troubleshooting build failures
33+
34+
Sometimes your local builds fail and you can't figure out why. This is most likely to happen after rebase to `main` due
35+
to `package.json` changes upstream. There are two commands you can use to (hopefully) get your environment back to a
36+
working state. Try running the following two commands:
37+
38+
```bash
39+
npm run refresh-node-modules
40+
npm run clean-build
41+
```
42+
43+
The first command will delete all of the `node_modules` directories in the environment and then rerun `npm install`.
44+
The second command cleans up the typescript build cache files before retrying the build.
45+
46+
Worst case scenario when neither of those commands work, try running `npm run nuke-build-env` and then rerun the two commands.
47+
3248
## Cloud builds
3349

3450
When building in environments with limited memory, such as Netlify, it's recommended to use `npm run build-serial` that builds the packages serially.
@@ -123,7 +139,7 @@ Code coverage reports are currently available only for the `@rjsf/core` theme pa
123139
They are generated using [nyc](https://github.com/istanbuljs/nyc) each time the `npm test-coverage` script is run.
124140
The full report can be seen by opening `./coverage/lcov-report/index.html`.
125141

126-
#### Utils and validator-ajvX code coverage
142+
#### Utils and validator-ajv8 code coverage
127143

128144
100% code coverage is required by the `@rjsf/utils` and `@rjsf/validator-ajv8` tests.
129145
If you make changes to those libraries, you will have to maintain that coverage, otherwise the tests will fail.
@@ -133,23 +149,20 @@ If you make changes to those libraries, you will have to maintain that coverage,
133149
## Releasing
134150

135151
To release, go to the main branch (NOT a fork) and then create a new branch with the version number (with an `rc` prefix instead of `v`).
136-
For instance if you are about to create the new `5.100.10` branch, then you would run the following commands:
152+
For instance if you are about to create the new `6.100.10` branch, then you would run the following commands:
137153

138154
```bash
139155
git checkout -b rc6.100.10
140-
git push
141156
npx nx release version --git-tag
142-
npm run post-versioning
157+
git commit -m "Releasing 6.100.10"
158+
git push
159+
npm run update-version-tags
143160
```
144161

145162
Make sure you use [semver](https://semver.org/) for version numbering when selecting the version.
146-
The `npx nx release version --git-tag` command will create a new version tag and push it to GitHub.
147-
148-
The `npm run post-versioning` script will update the peer dependencies in all of the `packages/*/package.json` files if necessary.
149-
It will then clean up the `node_modules` directories and rerun `npm install` to update the `package-lock.json` files.
150-
Finally, it creates and pushes a new commit with those `package.json` and `package-lock.json` files up to GitHub.
151-
152-
> NOTE: this command will take a while, be patient
163+
The `npx nx release version --git-tag` command will update the `package*.josn` files and create a new version tag.
164+
Committing and pushing the branch will allow you to create the PR on GitHub.
165+
The `npm run update-version-tags` will push the tags up to GitHub.
153166

154167
Then, make a PR to main. Merge the PR into main -- make sure you use "merge commit", not squash and merge, so that
155168
the original commit where the tag was based on is still present in the main branch.
@@ -164,6 +177,21 @@ The package is published through an automation token belonging to the
164177
[rjsf-bot](https://www.npmjs.com/~rjsf-bot) user on npm. This token
165178
is stored as the `NPM_TOKEN` secret on GitHub Actions.
166179

180+
### Updating the peer dependencies for new features in a minor release
181+
182+
If a set of changes added new features or APIs that require updating downstream peer dependencies, then run the following
183+
command:
184+
185+
```bash
186+
npm run post-versioning
187+
```
188+
189+
The `npm run post-versioning` script will update the peer dependencies in all of the `packages/*/package.json` files if necessary.
190+
It will then clean up the `node_modules` directories and rerun `npm install` to update the `package-lock.json` files.
191+
Finally, it creates and pushes a new commit with those `package.json` and `package-lock.json` files up to GitHub.
192+
193+
> NOTE: this command will take a while, be patient
194+
167195
### Releasing docs
168196

169197
Docs are automatically published to GitHub Pages when the `main` branch is updated.

packages/fluentui-rc/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/fluentui-rc",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"description": "FluentUI React Components theme, fields and widgets for react-jsonschema-form",
55
"scripts": {
66
"build:ts": "tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
@@ -74,10 +74,10 @@
7474
"@fluentui/react-migration-v0-v9": "^9.3.10"
7575
},
7676
"devDependencies": {
77-
"@rjsf/core": "^6.0.0-alpha.0",
78-
"@rjsf/snapshot-tests": "^6.0.0-alpha.0",
79-
"@rjsf/utils": "^6.0.0-alpha.0",
80-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
77+
"@rjsf/core": "^6.0.0-beta.1",
78+
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
79+
"@rjsf/utils": "^6.0.0-beta.1",
80+
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
8181
"eslint": "^8.56.0"
8282
},
8383
"directories": {

packages/mui/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/mui",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"main": "./dist/index.js",
55
"module": "./lib/index.js",
66
"types": "./lib/index.d.ts",
@@ -75,10 +75,10 @@
7575
"@emotion/styled": "^11.11.0",
7676
"@mui/icons-material": "^6.4.11",
7777
"@mui/material": "^6.4.11",
78-
"@rjsf/core": "^6.0.0-alpha.0",
79-
"@rjsf/snapshot-tests": "^6.0.0-alpha.0",
80-
"@rjsf/utils": "^6.0.0-alpha.0",
81-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
78+
"@rjsf/core": "^6.0.0-beta.1",
79+
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
80+
"@rjsf/utils": "^6.0.0-beta.1",
81+
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
8282
"eslint": "^8.56.0"
8383
},
8484
"publishConfig": {

packages/react-bootstrap/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/react-bootstrap",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"main": "dist/index.js",
55
"module": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -71,10 +71,10 @@
7171
"node": ">=20"
7272
},
7373
"devDependencies": {
74-
"@rjsf/core": "^6.0.0-alpha.0",
75-
"@rjsf/snapshot-tests": "^6.0.0-alpha.0",
76-
"@rjsf/utils": "^6.0.0-alpha.0",
77-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
74+
"@rjsf/core": "^6.0.0-beta.1",
75+
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
76+
"@rjsf/utils": "^6.0.0-beta.1",
77+
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
7878
"eslint": "^8.56.0",
7979
"react-bootstrap": "^2.10.9"
8080
},

packages/semantic-ui/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/semantic-ui",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"main": "dist/index.js",
55
"module": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -67,10 +67,10 @@
6767
"semantic-ui-react": "^2.1.3"
6868
},
6969
"devDependencies": {
70-
"@rjsf/core": "^6.0.0-alpha.0",
71-
"@rjsf/snapshot-tests": "^6.0.0-alpha.0",
72-
"@rjsf/utils": "^6.0.0-alpha.0",
73-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
70+
"@rjsf/core": "^6.0.0-beta.1",
71+
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
72+
"@rjsf/utils": "^6.0.0-beta.1",
73+
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
7474
"atob": "^2.1.2",
7575
"eslint": "^8.56.0",
7676
"nanoid": "^5.1.5",

packages/shadcn/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/shadcn",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"main": "dist/index.js",
55
"module": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -71,10 +71,10 @@
7171
"node": ">=20"
7272
},
7373
"devDependencies": {
74-
"@rjsf/core": "^6.0.0-alpha.0",
75-
"@rjsf/snapshot-tests": "^6.0.0-alpha.0",
76-
"@rjsf/utils": "^6.0.0-alpha.0",
77-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0",
74+
"@rjsf/core": "^6.0.0-beta.1",
75+
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
76+
"@rjsf/utils": "^6.0.0-beta.1",
77+
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
7878
"eslint": "^8.56.0",
7979
"jsdom": "^20.0.3",
8080
"tailwindcss": "^3.0.0"

packages/snapshot-tests/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/snapshot-tests",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"description": "A set of snapshot tests to be used for testing RJSF theme.",
55
"scripts": {
66
"build": "tsc -b .",
@@ -35,9 +35,9 @@
3535
"@rjsf/validator-ajv8": "^6.x"
3636
},
3737
"devDependencies": {
38-
"@rjsf/core": "^6.0.0-alpha.0",
39-
"@rjsf/utils": "^6.0.0-alpha.0",
40-
"@rjsf/validator-ajv8": "^6.0.0-alpha.0"
38+
"@rjsf/core": "^6.0.0-beta.1",
39+
"@rjsf/utils": "^6.0.0-beta.1",
40+
"@rjsf/validator-ajv8": "^6.0.0-beta.1"
4141
},
4242
"repository": {
4343
"type": "git",

packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/utils",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"main": "dist/index.js",
55
"module": "lib/index.js",
66
"typings": "lib/index.d.ts",

packages/validator-ajv8/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rjsf/validator-ajv8",
3-
"version": "6.0.0-alpha.0",
3+
"version": "6.0.0-beta.1",
44
"main": "dist/index.js",
55
"module": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -86,7 +86,7 @@
8686
"@rjsf/utils": "^6.x"
8787
},
8888
"devDependencies": {
89-
"@rjsf/utils": "^6.0.0-alpha.0",
89+
"@rjsf/utils": "^6.0.0-beta.1",
9090
"@types/json-schema": "^7.0.15",
9191
"ajv-i18n": "^4.2.0",
9292
"eslint": "^8.56.0"

0 commit comments

Comments
 (0)