Skip to content

Commit 125fc3d

Browse files
committed
docs: Add @rjsf/utils and @rjsf/core changelog entries
1 parent 0c83b27 commit 125fc3d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ should change the heading of the (upcoming) version to include a major version b
2525

2626
- Updated `MultiSchemaField` and `SchemaField` to properly display `anyOf`/`oneOf` optional data fields by hiding the label and selector control when it is an optional field AND there is no form data
2727
- Updated `ArrayField`, `BooleanField`, `LayoutMultiSchemaField`, `MultiSchemaField`, `ObjectField`, `SchemaField`, `StringField` and `BaseInputTemplate` to remove `formContext` from the props
28+
- Added `nameGenerator` prop to `Form` component to enable custom HTML `name` attribute generation for form fields
2829

2930
## @rjsf/daisyui
3031

@@ -42,13 +43,21 @@ should change the heading of the (upcoming) version to include a major version b
4243

4344
- Updated the test mocks to remove `formContext` for the widget mock and added `globalFormOptions` in the registry mock
4445

46+
## @rjsf/utils
47+
48+
- Added `NameGeneratorFunction` type and two built-in name generators: `bracketNameGenerator` and `dotNotationNameGenerator`
49+
- Updated `GlobalFormOptions` type to include optional `nameGenerator` field
50+
- Updated `toFieldPathId()` function to support name generation via the `nameGenerator` option in `GlobalFormOptions`
51+
- Added `htmlName` field to `WidgetProps` interface to provide the generated HTML `name` attribute to widgets
52+
4553
## Dev / docs / playground
4654
- Updated the `formTests.tsx` snapshots to add an `anyOf` of all arrays with different item types and removed the disabling of the optional data controls feature for the optional object with oneOfs
4755
- Updated the snapshots in all of the themes accordingly
4856
- Updated the playground to make the same changes as `formTests.tsx` in the `optionalDataControls.ts` sample, moving the `experimental_defaultFormStateBehavior` inside of a `liveSettings` block
4957
- Updated the `Sample` and `LiveSettings` types to support the `liveSettings` inside of a sample
5058
- Updated the `Playground`'s `onSampleSelected` callback to merge any `liveSettings` in the sample on top of those already used in the playground
5159
- Updated the `customFieldAnyOf` sample to switch `IdSchema` to `FieldPathId`
60+
- Added documentation for the `nameGenerator` prop in `form-props.md` and v6.x upgrade guide
5261

5362
# 6.0.0-beta.21
5463

@@ -172,7 +181,7 @@ should change the heading of the (upcoming) version to include a major version b
172181
- `ObjectField` and `ArrayField` to use `toFieldPathId` instead of `toIdSchema()` to generate the `fieldPathId`s of all its children
173182
- Updated the `onChange` handling of fields to make `path` required and either pass it straight through, or use the `fieldPathId.path` instead of using an empty array or appending path information
174183
- Updated `Form` to use `toFieldPathId()` to generate `fieldPathId` instead of `idSchema`, always providing the `idPrefix` and `idSeparator` in the `globalFormOptions` and make the `path: FieldPathList` required
175-
- Updated `LayoutGridField` to remove the `IdSchema` related code in favor of `FieldPathId` code
184+
- Updated `LayoutGridField` to remove the `IdSchema` related code in favor of `FieldPathId` code
176185
- Also exported the `getTestRegistry()` function from the main `index.ts` to assist developers in creating `registry` object for tests
177186
- Updated all of the test to deal with the `idSchema` -> `fieldPathId` changes
178187

0 commit comments

Comments
 (0)