Skip to content

Commit 3d4d6a6

Browse files
authoredJan 10, 2024
chore: swap babel-plugin-lodash with updated version that doesn't use deprecated APIs (#38797)

File tree

11 files changed

+29
-29
lines changed

11 files changed

+29
-29
lines changed
 

‎examples/using-remark/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "1.0.0",
66
"author": "Florian Kissling <sechskilo@gmail.com>",
77
"dependencies": {
8-
"babel-plugin-lodash": "^3.3.4",
8+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
99
"es6-object-assign": "^1.1.0",
1010
"gatsby": "next",
1111
"gatsby-core-utils": "next",
@@ -50,4 +50,4 @@
5050
"start": "npm run develop",
5151
"serve": "gatsby serve"
5252
}
53-
}
53+
}

‎packages/babel-preset-gatsby-package/lib/__tests__/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe(`babel-preset-gatsby-package`, () => {
3838
},
3939
},
4040
],
41-
"babel-plugin-lodash",
41+
"@sigmacomputing/babel-plugin-lodash",
4242
]
4343
`)
4444
})
@@ -63,7 +63,7 @@ describe(`babel-preset-gatsby-package`, () => {
6363
},
6464
},
6565
],
66-
"babel-plugin-lodash",
66+
"@sigmacomputing/babel-plugin-lodash",
6767
]
6868
`)
6969
})
@@ -111,7 +111,7 @@ describe(`babel-preset-gatsby-package`, () => {
111111
},
112112
},
113113
],
114-
"babel-plugin-lodash",
114+
"@sigmacomputing/babel-plugin-lodash",
115115
]
116116
`)
117117
})
@@ -136,7 +136,7 @@ describe(`babel-preset-gatsby-package`, () => {
136136
},
137137
},
138138
],
139-
"babel-plugin-lodash",
139+
"@sigmacomputing/babel-plugin-lodash",
140140
]
141141
`)
142142
})
@@ -163,7 +163,7 @@ describe(`babel-preset-gatsby-package`, () => {
163163
},
164164
},
165165
],
166-
"babel-plugin-lodash",
166+
"@sigmacomputing/babel-plugin-lodash",
167167
]
168168
`)
169169
})
@@ -188,7 +188,7 @@ describe(`babel-preset-gatsby-package`, () => {
188188
},
189189
},
190190
],
191-
"babel-plugin-lodash",
191+
"@sigmacomputing/babel-plugin-lodash",
192192
]
193193
`)
194194
})

