Skip to content

Commit

Permalink
chore(styleguide): use lodash-es (#7248)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud authored and actions-user committed Jul 29, 2024
1 parent a8ef8f7 commit e8115ad
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion styleguide/lib/theme/functions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import escape from 'lodash/escape';
import { escape } from 'lodash-es';
import {
DEFAULT_THEME_FOR_PLATFORM,
DEFAULT_THEME_NAMES,
Expand Down
2 changes: 1 addition & 1 deletion styleguide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:ci": "echo no test:ci"
},
"devDependencies": {
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"prop-types": "^15.8.1",
"react": "*",
"react-children-utilities": "^2.10.0",
Expand Down
2 changes: 1 addition & 1 deletion styleguide/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import kebabCase from 'lodash/kebabCase';
import { kebabCase } from 'lodash-es';
import { onlyText } from 'react-children-utilities';

export const getDeprecatedFromComponentTags = (component) => {
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2353,7 +2353,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@project-docs/styleguide@workspace:styleguide"
dependencies:
lodash: "npm:^4.17.21"
lodash-es: "npm:^4.17.21"
prop-types: "npm:^15.8.1"
react: "npm:*"
react-children-utilities: "npm:^2.10.0"
Expand Down Expand Up @@ -11697,6 +11697,13 @@ __metadata:
languageName: node
linkType: hard

"lodash-es@npm:^4.17.21":
version: 4.17.21
resolution: "lodash-es@npm:4.17.21"
checksum: 10/03f39878ea1e42b3199bd3f478150ab723f93cc8730ad86fec1f2804f4a07c6e30deaac73cad53a88e9c3db33348bb8ceeb274552390e7a75d7849021c02df43
languageName: node
linkType: hard

"lodash.camelcase@npm:^4.3.0":
version: 4.3.0
resolution: "lodash.camelcase@npm:4.3.0"
Expand Down

0 comments on commit e8115ad

Please sign in to comment.