Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(next-codemod): add upgrade command #69935

Merged
merged 19 commits into from
Sep 24, 2024
Merged

Conversation

LichuAcu
Copy link

@LichuAcu LichuAcu commented Sep 10, 2024

Why?

Switching between canary, rc, and latest also requires React version changes which could be time-consuming. This is essential for reproduction, confirming issue fixed on canary, and migration. Also, to run the codemods for breaking changes, users have to go through the documentation and find which codemods to run for their project.

How?

@next/codemod upgrade expects the user to select canary, rc, or latest version to upgrade. Also, it detects any possible codemods to run, and suggest the user whether to run it.

CleanShot.2024-09-24.at.17.30.15.mp4

@ijjk ijjk added the created-by: Turbopack team PRs by the Turbopack team. label Sep 10, 2024
Copy link
Author

LichuAcu commented Sep 10, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @LichuAcu and the rest of your teammates on Graphite Graphite

@LichuAcu LichuAcu marked this pull request as ready for review September 10, 2024 20:00
@LichuAcu LichuAcu marked this pull request as draft September 10, 2024 20:01
Copy link

socket-security bot commented Sep 10, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/compare-versions@6.1.1 None 0 55.5 kB omichelsen

View full report↗︎

@ijjk
Copy link
Member

ijjk commented Sep 10, 2024

Tests Passed

@LichuAcu LichuAcu force-pushed the 09-10-_next_upgrade_package branch from f3c847e to 8c99378 Compare September 10, 2024 20:17
@ijjk
Copy link
Member

ijjk commented Sep 10, 2024

Stats from current PR

Default Build (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
buildDuration 18.3s 15.7s N/A
buildDurationCached 8.5s 7.2s N/A
nodeModulesSize 359 MB 359 MB ⚠️ +7.13 kB
nextStartRea..uration (ms) 429ms 424ms N/A
Client Bundles (main, webpack)
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
1144-HASH.js gzip 43 kB 43 kB N/A
1220-HASH.js gzip 5.26 kB 5.25 kB N/A
1753.HASH.js gzip 169 B 169 B
cc135666-HASH.js gzip 52.8 kB 52.8 kB N/A
framework-HASH.js gzip 57.5 kB 57.5 kB N/A
main-app-HASH.js gzip 229 B 229 B
main-HASH.js gzip 32.7 kB 32.7 kB N/A
webpack-HASH.js gzip 1.71 kB 1.71 kB N/A
Overall change 398 B 398 B
Legacy Client Bundles (polyfills)
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
polyfills-HASH.js gzip 39.4 kB 39.4 kB
Overall change 39.4 kB 39.4 kB
Client Pages
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
_app-HASH.js gzip 194 B 194 B
_error-HASH.js gzip 192 B 191 B N/A
amp-HASH.js gzip 506 B 510 B N/A
css-HASH.js gzip 342 B 342 B
dynamic-HASH.js gzip 1.84 kB 1.84 kB
edge-ssr-HASH.js gzip 265 B 265 B
head-HASH.js gzip 365 B 363 B N/A
hooks-HASH.js gzip 392 B 390 B N/A
image-HASH.js gzip 4.4 kB 4.4 kB N/A
index-HASH.js gzip 268 B 268 B
link-HASH.js gzip 2.79 kB 2.78 kB N/A
routerDirect..HASH.js gzip 328 B 327 B N/A
script-HASH.js gzip 398 B 394 B N/A
withRouter-HASH.js gzip 322 B 324 B N/A
1afbb74e6ecf..834.css gzip 106 B 106 B
Overall change 3.02 kB 3.02 kB
Client Build Manifests
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
_buildManifest.js gzip 748 B 749 B N/A
Overall change 0 B 0 B
Rendered Page Sizes
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
index.html gzip 518 B 523 B N/A
link.html gzip 533 B 537 B N/A
withRouter.html gzip 516 B 518 B N/A
Overall change 0 B 0 B
Edge SSR bundle Size
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
edge-ssr.js gzip 128 kB 128 kB N/A
page.js gzip 179 kB 179 kB N/A
Overall change 0 B 0 B
Middleware size
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
middleware-b..fest.js gzip 670 B 667 B N/A
middleware-r..fest.js gzip 157 B 155 B N/A
middleware.js gzip 29.8 kB 29.8 kB N/A
edge-runtime..pack.js gzip 844 B 844 B
Overall change 844 B 844 B
Next Runtimes
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
973-experime...dev.js gzip 322 B 322 B
973.runtime.dev.js gzip 314 B 314 B
app-page-exp...dev.js gzip 318 kB 318 kB
app-page-exp..prod.js gzip 126 kB 126 kB
app-page-tur..prod.js gzip 139 kB 139 kB
app-page-tur..prod.js gzip 134 kB 134 kB
app-page.run...dev.js gzip 308 kB 308 kB
app-page.run..prod.js gzip 121 kB 121 kB
app-route-ex...dev.js gzip 32.1 kB 32.1 kB
app-route-ex..prod.js gzip 21.7 kB 21.7 kB
app-route-tu..prod.js gzip 21.7 kB 21.7 kB
app-route-tu..prod.js gzip 21.5 kB 21.5 kB
app-route.ru...dev.js gzip 33.7 kB 33.7 kB
app-route.ru..prod.js gzip 21.5 kB 21.5 kB
pages-api-tu..prod.js gzip 9.62 kB 9.62 kB
pages-api.ru...dev.js gzip 11.5 kB 11.5 kB
pages-api.ru..prod.js gzip 9.61 kB 9.61 kB
pages-turbo...prod.js gzip 20.8 kB 20.8 kB
pages.runtim...dev.js gzip 26.4 kB 26.4 kB
pages.runtim..prod.js gzip 20.8 kB 20.8 kB
server.runti..prod.js gzip 57.9 kB 57.9 kB
Overall change 1.46 MB 1.46 MB
build cache Overall increase ⚠️
vercel/next.js canary vercel/next.js 09-10-_next_upgrade_package Change
0.pack gzip 1.66 MB 1.66 MB ⚠️ +1.29 kB
index.pack gzip 133 kB 133 kB N/A
Overall change 1.66 MB 1.66 MB ⚠️ +1.29 kB
Diff details
Diff for page.js
@@ -15,7 +15,7 @@
       /***/
     },
 
