diff --git a/docs/02-app/01-building-your-application/03-rendering/04-edge-and-nodejs-runtimes.mdx b/docs/02-app/01-building-your-application/03-rendering/04-edge-and-nodejs-runtimes.mdx index 728132ad54207..47af2cd566132 100644 --- a/docs/02-app/01-building-your-application/03-rendering/04-edge-and-nodejs-runtimes.mdx +++ b/docs/02-app/01-building-your-application/03-rendering/04-edge-and-nodejs-runtimes.mdx @@ -16,18 +16,18 @@ On the server, there are two runtimes where parts of your application code can b There are many considerations to make when choosing a runtime. This table shows the major differences at a glance. If you want a more in-depth analysis of the differences, check out the sections below. -| | Node | Serverless | Edge | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ---------- | ---------------- | -| [Cold Boot](https://vercel.com/docs/concepts/get-started/compute#cold-and-hot-boots?utm_source=next-site&utm_medium=docs&utm_campaign=next-website) | / | ~250ms | Instant | -| [HTTP Streaming](/docs/app/building-your-application/routing/loading-ui-and-streaming) | Yes | Yes | Yes | -| IO | All | All | `fetch` | -| Scalability | / | High | Highest | -| Security | Normal | High | High | -| Latency | Normal | Low | Lowest | -| npm Packages | All | All | A smaller subset | -| [Static Rendering](/docs/app/building-your-application/rendering/server-components#static-rendering-default) | Yes | Yes | No | -| [Dynamic Rendering](/docs/app/building-your-application/rendering/server-components#dynamic-rendering) | Yes | Yes | Yes | -| [Data Revalidation w/ `fetch`](/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#revalidating-data) | Yes | Yes | Yes | +| | Node | Serverless | Edge | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------ | ---------- | ---------------- | +| Cold Boot | / | Normal | Low | +| [HTTP Streaming](/docs/app/building-your-application/routing/loading-ui-and-streaming) | Yes | Yes | Yes | +| IO | All | All | `fetch` | +| Scalability | / | High | Highest | +| Security | Normal | High | High | +| Latency | Normal | Low | Lowest | +| npm Packages | All | All | A smaller subset | +| [Static Rendering](/docs/app/building-your-application/rendering/server-components#static-rendering-default) | Yes | Yes | No | +| [Dynamic Rendering](/docs/app/building-your-application/rendering/server-components#dynamic-rendering) | Yes | Yes | Yes | +| [Data Revalidation w/ `fetch`](/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#revalidating-data) | Yes | Yes | Yes | ### Edge Runtime diff --git a/docs/02-app/01-building-your-application/07-configuring/03-environment-variables.mdx b/docs/02-app/01-building-your-application/07-configuring/03-environment-variables.mdx index 41b6815eaa1a9..b19c7573d628f 100644 --- a/docs/02-app/01-building-your-application/07-configuring/03-environment-variables.mdx +++ b/docs/02-app/01-building-your-application/07-configuring/03-environment-variables.mdx @@ -158,7 +158,7 @@ export default function Component() { **Good to know:** -- You can run code on server startup using the `[register` function](/docs/app/building-your-application/optimizing/instrumentation). +- You can run code on server startup using the [`register` function](/docs/app/building-your-application/optimizing/instrumentation). - We do not recommend using the [runtimeConfig](/docs/pages/api-reference/next-config-js/runtime-configuration) option, as this does not work with the standalone output mode. Instead, we recommend [incrementally adopting](/docs/app/building-your-application/upgrading/app-router-migration) the App Router. ## Default Environment Variables diff --git a/lerna.json b/lerna.json index 13a45608004f8..d997a839ce032 100644 --- a/lerna.json +++ b/lerna.json @@ -16,5 +16,5 @@ "registry": "https://registry.npmjs.org/" } }, - "version": "14.0.3-canary.4" + "version": "14.0.3-canary.5" } diff --git a/packages/create-next-app/package.json b/packages/create-next-app/package.json index 53e6292048da6..1576724f031ba 100644 --- a/packages/create-next-app/package.json +++ b/packages/create-next-app/package.json @@ -1,6 +1,6 @@ { "name": "create-next-app", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "keywords": [ "react", "next", diff --git a/packages/eslint-config-next/package.json b/packages/eslint-config-next/package.json index 6d488ab783073..cd623429b536b 100644 --- a/packages/eslint-config-next/package.json +++ b/packages/eslint-config-next/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-next", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "description": "ESLint configuration used by Next.js.", "main": "index.js", "license": "MIT", @@ -10,7 +10,7 @@ }, "homepage": "https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-config", "dependencies": { - "@next/eslint-plugin-next": "14.0.3-canary.4", + "@next/eslint-plugin-next": "14.0.3-canary.5", "@rushstack/eslint-patch": "^1.3.3", "@typescript-eslint/parser": "^5.4.2 || ^6.0.0", "eslint-import-resolver-node": "^0.3.6", diff --git a/packages/eslint-plugin-next/package.json b/packages/eslint-plugin-next/package.json index 7bb0c0234b191..409e3943832e7 100644 --- a/packages/eslint-plugin-next/package.json +++ b/packages/eslint-plugin-next/package.json @@ -1,6 +1,6 @@ { "name": "@next/eslint-plugin-next", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "description": "ESLint plugin for Next.js.", "main": "dist/index.js", "license": "MIT", diff --git a/packages/font/package.json b/packages/font/package.json index 2d8f336922691..a6688d41a62d6 100644 --- a/packages/font/package.json +++ b/packages/font/package.json @@ -1,6 +1,6 @@ { "name": "@next/font", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "repository": { "url": "vercel/next.js", "directory": "packages/font" diff --git a/packages/next-bundle-analyzer/package.json b/packages/next-bundle-analyzer/package.json index c7aac3842e5d5..303b12688c6ce 100644 --- a/packages/next-bundle-analyzer/package.json +++ b/packages/next-bundle-analyzer/package.json @@ -1,6 +1,6 @@ { "name": "@next/bundle-analyzer", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "main": "index.js", "types": "index.d.ts", "license": "MIT", diff --git a/packages/next-codemod/package.json b/packages/next-codemod/package.json index ea635bcf1be8c..68de7791d6941 100644 --- a/packages/next-codemod/package.json +++ b/packages/next-codemod/package.json @@ -1,6 +1,6 @@ { "name": "@next/codemod", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "license": "MIT", "repository": { "type": "git", diff --git a/packages/next-env/package.json b/packages/next-env/package.json index 0cab1d6b9e40d..2618c6cc5dea1 100644 --- a/packages/next-env/package.json +++ b/packages/next-env/package.json @@ -1,6 +1,6 @@ { "name": "@next/env", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "keywords": [ "react", "next", diff --git a/packages/next-mdx/package.json b/packages/next-mdx/package.json index 7287140a93bf8..b47848c4f6d9e 100644 --- a/packages/next-mdx/package.json +++ b/packages/next-mdx/package.json @@ -1,6 +1,6 @@ { "name": "@next/mdx", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "main": "index.js", "license": "MIT", "repository": { diff --git a/packages/next-plugin-storybook/package.json b/packages/next-plugin-storybook/package.json index 7179d4cc373bd..34143d0ce8115 100644 --- a/packages/next-plugin-storybook/package.json +++ b/packages/next-plugin-storybook/package.json @@ -1,6 +1,6 @@ { "name": "@next/plugin-storybook", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "repository": { "url": "vercel/next.js", "directory": "packages/next-plugin-storybook" diff --git a/packages/next-polyfill-module/package.json b/packages/next-polyfill-module/package.json index e93d63d2c0a95..9fc273d171330 100644 --- a/packages/next-polyfill-module/package.json +++ b/packages/next-polyfill-module/package.json @@ -1,6 +1,6 @@ { "name": "@next/polyfill-module", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)", "main": "dist/polyfill-module.js", "license": "MIT", diff --git a/packages/next-polyfill-nomodule/package.json b/packages/next-polyfill-nomodule/package.json index d12535b1794f3..eabc70bd9405d 100644 --- a/packages/next-polyfill-nomodule/package.json +++ b/packages/next-polyfill-nomodule/package.json @@ -1,6 +1,6 @@ { "name": "@next/polyfill-nomodule", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "description": "A polyfill for non-dead, nomodule browsers.", "main": "dist/polyfill-nomodule.js", "license": "MIT", diff --git a/packages/next-swc/package.json b/packages/next-swc/package.json index eca692e910007..7fbc045250f59 100644 --- a/packages/next-swc/package.json +++ b/packages/next-swc/package.json @@ -1,6 +1,6 @@ { "name": "@next/swc", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "private": true, "scripts": { "clean": "node ../../scripts/rm.mjs native", diff --git a/packages/next/package.json b/packages/next/package.json index b8823684d7f29..798e92941f29a 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -1,6 +1,6 @@ { "name": "next", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "description": "The React Framework", "main": "./dist/server/next.js", "license": "MIT", @@ -92,7 +92,7 @@ ] }, "dependencies": { - "@next/env": "14.0.3-canary.4", + "@next/env": "14.0.3-canary.5", "@swc/helpers": "0.5.2", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001406", @@ -146,11 +146,11 @@ "@mswjs/interceptors": "0.23.0", "@napi-rs/cli": "2.16.2", "@napi-rs/triples": "1.1.0", - "@next/polyfill-module": "14.0.3-canary.4", - "@next/polyfill-nomodule": "14.0.3-canary.4", - "@next/react-dev-overlay": "14.0.3-canary.4", - "@next/react-refresh-utils": "14.0.3-canary.4", - "@next/swc": "14.0.3-canary.4", + "@next/polyfill-module": "14.0.3-canary.5", + "@next/polyfill-nomodule": "14.0.3-canary.5", + "@next/react-dev-overlay": "14.0.3-canary.5", + "@next/react-refresh-utils": "14.0.3-canary.5", + "@next/swc": "14.0.3-canary.5", "@opentelemetry/api": "1.6.0", "@playwright/test": "^1.35.1", "@taskr/clear": "1.1.0", diff --git a/packages/next/src/build/webpack/plugins/wellknown-errors-plugin/index.ts b/packages/next/src/build/webpack/plugins/wellknown-errors-plugin/index.ts index ffe51e0e99e7d..55bc1c3609974 100644 --- a/packages/next/src/build/webpack/plugins/wellknown-errors-plugin/index.ts +++ b/packages/next/src/build/webpack/plugins/wellknown-errors-plugin/index.ts @@ -14,7 +14,7 @@ export class WellKnownErrorsPlugin { warn.name === 'ModuleDependencyWarning' && warn.module.context?.includes('node_modules') ) { - delete compilation.warnings[i] + compilation.warnings.splice(i, 1) } }) ) diff --git a/packages/next/src/server/config.ts b/packages/next/src/server/config.ts index 58ecb824f6bc5..0fa4663b8dc6b 100644 --- a/packages/next/src/server/config.ts +++ b/packages/next/src/server/config.ts @@ -792,7 +792,7 @@ function assignDefaults( }, }, antd: { - transform: 'antd/lib/{{kebabCase member}}', + transform: 'antd/es/{{kebabCase member}}', }, ahooks: { transform: { diff --git a/packages/react-dev-overlay/package.json b/packages/react-dev-overlay/package.json index 37b784fde5086..413c45239b646 100644 --- a/packages/react-dev-overlay/package.json +++ b/packages/react-dev-overlay/package.json @@ -1,6 +1,6 @@ { "name": "@next/react-dev-overlay", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "description": "A development-only overlay for developing React applications.", "repository": { "url": "vercel/next.js", diff --git a/packages/react-refresh-utils/package.json b/packages/react-refresh-utils/package.json index c60440c8f8b78..71b587ac5d6a2 100644 --- a/packages/react-refresh-utils/package.json +++ b/packages/react-refresh-utils/package.json @@ -1,6 +1,6 @@ { "name": "@next/react-refresh-utils", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "description": "An experimental package providing utilities for React Refresh.", "repository": { "url": "vercel/next.js", diff --git a/packages/third-parties/package.json b/packages/third-parties/package.json index b5c2a3a1f0c8e..b2de4c2b22ea5 100644 --- a/packages/third-parties/package.json +++ b/packages/third-parties/package.json @@ -1,6 +1,6 @@ { "name": "@next/third-parties", - "version": "14.0.3-canary.4", + "version": "14.0.3-canary.5", "repository": { "url": "vercel/next.js", "directory": "packages/third-parties" @@ -22,7 +22,7 @@ "third-party-capital": "1.0.20" }, "devDependencies": { - "next": "14.0.3-canary.4", + "next": "14.0.3-canary.5", "outdent": "0.8.0", "prettier": "2.5.1" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 384abd9c75389..28a09b83ddd21 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -735,7 +735,7 @@ importers: packages/eslint-config-next: dependencies: '@next/eslint-plugin-next': - specifier: 14.0.3-canary.4 + specifier: 14.0.3-canary.5 version: link:../eslint-plugin-next '@rushstack/eslint-patch': specifier: ^1.3.3 @@ -800,7 +800,7 @@ importers: packages/next: dependencies: '@next/env': - specifier: 14.0.3-canary.4 + specifier: 14.0.3-canary.5 version: link:../next-env '@swc/helpers': specifier: 0.5.2 @@ -924,19 +924,19 @@ importers: specifier: 1.1.0 version: 1.1.0 '@next/polyfill-module': - specifier: 14.0.3-canary.4 + specifier: 14.0.3-canary.5 version: link:../next-polyfill-module '@next/polyfill-nomodule': - specifier: 14.0.3-canary.4 + specifier: 14.0.3-canary.5 version: link:../next-polyfill-nomodule '@next/react-dev-overlay': - specifier: 14.0.3-canary.4 + specifier: 14.0.3-canary.5 version: link:../react-dev-overlay '@next/react-refresh-utils': - specifier: 14.0.3-canary.4 + specifier: 14.0.3-canary.5 version: link:../react-refresh-utils '@next/swc': - specifier: 14.0.3-canary.4 + specifier: 14.0.3-canary.5 version: link:../next-swc '@opentelemetry/api': specifier: 1.6.0 @@ -1587,7 +1587,7 @@ importers: version: 1.0.20 devDependencies: next: - specifier: 14.0.3-canary.4 + specifier: 14.0.3-canary.5 version: link:../next outdent: specifier: 0.8.0