From c6bc526860f357359fa8f008690875076eeaad05 Mon Sep 17 00:00:00 2001 From: Frank Lyder Bredland Date: Tue, 22 Apr 2025 16:40:53 +0200 Subject: [PATCH] fix: replace `lodash` package with `lodash.isequalwith` Reduced downloadsize when only using the specific package --- package.json | 2 +- src/to-have-form-values.js | 2 +- src/to-have-selection.js | 2 +- src/to-have-value.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a9ddf16c..5dbb2f2c 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "chalk": "^3.0.0", "css.escape": "^1.5.1", "dom-accessibility-api": "^0.6.3", - "lodash": "^4.17.21", + "lodash.isequalwith": "^4.4.0", "redent": "^3.0.0" }, "devDependencies": { diff --git a/src/to-have-form-values.js b/src/to-have-form-values.js index cd479d68..c3497300 100644 --- a/src/to-have-form-values.js +++ b/src/to-have-form-values.js @@ -1,4 +1,4 @@ -import isEqualWith from 'lodash/isEqualWith.js' +import isEqualWith from 'lodash.isequalwith' import escape from 'css.escape' import { checkHtmlElement, diff --git a/src/to-have-selection.js b/src/to-have-selection.js index 4eb74783..5a59ca26 100644 --- a/src/to-have-selection.js +++ b/src/to-have-selection.js @@ -1,4 +1,4 @@ -import isEqualWith from 'lodash/isEqualWith.js' +import isEqualWith from 'lodash.isequalwith' import {checkHtmlElement, compareArraysAsSet, getMessage} from './utils' /** diff --git a/src/to-have-value.js b/src/to-have-value.js index 37cca52c..17d36f9c 100644 --- a/src/to-have-value.js +++ b/src/to-have-value.js @@ -1,4 +1,4 @@ -import isEqualWith from 'lodash/isEqualWith.js' +import isEqualWith from 'lodash.isequalwith' import { checkHtmlElement, getMessage,