-    /***/ 687: /***/ (
+    /***/ 2794: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -30,7 +30,7 @@
         default: () => /* binding */ nHandler,
       });
 
-      // NAMESPACE OBJECT: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fapp-edge-ssr%2Fpage&page=%2Fapp-edge-ssr%2Fpage&pagePath=private-next-app-dir%2Fapp-edge-ssr%2Fpage.js&appDir=%2Ftmp%2Fnext-stats5SQjiY%2Fstats-app%2Fapp&appPaths=%2Fapp-edge-ssr%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&flyingShuttle=false&preferredRegion=&middlewareConfig=e30%3D!./app/app-edge-ssr/page.js?__next_edge_ssr_entry__
+      // NAMESPACE OBJECT: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fapp-edge-ssr%2Fpage&page=%2Fapp-edge-ssr%2Fpage&pagePath=private-next-app-dir%2Fapp-edge-ssr%2Fpage.js&appDir=%2Ftmp%2Fnext-stats5SQjiY%2Fstats-app%2Fapp&appPaths=%2Fapp-edge-ssr%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&flyingShuttle=false&preferredRegion=&middlewareConfig=e30%3D!./app/app-edge-ssr/page.js?__next_edge_ssr_entry__
       var page_next_edge_ssr_entry_namespaceObject = {};
       __webpack_require__.r(page_next_edge_ssr_entry_namespaceObject);
       __webpack_require__.d(page_next_edge_ssr_entry_namespaceObject, {
@@ -70,35 +70,35 @@
         tree: () => tree,
       });
 
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/server/web/globals.js
-      var globals = __webpack_require__(4152);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/server/web/adapter.js + 3 modules
-      var adapter = __webpack_require__(1232);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/build/webpack/loaders/next-edge-ssr-loader/render.js + 85 modules
-      var render = __webpack_require__(4619);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/server/lib/incremental-cache/index.js + 3 modules
-      var incremental_cache = __webpack_require__(6600);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/server/app-render/app-render.js + 74 modules
-      var app_render = __webpack_require__(2797);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/server/route-modules/app-page/module.compiled.js
-      var module_compiled = __webpack_require__(4999);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/server/route-kind.js
-      var route_kind = __webpack_require__(4394);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/client/components/error-boundary.js
-      var error_boundary = __webpack_require__(9900);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/server/app-render/entry-base.js + 10 modules
-      var entry_base = __webpack_require__(496); // CONCATENATED MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fapp-edge-ssr%2Fpage&page=%2Fapp-edge-ssr%2Fpage&pagePath=private-next-app-dir%2Fapp-edge-ssr%2Fpage.js&appDir=%2Ftmp%2Fnext-stats5SQjiY%2Fstats-app%2Fapp&appPaths=%2Fapp-edge-ssr%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&flyingShuttle=false&preferredRegion=&middlewareConfig=e30%3D!./app/app-edge-ssr/page.js?__next_edge_ssr_entry__
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/server/web/globals.js
+      var globals = __webpack_require__(7964);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/server/web/adapter.js + 3 modules
+      var adapter = __webpack_require__(6211);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/build/webpack/loaders/next-edge-ssr-loader/render.js + 85 modules
+      var render = __webpack_require__(2289);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/server/lib/incremental-cache/index.js + 3 modules
+      var incremental_cache = __webpack_require__(9517);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/server/app-render/app-render.js + 74 modules
+      var app_render = __webpack_require__(1697);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/server/route-modules/app-page/module.compiled.js
+      var module_compiled = __webpack_require__(9959);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/server/route-kind.js
+      var route_kind = __webpack_require__(27);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/client/components/error-boundary.js
+      var error_boundary = __webpack_require__(9650);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/server/app-render/entry-base.js + 10 modules
+      var entry_base = __webpack_require__(1018); // CONCATENATED MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fapp-edge-ssr%2Fpage&page=%2Fapp-edge-ssr%2Fpage&pagePath=private-next-app-dir%2Fapp-edge-ssr%2Fpage.js&appDir=%2Ftmp%2Fnext-stats5SQjiY%2Fstats-app%2Fapp&appPaths=%2Fapp-edge-ssr%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&flyingShuttle=false&preferredRegion=&middlewareConfig=e30%3D!./app/app-edge-ssr/page.js?__next_edge_ssr_entry__
       const module0 = () =>
         Promise.resolve(/* import() eager */).then(
-          __webpack_require__.bind(__webpack_require__, 569)
+          __webpack_require__.bind(__webpack_require__, 3113)
         );
       const module1 = () =>
         Promise.resolve(/* import() eager */).then(
-          __webpack_require__.bind(__webpack_require__, 7993)
+          __webpack_require__.bind(__webpack_require__, 9374)
         );
       const page2 = () =>
         Promise.resolve(/* import() eager */).then(
-          __webpack_require__.bind(__webpack_require__, 4355)
+          __webpack_require__.bind(__webpack_require__, 1589)
         );
 
       // We inject the tree and pages here so that we can use them in the route
