diff --git a/package-lock.json b/package-lock.json index a35e66b59b..2b5f76a51b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37686,7 +37686,7 @@ }, "packages/antd": { "name": "@rjsf/antd", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "dependencies": { "classnames": "^2.5.1", @@ -37696,10 +37696,10 @@ }, "devDependencies": { "@ant-design/icons": "^6.0.0", - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "@rollup/plugin-replace": "^6.0.2", "antd": "^5.24.9", "atob": "^2.1.2", @@ -37743,7 +37743,7 @@ }, "packages/chakra-ui": { "name": "@rjsf/chakra-ui", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "dependencies": { "react-icons": "^5.4.0", @@ -37756,10 +37756,10 @@ "@emotion/jest": "^11.13.0", "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.0", - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "chakra-react-select": "6.1.0", "eslint": "^8.56.0", "lucide-react": "^0.488.0" @@ -37787,7 +37787,7 @@ }, "packages/core": { "name": "@rjsf/core", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "dependencies": { "lodash": "^4.17.21", @@ -37797,9 +37797,9 @@ "prop-types": "^15.8.1" }, "devDependencies": { - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.2.0", "@testing-library/user-event": "^14.6.1", @@ -37851,7 +37851,7 @@ }, "packages/daisyui": { "name": "@rjsf/daisyui", - "version": "6.0.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.7.2", @@ -37862,10 +37862,10 @@ "tailwindcss": "^4.1.4" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "@testing-library/jest-dom": "^6.1.3", "@testing-library/react": "^14.0.0" }, @@ -37901,7 +37901,7 @@ }, "packages/fluentui-rc": { "name": "@rjsf/fluentui-rc", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "dependencies": { "@fluentui/react-components": "^9.63.0", @@ -37909,10 +37909,10 @@ "@fluentui/react-migration-v0-v9": "^9.3.10" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "eslint": "^8.56.0" }, "engines": { @@ -37925,7 +37925,7 @@ }, "packages/mui": { "name": "@rjsf/mui", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "devDependencies": { "@emotion/jest": "^11.11.0", @@ -37933,10 +37933,10 @@ "@emotion/styled": "^11.11.0", "@mui/icons-material": "^6.4.11", "@mui/material": "^6.4.11", - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "eslint": "^8.56.0" }, "engines": { @@ -38022,6 +38022,221 @@ "react": "^18.2.0" } }, + "packages/playground/node_modules/@rjsf/antd": { + "version": "6.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@rjsf/antd/-/antd-6.0.0-alpha.0.tgz", + "integrity": "sha512-cHBOkmd3ctMppq1vsfqueeZrquN+57F3R3oKWnKKco11k3g/DHlGnPKMbBzFrCs8sFhxoHW50yQ9CN4fedytKA==", + "license": "Apache-2.0", + "dependencies": { + "classnames": "^2.5.1", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "rc-picker": "2.7.6" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@ant-design/icons": "^4.0.0 || ^5.0.0", + "@rjsf/core": "^5.20.x", + "@rjsf/utils": "^5.20.x", + "antd": "^4.24.0 || ^5.8.5", + "dayjs": "^1.8.0", + "react": "^16.14.0 || >=17" + } + }, + "packages/playground/node_modules/@rjsf/chakra-ui": { + "version": "6.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@rjsf/chakra-ui/-/chakra-ui-6.0.0-alpha.0.tgz", + "integrity": "sha512-4+KvRWvzmiLI+DH90tTaN3QXHMQBbAS3SstcagStRrUy9I1XZM+34NHTVxI3De4LkeHuLkCQwPfj79K/1wce5A==", + "license": "Apache-2.0", + "dependencies": { + "react-select": "^5.8.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@chakra-ui/icons": ">=1.1.1", + "@chakra-ui/react": ">=1.7.3", + "@chakra-ui/system": ">=1.12.1", + "@rjsf/core": "^5.20.x", + "@rjsf/utils": "^5.20.x", + "chakra-react-select": ">=3.3.8", + "framer-motion": ">=5.6.0", + "react": "^16.14.0 || >=17" + } + }, + "packages/playground/node_modules/@rjsf/core": { + "version": "6.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@rjsf/core/-/core-6.0.0-alpha.0.tgz", + "integrity": "sha512-Rsur4b8K9t7pILAo1wXYFroOeQW4L/9Eq+Mi+Gqpg0NcIGbCG3oSSKEtUX5i9Q0Fp9SRvQLBI77tVxWgVjOIxg==", + "license": "Apache-2.0", + "dependencies": { + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "markdown-to-jsx": "^7.4.1", + "nanoid": "^3.3.7", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@rjsf/utils": "^5.20.x", + "react": "^16.14.0 || >=17" + } + }, + "packages/playground/node_modules/@rjsf/fluentui-rc": { + "version": "6.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@rjsf/fluentui-rc/-/fluentui-rc-6.0.0-alpha.0.tgz", + "integrity": "sha512-3yDMzZfxOb65ehKWoTERDWIWsxW/UU74yxpO4Hdvf4TkiFjPeboClaSU/x0otZEa4rq4F8Xne9X246T0oqTNvw==", + "license": "Apache-2.0", + "dependencies": { + "@fluentui/react-components": "^9.46.3", + "@fluentui/react-icons": "^2.0.226", + "@fluentui/react-migration-v0-v9": "^9.1.14" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@rjsf/utils": "^5.20.x", + "react": "^16.14.0 || >=17" + } + }, + "packages/playground/node_modules/@rjsf/mui": { + "version": "6.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@rjsf/mui/-/mui-6.0.0-alpha.0.tgz", + "integrity": "sha512-boJuisfk3AQmzduOBrQuwrbYTtVcJCE634zV7pCJ78mxGYMMeWjHvF4tTbvhYawMCXp2aEnPBRsfmM6iiNolgw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@emotion/react": "^11.7.0", + "@emotion/styled": "^11.6.0", + "@mui/icons-material": "^5.2.0", + "@mui/material": "^5.2.2", + "@rjsf/core": "^5.20.x", + "@rjsf/utils": "^5.20.x", + "react": ">=17" + } + }, + "packages/playground/node_modules/@rjsf/react-bootstrap": { + "version": "6.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@rjsf/react-bootstrap/-/react-bootstrap-6.0.0-alpha.0.tgz", + "integrity": "sha512-o1pq8vYZ1YNxOluPTgveeAkj4NkPm0VhkNhntAZNx9rTBYklGnACq+DI0/Xzc41YQ8PvUdk+Ixk/l5SeHfDuPA==", + "license": "MIT", + "dependencies": { + "@react-icons/all-files": "^4.1.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@rjsf/core": "^5.20.x", + "@rjsf/utils": "^5.20.x", + "react": "^16.14.0 || >=17", + "react-bootstrap": "^2.0.0" + } + }, + "packages/playground/node_modules/@rjsf/semantic-ui": { + "version": "6.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@rjsf/semantic-ui/-/semantic-ui-6.0.0-alpha.0.tgz", + "integrity": "sha512-BagK/gCO9BO6jUwtkr1p2pAnZc/0AlZjRjIDl3xJ+QjxOiRusgP2r41/jWQGcOTYmgSgJmh84csEXwByzholhg==", + "license": "Apache-2.0", + "dependencies": { + "semantic-ui-css": "^2.5.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@rjsf/core": "^5.20.x", + "@rjsf/utils": "^5.20.x", + "react": "^16.14.0 || >=17", + "semantic-ui-react": "^1.3.1 || ^2.1.3" + } + }, + "packages/playground/node_modules/@rjsf/utils": { + "version": "6.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@rjsf/utils/-/utils-6.0.0-alpha.0.tgz", + "integrity": "sha512-Jm2Kyj+dfONL6wcsHltXATbmHoZ9QSKrk2uiRSflVyS5gq/ZNombByeA7zxErtePxfyNUiaotSI9+6lOxW436w==", + "license": "Apache-2.0", + "dependencies": { + "json-schema-merge-allof": "^0.8.1", + "jsonpointer": "^5.0.1", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "react-is": "^18.2.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "react": "^16.14.0 || >=17" + } + }, + "packages/playground/node_modules/@rjsf/validator-ajv8": { + "version": "6.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@rjsf/validator-ajv8/-/validator-ajv8-6.0.0-alpha.0.tgz", + "integrity": "sha512-vDi7rfmdkX2QoVxM8a5C6SyvH6/Uq7kPumeYZmsMcyMpHuyyRBOTIRz8fRvImaUe5YIJlkC2uKrh742LFhopfQ==", + "license": "Apache-2.0", + "dependencies": { + "ajv": "^8.12.0", + "ajv-formats": "^2.1.1", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@rjsf/utils": "^5.20.x" + } + }, + "packages/playground/node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "packages/playground/node_modules/rc-picker": { + "version": "2.7.6", + "resolved": "https://registry.npmjs.org/rc-picker/-/rc-picker-2.7.6.tgz", + "integrity": "sha512-H9if/BUJUZBOhPfWcPeT15JUI3/ntrG9muzERrXDkSoWmDj4yzmBvumozpxYrHwjcKnjyDGAke68d+whWwvhHA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "^2.2.1", + "date-fns": "2.x", + "dayjs": "1.x", + "moment": "^2.24.0", + "rc-trigger": "^5.0.4", + "rc-util": "^5.37.0", + "shallowequal": "^1.1.0" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, "packages/playground/node_modules/react-is": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", @@ -38030,16 +38245,16 @@ }, "packages/react-bootstrap": { "name": "@rjsf/react-bootstrap", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "MIT", "dependencies": { "@react-icons/all-files": "^4.1.0" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "eslint": "^8.56.0", "react-bootstrap": "^2.10.9" }, @@ -38055,16 +38270,16 @@ }, "packages/semantic-ui": { "name": "@rjsf/semantic-ui", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "dependencies": { "semantic-ui-css": "^2.5.0" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "atob": "^2.1.2", "eslint": "^8.56.0", "nanoid": "^5.1.5", @@ -38082,7 +38297,7 @@ }, "packages/shadcn": { "name": "@rjsf/shadcn", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "MIT", "dependencies": { "@radix-ui/react-checkbox": "^1.2.3", @@ -38107,10 +38322,10 @@ "uuid": "^11.1.0" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "eslint": "^8.56.0", "jsdom": "^20.0.3", "tailwindcss": "^3.0.0" @@ -38177,12 +38392,12 @@ }, "packages/snapshot-tests": { "name": "@rjsf/snapshot-tests", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0" + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1" }, "engines": { "node": ">=20" @@ -38197,7 +38412,7 @@ }, "packages/utils": { "name": "@rjsf/utils", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "dependencies": { "json-schema-merge-allof": "^0.8.1", @@ -38229,7 +38444,7 @@ }, "packages/validator-ajv8": { "name": "@rjsf/validator-ajv8", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "license": "Apache-2.0", "dependencies": { "ajv": "^8.12.0", @@ -38238,7 +38453,7 @@ "lodash-es": "^4.17.21" }, "devDependencies": { - "@rjsf/utils": "^6.0.0-alpha.0", + "@rjsf/utils": "^6.0.0-beta.1", "@types/json-schema": "^7.0.15", "ajv-i18n": "^4.2.0", "eslint": "^8.56.0" diff --git a/package.json b/package.json index b11df5c0cd..51137af510 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "refresh-node-modules": "rimraf packages/*/node_modules && rimraf node_modules && npm install", "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", "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", - "update-version-tags": "git tag -f $(node scripts/get-version-tag.js) && git push -f origin $(node scripts/get-version-tag.js)" + "update-version-tags": "git tag -f $(node scripts/get-version-tag.js) && git push -f origin $(node scripts/get-version-tag.js)", + "nuke-build-env": "rimraf .nx && rimraf package-lock.json" }, "license": "Apache-2.0", "homepage": "https://github.com/rjsf-team/react-jsonschema-form", diff --git a/packages/antd/package.json b/packages/antd/package.json index cb1a353701..5539cd60fc 100644 --- a/packages/antd/package.json +++ b/packages/antd/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/antd", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "description": "Ant Design theme, fields and widgets for react-jsonschema-form", "main": "dist/index.js", "module": "lib/index.js", @@ -77,10 +77,10 @@ }, "devDependencies": { "@ant-design/icons": "^6.0.0", - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "@rollup/plugin-replace": "^6.0.2", "antd": "^5.24.9", "atob": "^2.1.2", diff --git a/packages/chakra-ui/package.json b/packages/chakra-ui/package.json index 4ee7d9e427..7b1a4d015e 100644 --- a/packages/chakra-ui/package.json +++ b/packages/chakra-ui/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/chakra-ui", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "description": "Chakra UI theme, fields, and widgets for react-jsonschema-form", "main": "dist/index.js", "module": "lib/index.js", @@ -87,10 +87,10 @@ "@emotion/jest": "^11.13.0", "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.0", - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "chakra-react-select": "6.1.0", "eslint": "^8.56.0", "lucide-react": "^0.488.0" diff --git a/packages/core/package.json b/packages/core/package.json index c769f2f39f..6d9e360cb0 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/core", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "description": "A simple React component capable of building HTML forms out of a JSON schema.", "scripts": { "compileReplacer": "tsc -p tsconfig.replacer.json && move-file lodashReplacer.js lodashReplacer.cjs", @@ -77,9 +77,9 @@ "prop-types": "^15.8.1" }, "devDependencies": { - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.2.0", "@testing-library/user-event": "^14.6.1", diff --git a/packages/daisyui/package.json b/packages/daisyui/package.json index fd2061369b..5adb1039a8 100644 --- a/packages/daisyui/package.json +++ b/packages/daisyui/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/daisyui", - "version": "6.0.0", + "version": "6.0.0-beta.1", "description": "Daisy UI components for react-jsonschema-form", "main": "dist/index.js", "module": "lib/index.js", @@ -76,10 +76,10 @@ "react": ">=18" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "@testing-library/jest-dom": "^6.1.3", "@testing-library/react": "^14.0.0" }, diff --git a/packages/docs/docs/contributing.md b/packages/docs/docs/contributing.md index dc1a51ea83..b86d3db407 100644 --- a/packages/docs/docs/contributing.md +++ b/packages/docs/docs/contributing.md @@ -29,6 +29,22 @@ If that is the situation for you, you can instead use `npm run build-serial` to Also, if you are only working on one package, you can `npm run build` and `npm run test` from within the subdirectory. 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`. +### Troubleshooting build failures + +Sometimes your local builds fail and you can't figure out why. This is most likely to happen after rebase to `main` due +to `package.json` changes upstream. There are two commands you can use to (hopefully) get your environment back to a +working state. Try running the following two commands: + +```bash +npm run refresh-node-modules +npm run clean-build +``` + +The first command will delete all of the `node_modules` directories in the environment and then rerun `npm install`. +The second command cleans up the typescript build cache files before retrying the build. + +Worst case scenario when neither of those commands work, try running `npm run nuke-build-env` and then rerun the two commands. + ## Cloud builds 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 They are generated using [nyc](https://github.com/istanbuljs/nyc) each time the `npm test-coverage` script is run. The full report can be seen by opening `./coverage/lcov-report/index.html`. -#### Utils and validator-ajvX code coverage +#### Utils and validator-ajv8 code coverage 100% code coverage is required by the `@rjsf/utils` and `@rjsf/validator-ajv8` tests. 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, ## Releasing 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`). -For instance if you are about to create the new `5.100.10` branch, then you would run the following commands: +For instance if you are about to create the new `6.100.10` branch, then you would run the following commands: ```bash git checkout -b rc6.100.10 -git push npx nx release version --git-tag -npm run post-versioning +git commit -m "Releasing 6.100.10" +git push +npm run update-version-tags ``` Make sure you use [semver](https://semver.org/) for version numbering when selecting the version. -The `npx nx release version --git-tag` command will create a new version tag and push it to GitHub. - -The `npm run post-versioning` script will update the peer dependencies in all of the `packages/*/package.json` files if necessary. -It will then clean up the `node_modules` directories and rerun `npm install` to update the `package-lock.json` files. -Finally, it creates and pushes a new commit with those `package.json` and `package-lock.json` files up to GitHub. - -> NOTE: this command will take a while, be patient +The `npx nx release version --git-tag` command will update the `package*.josn` files and create a new version tag. +Committing and pushing the branch will allow you to create the PR on GitHub. +The `npm run update-version-tags` will push the tags up to GitHub. Then, make a PR to main. Merge the PR into main -- make sure you use "merge commit", not squash and merge, so that 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 [rjsf-bot](https://www.npmjs.com/~rjsf-bot) user on npm. This token is stored as the `NPM_TOKEN` secret on GitHub Actions. +### Updating the peer dependencies for new features in a minor release + +If a set of changes added new features or APIs that require updating downstream peer dependencies, then run the following +command: + +```bash +npm run post-versioning +``` + +The `npm run post-versioning` script will update the peer dependencies in all of the `packages/*/package.json` files if necessary. +It will then clean up the `node_modules` directories and rerun `npm install` to update the `package-lock.json` files. +Finally, it creates and pushes a new commit with those `package.json` and `package-lock.json` files up to GitHub. + +> NOTE: this command will take a while, be patient + ### Releasing docs Docs are automatically published to GitHub Pages when the `main` branch is updated. diff --git a/packages/fluentui-rc/package.json b/packages/fluentui-rc/package.json index 81814358a8..80c2c53fd3 100644 --- a/packages/fluentui-rc/package.json +++ b/packages/fluentui-rc/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/fluentui-rc", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "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", @@ -74,10 +74,10 @@ "@fluentui/react-migration-v0-v9": "^9.3.10" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "eslint": "^8.56.0" }, "directories": { diff --git a/packages/mui/package.json b/packages/mui/package.json index e7be0dcd8d..f4bb15f994 100644 --- a/packages/mui/package.json +++ b/packages/mui/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/mui", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "main": "./dist/index.js", "module": "./lib/index.js", "types": "./lib/index.d.ts", @@ -75,10 +75,10 @@ "@emotion/styled": "^11.11.0", "@mui/icons-material": "^6.4.11", "@mui/material": "^6.4.11", - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "eslint": "^8.56.0" }, "publishConfig": { diff --git a/packages/react-bootstrap/package.json b/packages/react-bootstrap/package.json index aeff6f60e0..27620fe18b 100644 --- a/packages/react-bootstrap/package.json +++ b/packages/react-bootstrap/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/react-bootstrap", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "main": "dist/index.js", "module": "lib/index.js", "typings": "lib/index.d.ts", @@ -71,10 +71,10 @@ "node": ">=20" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "eslint": "^8.56.0", "react-bootstrap": "^2.10.9" }, diff --git a/packages/semantic-ui/package.json b/packages/semantic-ui/package.json index 17c928ad06..c7e1b5f34a 100644 --- a/packages/semantic-ui/package.json +++ b/packages/semantic-ui/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/semantic-ui", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "main": "dist/index.js", "module": "lib/index.js", "typings": "lib/index.d.ts", @@ -67,10 +67,10 @@ "semantic-ui-react": "^2.1.3" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "atob": "^2.1.2", "eslint": "^8.56.0", "nanoid": "^5.1.5", diff --git a/packages/shadcn/package.json b/packages/shadcn/package.json index 0de3d877a6..7cd4edd4e6 100644 --- a/packages/shadcn/package.json +++ b/packages/shadcn/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/shadcn", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "main": "dist/index.js", "module": "lib/index.js", "typings": "lib/index.d.ts", @@ -71,10 +71,10 @@ "node": ">=20" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/snapshot-tests": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0", + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/snapshot-tests": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1", "eslint": "^8.56.0", "jsdom": "^20.0.3", "tailwindcss": "^3.0.0" diff --git a/packages/snapshot-tests/package.json b/packages/snapshot-tests/package.json index 2038c29b8c..2a6d7c3457 100644 --- a/packages/snapshot-tests/package.json +++ b/packages/snapshot-tests/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/snapshot-tests", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "description": "A set of snapshot tests to be used for testing RJSF theme.", "scripts": { "build": "tsc -b .", @@ -35,9 +35,9 @@ "@rjsf/validator-ajv8": "^6.x" }, "devDependencies": { - "@rjsf/core": "^6.0.0-alpha.0", - "@rjsf/utils": "^6.0.0-alpha.0", - "@rjsf/validator-ajv8": "^6.0.0-alpha.0" + "@rjsf/core": "^6.0.0-beta.1", + "@rjsf/utils": "^6.0.0-beta.1", + "@rjsf/validator-ajv8": "^6.0.0-beta.1" }, "repository": { "type": "git", diff --git a/packages/utils/package.json b/packages/utils/package.json index 6117c8288d..4a4b958772 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/utils", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "main": "dist/index.js", "module": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/packages/validator-ajv8/package.json b/packages/validator-ajv8/package.json index f763a45741..e51ec3d748 100644 --- a/packages/validator-ajv8/package.json +++ b/packages/validator-ajv8/package.json @@ -1,6 +1,6 @@ { "name": "@rjsf/validator-ajv8", - "version": "6.0.0-alpha.0", + "version": "6.0.0-beta.1", "main": "dist/index.js", "module": "lib/index.js", "typings": "lib/index.d.ts", @@ -86,7 +86,7 @@ "@rjsf/utils": "^6.x" }, "devDependencies": { - "@rjsf/utils": "^6.0.0-alpha.0", + "@rjsf/utils": "^6.0.0-beta.1", "@types/json-schema": "^7.0.15", "ajv-i18n": "^4.2.0", "eslint": "^8.56.0"