Skip to content

Conversation

heath-freenome
Copy link
Member

@heath-freenome heath-freenome commented Aug 29, 2025

Reasons for making this change

Since the registry contains formContext and it is part of all interfaces that had formContext, removed formContext

  • In @rjsf/utils, removed formContext from the following interfaces:
    • ErrorListProps, FieldProps, FieldTemplateProps, ArrayFieldTemplateProps and WidgetProps
  • In @rjsf/core, updated ArrayField, Form, LayoutMultiSchemaField and SchemaField to stop passing formContext
    • Updated tests to get the formContext from the registry
  • In @rjsf/antd, updated the ArrayFieldTemplate, FieldTemplate and ObjectFieldTemplate to get formContext from the registry
  • In @rjsf/daisyui, removed formContext usages
  • In @rjsf/primereact, updated the snapshots to remove formContext
  • Updated the documentation to remove formContext from the interface documentation, adding a BREAKING CHANGE notification in the v6.x upgrade guide
  • In @rjsf/semantic-ui, updated the use of formContext to get it from registry
  • Updated the CHANGELOG.md accordingly

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

Since the `registry` contains `formContext` and it is part of all interfaces that had `formContext`, removed `formContext`
- In `@rjsf/utils`, removed `formContext` from the following interfaces:
  - `ErrorListProps`, `FieldProps`, `FieldTemplateProps`, `ArrayFieldTemplateProps` and `WidgetProps`
- In `@rjsf/core`, updated `ArrayField`, `Form`, `LayoutMultiSchemaField` and `SchemaField` to stop passing `formContext`
  - Updated tests to get the `formContext` from the `registry`
- In `@rjsf/antd`, updated the `ArrayFieldTemplate`, `FieldTemplate` and `ObjectFieldTemplate` to get `formContext` from the `registry`
- In `@rjsf/primereact` updated the snapshots to remove `formContext`
- Updated the documentation to remove `formContext` from the interface documentation, adding a BREAKING CHANGE notification in the `v6.x upgrade guide`
- Updated the `CHANGELOG.md` accordingly
@nickgros nickgros merged commit 374d440 into rjsf-team:main Aug 31, 2025
4 checks passed
@heath-freenome heath-freenome deleted the remove-formContext-from-interfaces branch August 31, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants