Skip to content
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

Replace lodash with es-toolkit #410

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@babel/helper-annotate-as-pure": "^7.22.5",
"@babel/helper-module-imports": "^7.22.5",
"@babel/plugin-syntax-jsx": "^7.22.5",
"lodash": "^4.17.21",
"es-toolkit": "^1.19.0",
"picomatch": "^2.3.1"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/minify/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import difference from 'lodash/difference'
import { difference } from 'es-toolkit/compat'

import {
makePlaceholder,
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2272,9 +2272,9 @@ __metadata:
"@babel/plugin-transform-modules-commonjs": ^7.22.5
"@babel/preset-env": ^7.22.5
babel-test: ^0.2.4
es-toolkit: ^1.19.0
jest: ^29.5.0
jest-file-snapshot: ^0.5.0
lodash: ^4.17.21
picomatch: ^2.3.1
prettier: ^2.8.8
rimraf: ^5.0.1
Expand Down Expand Up @@ -2816,6 +2816,13 @@ __metadata:
languageName: node
linkType: hard

"es-toolkit@npm:^1.19.0":
version: 1.19.0
resolution: "es-toolkit@npm:1.19.0"
checksum: 25eb139496e66d434dea7e20c120ce2cbe5e24e2c3976d0baa94691d40b6f1f2158629e9b7d0f473b4cfa22ef099963c2db9c22576aea0b4f4d8507fb6e0a343
languageName: node
linkType: hard

"escalade@npm:^3.1.1":
version: 3.1.1
resolution: "escalade@npm:3.1.1"
Expand Down Expand Up @@ -3977,13 +3984,6 @@ __metadata:
languageName: node
linkType: hard

"lodash@npm:^4.17.21":
version: 4.17.21
resolution: "lodash@npm:4.17.21"
checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7
languageName: node
linkType: hard

"lru-cache@npm:^5.1.1":
version: 5.1.1
resolution: "lru-cache@npm:5.1.1"
Expand Down