Skip to content

Commit 0cc45a8

Browse files
authored
Merge branch 'canary' into fix/link-middleware
2 parents 3c49aed + 2285465 commit 0cc45a8

File tree

208 files changed

+12781
-9472
lines changed

Some content is hidden

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

208 files changed

+12781
-9472
lines changed

.github/workflows/issue_stale.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
id: stale-no-repro
1515
name: 'Close stale issues with no reproduction'
1616
with:
17-
repo-token: ${{ secrets.STALE_TOKEN }}
17+
repo-token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
1818
any-of-labels: 'please add a complete reproduction'
1919
close-issue-message: 'This issue has been automatically closed due to 2 days of inactivity and the absence of a complete reproduction. If you believe this was done in error, please leave a comment. If you are experiencing a similar issue, consider opening a new issue with a complete reproduction. Thank you.'
2020
days-before-issue-close: 1
@@ -27,7 +27,7 @@ jobs:
2727
id: stale-simple-repro
2828
name: 'Close issues with no simple repro'
2929
with:
30-
repo-token: ${{ secrets.STALE_TOKEN }}
30+
repo-token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
3131
any-of-labels: 'please simplify reproduction'
3232
close-issue-message: 'This issue has been automatically closed due to 14 days of inactivity and the absence of a simple reproduction for investigation. If you believe this was done in error, please leave a comment. If you are experiencing a similar issue, consider opening a new issue with a simple reproduction. Thank you.'
3333
days-before-issue-close: 1
@@ -40,7 +40,7 @@ jobs:
4040
id: stale-no-canary
4141
name: 'Close issues not verified on canary'
4242
with:
43-
repo-token: ${{ secrets.STALE_TOKEN }}
43+
repo-token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
4444
any-of-labels: 'please verify canary'
4545
close-issue-message: 'This issue has been automatically closed due to 14 days of inactivity and the absence of testing against next@canary. If you believe this was done in error, please leave a comment. If you are experiencing a similar issue, consider opening a new issue with a reproduction. Thank you.'
4646
days-before-issue-close: 1

.github/workflows/test_e2e_deploy_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
strategy:
4747
fail-fast: false
4848
matrix:
49-
group: [1/5, 2/5, 3/5, 4/5, 5/5, 6/6]
49+
group: [1/6, 2/6, 3/6, 4/6, 5/6, 6/6]
5050
with:
5151
afterBuild: npm i -g vercel@latest && NEXT_E2E_TEST_TIMEOUT=240000 NEXT_TEST_MODE=deploy NEXT_EXTERNAL_TESTS_FILTERS="test/deploy-tests-manifest.json" node run-tests.js --timings -g ${{ matrix.group }} -c 2 --type e2e
5252
skipNativeBuild: 'yes'

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
// Enable file nesting for unit test files.
6969
"explorer.fileNesting.enabled": true,
7070
"explorer.fileNesting.patterns": {
71-
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
72-
"*.tsx": "$(capture).test.ts, $(capture).test.tsx"
71+
"*.ts": "$(capture).test.ts, $(capture).test.tsx, $(capture).stories.tsx",
72+
"*.tsx": "$(capture).test.ts, $(capture).test.tsx, $(capture).stories.tsx"
7373
},
7474
// Compile rust-analyzer in a separate directory to avoid conflicts with the main project.
7575
"rust-analyzer.cargo.targetDir": true,

Cargo.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ serde_path_to_error = "0.1.9"
190190
serde_qs = "0.11.0"
191191
serde_with = "2.3.2"
192192
serde_yaml = "0.9.17"
193-
shadow-rs = { version = "0.35.0", default-features = false, features = [
193+
shadow-rs = { version = "0.37.0", default-features = false, features = [
194194
"tzdb",
195195
] }
196196
smallvec = { version = "1.13.1", features = [

crates/napi/build.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1+
use std::fs;
2+
13
extern crate napi_build;
24

35
fn main() {
46
// Generates, stores build-time information as static values.
57
// There are some places relying on correct values for this (i.e telemetry),
68
// So failing build if this fails.
7-
shadow_rs::new().expect("Should able to generate build time information");
9+
shadow_rs::ShadowBuilder::builder()
10+
.build()
11+
.expect("Should able to generate build time information");
12+
13+
let git_head = fs::read_to_string("../../.git/HEAD").unwrap_or_default();
14+
if !git_head.is_empty() && !git_head.starts_with("ref: ") {
15+
println!("cargo:warning=git version {}", git_head);
16+
}
817

918
#[cfg(not(all(target_os = "macos", target_arch = "aarch64")))]
1019
napi_build::setup();

crates/next-api/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ fn main() {
44
// Generates, stores build-time information as static values.
55
// There are some places relying on correct values for this (i.e telemetry),
66
// So failing build if this fails.
7-
shadow_rs::new().expect("Should able to generate build time information");
7+
shadow_rs::ShadowBuilder::builder()
8+
.build_pattern(shadow_rs::BuildPattern::Lazy)
9+
.build()
10+
.expect("Should able to generate build time information");
811

912
generate_register();
1013
}

crates/next-api/src/client_references.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ use turbo_tasks::{
1010
debug::ValueDebugFormat, trace::TraceRawVcs, NonLocalValue, ResolvedVc, TryFlatJoinIterExt, Vc,
1111
};
1212
use turbopack::css::CssModuleAsset;
13-
use turbopack_core::module::Module;
14-
15-
use crate::module_graph::SingleModuleGraph;
13+
use turbopack_core::{module::Module, module_graph::SingleModuleGraph};
1614

1715
#[derive(
1816
Clone, Serialize, Deserialize, Eq, PartialEq, TraceRawVcs, ValueDebugFormat, NonLocalValue,

crates/next-api/src/dynamic_imports.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ use turbopack_core::{
3434
ChunkingContext, ModuleId,
3535
},
3636
module::Module,
37+
module_graph::SingleModuleGraph,
3738
output::OutputAssets,
3839
};
3940

40-
use crate::module_graph::{DynamicImportEntriesWithImporter, SingleModuleGraph};
41+
use crate::module_graph::DynamicImportEntriesWithImporter;
4142

4243
pub(crate) enum NextDynamicChunkAvailability<'a> {
4344
/// In App Router, the client references

0 commit comments

Comments
 (0)