diff --git a/CHANGELOG.md b/CHANGELOG.md index 06bb9a727f..a84feb1b99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,20 @@ should change the heading of the (upcoming) version to include a major version b --> +# 5.23.1 + +## @rjsf/chakra-ui + +- Updated `package.json` to restrict `@chakra-ui/react`'s peer dependency to be < 3.0.0, fixing [#4390](https://github.com/rjsf-team/react-jsonschema-form/issues/4390) + +## @rjsf/core + +- Updated `NumberField` to properly pass through the `errorSchema` and `id` in the onChange handler, fixing [#4382](https://github.com/rjsf-team/react-jsonschema-form/issues/4382) + +## Dev / docs / playground + +- Updated the peer dependencies for `@rjsf/*` to be `5.23.x` + # 5.23.0 ## @rjsf/core diff --git a/packages/antd/package.json b/packages/antd/package.json index 4a21cedcf6..a8524c5ba3 100644 --- a/packages/antd/package.json +++ b/packages/antd/package.json @@ -34,8 +34,8 @@ }, "peerDependencies": { "@ant-design/icons": "^4.0.0 || ^5.0.0", - "@rjsf/core": "^5.22.x", - "@rjsf/utils": "^5.22.x", + "@rjsf/core": "^5.23.x", + "@rjsf/utils": "^5.23.x", "antd": "^4.24.0 || ^5.8.5", "dayjs": "^1.8.0", "react": "^16.14.0 || >=17" diff --git a/packages/bootstrap-4/package.json b/packages/bootstrap-4/package.json index 776b58385b..bbb76a466b 100644 --- a/packages/bootstrap-4/package.json +++ b/packages/bootstrap-4/package.json @@ -33,8 +33,8 @@ ] }, "peerDependencies": { - "@rjsf/core": "^5.22.x", - "@rjsf/utils": "^5.22.x", + "@rjsf/core": "^5.23.x", + "@rjsf/utils": "^5.23.x", "react": "^16.14.0 || >=17", "react-bootstrap": "^1.6.5" }, diff --git a/packages/chakra-ui/package.json b/packages/chakra-ui/package.json index 1fb754814e..c0d858a419 100644 --- a/packages/chakra-ui/package.json +++ b/packages/chakra-ui/package.json @@ -37,8 +37,8 @@ "@chakra-ui/icons": ">=1.1.1", "@chakra-ui/react": ">=1.7.3 <3.0.0", "@chakra-ui/system": ">=1.12.1", - "@rjsf/core": "^5.22.x", - "@rjsf/utils": "^5.22.x", + "@rjsf/core": "^5.23.x", + "@rjsf/utils": "^5.23.x", "chakra-react-select": ">=3.3.8", "framer-motion": ">=5.6.0", "react": "^16.14.0 || >=17" diff --git a/packages/core/package.json b/packages/core/package.json index 2cabebf52c..69dfff4c4b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -37,7 +37,7 @@ "node": ">=14" }, "peerDependencies": { - "@rjsf/utils": "^5.22.x", + "@rjsf/utils": "^5.23.x", "react": "^16.14.0 || >=17" }, "dependencies": { diff --git a/packages/core/src/components/fields/NumberField.tsx b/packages/core/src/components/fields/NumberField.tsx index e30fe6732c..7d89996e9f 100644 --- a/packages/core/src/components/fields/NumberField.tsx +++ b/packages/core/src/components/fields/NumberField.tsx @@ -1,5 +1,5 @@ import { useState, useCallback } from 'react'; -import { asNumber, FieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; +import { asNumber, ErrorSchema, FieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; // Matches a string that ends in a . character, optionally followed by a sequence of // digits followed by any number of 0 characters up until the end of the line. @@ -44,7 +44,7 @@ function NumberField['value']) => { + (value: FieldProps['value'], errorSchema?: ErrorSchema, id?: string) => { // Cache the original value in component state setLastValue(value); @@ -62,7 +62,7 @@ function NumberField= 7", - "@rjsf/core": "^5.22.x", - "@rjsf/utils": "^5.22.x", + "@rjsf/core": "^5.23.x", + "@rjsf/utils": "^5.23.x", "react": "^16.14.0 || >=17" }, "devDependencies": { diff --git a/packages/fluentui-rc/package.json b/packages/fluentui-rc/package.json index ad72db49fa..f24b3f39b6 100644 --- a/packages/fluentui-rc/package.json +++ b/packages/fluentui-rc/package.json @@ -37,7 +37,7 @@ "node": ">=14" }, "peerDependencies": { - "@rjsf/utils": "^5.22.x", + "@rjsf/utils": "^5.23.x", "react": "^16.14.0 || >=17" }, "dependencies": { diff --git a/packages/material-ui/package.json b/packages/material-ui/package.json index 7147ec2304..2e18dfe920 100644 --- a/packages/material-ui/package.json +++ b/packages/material-ui/package.json @@ -34,8 +34,8 @@ "peerDependencies": { "@material-ui/core": "^4.12.3", "@material-ui/icons": "^4.11.2", - "@rjsf/core": "^5.22.x", - "@rjsf/utils": "^5.22.x", + "@rjsf/core": "^5.23.x", + "@rjsf/utils": "^5.23.x", "react": "^16.14.0 || >=17" }, "devDependencies": { diff --git a/packages/mui/package.json b/packages/mui/package.json index 891355c6cd..99a5eec0ac 100644 --- a/packages/mui/package.json +++ b/packages/mui/package.json @@ -36,8 +36,8 @@ "@emotion/styled": "^11.6.0", "@mui/icons-material": "^5.2.0 || ^6.0.0", "@mui/material": "^5.2.2 || ^6.0.0", - "@rjsf/core": "^5.22.x", - "@rjsf/utils": "^5.22.x", + "@rjsf/core": "^5.23.x", + "@rjsf/utils": "^5.23.x", "react": ">=17" }, "devDependencies": { diff --git a/packages/semantic-ui/package.json b/packages/semantic-ui/package.json index f6a0458000..537e65f692 100644 --- a/packages/semantic-ui/package.json +++ b/packages/semantic-ui/package.json @@ -33,8 +33,8 @@ ] }, "peerDependencies": { - "@rjsf/core": "^5.22.x", - "@rjsf/utils": "^5.22.x", + "@rjsf/core": "^5.23.x", + "@rjsf/utils": "^5.23.x", "react": "^16.14.0 || >=17", "semantic-ui-react": "^1.3.1 || ^2.1.3" }, diff --git a/packages/validator-ajv6/package.json b/packages/validator-ajv6/package.json index 47a4325370..abf9001b82 100644 --- a/packages/validator-ajv6/package.json +++ b/packages/validator-ajv6/package.json @@ -37,7 +37,7 @@ "lodash-es": "^4.17.21" }, "peerDependencies": { - "@rjsf/utils": "^5.22.x" + "@rjsf/utils": "^5.23.x" }, "devDependencies": { "@babel/core": "^7.23.9", diff --git a/packages/validator-ajv8/package.json b/packages/validator-ajv8/package.json index 469e0931ee..2695659df7 100644 --- a/packages/validator-ajv8/package.json +++ b/packages/validator-ajv8/package.json @@ -39,7 +39,7 @@ "lodash-es": "^4.17.21" }, "peerDependencies": { - "@rjsf/utils": "^5.22.x" + "@rjsf/utils": "^5.23.x" }, "devDependencies": { "@babel/core": "^7.23.9",