Skip to content

Commit 39c98fb

Browse files
byCedricfacebook-github-bot
authored andcommitted
fix(react-native-codegen): upgrade jscodeshift@17.0.0 to resolve outdated dependencies (#46724)
Summary: This upgrades `jscodeshift` from `0.14.0` to `17.0.0`, to resolve unsupported babel dependencies when installing React Native. See expo/expo#31613 ## Changelog: [GENERAL] [FIXED] - Upgrade Codegen dependency `jscodeshift@17.0.0` to resolve outdated dependencies Pull Request resolved: #46724 Test Plan: To test it out yourself: - `npx create-expo@latest ./test-codegen` - `cd ./test-codegen` - `npm why babel/plugin-proposal-nullish-coalescing-operator@7.18.6 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/babel/plugin-proposal-nullish-coalescing-operator/v/7.18.6) - `npm why babel/plugin-proposal-class-properties@7.18.6 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/babel/plugin-proposal-class-properties/v/7.18.6) - `npm why rimraf@2.6.3 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/rimraf/v/2.6.3) - `npm why babel/plugin-proposal-optional-chaining@7.21.0 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/babel/plugin-proposal-optional-chaining/v/7.21.0) > [!IMPORTANT] > There are other dependencies that require an update, unfortunately there are no flow typings available (yet). > - `npm why glob@7.2.3 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/glob/v/7.2.3) Reviewed By: cortinico Differential Revision: D63629133 Pulled By: huntie fbshipit-source-id: 3799e49677b8e5fd64841e6c7f855bde10e15072
1 parent 290258f commit 39c98fb

2 files changed

Lines changed: 71 additions & 8 deletions

File tree

packages/react-native-codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"glob": "^7.1.1",
3434
"hermes-parser": "0.23.1",
3535
"invariant": "^2.2.4",
36-
"jscodeshift": "^0.14.0",
36+
"jscodeshift": "^17.0.0",
3737
"nullthrows": "^1.1.1",
3838
"yargs": "^17.6.2"
3939
},

yarn.lock

Lines changed: 70 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.4.tgz#7d2a80ce229890edcf4cc259d4d696cb4dae2fcb"
4040
integrity sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==
4141

42-
"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.13.16", "@babel/core@^7.20.0", "@babel/core@^7.23.9", "@babel/core@^7.25.2":
42+
"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.13.16", "@babel/core@^7.20.0", "@babel/core@^7.23.9", "@babel/core@^7.24.7", "@babel/core@^7.25.2":
4343
version "7.25.2"
4444
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.2.tgz#ed8eec275118d7613e77a352894cd12ded8eba77"
4545
integrity sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==
@@ -252,7 +252,7 @@
252252
js-tokens "^4.0.0"
253253
picocolors "^1.0.0"
254254

255-
"@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.3", "@babel/parser@^7.25.6":
255+
"@babel/parser@^7.1.0", "@babel/parser@^7.13.16", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.7", "@babel/parser@^7.25.0", "@babel/parser@^7.25.3", "@babel/parser@^7.25.6":
256256
version "7.25.6"
257257
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f"
258258
integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==
@@ -546,7 +546,7 @@
546546
dependencies:
547547
"@babel/helper-plugin-utils" "^7.24.8"
548548

549-
"@babel/plugin-transform-class-properties@^7.25.4":
549+
"@babel/plugin-transform-class-properties@^7.24.7", "@babel/plugin-transform-class-properties@^7.25.4":
550550
version "7.25.4"
551551
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.4.tgz#bae7dbfcdcc2e8667355cd1fb5eda298f05189fd"
552552
integrity sha512-nZeZHyCWPfjkdU5pA/uHiTaDAFUEqkpzf1YoQT2NeSynCGYq9rxfyI3XpQbfx/a0hSnFH6TGlEXvae5Vi7GD8g==
@@ -1069,7 +1069,7 @@
10691069
"@babel/types" "^7.4.4"
10701070
esutils "^2.0.2"
10711071

1072-
"@babel/preset-typescript@^7.13.0", "@babel/preset-typescript@^7.18.0":
1072+
"@babel/preset-typescript@^7.13.0", "@babel/preset-typescript@^7.18.0", "@babel/preset-typescript@^7.24.7":
10731073
version "7.24.7"
10741074
resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.24.7.tgz#66cd86ea8f8c014855671d5ea9a737139cbbfef1"
10751075
integrity sha512-SyXRe3OdWwIwalxDg5UtJnJQO+YPcTfwiIY2B0Xlddh9o7jpWLvv8X1RthIeDOxQ+O1ML5BLPCONToObyVQVuQ==
@@ -1080,7 +1080,7 @@
10801080
"@babel/plugin-transform-modules-commonjs" "^7.24.7"
10811081
"@babel/plugin-transform-typescript" "^7.24.7"
10821082

1083-
"@babel/register@^7.0.0", "@babel/register@^7.13.16":
1083+
"@babel/register@^7.0.0", "@babel/register@^7.13.16", "@babel/register@^7.24.6":
10841084
version "7.24.6"
10851085
resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.24.6.tgz#59e21dcc79e1d04eed5377633b0f88029a6bef9e"
10861086
integrity sha512-WSuFCc2wCqMeXkz/i3yfAAsxwWflEgbVkZzivgAmXl/MxrXeoYFZOOPllbC8R8WTF7u61wSRQtDVZ1879cdu6w==
@@ -2634,6 +2634,13 @@ ast-types@0.15.2:
26342634
dependencies:
26352635
tslib "^2.0.1"
26362636

