Skip to content

Commit 9add613

Browse files
committed
lodash -> lodash-es
1 parent 5852285 commit 9add613

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
import slash from 'slash';
3-
import {kebabCase, uniq, get, compact, times} from 'lodash';
3+
import {kebabCase, uniq, get, compact, times} from 'lodash-es';
44

55
// Don't forget to update hard code values into:
66
// - `templates-page.tsx:23`

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"gatsby-transformer-remark": "^2.3.12",
4646
"gatsby-transformer-sharp": "^2.3.6",
4747
"gray-matter": "^4.0.2",
48-
"lodash": "^4.17.21",
48+
"lodash-es": "^4.17.21",
4949
"react": "^16.8.6",
5050
"react-dom": "^16.8.6",
5151
"react-helmet": "5.2.1",
@@ -69,7 +69,7 @@
6969
"@types/enzyme": "^3.10.18",
7070
"@types/enzyme-adapter-react-16": "^1.0.9",
7171
"@types/jest": "^24.0.23",
72-
"@types/lodash": "^4.14.130",
72+
"@types/lodash-es": "^4",
7373
"@types/node": "^12.0.2",
7474
"@types/reach__router": "^1.2.4",
7575
"@types/react": "^19.1.2",

src/components/BlogPagination/BlogPagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from "react";
22
import { GatsbyLinkProps } from "gatsby-link";
33
import { Menu } from "semantic-ui-react";
4-
import { times } from "lodash";
4+
import { times } from "lodash-es";
55

66
interface BlogPaginationProps extends React.HTMLProps<HTMLDivElement> {
77
pathname: string;

src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MarkdownRemarkConnection, ImageSharp } from "../graphql-types";
66
import PostHeader from "../components/PostHeader";
77
import TagsCard from "../components/TagsCard/TagsCard";
88
import BlogPagination from "../components/BlogPagination/BlogPagination";
9-
import { get } from "lodash";
9+
import { get } from "lodash-es";
1010
import {withLayout, LayoutProps} from "../components/Layout";
1111
import { MarkdownRemark } from "../graphql-types";
1212

src/templates/blog-post.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from "react";
22
import { Link } from "gatsby";
3-
import { get } from "lodash";
3+
import { get } from "lodash-es";
44
import { Header, Container, Segment, Label, Grid, Card, Image, Item, Comment } from "semantic-ui-react";
55
import { MarkdownRemark, ImageSharp, MarkdownRemarkConnection, Site } from "../graphql-types";
66
import {withLayout, LayoutProps} from "../components/Layout";

test/data-integrity.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const fs = require('fs');
33
const path = require('path');
44
const matter = require('gray-matter');
5-
const _ = require('lodash');
5+
const _ = require('lodash-es');
66
// eslint-disable-next-line import/extensions
77
const authors = require('../data/author.json');
88

yarn.lock

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7246,7 +7246,16 @@ __metadata:
72467246
languageName: node
72477247
linkType: hard
72487248

7249-
"@types/lodash@npm:^4.14.130, @types/lodash@npm:^4.14.167, @types/lodash@npm:^4.14.92":
7249+
"@types/lodash-es@npm:^4":
7250+
version: 4.17.12
7251+
resolution: "@types/lodash-es@npm:4.17.12"
7252+
dependencies:
7253+
"@types/lodash": "npm:*"
7254+
checksum: 10c0/5d12d2cede07f07ab067541371ed1b838a33edb3c35cb81b73284e93c6fd0c4bbeaefee984e69294bffb53f62d7272c5d679fdba8e595ff71e11d00f2601dde0
7255+
languageName: node
7256+
linkType: hard
7257+
7258+
"@types/lodash@npm:*, @types/lodash@npm:^4.14.167, @types/lodash@npm:^4.14.92":
72507259
version: 4.17.16
72517260
resolution: "@types/lodash@npm:4.17.16"
72527261
checksum: 10c0/cf017901b8ab1d7aabc86d5189d9288f4f99f19a75caf020c0e2c77b8d4cead4db0d0b842d009b029339f92399f49f34377dd7c2721053388f251778b4c23534
@@ -18768,7 +18777,7 @@ __metadata:
1876818777
"@types/enzyme": "npm:^3.10.18"
1876918778
"@types/enzyme-adapter-react-16": "npm:^1.0.9"
1877018779
"@types/jest": "npm:^24.0.23"
18771-
"@types/lodash": "npm:^4.14.130"
18780+
"@types/lodash-es": "npm:^4"
1877218781
"@types/node": "npm:^12.0.2"
1877318782
"@types/reach__router": "npm:^1.2.4"
1877418783
"@types/react": "npm:^19.1.2"
@@ -18812,7 +18821,7 @@ __metadata:
1881218821
husky: "npm:2.3.0"
1881318822
jest: "npm:^29.7.0"
1881418823
lint-staged: "npm:8.1.7"
18815-
lodash: "npm:^4.17.21"
18824+
lodash-es: "npm:^4.17.21"
1881618825
mkdirp: "npm:^0.5.1"
1881718826
plop: "npm:^2.3.0"
1881818827
raw-loader: "npm:^2.0.0"

0 commit comments

Comments
 (0)