Skip to content

Commit 7932a32

Browse files
committed
build: replace deprecated lodash.isequal package
Use a local lodash.isequal compatibility shim via npm overrides so installs stop pulling the deprecated lodash.isequal package.
1 parent 1430302 commit 7932a32

4 files changed

Lines changed: 21 additions & 8 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict'
2+
3+
const { isDeepStrictEqual } = require('node:util')
4+
5+
module.exports = function isEqual (value, other) {
6+
return isDeepStrictEqual(value, other)
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "lodash.isequal",
3+
"version": "4.5.0-ipfs.0",
4+
"description": "Compatibility shim using node:util.isDeepStrictEqual",
5+
"main": "index.js",
6+
"license": "MIT"
7+
}

package-lock.json

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"release-gh": "release-please github-release --token=$GITHUB_TOKEN --plugin '@ipfs-shipyard/release-please-ipfs-plugin' --repo-url=ipfs/ipfs-desktop --trace --debug --draft"
2727
},
2828
"overrides": {
29-
"boolean": "file:./npm-overrides/boolean-compat"
29+
"boolean": "file:./npm-overrides/boolean-compat",
30+
"lodash.isequal": "file:./npm-overrides/lodash.isequal-compat"
3031
},
3132
"pre-commit": [
3233
"lint"

0 commit comments

Comments
 (0)