Skip to content

Conversation

heath-freenome
Copy link
Member

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

Reasons for making this change

Fixed #4726 by removing nanoid in favor of lodash.uniqueId

  • Uninstalled nanoid from @rjsf/core, @rjsf/utils and @rjsf/semantic-ui, switching to use uniqueId from lodash in utils's getTestId() and semantic-ui's FieldErrorTemplate
  • Updated all of the jest.config.js file to remove nanoid
  • Fixed snapshots for antd and remove mocking of nanoid for daisyui
  • Updated 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

Fixed rjsf-team#4726 by removing nanoid in favor of lodash.uniqueId
- Uninstalled `nanoid` from `@rjsf/utils` and `@rjsf/semantic-ui`, switching to use `uniqueId` from lodash in `utils`'s `getTestId()` and `semantic-ui`'s `FieldErrorTemplate`
- Updated all of the `jest.config.js` file to remove `nanoid`
- Updated `CHANGELOG.md` accordingly

# Conflicts:
#	CHANGELOG.md
@nickgros nickgros merged commit 3573065 into rjsf-team:main Aug 23, 2025
4 checks passed
@heath-freenome heath-freenome deleted the fix-4726-v6 branch September 19, 2025 20:22
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.

@rjsf/core wrongly pulls the cjs module of nanoid

2 participants