Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
c4b9e47
fix(utils): direct lodash function import to improve bundling on libr…
JonaszJestem Nov 27, 2023
a8d37b7
v5.14.3 (#3979)
heath-freenome Nov 27, 2023
bc16e29
add missing typescript project reference for utils in validator-ajv6 …
zxbodya Nov 28, 2023
ac6b3b0
fix: #3961 resolve all recurse list for object properties (#3981)
cwendtxealth Nov 28, 2023
d89367e
Add the ability to parse defaults from `allOf` schema (#3969)
benjdlambert Nov 30, 2023
c5c2b27
mui: fix gap in outline when label is hidden (#3984)
drbild Dec 1, 2023
297dac0
Release 5.15.0 (#3986)
heath-freenome Dec 1, 2023
daa687a
Make getFieldNames correctly defines array of primitives (#3990)
Ariqun Dec 5, 2023
2061ce6
Fix: Expose the internal `ajv` variable in the validator implementati…
heath-freenome Dec 6, 2023
e8aa9e8
v5.15.1 (#3997)
heath-freenome Dec 8, 2023
39f6451
feat: pass down indexed title from array field (#4002)
Rozamo Dec 14, 2023
1de339b
chore(deps): bump actions/download-artifact from 3 to 4
dependabot[bot] Jan 1, 2024
e475057
chore(deps): bump actions/setup-python from 3 to 5
dependabot[bot] Jan 5, 2024
cd486d0
chore(deps): bump actions/upload-artifact from 3 to 4
dependabot[bot] Jan 5, 2024
21d1c55
chore(deps-dev): bump vite from 4.4.9 to 4.4.12
dependabot[bot] Jan 5, 2024
accbd16
Feat: Implements #297 request (#4004)
Shubhcoder Jan 7, 2024
db146ff
chore: Bumped packages using `npm run bump-all-packages` (#4006)
heath-freenome Jan 8, 2024
8c685b7
Update Form.tsx and make submit method public (#4029)
popmanhe Jan 8, 2024
93e7021
Fix: Change FormHelperText usage with @mui/material to render divs (#…
heath-freenome Jan 10, 2024
1bc40b0
Support file deletion for data-url (#4030)
yuki-js Jan 10, 2024
4d347fd
Release 5.16.0 (#4037)
heath-freenome Jan 11, 2024
4f8d080
Release 5.16.1 (#4041)
heath-freenome Jan 11, 2024
f31bef1
Enhancement(Share): Enhancement base64 encoding/decoding using UTF-8 …
orange-guo Jan 18, 2024
53b3c57
fix: Added support for anyOf/oneOf in uiSchema (#4055)
heath-freenome Jan 23, 2024
d58775b
chore(deps-dev): bump vite from 4.5.1 to 4.5.2
dependabot[bot] Jan 23, 2024
0274b86
Fix checkbox with 0 as a value was unselectable in antd (#4068)
heath-freenome Jan 29, 2024
ee2ac9b
Fix potential XSS in the preview button of FileWidget (#4065)
yuki-js Jan 30, 2024
46501e5
docs: update link to markdown-to-jsx homepage (#4071)
bartvanandel Jan 30, 2024
0782878
Release 5.17.0 (#4073)
heath-freenome Feb 1, 2024
67f9c48
Fix: Make 'ui:rows' option work with chakra-ui for textarea elements …
ldirer Feb 16, 2024
f724820
Fix typo in ErrorsListTemplate example (#4087)
vstenvik Feb 16, 2024
e2e37b7
Fix #4080 by moving `base64` encoder/decoder from `@rjsf/utils` to pl…
nickgros Feb 19, 2024
ce05ea2
Pass errorSchema from ArrayField to ArrayFieldTemplate (#4094)
vstenvik Feb 19, 2024
79bd49c
v5.17.1 (#4096)
heath-freenome Feb 19, 2024
c8f9df2
Feat: don't assign a default value of an empty field. (#3880) (#4085)
abdalla-rko Feb 21, 2024
158fc22
chore(deps-dev): bump ip from 2.0.0 to 2.0.1
dependabot[bot] Feb 21, 2024
f118157
Fix: Error state not resetting when schema changes (#4079) (#4103)
abdalla-rko Mar 1, 2024
234af1d
Fix noImplicitAny error (#4106)
orenf Mar 1, 2024
9f668ec
Update validation docs with correct require statement (#4108)
mpenndev Mar 1, 2024
af8932a
Fixes: [WARNING] Duplicate key "include" in object literal [duplicate…
orenf Mar 4, 2024
e4b8c24
Fixes: Warning: validateDOMNesting(...): <p> cannot appear as a desce…
orenf Mar 14, 2024
c70d81f
give instructions for material ui 5, not 4 (#4126)
burnettk Mar 15, 2024
f0619f7
Fix documentation to add missing Form imports (#4131)
heath-freenome Mar 16, 2024
bb2093d
Fix: filename should be bold (#4125)
joachimhagheim Mar 21, 2024
baffbf1
Skip populate function proposal in Experimental_ArrayMinItems (#4121)
MarekBodingerBA Mar 21, 2024
88a9407
Fix: use correct ConfigProvider context by using named imports (#4132)
momesana Mar 22, 2024
2ac8e94
Fix 4134 by filtering out bad DOM props (#4140)
heath-freenome Mar 22, 2024
677690a
v5.18.0 (#4141)
heath-freenome Mar 23, 2024
5e42a19
chore(deps): bump follow-redirects from 1.15.5 to 1.15.6
dependabot[bot] Mar 23, 2024
294b9e3
Release 5.18.1 (#4145)
heath-freenome Mar 23, 2024
1b6376d
chore(deps-dev): bump vite from 4.5.2 to 4.5.3
dependabot[bot] Apr 4, 2024
fcaacb7
chore(deps): bump express from 4.18.2 to 4.19.2
dependabot[bot] Apr 4, 2024
3e784ff
chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4
dependabot[bot] Apr 4, 2024
b705399
#3121 Fixed Programmatic submit not working properly in Firefox (#4150)
abdalla-rko Apr 5, 2024
509ef2d
Fix Maximum call stack size exceeded in findSchemaDefinition (#4123)
MarttiR Apr 9, 2024
9b9f0e6
v5.18.2 (#4157)
heath-freenome Apr 10, 2024
0b7290c
Upgrades React (#4107)
orenf Apr 19, 2024
a487c72
Add support back for semantic version 1 via peerdependencies (#4169)
heath-freenome Apr 19, 2024
b8f700a
Create codeql.yml (#4170)
heath-freenome Apr 19, 2024
a8b0f56
Update LICENSE.md (#4174)
svdoever Apr 24, 2024
1e3acd9
Update custom-widgets-fields.md (#4171)
enzoferey Apr 25, 2024
ef5afed
chore(deps-dev): bump gh-pages from 3.2.3 to 5.0.0
dependabot[bot] Apr 25, 2024
e7b8277
Release 5.18.3 (#4175)
heath-freenome Apr 26, 2024
6f3a837
Add missing angle bracket (#4178)
skyf0l May 10, 2024
38f7d32
fix typos in constants.ts, Form.tsx (#4185)
HanJaeJoon May 17, 2024
f0d03e0
chore(deps): bump mkdocs from 1.5.3 to 1.6.0
dependabot[bot] May 17, 2024
e0f70a0
chore(deps-dev): bump ejs from 3.1.9 to 3.1.10
dependabot[bot] May 17, 2024
eec280a
v5.18.4 (#4195)
heath-freenome May 17, 2024
ec932db
feat: treat default field in additionalProperties (#4199)
tomatommy-bs May 24, 2024
42a7c1c
Passes missing uiSchema prop to Form component. (#4219)
ordinathorreur Jun 14, 2024
17f777b
Remove duplicate mention of hideError (#4211)
dzhus Jun 14, 2024
c19cf59
Fix mui imports in docs (#4218)
kachkaev Jun 21, 2024
6e9c668
[fix] Resetting number fields should check the entire string when dec…
nickgros Jun 21, 2024
76e57da
chore(deps): bump ws from 7.5.9 to 7.5.10
dependabot[bot] Jun 21, 2024
cbb8fe7
chore(deps): bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 21, 2024
7bcfc4a
Bug: Fixed performance issue with large schema dependencies and oneOf…
abdalla-rko Jun 21, 2024
f8378c4
Handle undefined target in onBlur and onFocus handlers (#4227)
heath-freenome Jun 24, 2024
86048e3
fix(core): field ui-options higher priority (#4212)
shaddollxz Jun 25, 2024
40ea3c4
Release 5.18.5 (#4230)
heath-freenome Jun 26, 2024
3d851f4
fix(antd): disabled property of options of antd theme (#4216)
KingMario Jun 28, 2024
b1cf91d
fix: omitExtraData on submit and on validateForm (#4228)
helen-m-lin Jul 1, 2024
d08cf99
Fix IdSchema and PathSchema types (#4196)
solimant Jul 2, 2024
3fc9eba
SchemaField: Only use nullish coalescing with uiOptions when computin…
nickgros Jul 2, 2024
307a162
v5.18.6 (#4237)
heath-freenome Jul 2, 2024
ca89a64
(feature) Add new relative Years feature to AltDateWidget (#4239)
heath-freenome Jul 3, 2024
3aca5fa
v5.19.0 (#4240)
heath-freenome Jul 3, 2024
4f83fb8
Bumped peer dependencies to 5.19.x due to new API used from utils (#4…
heath-freenome Jul 3, 2024
659798f
Release 5.19.1 (#4242)
heath-freenome Jul 5, 2024
a2bd3eb
Removed .only on a core test (#4243)
heath-freenome Jul 5, 2024
1338ded
v5.19.2 (#4245)
heath-freenome Jul 5, 2024
b56da64
Fix #4197 in various themes by showing empty option in SelectWidget w…
nickgros Jul 8, 2024
7f54d45
Release 5.19.3 (#4247)
heath-freenome Jul 9, 2024
a2dc1cd
feature: Added better support for testing with AJV having discriminat…
heath-freenome Jul 27, 2024
67e5ee6
fix: xss when rendering schema errors (#4256)
davidli16 Jul 27, 2024
16b33c0
v5.19.4 (#4258)
heath-freenome Jul 27, 2024
4d3094c
Feat: Allow raising errors from within a custom whatever(#2718) (#4188)
abdalla-rko Aug 3, 2024
63a860e
fix 4215 and 4260 by updating optionsList() to take a uiSchema (#4263)
heath-freenome Aug 5, 2024
0e57358
v5.20.0 (#4264)
heath-freenome Aug 8, 2024
11fae12
Release 5.20.1 (#4268)
heath-freenome Aug 8, 2024
a7b25e8
Fixed Changelog (#4269)
heath-freenome Aug 9, 2024
fc1c8c3
Bug: issue with dependencies computeDefaults (#4271) (#4282)
abdalla-rko Sep 9, 2024
514ea85
feat: improve deepEquals performance (#4292)
igorbrasileiro Sep 9, 2024
018621e
fix querySelector in Form focusOnError when id includes dots (#4280)
jroebu14 Sep 10, 2024
36d2e93
Fix 4283 by adding support for MUI v6 (#4294)
heath-freenome Sep 10, 2024
7b1a146
chore(deps): bump mkdocs from 1.6.0 to 1.6.1
dependabot[bot] Sep 10, 2024
ff94324
v5.21.0 (#4295)
heath-freenome Sep 11, 2024
a4bb2bf
Revert "feat: improve deepEquals performance (#4292)" (#4300)
igorbrasileiro Sep 13, 2024
f0eb734
v5.21.1 (#4301)
heath-freenome Sep 13, 2024
9d1ff6d
fix: Improved the widget/field customization docs (#4302)
heath-freenome Sep 14, 2024
d2ac1c1
Fix: Pass required props to anyof/oneof field components (#4303)
tomaszdurka Sep 20, 2024
4cb8342
Chore: Updating changelog with missing info (#4309)
heath-freenome Sep 20, 2024
d3af307
fix: deal with null objects in errors in Form.filterErrorsBasedOnSche…
heath-freenome Sep 20, 2024
f92f9f6
fix: not merge the `allOf.contains` schemas
AlimovSV Sep 23, 2024
f7e05bb
feat: Support array numbers in pathOfError for ErrorSchemaBuilder
kylie-marshall Sep 25, 2024
f487739
Update CHANGELOG.md (#4317)
nickgros Sep 30, 2024
ce45081
Refactor: delete unused variable (#4320)
BlackBerryID Oct 2, 2024
b5ce52e
v5.21.2 (#4323)
heath-freenome Oct 2, 2024
787368f
Fix typo L12n -> L10n (#4332)
SalvatoreT Oct 17, 2024
a347257
experimental_customMergeAllOf (#4308)
MarekBodingerBA Oct 18, 2024
f6c5bf7
Make fields with const pre-fiiled and readonly #3843 (#4326)
abdalla-rko Oct 21, 2024
27e6956
Fix: made small changes to utility functions to fix #3997, #4314 and …
heath-freenome Oct 21, 2024
25c00ec
v5.22.0 (#4341)
heath-freenome Oct 21, 2024
c77378b
Release 5.22.1 (#4342)
heath-freenome Oct 21, 2024
d7bd130
Bug: Validation regression Form not revalidating after formData chang…
abdalla-rko Oct 28, 2024
13550f0
fix: Validation error messages are inconsistent #4348 (#4349)
guilhermecastros Oct 28, 2024
6a91898
fix: multiple file upload issue (#4347)
BorjaDV Oct 28, 2024
8c4e726
v5.22.2 (#4353)
heath-freenome Oct 28, 2024
9104467
Bug: Deep nested dependencies issue with assigning values to formData…
abdalla-rko Oct 30, 2024
f671b01
v5.22.3 (#4358)
heath-freenome Oct 30, 2024
b7b63a5
chore(deps): bump crazy-max/ghaction-github-pages from 4.0.0 to 4.1.0
dependabot[bot] Nov 1, 2024
b1cda9b
Bug: Issue 'Maximum call stack size exceeded' with playground share. …
abdalla-rko Nov 7, 2024
62f3397
Bug: Issue with array schema defaults not applying properly when form…
abdalla-rko Nov 8, 2024
1e12bfe
v5.22.4 (#4373)
heath-freenome Nov 11, 2024
e71cb8d
Adding feature to support const as default bug fix seeming like a reg…
heath-freenome Nov 15, 2024
011659d
experimental_customMergeAllOf v2 (#4383)
MarekBodingerBA Nov 15, 2024
713d04b
Fixed issue where error messages do not have title or ui:title if a L…
chibacchie Nov 22, 2024
306f2b3
fix: Update schema builder add/set actions to have unique errors (#4386)
guilhermecastros Nov 22, 2024
650032b
v5.23.0 (#4392)
heath-freenome Nov 22, 2024
b870298
Chakra-UI must be <3.0.0
nickgros Nov 22, 2024
5a8fbdb
Fix 4382 by passing errorSchema and id through in NumberField's onCha…
heath-freenome Nov 22, 2024
1c443a6
v5.23.1 (#4396)
heath-freenome Nov 22, 2024
433f99b
Use default values when switching anyOf option (#4375)
quentin-sommer Dec 2, 2024
4359bd1
Fix issue where ui:title in anyOf/oneOf is not shown in error message…
chibacchie Dec 6, 2024
3c5539a
fix: Short-circuit File and Date constructor access in isObject (#4413)
Hsifnus Dec 13, 2024
5335d72
v5.23.2
heath-freenome Dec 13, 2024
e292164
Bug: issue with assigning values to deeply nested required properties…
abdalla-rko Jan 3, 2025
c2a60d4
Bug: Issue with formData not updating when dependencies change (#4388)
abdalla-rko Jan 6, 2025
f5a24b2
Bug: schema with conditions where switching to then/else subschemas d…
abdalla-rko Jan 6, 2025
a521990
Bug: AJV $data reference in const property in schema treated as defa…
abdalla-rko Jan 8, 2025
b6c1825
fix: formData change clear errorMessage (#4429)
JinYuSha0 Jan 9, 2025
d211a7d
Partially fixed dependency error messages (#4417)
chibacchie Jan 9, 2025
478db10
feat: switch `lodash.isEqual` to `fast-equals.deepEqual` to improve p…
igorbrasileiro Jan 10, 2025
81df4f5
v5.24.0 (#4443)
heath-freenome Jan 10, 2025
63f5612
Release 5.24.1 (#4445)
heath-freenome Jan 10, 2025
2b5c907
Switch lodash.isEqualWith to fast-equals (#4446)
igorbrasileiro Jan 17, 2025
70d7c73
Fixed file accept attribute not working on mui and chakra-ui. (#4457)
abdalla-rko Jan 24, 2025
3f9760b
Update validation.md (#4458)
pgli Jan 24, 2025
978dbea
Bug : Fields inside an array can't be set to empty when default is se…
abdalla-rko Jan 24, 2025
5a3537e
Refactor: remove unnecessary indirectness in get default form state t…
x0k Jan 24, 2025
2cc5126
Bug: The oneOf selector can be modified in readonly mode (#4463)
abdalla-rko Jan 27, 2025
b121756
v5.24.2 (#4468)
heath-freenome Jan 28, 2025
615a98c
Validator should not refresh on clicking a Selector in playground (#4…
deepeshmi26 Jan 31, 2025
096c0b4
Revert #4446 due to regression (#4478)
heath-freenome Feb 4, 2025
1238e0a
v5.24.3 (#4480)
heath-freenome Feb 4, 2025
eb77836
Merge branch 'main' of https://github.com/rjsf-team/react-jsonschema-…
heath-freenome Feb 6, 2025
6702d03
- Drop node 14, 16 and 18 support, adding 20 and 22
heath-freenome Feb 6, 2025
517decc
- More `ci` clean for builds
heath-freenome Feb 6, 2025
68c308e
- Make code-ql work for rjsf-v6 branch
heath-freenome Feb 6, 2025
f9043ca
- Fixed build by using correct version of MUI as well as removing MUI…
heath-freenome Feb 6, 2025
7977674
- Updated node engine >= 20
heath-freenome Feb 6, 2025
eadbe94
- Fix package-lock.json
heath-freenome Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -21,42 +21,37 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- run: npm i -g npm@9
- run: npm ci
- run: npm run lint

- name: Build with Netlify badge
if: github.ref != 'refs/heads/main' && matrix.node-version != '14.x'
run: npm run build
env:
VITE_SHOW_NETLIFY_BADGE: true
NODE_OPTIONS: --max_old_space_size=4096

- name: Build
if: github.ref == 'refs/heads/main' && matrix.node-version != '14.x'
run: npm run build
env:
NODE_OPTIONS: --max_old_space_size=4096

# Docusaurus doesn't support Node 14. These tasks can be removed once Node 14 is EOL (May 2023)
- name: Build with Netlify badge (no docs)
if: github.ref != 'refs/heads/main' && matrix.node-version == '14.x'
run: npx nx run-many --target=build --exclude=@rjsf/docs
env:
VITE_SHOW_NETLIFY_BADGE: true
NODE_OPTIONS: --max_old_space_size=4096
- name: Build (no docs)
if: github.ref == 'refs/heads/main' && matrix.node-version == '14.x'
run: npx nx run-many --target=build --exclude=@rjsf/docs
env:
NODE_OPTIONS: --max_old_space_size=4096

- if: matrix.node-version == '18.x'
- if: matrix.node-version == '22.x'
uses: actions/upload-artifact@v4
with:
name: playground
path: packages/playground/dist
- if: matrix.node-version == '18.x'
- if: matrix.node-version == '22.x'
uses: actions/upload-artifact@v4
with:
name: docs
Expand All @@ -79,7 +74,7 @@ jobs:
name: docs
path: dist/docs
- name: Deploy playground + docs to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4.0.0
uses: crazy-max/ghaction-github-pages@v4.1.0
with:
keep_history: true
target_branch: gh-pages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ name: "CodeQL"

on:
push:
branches: [ "main" ]
branches: [ "main", "rjsf-v6" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "rjsf-v6" ]
schedule:
- cron: '19 2 * * 1'

Expand Down
221 changes: 214 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,213 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
should change the heading of the (upcoming) version to include a major version bump.

-->
# 5.24.3

## @rjsf/utils

- Rollback [4446](https://github.com/rjsf-team/react-jsonschema-form/pull/4446) due to regression

## Dev / docs / playground
- Fixed issue with selector, where validator was getting refreshed on clicking on anything in selector. [#4472](https://github.com/rjsf-team/react-jsonschema-form/pull/4472)

# 5.24.2

## @rjsf/utils

- switch `lodash.isEqualWith` to `fast-equals.createCustomEqual` providing `areFunctionsEqual` assuming any functions are equal.
- Fixed issue with oneOf selector can be modified in readonly mode, fixing [#4460](https://github.com/rjsf-team/react-jsonschema-form/issues/4460)
- Fixed issue with fields inside an array can't be set to empty when a default is set, fixing [#4456](https://github.com/rjsf-team/react-jsonschema-form/issues/4456)
- Fixed issue with file accept attribute, fixing [#4404](https://github.com/rjsf-team/react-jsonschema-form/issues/4404).

## @rjsf/mui

- Fixed issue with file accept attribute, fixing [#4404](https://github.com/rjsf-team/react-jsonschema-form/issues/4404).

# 5.24.1

## @rjsf/utils

- Fixed documentation for `getChangedFields()`

## Dev / docs / playground

- Updated the peer dependencies for `@rjsf/*` to be `5.24.x`
- Added documentation for `getChangedFields()`

# 5.24.0

## @rjsf/core

- Fixed issue with schema if/then/else conditions where switching to then/else subschemas did not reflect the actual validation errors in the onChange event, fixing [#4249](https://github.com/rjsf-team/react-jsonschema-form/issues/4249) and improving performance.
- Fixed issue error message will not be cleared after the controlled Form formData is changed. Fixes [#4426](https://github.com/rjsf-team/react-jsonschema-form/issues/4426)

## @rjsf/utils

- Fixed issue with formData not updating when dependencies change, fixing [#4325](https://github.com/rjsf-team/react-jsonschema-form/issues/4325)
- Fixed issue with assigning default values to formData with deeply nested required properties, fixing [#4399](https://github.com/rjsf-team/react-jsonschema-form/issues/4399)
- Fixed issue error message will not be cleared after the controlled Form formData is changed. Fixes [#4426](https://github.com/rjsf-team/react-jsonschema-form/issues/4426)
- Fix for AJV [$data](https://ajv.js.org/guide/combining-schemas.html#data-reference) reference in const property in schema treated as default/const value. The issue is mentioned in [#4361](https://github.com/rjsf-team/react-jsonschema-form/issues/4361).
- Switched uses of `lodash.isEqual()` to `@rjsf/utils.deepEquals`.

## @rjsf/validator-ajv8

- Partially fixed issue where dependency errors do not show `title` or `ui:title`. This fix only applicable if we use an ajv-i18n localizer. Ref. [#4402](https://github.com/rjsf-team/react-jsonschema-form/issues/4402).
- Switched uses of `lodash.isEqual()` to `@rjsf/utils.deepEquals` at precompiledValidator.

# 5.23.2

## @rjsf/core

- Fix default value population when switching between options in `MultiSchemaField` [#4375](https://github.com/rjsf-team/react-jsonschema-form/pull/4375). Fixes [#4367](https://github.com/rjsf-team/react-jsonschema-form/issues/4367)

## @rjsf/utils

- Short-circuit `File` and `Date` constructor access in isObject to optimize performance in scenarios where `globalThis` is a `Proxy` that incurs overhead for each class constructor access ([#4413](https://github.com/rjsf-team/react-jsonschema-form/pull/4413)). Fixes [#4409](https://github.com/rjsf-team/react-jsonschema-form/issues/4409)

## @rjsf/validator-ajv8

- Fixed issue where `ui:title` in anyOf/oneOf is not shown in error messages. Fixes [#4368](https://github.com/rjsf-team/react-jsonschema-form/issues/4368)

# 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

- Updated `SchemaField` to no longer make schema fields with const read-only by default, partially fixing [#4344](https://github.com/rjsf-team/react-jsonschema-form/issues/4344)

## @rjsf/utils

- Updated `Experimental_DefaultFormStateBehavior` to add a new `constAsDefaults` option
- Updated `getDefaultFormState()` to use the new `constAsDefaults` option to control how const is used for defaulting, fixing [#4344](https://github.com/rjsf-team/react-jsonschema-form/issues/4344), [#4361](https://github.com/rjsf-team/react-jsonschema-form/issues/4361) and [#4377](https://github.com/rjsf-team/react-jsonschema-form/issues/4377)
- Use `experimental_customMergeAllOf` option in functions that have previously missed it.
- Updated `ErrorSchemaBuilder` methods `addErrors` and `setErrors` to prevent duplicate error messages.

## @rjsf/validator-ajv8

- Fixed issue where error messages do not have `title` or `ui:title` if a `Localizer` function is used. Fixes [#4387](https://github.com/rjsf-team/react-jsonschema-form/issues/4387)

## Dev / docs / playground

- Updated the playground to add a selector for the `constAsDefaults` option

# 5.22.4

## @rjsf/utils

- Fixed issue with array schema defaults not applying properly when formData is an empty array, fixing [#4335](https://github.com/rjsf-team/react-jsonschema-form/issues/4335).

## Dev / docs / playground

- Fix issue 'Maximum call stack size exceeded' with playground share with large content.

# 5.22.3

## @rjsf/utils

- Fixed deep nested dependencies issue with assigning values to formData, fixing [#4334](https://github.com/rjsf-team/react-jsonschema-form/issues/4334)

# 5.22.2

## @rjsf/core

- Fix an issue where only the first file was uploaded when users selected multiple files for upload.
- Fixed validation regression Form not revalidating after formData change, fixing [#4343](https://github.com/rjsf-team/react-jsonschema-form/issues/4343)

## @rjsf/validator-ajv8

- Fixed `AJV8Validator#transformRJSFValidationErrors` to replace the error message field with either the `uiSchema`'s `ui:title` field if one exists or the `parentSchema` title if one exists. Fixes [#4348](https://github.com/rjsf-team/react-jsonschema-form/issues/4348)

# 5.22.1

## Dev / docs / playground

- Bumped peer dependencies to 5.22.x due to updated type definition and API changes in @rjsf/utils

# 5.22.0

## @rjsf/core

- 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)

## @rjsf/utils

- Added `experimental_customMergeAllOf` option to `retrieveSchema()` and `getDefaultFormState()` to allow custom merging of `allOf` schemas
- Made fields with const property pre-filled and readonly, fixing [#2600](https://github.com/rjsf-team/react-jsonschema-form/issues/2600)
- Added `mergeDefaultsIntoFormData` option to `Experimental_DefaultFormStateBehavior` type to control how to handle merging of defaults
- 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)
- 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)
- 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)

## Dev / docs / playground

- Updated the `form-props.md` to add documentation for the new `experimental_customMergeAllOf` props and the `experimental_defaultFormStateBehavior.mergeDefaultsIntoFormData` option
- Updated the `utility-functions.md` to add documentation for the new optional `defaultSupercedesUndefined` parameter and the two missing optional fields on `getDefaultFormState()`
- Updated the `custom-templates.md` to add a section header for wrapping `BaseInputTemplate`
- Updated the playground to add controls for the new `mergeDefaultsIntoFormData` option
- In the process, moved the `Show Error List` component over one column, making it inline radio buttons rather than a select

# 5.21.2

## @rjsf/core

- Updated `SchemaField` to pass `required` flag to `_AnyOfField`/`_OneOfField`
- Updated `Form` to deal with null objects in `filterErrorsBasedOnSchema()`, fixing [#4306](https://github.com/rjsf-team/react-jsonschema-form/issues/4306)

## @rjsf/utils

- Updated `ErrorSchemaBuilder` to support adding, updating, and removing paths that are numbers, fixing [#4297](https://github.com/rjsf-team/react-jsonschema-form/issues/4297)
- Updated `retrieveSchema` to not merge `contains` properties in `allOf` schema lists, fixing [#2923](https://github.com/rjsf-team/react-jsonschema-form/issues/2923#issuecomment-1946034240)

## Dev / docs / playground

- Updated the `custom-widgets-fields.md` to add examples of wrapping a widget/field

# 5.21.1

## @rjsf/utils

- Revert of updating `deepEquals()` from [#4292]

## @validator-ajv8

- Revert of using `deepEquals()` instead of `lodash.isEqual()` from [#4292]

# 5.21.0

## @rjsf/core

- Updated `Form` to fix `focusOnError()` to support the ids that include dots, fixing [#4279](https://github.com/rjsf-team/react-jsonschema-form/issues/4279)

## @rjsf/mui

- Updated the peer dependencies for `@mui/material` and `@mui/icon-material`, fixing [4283](https://github.com/rjsf-team/react-jsonschema-form/issues/4283)

## @rjsf/utils

- Fixes an issue with dependencies computeDefaults to ensure we can get the dependencies defaults [#4271](https://github.com/rjsf-team/react-jsonschema-form/issues/4271)
- Updated `deepEquals()` to use `fast-equals.createCustomEqual()` instead of `lodash.isEqualWith()`, fixing [#4291](https://github.com/rjsf-team/react-jsonschema-form/issues/4291)
- Switched uses of `lodash.isEqual()` to `deepEquals()` in many of the utility functions as well

## @validator-ajv8

- Use `@rjsf/utils` `deepEquals()` instead of `lodash.isEqual()` to improve performance, fixing [#4291](https://github.com/rjsf-team/react-jsonschema-form/issues/4291)

## Dev / docs / playground

- Updated the playground to use `@mui/*` version 6, changing the name of the dropdown from `material-ui-5` to `mui`

# 5.20.1

Expand All @@ -24,25 +231,25 @@ should change the heading of the (upcoming) version to include a major version b

# 5.20.0

## @rjsf/core
## @rjsf/core

- Support allowing raising errors from within a custom Widget [#2718](https://github.com/rjsf-team/react-jsonschema-form/issues/2718)
- Updated `ArrayField`, `BooleanField` and `StringField` to call `optionsList()` with the additional `UiSchema` parameter, fixing [#4215](https://github.com/rjsf-team/react-jsonschema-form/issues/4215) and [#4260](https://github.com/rjsf-team/react-jsonschema-form/issues/4260)
- Updated `ArrayField`, `BooleanField` and `StringField` to call `optionsList()` with the additional `UiSchema` parameter, fixing [#4215](https://github.com/rjsf-team/react-jsonschema-form/issues/4215) and [#4260](https://github.com/rjsf-team/react-jsonschema-form/issues/4260)

## @rjsf/utils

- Updated the `WidgetProps` type to add `es?: ErrorSchema<T>, id?: string` to the params of the `onChange` handler function
- Updated `UIOptionsBaseType` to add the new `enumNames` prop to support an alternate way to provide labels for `enum`s in a schema, fixing [#4215](https://github.com/rjsf-team/react-jsonschema-form/issues/4215)
- Updated `optionsList()` to take an optional `uiSchema` that is used to extract alternate labels for `enum`s or `oneOf`/`anyOf` in a schema, fixing [#4215](https://github.com/rjsf-team/react-jsonschema-form/issues/4215) and [#4260](https://github.com/rjsf-team/react-jsonschema-form/issues/4260)
- Updated `optionsList()` to take an optional `uiSchema` that is used to extract alternate labels for `enum`s or `oneOf`/`anyOf` in a schema, fixing [#4215](https://github.com/rjsf-team/react-jsonschema-form/issues/4215) and [#4260](https://github.com/rjsf-team/react-jsonschema-form/issues/4260)
- NOTE: The generics for `optionsList()` were expanded from `<S extends StrictRJSFSchema = RJSFSchema>` to `<S extends StrictRJSFSchema = RJSFSchema, T = any, F extends FormContextType = any>` to support the `UiSchema`.

## Dev / docs / playground

- Update the `custom-widget-fields.md` to add documentation for how to raise errors from a custom widget or field
- Update the `custom-widget-fields.md` to add documentation for how to raise errors from a custom widget or field

# 5.19.4

## @rjsf/core
## @rjsf/core

- Fix XSS when rendering schema validation errors [#4254](https://github.com/rjsf-team/react-jsonschema-form/issues/2718)
- NOTE: This will have potential consequences if you are using the [translateString](https://rjsf-team.github.io/react-jsonschema-form/docs/api-reference/form-props/#translatestring) feature and are trying to render HTML. Switching to [Markdown](https://www.markdownguide.org/) will solve your problems.
Expand All @@ -59,7 +266,7 @@ should change the heading of the (upcoming) version to include a major version b

## Dev / docs / playground

- Updated the `Validator` dropdown to add `AJV8 (discriminator)` which sets the AJV validator [discriminator](https://ajv.js.org/json-schema.html#discriminator) option to `true` to support testing schemas with that option in them
- Updated the `Validator` dropdown to add `AJV8 (discriminator)` which sets the AJV validator [discriminator](https://ajv.js.org/json-schema.html#discriminator) option to `true` to support testing schemas with that option in them

# 5.19.3

Expand Down Expand Up @@ -1944,7 +2151,7 @@ const Component = () => {

## @rjsf/validator-ajv8

- Support for localization (L12n) on a customized validator using a `Localizer` function passed as a second parameter to `customizeValidator()`, fixing (https://github.com/rjsf-team/react-jsonschema-form/pull/846, and https://github.com/rjsf-team/react-jsonschema-form/issues/1195)
- Support for localization (L10n) on a customized validator using a `Localizer` function passed as a second parameter to `customizeValidator()`, fixing (https://github.com/rjsf-team/react-jsonschema-form/pull/846, and https://github.com/rjsf-team/react-jsonschema-form/issues/1195)
- Fixed the `README.md` to correct the package name in several places to match the actual package

## Dev / docs / playground
Expand Down
Loading