Skip to content

Commit 46082ac

Browse files
authored
Merge branch 'canary' into fix/500_response_status
2 parents 6ed114f + 4e435e2 commit 46082ac

File tree

56 files changed

+976
-716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+976
-716
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/02-app/01-building-your-application/06-optimizing/03-scripts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ This script will load and execute when _any_ route in your application is access
114114
115115
### Strategy
116116

117-
Although the default behavior of `next/script` allows you load third-party scripts in any page or layout, you can fine-tune its loading behavior by using the `strategy` property:
117+
Although the default behavior of `next/script` allows you to load third-party scripts in any page or layout, you can fine-tune its loading behavior by using the `strategy` property:
118118

119119
- `beforeInteractive`: Load the script before any Next.js code and before any page hydration occurs.
120120
- `afterInteractive`: (**default**) Load the script early but after some hydration on the page occurs.

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"registry": "https://registry.npmjs.org/"
1717
}
1818
},
19-
"version": "13.5.5-canary.16"
19+
"version": "13.5.5-canary.17"
2020
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@babel/plugin-proposal-object-rest-spread": "7.14.7",
6767
"@babel/preset-flow": "7.14.5",
6868
"@babel/preset-react": "7.14.5",
69-
"@edge-runtime/jest-environment": "2.3.0",
69+
"@edge-runtime/jest-environment": "2.3.4",
7070
"@emotion/cache": "11.11.0",
7171
"@emotion/react": "11.11.1",
7272
"@fullhuman/postcss-purgecss": "1.3.0",

packages/create-next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-next-app",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"keywords": [
55
"react",
66
"next",

packages/eslint-config-next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-next",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"description": "ESLint configuration used by Next.js.",
55
"main": "index.js",
66
"license": "MIT",
@@ -10,7 +10,7 @@
1010
},
1111
"homepage": "https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-config",
1212
"dependencies": {
13-
"@next/eslint-plugin-next": "13.5.5-canary.16",
13+
"@next/eslint-plugin-next": "13.5.5-canary.17",
1414
"@rushstack/eslint-patch": "^1.3.3",
1515
"@typescript-eslint/parser": "^5.4.2 || ^6.0.0",
1616
"eslint-import-resolver-node": "^0.3.6",

packages/eslint-plugin-next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next/eslint-plugin-next",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"description": "ESLint plugin for Next.js.",
55
"main": "dist/index.js",
66
"license": "MIT",

packages/font/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next/font",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"repository": {
55
"url": "vercel/next.js",
66
"directory": "packages/font"

packages/next-bundle-analyzer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next/bundle-analyzer",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"main": "index.js",
55
"types": "index.d.ts",
66
"license": "MIT",

packages/next-codemod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next/codemod",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

packages/next-env/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next/env",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"keywords": [
55
"react",
66
"next",

packages/next-mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next/mdx",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"main": "index.js",
55
"license": "MIT",
66
"repository": {

packages/next-plugin-storybook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next/plugin-storybook",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"repository": {
55
"url": "vercel/next.js",
66
"directory": "packages/next-plugin-storybook"

packages/next-polyfill-module/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next/polyfill-module",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)",
55
"main": "dist/polyfill-module.js",
66
"license": "MIT",

packages/next-polyfill-nomodule/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next/polyfill-nomodule",
3-
"version": "13.5.5-canary.16",
3+
"version": "13.5.5-canary.17",
44
"description": "A polyfill for non-dead, nomodule browsers.",
55
"main": "dist/polyfill-nomodule.js",
66
"license": "MIT",

packages/next-swc/crates/core/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ either = "1"
1515
fxhash = "0.2.1"
1616
hex = "0.4.3"
1717
once_cell = { workspace = true }
18-
next-transform-font = {workspace = true}
1918
pathdiff = "0.2.0"
2019
regex = "1.5"
2120
rustc-hash = "1"
@@ -24,6 +23,9 @@ serde_json = "1"
2423
sha1 = "0.10.1"
2524
tracing = { version = "0.1.37" }
2625

26+
next-transform-dynamic = { workspace = true }
27+
next-transform-font = { workspace = true }
28+
2729
turbopack-binding = { workspace = true, features = [
2830
"__swc_core",
2931
"__swc_core_next_core",

packages/next-swc/crates/core/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ use std::{cell::RefCell, path::PathBuf, rc::Rc, sync::Arc};
3737
use auto_cjs::contains_cjs;
3838
use either::Either;
3939
use fxhash::FxHashSet;
40+
use next_transform_dynamic::{next_dynamic, NextDynamicMode};
4041
use next_transform_font::next_font_loaders;
4142
use serde::Deserialize;
4243
use turbopack_binding::swc::{
@@ -58,7 +59,6 @@ mod auto_cjs;
5859
pub mod cjs_optimizer;
5960
pub mod disallow_re_export_all_in_page;
6061
pub mod named_import_transform;
61-
pub mod next_dynamic;
6262
pub mod next_ssg;
6363
pub mod optimize_barrel;
6464
pub mod optimize_server_react;
@@ -226,7 +226,7 @@ where
226226
!opts.disable_next_ssg
227227
),
228228
amp_attributes::amp_attributes(),
229-
next_dynamic::next_dynamic(
229+
next_dynamic(
230230
opts.is_development,
231231
opts.is_server,
232232
match &opts.server_components {
@@ -238,6 +238,7 @@ where
238238
},
239239
_ => false,
240240
},
241+
NextDynamicMode::Webpack,
241242
file.name.clone(),
242243
opts.pages_dir.clone()
243244
),

0 commit comments

Comments
 (0)