Skip to content

Commit a8d4eb1

Browse files
authored
Merge branch 'canary' into patch-1
2 parents 3ff2f84 + 1fd93ee commit a8d4eb1

File tree

239 files changed

+6888
-3440
lines changed

Some content is hidden

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

239 files changed

+6888
-3440
lines changed

.cargo/config.toml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@
22
CARGO_WORKSPACE_DIR = { value = "", relative = true }
33

44
[build]
5-
5+
rustflags = [
6+
"--cfg",
7+
"tokio_unstable",
8+
"-Zshare-generics=y", # make the current crate share its generic instantiations
9+
"-Zthreads=8", # parallel frontend https://blog.rust-lang.org/2023/11/09/parallel-rustc.html
10+
"-Csymbol-mangling-version=v0",
11+
]
612
rustdocflags = []
713

814
[target.x86_64-pc-windows-msvc]
915
linker = "rust-lld"
1016
rustflags = ["-C", "target-feature=+crt-static"]
17+
1118
[target.i686-pc-windows-msvc]
1219
rustflags = ["-C", "target-feature=+crt-static"]
1320

21+
[target.aarch64-apple-darwin]
22+
linker = "rust-lld"
23+
1424
[target.aarch64-unknown-linux-gnu]
1525
linker = "aarch64-linux-gnu-gcc"
1626

@@ -27,11 +37,3 @@ rustflags = [
2737

2838
[target.armv7-unknown-linux-gnueabihf]
2939
linker = "arm-linux-gnueabihf-gcc"
30-
31-
[target.'cfg(all())']
32-
rustflags = [
33-
"--cfg",
34-
"tokio_unstable",
35-
"-Zshare-generics=y",
36-
"-Csymbol-mangling-version=v0",
37-
]

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ test/development/basic/hmr/components/parse-error.js
4242
packages/next-swc/docs/assets/**/*
4343
test/lib/amp-validator-wasm.js
4444
test/production/pages-dir/production/fixture/amp-validator-wasm.js
45+
test/e2e/async-modules/amp-validator-wasm.js

.github/ISSUE_TEMPLATE/1.bug_report.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug Report
22
description: Create a bug report for the Next.js core
3-
labels: ['template: bug']
3+
labels: ['bug']
44
body:
55
- type: markdown
66
attributes:
@@ -71,29 +71,30 @@ body:
7171
multiple: true
7272
options:
7373
- 'Not sure'
74-
- 'App Router'
75-
- 'CLI (create-next-app)'
76-
- 'Data fetching (gS(S)P, getInitialProps)'
77-
- 'Dynamic imports (next/dynamic)'
78-
- 'ESLint (eslint-config-next)'
79-
- 'Font optimization (next/font)'
80-
- 'Image optimization (next/image, next/legacy/image)'
74+
- 'create-next-app'
75+
- 'Documentation'
76+
- 'Lazy Loading'
77+
- 'Font (next/font)'
78+
- 'Image (next/image)'
79+
- 'Instrumentation'
8180
- 'Internationalization (i18n)'
82-
- 'Jest (next/jest)'
83-
- 'MDX (@next/mdx)'
84-
- 'Metadata (metadata, generateMetadata, next/head)'
85-
- 'Middleware / Edge (API routes, runtime)'
86-
- 'Module resolution (CJS / ESM, module resolving)'
87-
- 'Operating System (Windows, MacOS, Linux)'
88-
- 'Package manager (npm, pnpm, Yarn)'
89-
- 'Routing (next/router, next/navigation, next/link)'
90-
- 'Script optimization (next/script)'
91-
- 'Standalone mode (output: "standalone")'
92-
- 'Static HTML Export (output: "export")'
93-
- 'SWC minifier (swcMinify: true)'
94-
- 'SWC transpilation'
95-
- 'Turbopack (--turbo)'
96-
- 'TypeScript (plugin, built-in types)'
81+
- 'Linting'
82+
- 'Markdown (MDX)'
83+
- 'Metadata'
84+
- 'Middleware'
85+
- 'Output (export/standalone)'
86+
- 'Pages Router'
87+
- 'Parallel & Intercepting Routes'
88+
- 'Partial Prerendering (PPR)'
89+
- 'Performance'
90+
- 'Runtime'
91+
- 'Script (next/script)'
92+
- 'Testing'
93+
- 'Turbopack'
94+
- 'TypeScript'
95+
- 'SWC'
96+
- 'Upstream'
97+
9798
validations:
9899
required: true
99100
- type: dropdown

.github/ISSUE_TEMPLATE/2.example_bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug Report for Examples
22
description: Create a bug report for one of the Next.js examples
3-
labels: ['area: examples']
3+
labels: ['example bug']
44
body:
55
- type: markdown
66
attributes:

.github/ISSUE_TEMPLATE/4.docs_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'Docs Request for an Update or Improvement'
22
description: A request to update or improve Next.js documentation
33
title: 'Docs: '
44
labels:
5-
- 'template: documentation'
5+
- 'Documentation'
66
body:
77
- type: markdown
88
attributes:

.github/actions/next-integration-stat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"engines": {
2424
"node": ">=18.17.0",
25-
"pnpm": "8.15.4"
25+
"pnpm": "8.15.7"
2626
},
27-
"packageManager": "pnpm@8.15.4"
27+
"packageManager": "pnpm@8.15.7"
2828
}

