npm @rjsf/core 6.6.2

12 hours ago

@rjsf/core

  • Fixed schema-change handling so dependent enum updates sanitize invalid scalar field data without over-sanitizing root, object, array, readonly, or disabled field changes, fixing #3838
  • Updated Form tests to verify fix for #1357 and #2492
    • Also added console message suppression support to the tests to reduce noise
  • Updated MultiSchemaField by skipping next option recalculation when a user selects an option, fixing #3833
  • Updated Form's validate() function to pass the original schema to AJV when no pre-resolved schema is provided, fixing #3368
  • Improved performance of IconButtons in all themes, ArrayField components and ObjectField components using memoization, partially fixing #3183
  • Fixed ObjectField so renaming an additionalProperties key to an empty string is no longer silently dropped, using Object.hasOwn instead of a falsy check (#5098)

@rjsf/utils

  • Updated sanitizeDataForNewSchema() to preserve valid enum values while replacing or clearing stale values across enum, oneOf, and anyOf schema changes, fixing #3838
  • Updated sanitizeDataForNewSchema() to filter out invalid enum values in arrays, fixing #1357 and #2492

Dev / docs / playground

  • Upgraded vitest and jsdom to the latest to remove deprecated package warnings
  • Fix a documentation error related to precedence when setting default values (#5089)

Don't miss a new core release

NewReleases is sending notifications on new releases.