Skip to content

Commit

Permalink
Add changelog and change deepEquals depscription
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrasileiro committed Sep 9, 2024
1 parent 37b47c9 commit a9e2e93
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ should change the heading of the (upcoming) version to include a major version b
-->

# 5.20.2

## @rjsf/utils

- use `fast-equals.createCustomEqual` instead of `lodash.isEqualWith`

## @validator-ajv8

- use `@rjsf/utils` deepEquals instead of `lodash.isEqual`

# 5.20.1

## Dev / docs / playground
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/deepEquals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const customDeepEqual = createCustomEqual({
},
});

/** Implements a deep equals using the `lodash.isEqualWith` function, that provides a customized comparator that
/** Implements a deep equals using the `fast-equal.createCustomEqual` function, that provides a customized comparator that
* assumes all functions are equivalent.
*
* @param a - The first element to compare
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/test/deepEquals.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { deepEquals } from '../src';

describe('deepEquals()', () => {
// Note: deepEquals implementation uses isEqualWith, so we focus on the behavioral differences we introduced.
// Note: deepEquals implementation uses fast-equal.createCustomEqual, so we focus on the behavioral differences we introduced.
it('should assume functions are always equivalent', () => {
expect(
deepEquals(
Expand Down

0 comments on commit a9e2e93

Please sign in to comment.