@@ -161,12 +161,12 @@
       });
 
       //# sourceMappingURL=app-page.js.map
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/lib/page-types.js
-      var page_types = __webpack_require__(6593);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/server/app-render/encryption-utils.js
-      var encryption_utils = __webpack_require__(8752);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/esm/server/app-render/action-utils.js
-      var action_utils = __webpack_require__(5534); // CONCATENATED MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js?{"absolute500Path":"","absoluteAppPath":"next/dist/pages/_app","absoluteDocumentPath":"next/dist/pages/_document","absoluteErrorPath":"next/dist/pages/_error","absolutePagePath":"private-next-app-dir/app-edge-ssr/page.js","dev":false,"isServerComponent":true,"page":"/app-edge-ssr/page","stringifiedConfig":"eyJlbnYiOnt9LCJlc2xpbnQiOnsiaWdub3JlRHVyaW5nQnVpbGRzIjpmYWxzZX0sInR5cGVzY3JpcHQiOnsiaWdub3JlQnVpbGRFcnJvcnMiOmZhbHNlLCJ0c2NvbmZpZ1BhdGgiOiJ0c2NvbmZpZy5qc29uIn0sImRpc3REaXIiOiIubmV4dCIsImNsZWFuRGlzdERpciI6dHJ1ZSwiYXNzZXRQcmVmaXgiOiIiLCJjYWNoZU1heE1lbW9yeVNpemUiOjUyNDI4ODAwLCJjb25maWdPcmlnaW4iOiJuZXh0LmNvbmZpZy5qcyIsInVzZUZpbGVTeXN0ZW1QdWJsaWNSb3V0ZXMiOnRydWUsImdlbmVyYXRlRXRhZ3MiOnRydWUsInBhZ2VFeHRlbnNpb25zIjpbInRzeCIsInRzIiwianN4IiwianMiXSwicG93ZXJlZEJ5SGVhZGVyIjp0cnVlLCJjb21wcmVzcyI6dHJ1ZSwiaW1hZ2VzIjp7ImRldmljZVNpemVzIjpbNjQwLDc1MCw4MjgsMTA4MCwxMjAwLDE5MjAsMjA0OCwzODQwXSwiaW1hZ2VTaXplcyI6WzE2LDMyLDQ4LDY0LDk2LDEyOCwyNTYsMzg0XSwicGF0aCI6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lZJTJGc3RhdHMtYXBwJTJGYXBwJmFwcFBhdGhzPSUyRmFwcC1lZGdlLXNzciUyRnBhZ2UmcGFnZUV4dGVuc2lvbnM9dHN4JnBhZ2VFeHRlbnNpb25zPXRzJnBhZ2VFeHRlbnNpb25zPWpzeCZwYWdlRXh0ZW5zaW9ucz1qcyZiYXNlUGF0aD0mYXNzZXRQcmVmaXg9Jm5leHRDb25maWdPdXRwdXQ9JmZseWluZ1NodXR0bGU9ZmFsc2UmcHJlZmVycmVkUmVnaW9uPSZtaWRkbGV3YXJlQ29uZmlnPWUzMCUzRCE=","sriEnabled":false,"middlewareConfig":"e30="}!
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/lib/page-types.js
+      var page_types = __webpack_require__(5657);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/server/app-render/encryption-utils.js
+      var encryption_utils = __webpack_require__(5517);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/esm/server/app-render/action-utils.js
+      var action_utils = __webpack_require__(8989); // CONCATENATED MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js?{"absolute500Path":"","absoluteAppPath":"next/dist/pages/_app","absoluteDocumentPath":"next/dist/pages/_document","absoluteErrorPath":"next/dist/pages/_error","absolutePagePath":"private-next-app-dir/app-edge-ssr/page.js","dev":false,"isServerComponent":true,"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0LWljb25zL2x1IiwicmVhY3QtaWNvbnMvbWQiLCJyZWFjdC1pY29ucy9waSIsInJlYWN0LWljb25zL3JpIiwicmVhY3QtaWNvbnMvcngiLCJyZWFjdC1pY29ucy9zaSIsInJlYWN0LWljb25zL3NsIiwicmVhY3QtaWNvbnMvdGIiLCJyZWFjdC1pY29ucy90ZmkiLCJyZWFjdC1pY29ucy90aSIsInJlYWN0LWljb25zL3ZzYyIsInJlYWN0LWljb25zL3dpIl19LCJidW5kbGVQYWdlc1JvdXRlckRlcGVuZGVuY2llcyI6ZmFsc2UsImNvbmZpZ0ZpbGUiOiIvdG1wL25leHQtc3RhdHM1U1FqaVkvc3RhdHMtYXBwL25leHQuY29uZmlnLmpzIiwiY29uZmlnRmlsZU5hbWUiOiJuZXh0LmNvbmZpZy5qcyJ9","pagesType":"app","appDirLoader":"bmV4dC1hcHAtbG9hZGVyP25hbWU9YXBwJTJGYXBwLWVkZ2Utc3NyJTJGcGFnZSZwYWdlPSUyRmFwcC1lZGdlLXNzciUyRnBhZ2UmcGFnZVBhdGg9cHJpdmF0ZS1uZXh0LWFwcC1kaXIlMkZhcHAtZWRnZS1zc3IlMkZwYWdlLmpzJmFwcERpcj0lMkZ0bXAlMkZuZXh0LXN0YXRzNVNRamlZJTJGc3RhdHMtYXBwJTJGYXBwJmFwcFBhdGhzPSUyRmFwcC1lZGdlLXNzciUyRnBhZ2UmcGFnZUV4dGVuc2lvbnM9dHN4JnBhZ2VFeHRlbnNpb25zPXRzJnBhZ2VFeHRlbnNpb25zPWpzeCZwYWdlRXh0ZW5zaW9ucz1qcyZiYXNlUGF0aD0mYXNzZXRQcmVmaXg9Jm5leHRDb25maWdPdXRwdXQ9JmZseWluZ1NodXR0bGU9ZmFsc2UmcHJlZmVycmVkUmVnaW9uPSZtaWRkbGV3YXJlQ29uZmlnPWUzMCUzRCE=","sriEnabled":false,"middlewareConfig":"e30="}!
       var _self___RSC_MANIFEST;
 
       const incrementalCacheHandler = null;
