Skip to content

Commit

Permalink
chore: use lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
wwsun committed Dec 12, 2022
1 parent 9a83b19 commit 1d2293d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 19 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@emotion/is-prop-valid": "^1.2.0",
"@emotion/memoize": "^0.8.0",
"csstype": "^3.1.1",
"lodash-es": "^4.17.21"
"lodash": "^4.17.21"
},
"devDependencies": {
"@babel/preset-env": "^7.20.2",
Expand All @@ -54,7 +54,7 @@
"@storybook/react": "^6.5.13",
"@storybook/storybook-deployer": "^2.8.12",
"@types/jest": "^29.2.3",
"@types/lodash-es": "^4.17.6",
"@types/lodash": "^4.14.191",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@types/styled-components": "^5.1.26",
Expand Down
2 changes: 1 addition & 1 deletion src/core/core.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assign } from 'lodash-es';
import { assign } from 'lodash';
import {
getToken,
sizes,
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/design-token-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { get, hasIn, isNil } from 'lodash-es';
import { get, hasIn, isNil } from 'lodash';
import { defaultTheme } from '../theme';
import { StringOrNumber, SystemScaleType } from '../types';

Expand Down
2 changes: 1 addition & 1 deletion src/provider/system-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { createContext, useContext, useMemo } from 'react';
import { ThemeProvider } from 'styled-components';
import { assign } from 'lodash-es';
import { assign } from 'lodash';
import { defaultTheme, ThemeType } from '../theme';
import { getTokenValue, isValidTokenPath, getToken, DEFAULT_PREFIX } from '../helpers';
import { CssVariables } from './global-styles';
Expand Down
21 changes: 7 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3110,18 +3110,16 @@
dependencies:
"@types/node" "*"

"@types/lodash-es@^4.17.6":
version "4.17.6"
resolved "https://registry.yarnpkg.com/@types/lodash-es/-/lodash-es-4.17.6.tgz#c2ed4c8320ffa6f11b43eb89e9eaeec65966a0a0"
integrity sha512-R+zTeVUKDdfoRxpAryaQNRKk3105Rrgx2CFRClIgRGaqDTdjsm8h6IYA8ir584W3ePzkZfst5xIgDwYrlh9HLg==
dependencies:
"@types/lodash" "*"

"@types/lodash@*", "@types/lodash@^4.14.167":
"@types/lodash@^4.14.167":
version "4.14.182"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.182.tgz#05301a4d5e62963227eaafe0ce04dd77c54ea5c2"
integrity sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==

"@types/lodash@^4.14.191":
version "4.14.191"
resolved "https://registry.npmmirror.com/@types/lodash/-/lodash-4.14.191.tgz#09511e7f7cba275acd8b419ddac8da9a6a79e2fa"
integrity sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==

"@types/mdast@^3.0.0":
version "3.0.10"
resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.10.tgz#4724244a82a4598884cbbe9bcfd73dff927ee8af"
Expand Down Expand Up @@ -8667,11 +8665,6 @@ locate-path@^6.0.0:
dependencies:
p-locate "^5.0.0"

lodash-es@^4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee"
integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==

lodash.debounce@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
Expand Down Expand Up @@ -8699,7 +8692,7 @@ lodash.zip@^4.2.0:

lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
resolved "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==

log-symbols@^1.0.2:
Expand Down

0 comments on commit 1d2293d

Please sign in to comment.