Skip to content

Commit 6245a8d

Browse files
committed
Merge branch 'canary' into ijjk/fix-not-found-tags
2 parents 471fc46 + 5a8d117 commit 6245a8d

File tree

132 files changed

+1084
-799
lines changed

Some content is hidden

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

132 files changed

+1084
-799
lines changed

.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'

Cargo.lock

Lines changed: 4 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-core/src/next_client_reference/ecmascript_client_reference/ecmascript_client_reference_proxy_module.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ impl EcmascriptClientReferenceProxyModule {
7070
#[turbo_tasks::function]
7171
async fn proxy_module(&self) -> Result<Vc<Box<dyn EcmascriptChunkPlaceable>>> {
7272
let mut code = CodeBuilder::default();
73+
let is_esm: bool;
7374

7475
let server_module_path = &*self.server_module_ident.to_string().await?;
7576

7677
// Adapted from https://github.com/facebook/react/blob/c5b9375767e2c4102d7e5559d383523736f1c902/packages/react-server-dom-webpack/src/ReactFlightWebpackNodeLoader.js#L323-L354
7778
if let EcmascriptExports::EsmExports(exports) = &*self.client_module.get_exports().await? {
79+
is_esm = true;
7880
let exports = exports.expand_exports().await?;
7981

8082
if !exports.dynamic_exports.is_empty() {
@@ -130,6 +132,7 @@ impl EcmascriptClientReferenceProxyModule {
130132
}
131133
}
132134
} else {
135+
is_esm = false;
133136
writedoc!(
134137
code,
135138
r#"
@@ -146,7 +149,13 @@ impl EcmascriptClientReferenceProxyModule {
146149
AssetContent::file(File::from(code.source_code().clone()).into());
147150

148151
let proxy_source = VirtualSource::new(
149-
self.server_module_ident.path().join("proxy.js".into()),
152+
self.server_module_ident.path().join(
153+
// Depending on the original format, we call the file `proxy.mjs` or `proxy.cjs`.
154+
// This is because we're placing the virtual module next to the original code, so
155+
// its parsing will be affected by `type` fields in package.json --
156+
// a bare `proxy.js` may end up being unexpectedly parsed as the wrong format.
157+
format!("proxy.{}", if is_esm { "mjs" } else { "cjs" }).into(),
158+
),
150159
proxy_module_content,
151160
);
152161

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": "15.1.1-canary.26"
19+
"version": "15.1.1-canary.27"
2020
}

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,16 @@
211211
"pretty-ms": "7.0.0",
212212
"random-seed": "0.3.0",
213213
"react": "19.0.0",
214-
"react-builtin": "npm:[email protected]3b009b4c-20250102",
214+
"react-builtin": "npm:[email protected]3ce77d55-20250106",
215215
"react-dom": "19.0.0",
216-
"react-dom-builtin": "npm:[email protected]3b009b4c-20250102",
217-
"react-dom-experimental-builtin": "npm:[email protected]3b009b4c-20250102",
218-
"react-experimental-builtin": "npm:[email protected]3b009b4c-20250102",
219-
"react-is-builtin": "npm:[email protected]3b009b4c-20250102",
220-
"react-server-dom-turbopack": "19.1.0-canary-3b009b4c-20250102",
221-
"react-server-dom-turbopack-experimental": "npm:[email protected]3b009b4c-20250102",
222-
"react-server-dom-webpack": "19.1.0-canary-3b009b4c-20250102",
223-
"react-server-dom-webpack-experimental": "npm:[email protected]3b009b4c-20250102",
216+
"react-dom-builtin": "npm:[email protected]3ce77d55-20250106",
217+
"react-dom-experimental-builtin": "npm:[email protected]3ce77d55-20250106",
218+
"react-experimental-builtin": "npm:[email protected]3ce77d55-20250106",
219+
"react-is-builtin": "npm:[email protected]3ce77d55-20250106",
220+
"react-server-dom-turbopack": "19.1.0-canary-3ce77d55-20250106",
221+
"react-server-dom-turbopack-experimental": "npm:[email protected]3ce77d55-20250106",
222+
"react-server-dom-webpack": "19.1.0-canary-3ce77d55-20250106",
223+
"react-server-dom-webpack-experimental": "npm:[email protected]3ce77d55-20250106",
224224
"react-ssr-prepass": "1.0.8",
225225
"react-virtualized": "9.22.3",
226226
"relay-compiler": "13.0.2",
@@ -230,8 +230,8 @@
230230
"resolve-from": "5.0.0",
231231
"sass": "1.54.0",
232232
"satori": "0.10.9",
233-
"scheduler-builtin": "npm:[email protected]3b009b4c-20250102",
234-
"scheduler-experimental-builtin": "npm:[email protected]3b009b4c-20250102",
233+
"scheduler-builtin": "npm:[email protected]3ce77d55-20250106",
234+
"scheduler-experimental-builtin": "npm:[email protected]3ce77d55-20250106",
235235
"seedrandom": "3.0.5",
236236
"semver": "7.3.7",
237237
"shell-quote": "1.7.3",
@@ -272,10 +272,10 @@
272272
"@types/react": "19.0.0",
273273
"@types/react-dom": "19.0.0",
274274
"jest-snapshot": "30.0.0-alpha.6",
275-
"react": "19.1.0-canary-3b009b4c-20250102",
276-
"react-dom": "19.1.0-canary-3b009b4c-20250102",
277-
"react-is": "19.1.0-canary-3b009b4c-20250102",
278-
"scheduler": "0.26.0-canary-3b009b4c-20250102"
275+
"react": "19.1.0-canary-3ce77d55-20250106",
276+
"react-dom": "19.1.0-canary-3ce77d55-20250106",
277+
"react-is": "19.1.0-canary-3ce77d55-20250106",
278+
"scheduler": "0.26.0-canary-3ce77d55-20250106"
279279
},
280280
"patchedDependencies": {
281281

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": "15.1.1-canary.26",
3+
"version": "15.1.1-canary.27",
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": "15.1.1-canary.26",
3+
"version": "15.1.1-canary.27",
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/api-reference/config/eslint",
1212
"dependencies": {
13-
"@next/eslint-plugin-next": "15.1.1-canary.26",
13+
"@next/eslint-plugin-next": "15.1.1-canary.27",
1414
"@rushstack/eslint-patch": "^1.10.3",
1515
"@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",
1616
"@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",

0 commit comments

Comments
 (0)