2637+
ast-types@^0.16.1:
2638+
version "0.16.1"
2639+
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.16.1.tgz#7a9da1617c9081bc121faafe91711b4c8bb81da2"
2640+
integrity sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==
2641+
dependencies:
2642+
tslib "^2.0.1"
2643+
26372644
astral-regex@^1.0.0:
26382645
version "1.0.0"
26392646
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9"
@@ -5904,6 +5911,30 @@ jscodeshift@^0.14.0:
59045911
temp "^0.8.4"
59055912
write-file-atomic "^2.3.0"
59065913

5914+
jscodeshift@^17.0.0:
5915+
version "17.0.0"
5916+
resolved "https://registry.yarnpkg.com/jscodeshift/-/jscodeshift-17.0.0.tgz#a5a255b87cf9aab226133ddc02471e2ff7a88bd9"
5917+
integrity sha512-Af+MFsNwLSVO+t4kKjJdJKh6iNbNHfDfFGdyltJ2wUFN3furgbvHguJmB85iou+fY7wbHgI8eiEKpp6doGgtKg==
5918+
dependencies:
5919+
"@babel/core" "^7.24.7"
5920+
"@babel/parser" "^7.24.7"
5921+
"@babel/plugin-transform-class-properties" "^7.24.7"
5922+
"@babel/plugin-transform-modules-commonjs" "^7.24.7"
5923+
"@babel/plugin-transform-nullish-coalescing-operator" "^7.24.7"
5924+
"@babel/plugin-transform-optional-chaining" "^7.24.7"
5925+
"@babel/plugin-transform-private-methods" "^7.24.7"
5926+
"@babel/preset-flow" "^7.24.7"
5927+
"@babel/preset-typescript" "^7.24.7"
5928+
"@babel/register" "^7.24.6"
5929+
flow-parser "0.*"
5930+
graceful-fs "^4.2.4"
5931+
micromatch "^4.0.7"
5932+
neo-async "^2.5.0"
5933+
picocolors "^1.0.1"
5934+
recast "^0.23.9"
5935+
temp "^0.9.4"
5936+
write-file-atomic "^5.0.1"
5937+
59075938
jsesc@^2.5.1:
59085939
version "2.5.2"
59095940
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"
@@ -6565,7 +6596,7 @@ metro@0.81.0-alpha.0, metro@^0.81.0-alpha.0:
65656596
ws "^7.5.10"
65666597
yargs "^17.6.2"
65676598

6568-
micromatch@^4.0.4:
6599+
micromatch@^4.0.4, micromatch@^4.0.7:
65696600
version "4.0.8"
65706601
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202"
65716602
integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==
@@ -7422,6 +7453,17 @@ recast@^0.21.0:
74227453
source-map "~0.6.1"
74237454
tslib "^2.0.1"
74247455

7456+
recast@^0.23.9:
7457+
version "0.23.9"
7458+
resolved "https://registry.yarnpkg.com/recast/-/recast-0.23.9.tgz#587c5d3a77c2cfcb0c18ccce6da4361528c2587b"
7459+
integrity sha512-Hx/BGIbwj+Des3+xy5uAtAbdCyqK9y9wbBcDFDYanLS9JnMqf7OeF87HQwUimE87OEc72mr6tkKUKMBBL+hF9Q==
7460+
dependencies:
7461+
ast-types "^0.16.1"
7462+
esprima "~4.0.0"
7463+
source-map "~0.6.1"
7464+
tiny-invariant "^1.3.3"
7465+
tslib "^2.0.1"
7466+
74257467
rechoir@^0.6.2:
74267468
version "0.6.2"
74277469
resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
@@ -7852,7 +7894,7 @@ signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7:
78527894
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
78537895
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
78547896

7855-
signal-exit@^4.1.0:
7897+
signal-exit@^4.0.1, signal-exit@^4.1.0:
78567898
version "4.1.0"
78577899
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04"
78587900
integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
@@ -8282,6 +8324,14 @@ temp@^0.8.4:
82828324
dependencies:
82838325
rimraf "~2.6.2"
82848326

8327+
temp@^0.9.4:
8328+
version "0.9.4"
8329+
resolved "https://registry.yarnpkg.com/temp/-/temp-0.9.4.tgz#cd20a8580cb63635d0e4e9d4bd989d44286e7620"
8330+
integrity sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==
8331+
dependencies:
8332+
mkdirp "^0.5.1"
8333+
rimraf "~2.6.2"
8334+
82858335
terser@^5.15.0:
82868336
version "5.31.6"
82878337
resolved "https://registry.yarnpkg.com/terser/-/terser-5.31.6.tgz#c63858a0f0703988d0266a82fcbf2d7ba76422b1"
@@ -8324,6 +8374,11 @@ through@^2.3.6:
83248374
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
83258375
integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==
83268376

8377+
tiny-invariant@^1.3.3:
8378+
version "1.3.3"
8379+
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.3.tgz#46680b7a873a0d5d10005995eb90a70d74d60127"
8380+
integrity sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==
8381+
83278382
tmp@^0.0.33:
83288383
version "0.0.33"
83298384
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
@@ -8820,6 +8875,14 @@ write-file-atomic@^4.0.2:
88208875
imurmurhash "^0.1.4"
88218876
signal-exit "^3.0.7"
88228877

8878+
write-file-atomic@^5.0.1:
8879+
version "5.0.1"
8880+
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-5.0.1.tgz#68df4717c55c6fa4281a7860b4c2ba0a6d2b11e7"
8881+
integrity sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==
8882+
dependencies:
8883+
imurmurhash "^0.1.4"
8884+
signal-exit "^4.0.1"
8885+
88238886
ws@^6.2.3:
88248887
version "6.2.3"
88258888
resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.3.tgz#ccc96e4add5fd6fedbc491903075c85c5a11d9ee"

0 commit comments

Comments
 (0)