Skip to content

Commit 462d368

Browse files
chore: import specific lodash methods (#540)
1 parent f30e342 commit 462d368

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

.changeset/odd-numbers-fly.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@craftjs/core": patch
3+
"@craftjs/utils": patch
4+
---
5+
6+
Import specific lodash methods

packages/core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@
3737
"dependencies": {
3838
"@craftjs/utils": "^0.2.0",
3939
"debounce": "^1.2.0",
40-
"lodash": "^4.17.20",
40+
"lodash": "^4.17.21",
4141
"tiny-invariant": "^1.0.6"
4242
},
4343
"devDependencies": {
44+
"@types/lodash": "^4.14.195",
4445
"@types/react": "18.0.27",
4546
"react": "18.2.0"
4647
},

packages/core/src/events/DefaultEventHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isChromium, isLinux } from '@craftjs/utils';
2-
import { isFunction } from 'lodash';
2+
import isFunction from 'lodash/isFunction';
33
import React from 'react';
44

55
import { CoreEventHandlers, CreateHandlerOptions } from './CoreEventHandlers';

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"immer": "^9.0.6",
18-
"lodash": "^4.17.20",
18+
"lodash": "^4.17.21",
1919
"nanoid": "^3.1.23",
2020
"shallowequal": "^1.1.0",
2121
"tiny-invariant": "^1.0.6"

yarn.lock

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,9 +2518,10 @@ __metadata:
25182518
resolution: "@craftjs/core@workspace:packages/core"
25192519
dependencies:
25202520
"@craftjs/utils": ^0.2.0
2521+
"@types/lodash": ^4.14.195
25212522
"@types/react": 18.0.27
25222523
debounce: ^1.2.0
2523-
lodash: ^4.17.20
2524+
lodash: ^4.17.21
25242525
react: 18.2.0
25252526
tiny-invariant: ^1.0.6
25262527
peerDependencies:
@@ -2550,7 +2551,7 @@ __metadata:
25502551
dependencies:
25512552
"@types/react": 18.0.27
25522553
immer: ^9.0.6
2553-
lodash: ^4.17.20
2554+
lodash: ^4.17.21
25542555
nanoid: ^3.1.23
25552556
shallowequal: ^1.1.0
25562557
tiny-invariant: ^1.0.6
@@ -5261,6 +5262,13 @@ __metadata:
52615262
languageName: node
52625263
linkType: hard
52635264

5265+
"@types/lodash@npm:^4.14.195":
5266+
version: 4.14.199
5267+
resolution: "@types/lodash@npm:4.14.199"
5268+
checksum: e68d1fcbbfce953ed87b296a628573f62939227bcda0c934954e862b421e8a34c5e71cad6fea27b9980567909e6a4698f09025692958e36d64ea9ed99ec6fb2e
5269+
languageName: node
5270+
linkType: hard
5271+
52645272
"@types/mdast@npm:^3.0.0":
52655273
version: 3.0.3
52665274
resolution: "@types/mdast@npm:3.0.3"

0 commit comments

Comments
 (0)