Skip to content

Commit 60ff54b

Browse files
committed
Merge remote-tracking branch 'origin/main' into validation-regression
2 parents ded5b19 + c77378b commit 60ff54b

File tree

32 files changed

+519
-209
lines changed

32 files changed

+519
-209
lines changed

CHANGELOG.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,28 @@ should change the heading of the (upcoming) version to include a major version b
1616
1717
-->
1818

19-
# 5.21.3
19+
# 5.22.0
20+
21+
## @rjsf/core
22+
23+
- Updated `MultiSchemaField` to call the `onChange` handler after setting the new option, fixing [#3997](https://github.com/rjsf-team/react-jsonschema-form/issues/3977) and [#4314](https://github.com/rjsf-team/react-jsonschema-form/issues/4314)
2024

2125
## @rjsf/utils
2226

23-
- Added `experimental_customMergeAllOf` option to `retrieveSchema` to allow custom merging of `allOf` schemas
27+
- Added `experimental_customMergeAllOf` option to `retrieveSchema()` and `getDefaultFormState()` to allow custom merging of `allOf` schemas
28+
- Made fields with const property pre-filled and readonly, fixing [#2600](https://github.com/rjsf-team/react-jsonschema-form/issues/2600)
29+
- Added `mergeDefaultsIntoFormData` option to `Experimental_DefaultFormStateBehavior` type to control how to handle merging of defaults
30+
- Updated `mergeDefaultsWithFormData()` to add new optional `defaultSupercedesUndefined` that when true uses the defaults rather than `undefined` formData, fixing [#4322](https://github.com/rjsf-team/react-jsonschema-form/issues/4322)
31+
- Updated `getDefaultFormState()` to pass true to `mergeDefaultsWithFormData` for `defaultSupercedesUndefined` when `mergeDefaultsIntoFormData` has the value `useDefaultIfFormDataUndefined`, fixing [#4322](https://github.com/rjsf-team/react-jsonschema-form/issues/4322)
32+
- Updated `getClosestMatchingOption()` to improve the scoring of sub-property objects that are provided over ones that aren't, fixing [#3997](https://github.com/rjsf-team/react-jsonschema-form/issues/3977) and [#4314](https://github.com/rjsf-team/react-jsonschema-form/issues/4314)
33+
34+
## Dev / docs / playground
35+
36+
- Updated the `form-props.md` to add documentation for the new `experimental_customMergeAllOf` props and the `experimental_defaultFormStateBehavior.mergeDefaultsIntoFormData` option
37+
- Updated the `utility-functions.md` to add documentation for the new optional `defaultSupercedesUndefined` parameter and the two missing optional fields on `getDefaultFormState()`
38+
- Updated the `custom-templates.md` to add a section header for wrapping `BaseInputTemplate`
39+
- Updated the playground to add controls for the new `mergeDefaultsIntoFormData` option
40+
- In the process, moved the `Show Error List` component over one column, making it inline radio buttons rather than a select
2441

2542
# 5.21.2
2643

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": ["packages/*"],
3-
"version": "5.21.2",
3+
"version": "5.22.1",
44
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
55
"useNx": true,
66
"useWorkspaces": true

0 commit comments

Comments
 (0)