‎packages/babel-preset-gatsby-package/lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function preset(context, options = {}) {
8686
availableFlags: availableCompilerFlags,
8787
},
8888
],
89-
r(`babel-plugin-lodash`),
89+
r(`@sigmacomputing/babel-plugin-lodash`),
9090
Array.isArray(keepDynamicImports) && keepDynamicImports.length > 0 && [
9191
r(`./babel-transform-mark-to-keep-dynamic-import`),
9292
{

‎packages/babel-preset-gatsby-package/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@babel/preset-react": "^7.18.6",
2020
"@babel/runtime": "^7.20.13",
2121
"babel-plugin-dynamic-import-node": "^2.3.3",
22-
"babel-plugin-lodash": "^3.3.4",
22+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
2323
"core-js": "^3.31.0"
2424
},
2525
"devDependencies": {

‎packages/gatsby-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@rollup/plugin-replace": "^2.4.2",
6262
"@types/hosted-git-info": "^3.0.5",
6363
"@types/yargs": "^15.0.19",
64-
"babel-plugin-lodash": "^3.3.4",
64+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
6565
"babel-preset-gatsby-package": "^3.14.0-next.1",
6666
"cross-env": "^7.0.3",
6767
"ink": "^3.2.0",

‎packages/gatsby-cli/rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default {
5959
],
6060
"@babel/preset-react"
6161
],
62-
plugins: ["@babel/plugin-transform-runtime", "babel-plugin-lodash"],
62+
plugins: ["@babel/plugin-transform-runtime", "@sigmacomputing/babel-plugin-lodash"],
6363
overrides: [
6464
{
6565
"test": ["**/*.ts", "**/*.tsx"],

‎packages/gatsby-plugin-lodash/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@babel/runtime": "^7.20.13",
11-
"babel-plugin-lodash": "^3.3.4",
11+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
1212
"lodash-webpack-plugin": "^0.11.6"
1313
},
1414
"devDependencies": {

‎packages/gatsby-plugin-lodash/src/gatsby-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ exports.onCreateWebpackConfig = (
3838
// Add Lodash Babel plugin
3939
exports.onCreateBabelConfig = ({ actions }) => {
4040
actions.setBabelPlugin({
41-
name: `babel-plugin-lodash`,
41+
name: require.resolve(`@sigmacomputing/babel-plugin-lodash`),
4242
})
4343
}

‎packages/gatsby/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"babel-loader": "^8.3.0",
4848
"babel-plugin-add-module-exports": "^1.0.4",
4949
"babel-plugin-dynamic-import-node": "^2.3.3",
50-
"babel-plugin-lodash": "^3.3.4",
50+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
5151
"babel-plugin-remove-graphql-queries": "^5.14.0-next.1",
5252
"babel-preset-gatsby": "^3.14.0-next.1",
5353
"better-opn": "^2.1.1",

‎packages/gatsby/src/internal-plugins/bundle-optimisations/gatsby-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require(`path`)
33
exports.onCreateBabelConfig = ({ actions }) => {
44
// rewrites import { get }from 'lodash' into import get from 'lodash/get';
55
actions.setBabelPlugin({
6-
name: `babel-plugin-lodash`,
6+
name: `@sigmacomputing/babel-plugin-lodash`,
77
})
88
}
99

‎yarn.lock

+13-13
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@
427427
dependencies:
428428
"@babel/types" "^7.20.7"
429429

430-
"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.0.0-beta.49", "@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.16.7", "@babel/helper-module-imports@^7.18.6":
430+
"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.16.7", "@babel/helper-module-imports@^7.18.6":
431431
version "7.18.6"
432432
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e"
433433
integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==
@@ -1395,7 +1395,7 @@
13951395
debug "^4.1.0"
13961396
globals "^11.1.0"
13971397

1398-
"@babel/types@^7.0.0", "@babel/types@^7.0.0-beta.49", "@babel/types@^7.12.1", "@babel/types@^7.12.7", "@babel/types@^7.16.8", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.2.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
1398+
"@babel/types@^7.0.0", "@babel/types@^7.12.1", "@babel/types@^7.12.7", "@babel/types@^7.16.8", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.2.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
13991399
version "7.20.7"
14001400
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.7.tgz#54ec75e252318423fc07fb644dc6a58a64c09b7f"
14011401
integrity sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==
@@ -4252,6 +4252,17 @@
42524252
resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df"
42534253
integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==
42544254

4255+
"@sigmacomputing/babel-plugin-lodash@^3.3.5":
4256+
version "3.3.5"
4257+
resolved "https://registry.yarnpkg.com/@sigmacomputing/babel-plugin-lodash/-/babel-plugin-lodash-3.3.5.tgz#613d98b0cbb51c1836bbc12c8a12d75750ee3510"
4258+
integrity sha512-VFhaHjlNzWyBtBm3YdqOwP8GbQHK7sWzXKpSUBTLjl2Zz6/9PwCK4qXZXI5CHpDjmvbouHUDbjrZP2KU5h6VQg==
4259+
dependencies:
4260+
"@babel/helper-module-imports" "^7.0.0"
4261+
"@babel/types" "^7.0.0"
4262+
glob "^7.1.1"
4263+
lodash "^4.17.10"
4264+
require-package-name "^2.0.1"
4265+
42554266
"@sinclair/typebox@^0.25.16":
42564267
version "0.25.21"
42574268
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.25.21.tgz#763b05a4b472c93a8db29b2c3e359d55b29ce272"
@@ -6715,17 +6726,6 @@ babel-plugin-jest-hoist@^29.5.0:
67156726
"@types/babel__core" "^7.1.14"
67166727
"@types/babel__traverse" "^7.0.6"
67176728

6718-
babel-plugin-lodash@^3.3.4:
6719-
version "3.3.4"
6720-
resolved "https://registry.yarnpkg.com/babel-plugin-lodash/-/babel-plugin-lodash-3.3.4.tgz#4f6844358a1340baed182adbeffa8df9967bc196"
6721-
integrity sha512-yDZLjK7TCkWl1gpBeBGmuaDIFhZKmkoL+Cu2MUUjv5VxUZx/z7tBGBCBcQs5RI1Bkz5LLmNdjx7paOyQtMovyg==
6722-
dependencies:
6723-
"@babel/helper-module-imports" "^7.0.0-beta.49"
6724-
"@babel/types" "^7.0.0-beta.49"
6725-
glob "^7.1.1"
6726-
lodash "^4.17.10"
6727-
require-package-name "^2.0.1"
6728-
67296729
babel-plugin-macros@^2.8.0:
67306730
version "2.8.0"
67316731
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138"

0 commit comments

Comments
 (0)
Please sign in to comment.