Significant Breaking Changes in this release
In order to support future features and to improve performance, IdSchema
was replaced with FieldPathId
. See below
@rjsf/antd
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions
@rjsf/chakra-ui
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions
@rjsf/core
- BREAKING CHANGES
- Updated all of the fields, templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions ObjectField
andArrayField
to usetoFieldPathId
instead oftoIdSchema()
to generate thefieldPathId
s of all its children- Updated the
onChange
handling of fields to makepath
required and either pass it straight through, or use thefieldPathId.path
instead of using an empty array or appending path information - Updated
Form
to usetoFieldPathId()
to generatefieldPathId
instead ofidSchema
, always providing theidPrefix
andidSeparator
in theglobalFormOptions
and make thepath: FieldPathList
required - Updated
LayoutGridField
to remove theIdSchema
related code in favor ofFieldPathId
code
- Updated all of the fields, templates and widgets to change
- Also exported the
getTestRegistry()
function from the mainindex.ts
to assist developers in creatingregistry
object for tests - Updated all of the test to deal with the
idSchema
->fieldPathId
changes
@rjsf/daisyui
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions - Also fixed the
FieldTemplate
to extract thedescription
element so that it was not spread onto thediv
, fixing the snapshots
@rjsf/fluent-ui
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions
@rjsf/mantine
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions
@rjsf/mui
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions
@rjsf/primereact
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions
@rjsf/react-bootstrap
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions
@rjsf/semantic-ui
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions
@rjsf/shadcn
- BREAKING CHANGES - Updated all of the templates and widgets to change
idSchema
tofieldPathId
or to remove the<T>
off of the idGenerator functions
@rjsf/utils
- Added new
FieldPathList
andFieldPathId
types andDEFAULT_ID_PREFIX
andDEFAULT_ID_SEPARATOR
toconstants.ts
- Added the new
toFieldPathId()
function to generateFieldPathId
s, exporting it from the library - Deprecated the
ui:rootFieldId
in theUiSchema
sinceidPrefix
does the same exact thing - BREAKING CHANGES
- Removed the
IdSchema
type, replacingidSchema: IdSchema<T>
in all types withfieldPathId: FieldPathId
- Updated the
idGenerators
to replaceid: IdSchema<T> | string
withid: FieldPathId | string
removing the need for the<T = any>
generic on the functions - Removed the
toIdSchema()
function in theschema
directory - Updated the
FieldProps
type'sonChange()
callback to make thepath: FieldPathList
parameter be required instead of optional - Updated the
SchemaUtilsType
andcreateSchemaUtils()
to remove thetoIdSchema()
function
- Removed the
@rjsf/validator-ajv8
- Updated the test to no longer try to test the delete
toIdSchema
function
Dev / docs / playground
- Updated
custom-templates.md
,custom-widgets-fields.md
andlayout-grid.md
to change theidSchema
documentation tofieldPathId
- Updated
uiSchema.md
to mark theui:rootFieldId
as deprecated in the documentation - Updated
utility-functions.md
deletetoIdSchema()
, addtoFieldPathId()
and to remove the<T>
from the id generator functions - Updated
v6.x upgrade guide.md
to document all the breaking changes, new functions and deprecations made in6.0.0-beta.20