Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
v5.0.0-beta.7
@rjsf/antd
- Only show description when there really IS a description, fixes (#2779)
- Refactored the
FieldErrorTemplate
from inside ofFieldTemplate
; fixes (#3104)
@rjsf/bootstrap-4
- Refactored the
FieldErrorTemplate
andFieldHelpTemplate
from inside ofFieldTemplate
; fixes (#3104)
@rjsf/chakra-ui
- Refactored the
FieldErrorTemplate
andFieldHelpTemplate
from inside ofFieldTemplate
; fixes (#3104)
@rjsf/core
- Added new field
ArraySchemaField
, assigned toSchemaField
by default, that is used by theArrayField
to render thechildren
for each array field element - Refactored the internal
ErrorList
andHelp
components from inside ofSchemaField
to new templates:FieldErrorTemplate
andFieldHelpTemplate
; fixes (#3104)
@rjsf/material-ui
- Refactored the
FieldErrorTemplate
andFieldHelpTemplate
from inside ofFieldTemplate
; fixes (#3104)
@rjsf/mui
- Refactored the
FieldErrorTemplate
andFieldHelpTemplate
from inside ofFieldTemplate
; fixes (#3104)
@rjsf/semantic-ui
- Converted
RawErrors
andHelpField
intoFieldErrorTemplate
andFieldHelpTemplate
, removing their explicit calls fromFieldTemplate
; fixes (#3104)
@rjsf/utils
- Added new
FieldErrorProps
andFieldHelpProps
types - Added new
FieldErrorTemplate
andFieldHelpTemplate
to theTemplatesType
Dev / docs / playground
- Updated the
custom-templates.md
file to add documentation for the newFieldErrorTemplate
andFieldHelpTemplate
- Updated the
custom-widgets-fields.md
file to add documentation for the newArraySchemaField
field.
v5.0.0-beta.6
@rjsf/bootstrap-4
@rjsf/core
- Added tests for the new
@rjsf/validator-ajv8
to thevalidate_test.js
file to ensure the validation works with both validator implementations
@rjsf/mui
- Fixed the
README.md
to correct the package name in several places to match the actual package
@rjsf/utils
- Fixed the
README.md
to remove references to ajv6 validator, adding link to theutility-functions.md
in the docs - Fixed the
README.md
to correct the package name in several places to match the actual package - Updated
getDefaultFormState()
so that oneOf and anyOf default values do not always use the first option when formData contains a better option, fixing (#2183)
@rjsf/validator-ajv6
- Fixed the
README.md
to correct the package name in several places to match the actual package
@rjsf/validator-ajv8
- Support for localization (L12n) on a customized validator using a
Localizer
function passed as a second parameter tocustomizeValidator()
, fixing (#846, and #1195) - Fixed the
README.md
to correct the package name in several places to match the actual package
Dev / docs / playground
- Added two new validator selections,
AJV8
andAJV8_es
to the list of available validators for the playground; Using the second one will translate error messages to spanish. - Updated the validation documentation to clarify the case of empty strings being stored as
null
in certain cases.
v5.0.0-beta.5
@rjsf/validator-ajv8
- Added the new Ajv 8 based validator so that it can get published on npm
v5.0.0-beta.4
@rjsf/chakra-ui
- Added missing test snapshot that prevented v5.0.0-beta.3 from releasing
@rjsf/semantic-ui
- Switched
devDependencies
for React to 17.x and usedts
to build and test the library (rather thantsdx
)
v5.0.0-beta.3
@rjsf/core
- Added a
requestSubmit()
call to theForm.submit()
function, fixing (#2104, #3023) - Added missing
children
property on theFormProps
type forForm
- Throw an error when the required
validator
prop has not been provided to theForm
@rjsf/antd
- Do not show errors if
extraErrors
has[]
(#2576). - Added support for
schema.examples
in the material ui theme fixing (#2368, #2557)
@rjsf/fluent-ui
@rjsf/material-ui
@rjsf/material-ui
@rjsf/semantic-ui
- Upgraded from the
1.x
to2.x
version ofsemantic-ui-react
- Added support for
schema.examples
in the material ui theme fixing (#2368, #2557)
@rjsf/bootstrap-4
- Avoid importing the whole of
react-icons
(#3046, react-icons/react-icons#154)
Dev / docs / playground
- Fixed missing
playground
import error by addingsource-map-loader
- Fixed up the incorrectly formatted
5.x Migration Guide
- Added a
Programmatic Submit
button on the playground form to allow users to test the ability to programmatically submit a form - Regenerated the
package-lock.json
files using cleannode_modules
directories - Fixed issue with playground controls in top right corner not functioning properly due to missing validator
v5.0.0-beta.2
- Added peer dependencies to new
@rjsf/utils
library now that it is published on npm
v5.0.0-beta.1
Global changes across all themes:
- Node 16 is now the default node engine for all packages, fixing (#2687)
- Refactored all themes to use the new
@rjsf/utils
library functions and types - Refactored the individual theme forms to consolidate
templates
as part of the fix for #2526 - Bumped most devDependencies to the latest versions where possible
- Switched all repos
package.json
andpackage-lock.json
files to be built and maintained by Node 16. - Adding button templates help to change text for buttons (#2082, #2357)
@rjsf/utils
- New package created by refactoring and converting to Typescript the
utils.js
file fromcore
into independent functions. - Updated
types
fromcore
inutils
to better match the implementation across all themes - Clear errors on
formData
change whenliveOmit=true
when "additionalProperties: false" issue 1507 (#2631)
@rjsf/validator-ajv6
- New package created by refactoring and converting to Typescript the
validator.js
file fromcore
into independent functions as well as a class that implements the newValidatorType
interface. - Added support for customizing the options passed to the creation of the
ajv
instance.
@rjsf/validator-ajv6
- A BREAKING CHANGE to
toErrorList()
was made so that it takesfieldPath: string[]
rather thanfieldName='root'
as part of the fix to (#1596)- The returned
errors
also now addsproperty
from thefieldPath
along with the proper path from theproperty
to thestack
message, making it consistent with the AJV errors.- Previously the
stack
attribute would sayroot: error message
; now it says. error message
- Previously the
- In addition, the extra information provided by AJV is no longer lost from the
errors
when merged with custom validation, fixing (#1596).
- The returned
@rjsf/core
- Converted core to Typescript (#583)
ui:emptyValue
now works with selects (#1041)- Refactoring
utils.js
into the new@rjsf/utils
fixes (#2719) - BREAKING CHANGE Fix overriding core submit button className (#2979)
- Fix
ui:field
with anyOf or oneOf no longer rendered twice (#2890) - BREAKING CHANGE Fixed
anyOf
andoneOf
getting incorrect, potentially duplicate ids when combined with array (#2197) formContext
is now passed properly toSchemaField
, fixes (#2394, #2274)- Added
ui:duplicateKeySuffixSeparator
to customize how duplicate object keys are renamed when usingadditionalProperties
. - The
extraErrors
are now consistently appended onto the end of the schema validation-basederrors
information that is returned via theonErrors()
callback when submit fails.- In addition, the extra information provided by AJV is no longer stripped from the
errors
during the merge process, fixing (#1596).
- In addition, the extra information provided by AJV is no longer stripped from the
- Fixed id generation for
RadioWidget
to no longer use random numbers fixing (#2461) - Correctly call the
onChange
handler in the new set of props if it changed, fixing (#1708). - Fixed race condition for
onChange
whenformData
is controlled prop, fixing (#513),
@rjsf/antd
- Fix esm build to use
@rollup/plugin-replace
to replaceantd/lib
andrc-picker/lib
withantd/es
andrc-picker/es
respectively, fixing (#2962)
@rjsf/bootstrap-4
- Bootstrap-4
withTheme
customizations should work properly now (#2058) ArrayFieldTemplate
refactor seems to have fixed #2775- Fix issues with
SelectField
(#2616, #2875)
@rjsf/chakra-ui
- Properly handle the hidden field in this theme (#2571)
@rjsf/material-ui
- The theme for Material UI version 5 (i.e.
@rjsf/mui
) was split out of the theme for version 4 (i.e.@rjsf/material-ui
) to resolve the following issues: - Material-UI TextWidget now respects
inputType
in uiSchema (#2057)- Also respects
step
fornumber
type (#2488)
- Also respects
- Material-UI UpDownWidget now support min/max/step (#2022)
- Properly handle the hidden field in this theme (#2571)
- Select properly accepts true or false (#2326)
@rjsf/mui
- The theme for Material UI version 5 (i.e.
@rjsf/mui
) was split out of the theme for version 4 (i.e.@rjsf/material-ui
) to resolve the following issues: - Material-UI TextWidget now respects
inputType
in uiSchema (#2057)- Also respects
step
fornumber
type (#2488)
- Also respects
- Material-UI UpDownWidget now support min/max/step (#2022)
- Properly handle the hidden field in this theme (#2571)
@rjsf/semantic-ui
- Fix missing error class on fields (#2666)
- Fixed the
main
definition insemantic-ui
to fix (withastro/astro#4357) - Properly handle the hidden field in this theme (#2571)
Dev / docs / playground
v5.0.0-beta.0
Global changes across all themes:
- Node 16 is now the default node engine for all packages, fixing (#2687)
- Refactored all themes to use the new
@rjsf/utils
library functions and types - Refactored the individual theme forms to consolidate
templates
as part of the fix for #2526 - Bumped most devDependencies to the latest versions where possible
- Switched all repos
package.json
andpackage-lock.json
files to be built and maintained by Node 16. - Adding button templates help to change text for buttons (#2082, #2357)
@rjsf/utils
- New package created by refactoring and converting to Typescript the
utils.js
file fromcore
into independent functions. - Updated
types
fromcore
inutils
to better match the implementation across all themes - Clear errors on
formData
change whenliveOmit=true
when "additionalProperties: false" issue 1507 (#2631)
@rjsf/validator-ajv6
- New package created by refactoring and converting to Typescript the
validator.js
file fromcore
into independent functions as well as a class that implements the newValidatorType
interface. - Added support for customizing the options passed to the creation of the
ajv
instance.
@rjsf/validator-ajv6
- A BREAKING CHANGE to
toErrorList()
was made so that it takesfieldPath: string[]
rather thanfieldName='root'
as part of the fix to (#1596)- The returned
errors
also now addsproperty
from thefieldPath
along with the proper path from theproperty
to thestack
message, making it consistent with the AJV errors.- Previously the
stack
attribute would sayroot: error message
; now it says. error message
- Previously the
- In addition, the extra information provided by AJV is no longer lost from the
errors
when merged with custom validation, fixing (#1596).
- The returned
@rjsf/core
- Converted core to Typescript (#583)
ui:emptyValue
now works with selects (#1041)- Refactoring
utils.js
into the new@rjsf/utils
fixes (#2719) - BREAKING CHANGE Fix overriding core submit button className (#2979)
- Fix
ui:field
with anyOf or oneOf no longer rendered twice (#2890) - BREAKING CHANGE Fixed
anyOf
andoneOf
getting incorrect, potentially duplicate ids when combined with array (#2197) formContext
is now passed properly toSchemaField
, fixes (#2394, #2274)- Added
ui:duplicateKeySuffixSeparator
to customize how duplicate object keys are renamed when usingadditionalProperties
. - The
extraErrors
are now consistently appended onto the end of the schema validation-basederrors
information that is returned via theonErrors()
callback when submit fails.- In addition, the extra information provided by AJV is no longer stripped from the
errors
during the merge process, fixing (#1596).
- In addition, the extra information provided by AJV is no longer stripped from the
- Fixed id generation for
RadioWidget
to no longer use random numbers fixing (#2461) - Correctly call the
onChange
handler in the new set of props if it changed, fixing (#1708). - Fixed race condition for
onChange
whenformData
is controlled prop, fixing (#513),
@rjsf/antd
- Fix esm build to use
@rollup/plugin-replace
to replaceantd/lib
andrc-picker/lib
withantd/es
andrc-picker/es
respectively, fixing (#2962)
@rjsf/bootstrap-4
- Bootstrap-4
withTheme
customizations should work properly now (#2058) ArrayFieldTemplate
refactor seems to have fixed #2775- Fix issues with
SelectField
(#2616, #2875)
@rjsf/chakra-ui
- Properly handle the hidden field in this theme (#2571)
@rjsf/material-ui
- The theme for Material UI version 5 (i.e.
@rjsf/mui
) was split out of the theme for version 4 (i.e.@rjsf/material-ui
) to resolve the following issues: - Material-UI TextWidget now respects
inputType
in uiSchema (#2057)- Also respects
step
fornumber
type (#2488)
- Also respects
- Material-UI UpDownWidget now support min/max/step (#2022)
- Properly handle the hidden field in this theme (#2571)
- Select properly accepts true or false (#2326)
@rjsf/mui
- The theme for Material UI version 5 (i.e.
@rjsf/mui
) was split out of the theme for version 4 (i.e.@rjsf/material-ui
) to resolve the following issues: - Material-UI TextWidget now respects
inputType
in uiSchema (#2057)- Also respects
step
fornumber
type (#2488)
- Also respects
- Material-UI UpDownWidget now support min/max/step (#2022)
- Properly handle the hidden field in this theme (#2571)
@rjsf/semantic-ui
- Fix missing error class on fields (#2666)
- Fixed the
main
definition insemantic-ui
to fix (withastro/astro#4357) - Properly handle the hidden field in this theme (#2571)
Dev / docs / playground
v4.2.3
What's Changed
- Reduce stale bot threshold to 1.75 years by @heath-freenome in #2957
- Emit and publish transpiled code (fix #2966) by @nickgros in #2988
Full Changelog: v4.2.2...v4.2.3