npm / @rjsf/core
@rjsf/core
What changed in @rjsf/core 5 to 6, from its official release notes, upgrade guides and advisories. Also covers @rjsf/antd, @rjsf/utils, @rjsf/validator-ajv8. Sources checked 2026-11-30.
9 breaking4 deprecations39 new APIs and options1 performance5 behavior and defaults41 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@rjsf/core 696 changes
Breaking changes 7
Adds path-based property lookup; bare strings are literal keys, and lookup resolves own properties only.
Adds path-based property presence checks; bare strings are literal keys, and checks resolve own properties only.
RJSF packages no longer depend on lodash; applications relying on it being hoisted must declare it in their own package.json.
A required boolean field now defaults to false when the schema has no default.
Adds a path-based setter; bare strings are treated as literal keys, while dotted paths can be parsed with toPath().
Adds explicit parsing of lodash-style dotted path strings for use with the new path utilities.
Adds a path-based property remover; bare strings are treated as literal keys, while dotted paths can be parsed with toPath().
Deprecations 4
The PathSchema type is deprecated.
The removeOptionalEmptyObject() function is deprecated.
The toPathSchema() member on SchemaUtilsType is deprecated.
The toPathSchema() function is deprecated.
New APIs and options 38
Adds
requiredBooleanDefault:skipleaves required booleans without a default undefined, while the defaultpopulateFalsepreserves the 6.9.0+ behavior.Adds a helper for the shared widget-name and enumOptions fallback logic used by StringField and NumberField.
Adds a helper to detect conditionals nested below a schema's top level, allowing sanitization to run when the root retrieved schema looks unchanged.
Added autocapitalize UI option handling to getInputProps() and the public input prop types.
Adds an optional deep flag that descends into nested objects and same-length arrays, returning the dotted path of the changed field.
Adds a helper to read a property's sub-schema, defaulting to an empty schema.
Adds a stricter counterpart to isObject() that excludes class instances, replacing lodash/isPlainObject for consumers.
Adds a do-nothing function to replace lodash/noop for consumers.
Added a utility to detect locale-specific decimal separators.
Added the
CycleDetectedkey toenums.ts.Added the props type for the cyclic schema expansion template.
Added a template for customizing the UI used to expand cyclic schemas.
Added the
ExpandButtonkey toenums.ts.Uses
nestedDefaultsPrecedenceto control how defaults defined on multiple levels are merged.Added a helper for theme select widgets to warn when a schema default is not present in the enum options.
Added an option to control how defaults defined on multiple levels are merged.
Added
markCycleOnDetectionto mark schemas detected to contain a cycle withRJSF_REF_CYCLE_KEY.Exports the isValueEmpty() function from the library.
Adds a utility that normalizes oneOf/anyOf options for scoring, optionally resolving $refs; it converts boolean schemas and widens additionalProperties: false to true.
Adds a translatable string for internationalizing the deprecated field suffix.
Adds deprecatedHandling to global UI schema options to configure handling of deprecated fields.
Adds the
string | FieldPathListpath type for getFromSchema and findFieldInSchema.Adds a utility for opt-in rendering of real enum values in select, radio, and checkbox widgets.
Adds the
indexedandrealValuechoices toGlobalUISchemaOptionsfor opting into real enum values in widget DOM attributes; also adds theOptionValueFormattype.Recursively strips fully empty optional objects based on their parent’s required properties.
Map-based ui:enumNames can control enum display labels.
Map-based ui:enumOrder can control enum ordering.
Added a function to support defining reusable uiSchema for schema $ref references.
Added a type to support defining reusable uiSchema for schema $ref references.
Added to GlobalUISchemaOptions to support displaying a clear text input UI.
The CustomValidator type now accepts errorSchema, allowing implementations to be based on the result of ajv validation.
Added fieldPathId to FieldTemplateProps to enable proper use of onChange with the required path parameter.
Added the displayLabel flag to the props type for array field item templates.
Added the hasDescription flag to the props type for array field item templates.
Added to GlobalUISchemaOptions to enable rendering ui:help as markdown.
Added displayLabel to the props picked from FieldProps for adjusting Additional Properties button location.
Added rawDescription to the props picked from FieldProps for adjusting Additional Properties button location.
SchemaField adds the optional childFieldPathId property to the FieldComponent render; ObjectField and ArrayField use it for children when present, falling back to fieldPathId, to prevent duplicate ids.
Performance 1
Declares sideEffects as false so bundlers can tree-shake unused @rjsf/utils exports.
Behavior and default changes 5
Parses locale-specific decimal strings.
Selected option descriptions are now shown.
Adopts the svelte-jsonschema-form algorithm and supports the code from removeOptionalEmptyObjects().
Propagates
formatMinimumandformatMaximumschema keywords to HTMLminandmaxattributes for date-related input types, aligning native picker constraints with AJV validation.Widens
minandmaxtonumber | stringto support date values.
Fixes and other changes 41
Merges an object's allOf before evaluating its conditions, preventing data from an inactive branch from being kept.
Merges additionalProperties and additionalItems within their allOf groups, preventing one entry from acting on another entry's properties, patternProperties, or items.
Shared $refs across branches and root properties now resolve instead of being mistaken for recursion cycles; recursive schemas still terminate.
Merging allOf schemas now preserves Symbol-keyed properties and distinct allOf.contains branches, avoiding over-constrained schemas.
When allOf is set to populateDefaults, computeDefaults merges a non-object schema's allOf so a $ref wrapped in a single-element allOf populates the same defaults as the bare $ref.
Includes defaults from a dependency subschema when called without form data or with an empty object.
Defaults number schemas to a text input in locales whose decimal separator is not a period, unless an explicit inputType is set, avoiding browser rejection of localized values.
Resolves dependencies, if/then/else, and allOf on each property's old and new schema before comparing them, so nested conditionals are considered when sanitizing data.
Fixed handling of existing arrays and stale undefined values when applying a new schema, retaining data or applying defaults for newly defined properties.
Fixes recursive default merging when an object key's default is an array, preventing defaults in nested dependencies from being dropped.
Stops over-reaching additionalProperties post-processing from stripping keys written by winning oneOf/anyOf and if/then/else branches.
Fixed handling of arrays containing null and undefined values.
With
experimental_defaultFormStateBehavior.arrayMinItems.populate = 'never', optional arrays with no data remain omitted and required arrays default to[], allowing the validator to reportminItemsviolations instead of surfacing invalidnullitems.Now filters out
RJSF_REF_KEY-prefixed keys before hashing schemas.Now treats empty tuple
itemsarrays as fixed items soadditionalItemsschemas are handled consistently.Better handles
allOfs containing multipleif/then/elseblocks.Preserves an explicitly empty string
titleononeOf/anyOfoptions instead of falling back to the option's value.Now preserves boolean conditional branches while resolving schemas.
Preserves valid enum values while replacing or clearing stale values across enum, oneOf, and anyOf schema changes.
Filters invalid enum values in arrays when sanitizing data for a new schema.
When called by schemaParser with expandAllBranches=true, uses getFirstMatchingOption on relaxed options so they are captured for precompiled validators.
Avoids calling Object.entries on non-object defaults, preventing character-by-character iteration of long data URL strings and severe UI freezes.
Fixes schema descent when a path segment is numeric 0, which was previously skipped due to a falsy check.
Uses string keys for required and oneOf fallback matching.
Makes StrictRJSFSchema recursive so deprecated and future extensions are supported in nested schema structures without type casts.
Uses fast-equals with cycle detection and replaces direct lodash.isEqual usage in related utilities, fixing equality handling.
No longer re-injects stale schema-level default keys into additionalProperties when formData already contains its own keys, preventing renamed keys from reappearing.
Applies
ui:titlefromui:definitionstooneOfandanyOfdropdowns beyond the first recursion level.extraErrorsnow display whencustomErrorsare also present, including with array fields and controlledformData.Required string and number fields now render the HTML required attribute.
Array properties with enum items again use
ui:enumNamesfrom the array property's uiSchema.No longer strips additionalProperties inside oneOf/anyOf options.
Preserves $ref on resolved schemas, enabling ui:definitions beyond the first recursion level.
Fixed user formData being overwritten with defaults in schemas combining anyOf/oneOf with $ref and defaults at multiple levels.
Fixed nested if/then/else conditions losing values when liveOmit and omitExtraData are enabled.
Fixed defaults not being prefilled when an object with if/then is nested inside another object.
Refactored omitExtraData and its helpers from Form into @rjsf/utils, with the implementation moved to schema/omitExtraData.ts.
Fixed handling of schema arrays with nested dependent fixed-length.
Now always returns false when ui:options is false, and returns true for array and object types added via additionalProperties.
Added the directive to three hooks to support NextJS builds.
Does not save an undefined field value into an object when the type is null and excludeObjectChildren is provided.
@rjsf/core 53 changes
Breaking changes 2
Updated to use indexes instead of values.
Deleted the function because it is no longer needed.
New APIs and options 1
Added a function to support using indexes for enumOptions with object values.