From a9e2e935e91cce46cf81e908fd5502139aa9bc66 Mon Sep 17 00:00:00 2001 From: igorbrasileiro Date: Mon, 9 Sep 2024 12:14:22 -0300 Subject: [PATCH] Add changelog and change deepEquals depscription --- CHANGELOG.md | 10 ++++++++++ packages/utils/src/deepEquals.ts | 2 +- packages/utils/test/deepEquals.test.ts | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c810a447db..cf6217f981 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/utils/src/deepEquals.ts b/packages/utils/src/deepEquals.ts index 158700e2b7..fb3ebfe468 100644 --- a/packages/utils/src/deepEquals.ts +++ b/packages/utils/src/deepEquals.ts @@ -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 diff --git a/packages/utils/test/deepEquals.test.ts b/packages/utils/test/deepEquals.test.ts index ba8eef53cc..cc7ea67648 100644 --- a/packages/utils/test/deepEquals.test.ts +++ b/packages/utils/test/deepEquals.test.ts @@ -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(