@@ -430,53 +430,53 @@
       /***/
     },
 
-    /***/ 1288: /***/ (
+    /***/ 8448: /***/ (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
     ) => {
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 1286)
+        __webpack_require__.bind(__webpack_require__, 666)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 6673)
+        __webpack_require__.bind(__webpack_require__, 4101)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 6711)
+        __webpack_require__.bind(__webpack_require__, 8333)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 4187)
+        __webpack_require__.bind(__webpack_require__, 4987)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 6393)
+        __webpack_require__.bind(__webpack_require__, 5512)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 8393)
+        __webpack_require__.bind(__webpack_require__, 5557)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 4817)
+        __webpack_require__.bind(__webpack_require__, 4707)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 1906)
+        __webpack_require__.bind(__webpack_require__, 3542)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 3610)
+        __webpack_require__.bind(__webpack_require__, 696)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 3740)
+        __webpack_require__.bind(__webpack_require__, 7055)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 4844)
+        __webpack_require__.bind(__webpack_require__, 2792)
       );
 
       /***/
     },
 
-    /***/ 9994: /***/ () => {
+    /***/ 3409: /***/ () => {
       /***/
     },
 
-    /***/ 4355: /***/ (
+    /***/ 1589: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -496,7 +496,7 @@
       /***/
     },
 
-    /***/ 569: /***/ (
+    /***/ 3113: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -508,7 +508,7 @@
         /* harmony export */
       });
       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