.github/actions/next-stats-action/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"engines": {
2121
"node": ">=18.17.0",
22-
"pnpm": "8.15.4"
22+
"pnpm": "8.15.7"
2323
},
24-
"packageManager": "pnpm@8.15.4"
24+
"packageManager": "pnpm@8.15.7"
2525
}

.github/actions/setup-rust/action.yml

Lines changed: 5 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,61 +4,17 @@ inputs:
44
targets:
55
description: 'Comma-separated list of target triples to install for this toolchain'
66
required: false
7-
components:
8-
description: 'Comma-separated list of components to be additionally installed'
9-
required: false
10-
skip-install:
11-
description: 'Sets environment variables without installing the rust toolchain'
12-
required: false
137

148
runs:
159
using: 'composite'
1610
steps:
17-
- name: 'Get toolchain version from file'
18-
id: file
19-
shell: bash
20-
run: echo "toolchain=$(cat ./rust-toolchain)" >> $GITHUB_OUTPUT
21-
22-
- shell: bash
23-
run: |
24-
: force toolchain version
25-
echo "RUST_TOOLCHAIN=${{ steps.file.outputs.toolchain }}" >> $GITHUB_ENV
26-
27-
- shell: bash
28-
run: |
29-
: disable incremental compilation
30-
if [ -z "${CARGO_INCREMENTAL+set}" ]; then
31-
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
32-
fi
33-
34-
- shell: bash
35-
run: |
36-
: enable colors in Cargo output
37-
if [ -z "${CARGO_TERM_COLOR+set}" ]; then
38-
echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
39-
fi
40-
41-
- shell: bash
42-
run: |
43-
: enable rust backtrace
44-
if [ -z "${RUST_BACKTRACE+set}" ]; then
45-
echo RUST_BACKTRACE=short >> $GITHUB_ENV
46-
fi
47-
48-
- shell: bash
49-
run: |
50-
: enable faster cargo sparse registry
51-
if [ -z "${CARGO_REGISTRIES_CRATES_IO_PROTOCOL+set}" ]; then
52-
echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
53-
fi
54-
5511
- name: 'Setup Rust toolchain'
56-
uses: dtolnay/rust-toolchain@master
57-
if: ${{ !inputs.skip-install }}
12+
uses: actions-rust-lang/setup-rust-toolchain@v1
5813
with:
59-
toolchain: ${{ steps.file.outputs.toolchain }}
60-
targets: ${{ inputs.targets }}
61-
components: ${{ inputs.components }}
14+
target: ${{ inputs.targets }}
15+
# needed to not make it override the defaults
16+
rustflags: ''
17+
cache: false
6218

6319
- name: 'Add cargo problem matchers'
6420
shell: bash

.github/actions/upload-turboyet-data/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"engines": {
1515
"node": ">=18.17.0",
16-
"pnpm": "8.15.4"
16+
"pnpm": "8.15.7"
1717
},
18-
"packageManager": "pnpm@8.15.4"
18+
"packageManager": "pnpm@8.15.7"
1919
}

.github/labeler.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"labels": {
3-
"area: create-next-app": ["packages/create-next-app/**"],
4-
"area: documentation": ["docs/**", "errors/**"],
5-
"area: examples": ["examples/**"],
6-
"area: Font Optimization": ["**/*font*"],
7-
"area: tests": ["test/**", "bench/**"],
8-
"area: Turbopack": ["packages/next-swc/crates/next-*/**"],
3+
"create-next-app": ["packages/create-next-app/**"],
4+
"documentation": ["docs/**", "errors/**"],
5+
"examples": ["examples/**"],
6+
"Font (next/font)": ["**/*font*"],
7+
"tests": ["test/**", "bench/**"],
8+
"Turbopack": ["packages/next-swc/crates/next-*/**"],
99
"created-by: Chrome Aurora": [
1010
{ "type": "user", "pattern": "atcastle" },
1111
{ "type": "user", "pattern": "devknoll" },
@@ -46,7 +46,7 @@
4646
{ "type": "user", "pattern": "timeyoutakeit" },
4747
{ "type": "user", "pattern": "manovotny" }
4848
],
49-
"created-by: turbopack team": [
49+
"created-by: Turbopack team": [
5050
{ "type": "user", "pattern": "bgw" },
5151
{ "type": "user", "pattern": "ForsakenHarmony" },
5252
{ "type": "user", "pattern": "kdy1" },
@@ -65,7 +65,6 @@
6565
"packages/next-mdx/**",
6666
"packages/next-swc/**",
6767
"packages/next/**",
68-
"packages/react-dev-overlay/**",
6968
"packages/react-refresh-utils/**"
7069
]
7170
}

0 commit comments

Comments
 (0)