-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: switch lodash.isEqual
to fast-equals.deepEqual
to improve performance
#4438
base: main
Are you sure you want to change the base?
Conversation
CHANGELOG.md
Outdated
# 5.25.0 | ||
|
||
## @rjsf/utils | ||
|
||
- Switched uses of `lodash.isEqual()` to `fast-equals.deepEqual()` in many utility functions. | ||
|
||
## @rjsf/validator-ajv8 | ||
|
||
- Switched uses of `lodash.isEqual()` to `fast-equals.deepEqual()` at precompiledValidator. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5.24.0
has yet to be release so you can move these underneath that section
@@ -1,4 +1,4 @@ | |||
import isEqual from 'lodash/isEqual'; | |||
import { deepEqual } from 'fast-equals'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you switch these to all use the @rjsf/utils
deepEquals()
first? And then in a second PR switch deepEquals
to use this function?
…formance" This reverts commit 86570fe.
Reasons for making this change
partially fixes #4291
Checklist
npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update
to update snapshots, if needed.