-        __webpack_require__(1526);
+        __webpack_require__(2333);
 
       function RootLayout({ children }) {
         return /*#__PURE__*/ (0,
@@ -527,7 +527,7 @@
     // webpackRuntimeModules
     /******/ var __webpack_exec__ = (moduleId) =>
       __webpack_require__((__webpack_require__.s = moduleId));
-    /******/ __webpack_require__.O(0, [391, 879], () => __webpack_exec__(687));
+    /******/ __webpack_require__.O(0, [756, 459], () => __webpack_exec__(2794));
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ (_ENTRIES = typeof _ENTRIES === "undefined" ? {} : _ENTRIES)[
       "middleware_app/app-edge-ssr/page"
Diff for middleware.js

Diff too large to display

Diff for edge-ssr.js

Diff too large to display

Diff for image-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [8358],
   {
-    /***/ 1698: /***/ (
+    /***/ 6994: /***/ (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/image",
         function () {
-          return __webpack_require__(3215);
+          return __webpack_require__(9659);
         },
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 2614: /***/ (module, exports, __webpack_require__) => {
+    /***/ 1887: /***/ (module, exports, __webpack_require__) => {
       "use strict";
       /* __next_internal_client_entry_do_not_use__  cjs */
       Object.defineProperty(exports, "__esModule", {
@@ -40,17 +40,17 @@
         __webpack_require__(2480)
       );
       const _head = /*#__PURE__*/ _interop_require_default._(
-        __webpack_require__(4630)
+        __webpack_require__(3205)
       );
-      const _getimgprops = __webpack_require__(5719);
-      const _imageconfig = __webpack_require__(3910);
-      const _imageconfigcontextsharedruntime = __webpack_require__(838);
-      const _warnonce = __webpack_require__(148);
-      const _routercontextsharedruntime = __webpack_require__(3788);
+      const _getimgprops = __webpack_require__(3170);
+      const _imageconfig = __webpack_require__(6981);
+      const _imageconfigcontextsharedruntime = __webpack_require__(3295);
+      const _warnonce = __webpack_require__(8237);
+      const _routercontextsharedruntime = __webpack_require__(9066);
       const _imageloader = /*#__PURE__*/ _interop_require_default._(
-        __webpack_require__(342)
+        __webpack_require__(4819)
       );
-      const _usemergedref = __webpack_require__(8457);
+      const _usemergedref = __webpack_require__(9103);
       // This is replaced by webpack define plugin
       const configEnv = {
         deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
@@ -371,7 +371,7 @@
       /***/
     },
 
-    /***/ 8457: /***/ (module, exports, __webpack_require__) => {
+    /***/ 9103: /***/ (module, exports, __webpack_require__) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -440,7 +440,7 @@
       /***/
     },
 
-    /***/ 5719: /***/ (
+    /***/ 3170: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -456,9 +456,9 @@
           return getImgProps;
         },
       });
-      const _warnonce = __webpack_require__(148);
-      const _imageblursvg = __webpack_require__(2854);
-      const _imageconfig = __webpack_require__(3910);
+      const _warnonce = __webpack_require__(8237);
+      const _imageblursvg = __webpack_require__(5008);
+      const _imageconfig = __webpack_require__(6981);
       const VALID_LOADING_VALUES =
         /* unused pure expression or super */ null && [
           "lazy",
@@ -831,7 +831,7 @@
       /***/
     },
 
-    /***/ 2854: /***/ (__unused_webpack_module, exports) => {
+    /***/ 5008: /***/ (__unused_webpack_module, exports) => {
       "use strict";
       /**
        * A shared function, used on both client and server, to generate a SVG blur placeholder.
@@ -886,7 +886,7 @@
       /***/
     },
 
-    /***/ 8220: /***/ (
+    /***/ 266: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -913,10 +913,10 @@
         },
       });
       const _interop_require_default = __webpack_require__(9608);
-      const _getimgprops = __webpack_require__(5719);
-      const _imagecomponent = __webpack_require__(2614);
+      const _getimgprops = __webpack_require__(3170);
+      const _imagecomponent = __webpack_require__(1887);
       const _imageloader = /*#__PURE__*/ _interop_require_default._(
-        __webpack_require__(342)
+        __webpack_require__(4819)
       );
       function getImageProps(imgProps) {
         const { props } = (0, _getimgprops.getImgProps)(imgProps, {
@@ -948,7 +948,7 @@
       /***/
     },
 
-    /***/ 342: /***/ (__unused_webpack_module, exports) => {
+    /***/ 4819: /***/ (__unused_webpack_module, exports) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -983,7 +983,7 @@
       /***/
     },
 
-    /***/ 3215: /***/ (
+    /***/ 9659: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -1000,8 +1000,8 @@
 
       // EXTERNAL MODULE: ./node_modules/.pnpm/react@19.0.0-rc-e4953922-20240919/node_modules/react/jsx-runtime.js
       var jsx_runtime = __webpack_require__(3860);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_xtwfyocev7s6zv2ianvu3guut4/node_modules/next/image.js
-      var next_image = __webpack_require__(5065);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-e4953922-20240919_re_c32de4smwbnuuisztjqlqwuynm/node_modules/next/image.js
+      var next_image = __webpack_require__(3007);
       var image_default = /*#__PURE__*/ __webpack_require__.n(next_image); // CONCATENATED MODULE: ./pages/nextjs.png
       /* harmony default export */ const nextjs = {
         src: "/_next/static/media/nextjs.cae0b805.png",
@@ -1031,12 +1031,12 @@
       /***/
     },
 
-    /***/ 5065: /***/ (
+    /***/ 3007: /***/ (
       module,
       __unused_webpack_exports,
       __webpack_require__
     ) => {
-      module.exports = __webpack_require__(8220);
+      module.exports = __webpack_require__(266);
 
       /***/
     },
@@ -1046,7 +1046,7 @@
     /******/ var __webpack_exec__ = (moduleId) =>
       __webpack_require__((__webpack_require__.s = moduleId));
     /******/ __webpack_require__.O(0, [2888, 9774, 179], () =>
-      __webpack_exec__(1698)
+      __webpack_exec__(6994)
     );
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for 1144-HASH.js

Diff too large to display

Diff for main-HASH.js

Diff too large to display

Commit: b956d91

}

if (data.version) {
if (compareVersions(data.version, '15.0.0-canary') >= 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this run even if I'm already on turbopack?

Copy link
Member

@elsigh elsigh Sep 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also should we look for the experimental.turbo bit in next.config.ts/js?

Also.. for rc/next 15 should it even be experimental.turbo anymore cc @timneutkens aka not really experimental, but we probably still need the matching webpack config bit for builds?

@LichuAcu LichuAcu force-pushed the 09-10-_next_upgrade_package branch from 8c99378 to 278e4bb Compare September 10, 2024 21:01
type: 'confirm',
name: 'enable',
message:
'Turbopack is stable for dev mode in this Next.js version. Do you want to enable it?',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this text too long. Any ideas on a shorter version? @elsigh

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Turbopack is now the stable default for dev mode. Enable it?"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also talked about checking for webpack custom key/config in next.config and encouraging folks to go prompt v0.dev/chat to rewrite it in the meantime (worked for my raw-loader case)

Copy link

socket-security bot commented Sep 10, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@LichuAcu LichuAcu force-pushed the 09-10-_next_upgrade_package branch 3 times, most recently from aebfe28 to e917380 Compare September 10, 2024 22:21
{
title: 'Canary',
value: 'canary',
description: 'Latest in-development version',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bgw @elsigh thoughts on these descriptions?

Copy link
Member

@elsigh elsigh Sep 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sent you what AI said ;)

Stable:
"Recommended for Production”
Release Candidate (RC):
“Pre-release version for final testing”
Canary:
“Experimental build with latest features”

@LichuAcu LichuAcu force-pushed the 09-10-_next_upgrade_package branch from e917380 to f9ebb71 Compare September 10, 2024 23:14
@LichuAcu LichuAcu force-pushed the 09-10-_next_upgrade_package branch from f9ebb71 to 7645dee Compare September 11, 2024 01:41
@darthmaim
Copy link
Contributor

darthmaim commented Sep 11, 2024

This package is a cool idea, here are some thoughts I have about it:

  • It would be nice if this would also upgrade other next packages like eslint-config-next.
  • When upgrading a major (or also minor?) version, the tool should link to the changelog/blog post/... with the breaking changes.
  • Can this prompt to run relevant codemods after upgrading?
  • When using typescript, @types/react and @types/react-dom should probably also be upgraded.
  • The current canaries/RC require to also override @types/react(-dom) to types-react(-dom), see React 19 RC Upgrade Guide. Could this also add these overrides (depending on package manager) to the package.json (and maybe remove them once they are no longer required)? Maybe the tool could at least print a warning, that these also have to be manually adjusted when not using a stable react version.

@bgw
Copy link
Member

bgw commented Sep 16, 2024

Thanks for your feedback, @darthmaim! We've already been thinking about some of these, but the typescript packages are a good callout in particular; that's not something I've personally thought about.

The goal right now is to get something really simple out, so that we start using it as our primary call-to-action (npx @next/upgrade) when we make blog and social media posts (instead of telling users to run something messier like pnpm i next@rc react@rc react-dom@rc), and then we can iterate on it.

Upgrading ecosystem packages, running codemods, and linking to changelogs are absolutely all on the table for potential future iterations, though it may take us some time to get there. Hopefully this should also be something that's really easy for users and ecosystem partners to contribute to as well. Let us know if you want to submit PRs to this and we can coordinate.

packages/next-upgrade/index.ts Outdated Show resolved Hide resolved
Comment on lines 126 to 128
appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, 'utf8'))
appPackageJson.dependencies['next'] = targetVersionSpecifier
fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this already happen as part of updateCommand? Do we really need to modify package.json ourselves as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm doing this so that package.json ends up, for example, with "next": "canary" instead of "next": "15.0.0-canary.156", so the user doesn't get stuck in a specific version Next.js version. When running pnpm update next@canary, pnpm will unfortunately write the specific version it used to the package.json.

I don't know how big of an issue it is if the package.json ends up with "next": "15.0.0-canary.156". Not having to manually modify package.json is definitely good.

packages/next-upgrade/index.ts Outdated Show resolved Hide resolved
packages/next-upgrade/index.ts Outdated Show resolved Hide resolved
packages/next-upgrade/index.ts Outdated Show resolved Hide resolved
packages/next-upgrade/index.ts Outdated Show resolved Hide resolved
packages/next-upgrade/version.json Outdated Show resolved Hide resolved

Upgrade Next.js apps to newer or beta versions with one command.

# Build
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this is a second h1 (#) aside from the top one.

Also might be worth mentioning the consumer-oriented npx command near the top and then build instructions for contributors as a secondary thing below it in the README.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following a basic one-line of use, it may also be worthwhile having a ## Why? section explaining why the package exists. i.e. explaining that updating Next isn't just merely pnpm update next, that there are React dependencies, etc.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated now!

@LichuAcu LichuAcu force-pushed the 09-10-_next_upgrade_package branch from b6aa105 to 18c4466 Compare September 17, 2024 00:32
@LichuAcu LichuAcu force-pushed the 09-10-_next_upgrade_package branch from d7dccf2 to 11f576c Compare September 18, 2024 00:47
@LichuAcu LichuAcu force-pushed the 09-10-_next_upgrade_package branch from 11f576c to d87a1ef Compare September 18, 2024 01:00
if (!targetNextPackageJson) {
let nextPackageJson: { [key: string]: any } = {}
try {
const resCanary = await fetch(`https://registry.npmjs.org/next/canary`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider user's registry?
Possible case of using private registry or yarn has it's own (https://registry.yarnpkg.com).
x-ref: https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/helpers/get-registry.ts

Suggest using @next/codemods when available
@devjiwonchoi devjiwonchoi changed the title @next/upgrade package feat(next-codemod): add upgrade command Sep 24, 2024
@devjiwonchoi devjiwonchoi marked this pull request as ready for review September 24, 2024 08:17
packages/next-codemod/bin/upgrade.ts Outdated Show resolved Hide resolved
packages/next-codemod/bin/upgrade.ts Outdated Show resolved Hide resolved
packages/next-codemod/lib/codemods.ts Show resolved Hide resolved
@devjiwonchoi devjiwonchoi requested a review from huozhi September 24, 2024 09:58
Copy link
Member

@huozhi huozhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's create the availableCodemods with the existing const in later refactors, and add soeme tests 👍

@devjiwonchoi devjiwonchoi enabled auto-merge (squash) September 24, 2024 10:04
@devjiwonchoi devjiwonchoi merged commit 5622c58 into canary Sep 24, 2024
101 of 106 checks passed
@devjiwonchoi devjiwonchoi deleted the 09-10-_next_upgrade_package branch September 24, 2024 10:08
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants