Skip to content

Commit 018d77a

Browse files
authored
Merge branch 'canary' into third-party-gtm-accept-object
2 parents 5453b13 + 528d397 commit 018d77a

File tree

1,313 files changed

+11634
-5095
lines changed

Some content is hidden

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

1,313 files changed

+11634
-5095
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test/production/emit-decorator-metadata/**/*.js
3434
!test/**/*.test.*
3535
test/e2e/app-dir/rsc-errors/app/swc/use-client/page.js
3636
test-timings.json
37-
packages/next-swc/crates/**
37+
crates/**
3838
bench/nested-deps/**
3939
bench/nested-deps-app-router/**
4040
bench/heavy-npm-deps/**

.eslintrc.cli.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://json.schemastore.org/eslintrc",
3+
"extends": [".eslintrc.json"],
4+
"overrides": [
5+
{
6+
// This override adds type-checked rules.
7+
"files": ["**/*.ts", "**/*.tsx"],
8+
// Linting with type-checked rules is very slow and needs a lot of memory,
9+
// so we exclude non-essential files.
10+
"excludedFiles": ["examples/**/*", "test/**/*", "**/*.d.ts"],
11+
"parserOptions": {
12+
"project": true
13+
},
14+
"rules": {
15+
// TODO: enable in follow-up PR
16+
"@typescript-eslint/no-floating-promises": "off"
17+
}
18+
}
19+
]
20+
}

.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
// This is the default eslint config that is used by IDEs. It does not use
3+
// computation-heavy type-checked rules to ensure maximum responsiveness while
4+
// writing code. In addition, there is .eslintrc.cli.json that does use
5+
// type-checked rules, and it is used when running `pnpm lint-eslint`.
6+
"$schema": "https://json.schemastore.org/eslintrc",
27
"root": true,
38
"parser": "@babel/eslint-parser",
49
"plugins": ["react", "react-hooks", "jest", "import", "jsdoc"],

.github/.react-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
19.0.0-rc-6230622a1a-20240610

.github/labeler.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"examples": ["examples/**"],
66
"Font (next/font)": ["**/*font*"],
77
"tests": ["test/**", "bench/**"],
8-
"Turbopack": ["packages/next-swc/crates/next-*/**"],
8+
"Turbopack": ["crates/next-*/**"],
99
"created-by: Chrome Aurora": [
1010
{ "type": "user", "pattern": "atcastle" },
1111
{ "type": "user", "pattern": "devknoll" },
@@ -71,6 +71,7 @@
7171
"packages/next-swc/**",
7272
"packages/next/**",
7373
"packages/react-refresh-utils/**"
74-
]
74+
],
75+
"type: react-sync": [".github/.react-version"]
7576
}
7677
}

.github/workflows/build_and_deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
env:
1111
NAPI_CLI_VERSION: 2.16.2
12-
TURBO_VERSION: 2.0.6-canary.0
12+
TURBO_VERSION: 2.0.7
1313
NODE_LTS_VERSION: 20
1414
CARGO_PROFILE_RELEASE_LTO: 'true'
1515
TURBO_TEAM: 'vercel'
@@ -111,7 +111,7 @@ jobs:
111111
- settings:
112112
target: ${{ needs.deploy-target.outputs.value == 'automated-preview' && 'i686-pc-windows-msvc' }}
113113
- settings:
114-
target: ${{ needs.deploy-target.outputs.value == 'automated-preview' && 'x86_64-pc-windows-msvc' }}
114+
target: ${{ needs.deploy-target.outputs.value == 'automated-preview' && 'aarch64-pc-windows-msvc' }}
115115
- settings:
116116
target: ${{ needs.deploy-target.outputs.value == 'automated-preview' && 'aarch64-unknown-linux-musl' }}
117117
- settings:
@@ -429,7 +429,7 @@ jobs:
429429
run: turbo run build-wasm -vvv --env-mode loose --remote-cache-timeout 90 --summarize -- --target ${{ matrix.target }}
430430

431431
- name: Add target to folder name
432-
run: '[[ -d "packages/next-swc/crates/wasm/pkg" ]] && mv packages/next-swc/crates/wasm/pkg packages/next-swc/crates/wasm/pkg-${{ matrix.target }} || ls packages/next-swc/crates/wasm'
432+
run: '[[ -d "crates/wasm/pkg" ]] && mv crates/wasm/pkg crates/wasm/pkg-${{ matrix.target }} || ls crates/wasm'
433433

434434
- name: Upload turbo summary artifact
435435
uses: actions/upload-artifact@v4
@@ -441,7 +441,7 @@ jobs:
441441
uses: actions/upload-artifact@v4
442442
with:
443443
name: wasm-binaries-${{matrix.target}}
444-
path: packages/next-swc/crates/wasm/pkg-*
444+
path: crates/wasm/pkg-*
445445

446446
deploy-tarball:
447447
if: ${{ needs.deploy-target.outputs.value != 'production' }}
@@ -486,7 +486,7 @@ jobs:
486486
with:
487487
pattern: wasm-binaries-*
488488
merge-multiple: true
489-
path: packages/next-swc/crates/wasm
489+
path: crates/wasm
490490

491491
- name: Create tarballs
492492
run: node scripts/create-preview-tarballs.js "${{ github.sha }}" "${{ runner.temp }}/preview-tarballs"
@@ -546,7 +546,7 @@ jobs:
546546
with:
547547
pattern: wasm-binaries-*
548548
merge-multiple: true
549-
path: packages/next-swc/crates/wasm
549+
path: crates/wasm
550550

551551
- run: npm i -g [email protected] # need latest version for provenance (pinning to avoid bugs)
552552
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc

.github/workflows/build_and_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
NAPI_CLI_VERSION: 2.14.7
11-
TURBO_VERSION: 2.0.6-canary.0
11+
TURBO_VERSION: 2.0.7
1212
NODE_MAINTENANCE_VERSION: 18
1313
NODE_LTS_VERSION: 20
1414
TEST_CONCURRENCY: 8
@@ -241,7 +241,7 @@ jobs:
241241

242242
uses: ./.github/workflows/build_reusable.yml
243243
with:
244-
afterBuild: rustup target add wasm32-unknown-unknown && curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh && node ./scripts/normalize-version-bump.js && turbo run build-wasm -- --target nodejs && git checkout . && mv packages/next-swc/crates/wasm/pkg packages/next-swc/crates/wasm/pkg-nodejs && node ./scripts/setup-wasm.mjs && NEXT_TEST_MODE=start TEST_WASM=true node run-tests.js test/production/pages-dir/production/test/index.test.ts test/e2e/streaming-ssr/index.test.ts
244+
afterBuild: rustup target add wasm32-unknown-unknown && curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh && node ./scripts/normalize-version-bump.js && turbo run build-wasm -- --target nodejs && git checkout . && mv crates/wasm/pkg crates/wasm/pkg-nodejs && node ./scripts/setup-wasm.mjs && NEXT_TEST_MODE=start TEST_WASM=true node run-tests.js test/production/pages-dir/production/test/index.test.ts test/e2e/streaming-ssr/index.test.ts
245245
stepName: 'test-next-swc-wasm'
246246
secrets: inherit
247247

.github/workflows/code_freeze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name: Code Freeze
1717

1818
env:
1919
NAPI_CLI_VERSION: 2.14.7
20-
TURBO_VERSION: 2.0.6-canary.0
20+
TURBO_VERSION: 2.0.7
2121
NODE_LTS_VERSION: 20
2222

2323
jobs:

.github/workflows/pull_request_stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Generate Pull Request Stats
66

77
env:
88
NAPI_CLI_VERSION: 2.14.7
9-
TURBO_VERSION: 2.0.6-canary.0
9+
TURBO_VERSION: 2.0.7
1010
NODE_LTS_VERSION: 20
1111
TEST_CONCURRENCY: 6
1212

.github/workflows/triage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
"resolved": ".github/comments/resolved.md"
3232
}
3333
reproduction-comment: '.github/comments/invalid-link.md'
34-
reproduction-hosts: 'github.com,codesandbox.io,stackblitz.com'
34+
reproduction-hosts: 'github.com,bitbucket.org,gitlab.com,codesandbox.io,stackblitz.com'
3535
reproduction-blocklist: 'github.com/vercel/next.js.*,github.com/\\w*/?$,github.com$'
3636
reproduction-link-section: '### Link to the code that reproduces this issue(.*)### To Reproduce'
3737
reproduction-invalid-label: 'invalid link'

0 commit comments

Comments
 (0)