From c8baa8add01caba4f20e29ca10cf86f7701542c8 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Wed, 31 May 2023 18:10:46 -0400 Subject: [PATCH 1/4] [turbopack]: Use tip-of-branch for benchmarks --- .../crates/next-dev/benches/bundler.rs | 34 +++++++++++++------ packages/next-swc/crates/next-dev/src/lib.rs | 6 +++- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/packages/next-swc/crates/next-dev/benches/bundler.rs b/packages/next-swc/crates/next-dev/benches/bundler.rs index 3619517ed093d..d4a649f1abcda 100644 --- a/packages/next-swc/crates/next-dev/benches/bundler.rs +++ b/packages/next-swc/crates/next-dev/benches/bundler.rs @@ -1,5 +1,7 @@ use std::{ + env::current_dir, fs, + io::{self, Write}, path::Path, process::{Child, Command, Stdio}, }; @@ -44,17 +46,27 @@ impl Bundler for TurboNext { } fn prepare(&self, install_dir: &Path) -> Result<()> { - let package_json = include_str!("../../../../next/package.json"); - let data: serde_json::Value = serde_json::from_str(package_json)?; - let version = data - .as_object() - .unwrap() - .get("version") - .unwrap() - .as_str() - .unwrap(); - npm::install(install_dir, &[NpmPackage::new("next", version)]) - .context("failed to install from npm")?; + let repo_path = current_dir()?.join("../../../..").canonicalize()?; + dbg!(&repo_path); + npm::install( + install_dir, + &[NpmPackage::new( + "next", + &repo_path.join("packages/next").to_string_lossy(), + )], + ) + .context("failed to install from npm")?; + + let build = Command::new("pnpm") + .args(["build"]) + .current_dir(repo_path) + .output()?; + + if !build.status.success() { + io::stdout().write_all(&build.stdout)?; + io::stderr().write_all(&build.stderr)?; + return Err(anyhow!("pnpm build failed. See above.")); + } fs::write( install_dir.join("next.config.js"), diff --git a/packages/next-swc/crates/next-dev/src/lib.rs b/packages/next-swc/crates/next-dev/src/lib.rs index 86b9e24ae49a6..c2135e3163865 100644 --- a/packages/next-swc/crates/next-dev/src/lib.rs +++ b/packages/next-swc/crates/next-dev/src/lib.rs @@ -298,7 +298,11 @@ async fn source( ) -> Result { let output_fs = output_fs(&project_dir); let fs = project_fs(&root_dir); - let project_relative = project_dir.strip_prefix(&root_dir).unwrap(); + let project_relative = project_dir.strip_prefix(&root_dir).unwrap_or_else(|| { + panic!( + "project directory '{project_dir}' exists outside of the root directory '{root_dir}'" + ) + }); let project_relative = project_relative .strip_prefix(MAIN_SEPARATOR) .unwrap_or(project_relative) From 438680adbc435454eef44cf94bf041f8d6b8df26 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Wed, 31 May 2023 19:26:59 -0400 Subject: [PATCH 2/4] Review fixes --- packages/next-swc/crates/next-dev/benches/bundler.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/next-swc/crates/next-dev/benches/bundler.rs b/packages/next-swc/crates/next-dev/benches/bundler.rs index d4a649f1abcda..fed2f2688c5a0 100644 --- a/packages/next-swc/crates/next-dev/benches/bundler.rs +++ b/packages/next-swc/crates/next-dev/benches/bundler.rs @@ -2,7 +2,7 @@ use std::{ env::current_dir, fs, io::{self, Write}, - path::Path, + path::{Path, PathBuf}, process::{Child, Command, Stdio}, }; @@ -46,8 +46,9 @@ impl Bundler for TurboNext { } fn prepare(&self, install_dir: &Path) -> Result<()> { - let repo_path = current_dir()?.join("../../../..").canonicalize()?; - dbg!(&repo_path); + let repo_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")) + .join("../../../..") + .canonicalize()?; npm::install( install_dir, &[NpmPackage::new( From 6ee68ea95b52c45a08e57afb45ab6310dd65fc72 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Wed, 31 May 2023 21:06:56 -0400 Subject: [PATCH 3/4] Build then install, so package can be copied --- packages/next-swc/crates/next-dev/benches/bundler.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/next-swc/crates/next-dev/benches/bundler.rs b/packages/next-swc/crates/next-dev/benches/bundler.rs index fed2f2688c5a0..bb381813b922d 100644 --- a/packages/next-swc/crates/next-dev/benches/bundler.rs +++ b/packages/next-swc/crates/next-dev/benches/bundler.rs @@ -1,5 +1,4 @@ use std::{ - env::current_dir, fs, io::{self, Write}, path::{Path, PathBuf}, @@ -49,6 +48,12 @@ impl Bundler for TurboNext { let repo_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")) .join("../../../..") .canonicalize()?; + + let build = Command::new("pnpm") + .args(["build"]) + .current_dir(&repo_path) + .output()?; + npm::install( install_dir, &[NpmPackage::new( @@ -58,11 +63,6 @@ impl Bundler for TurboNext { ) .context("failed to install from npm")?; - let build = Command::new("pnpm") - .args(["build"]) - .current_dir(repo_path) - .output()?; - if !build.status.success() { io::stdout().write_all(&build.stdout)?; io::stderr().write_all(&build.stderr)?; From acc86730688ebeaed468fa0d1d810625c8f64f9c Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Mon, 5 Jun 2023 12:04:31 -0400 Subject: [PATCH 4/4] Update turbopack deps --- Cargo.lock | 114 ++++++++++++------ .../next-swc/crates/next-core/js/package.json | 4 +- pnpm-lock.yaml | 20 +-- 3 files changed, 92 insertions(+), 46 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ba2e3419defb9..5460638eb3752 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -136,6 +136,12 @@ dependencies = [ "backtrace", ] +[[package]] +name = "arrayref" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" + [[package]] name = "arrayvec" version = "0.7.2" @@ -394,7 +400,7 @@ dependencies = [ [[package]] name = "auto-hash-map" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "serde", ] @@ -573,6 +579,20 @@ dependencies = [ "wyz", ] +[[package]] +name = "blake3" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42ae2468a89544a466886840aa467a25b766499f4f04bf7d9fcd10ecee9fccef" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if 1.0.0", + "constant_time_eq", + "digest", +] + [[package]] name = "block-buffer" version = "0.10.4" @@ -1014,6 +1034,12 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "constant_time_eq" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13418e745008f7349ec7e449155f419a61b92b58a99cc3616942b926825ec76b" + [[package]] name = "convert_case" version = "0.5.0" @@ -1518,6 +1544,7 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "crypto-common", + "subtle", ] [[package]] @@ -3425,7 +3452,7 @@ dependencies = [ [[package]] name = "node-file-trace" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "serde", @@ -5310,6 +5337,12 @@ dependencies = [ "tracing", ] +[[package]] +name = "subtle" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" + [[package]] name = "supports-color" version = "1.3.1" @@ -6338,6 +6371,7 @@ dependencies = [ "swc_plugin_proxy", "tracing", "wasmer", + "wasmer-cache", "wasmer-compiler-cranelift", "wasmer-wasix", ] @@ -7035,7 +7069,7 @@ dependencies = [ [[package]] name = "turbo-tasks" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "auto-hash-map", @@ -7066,7 +7100,7 @@ dependencies = [ [[package]] name = "turbo-tasks-build" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "cargo-lock", @@ -7078,7 +7112,7 @@ dependencies = [ [[package]] name = "turbo-tasks-bytes" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "bytes", @@ -7093,7 +7127,7 @@ dependencies = [ [[package]] name = "turbo-tasks-env" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "dotenvy", @@ -7107,7 +7141,7 @@ dependencies = [ [[package]] name = "turbo-tasks-fetch" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "indexmap", @@ -7124,7 +7158,7 @@ dependencies = [ [[package]] name = "turbo-tasks-fs" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "auto-hash-map", @@ -7154,7 +7188,7 @@ dependencies = [ [[package]] name = "turbo-tasks-hash" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "base16", "hex", @@ -7166,7 +7200,7 @@ dependencies = [ [[package]] name = "turbo-tasks-macros" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "convert_case 0.6.0", @@ -7180,7 +7214,7 @@ dependencies = [ [[package]] name = "turbo-tasks-macros-shared" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "proc-macro2", "quote", @@ -7190,7 +7224,7 @@ dependencies = [ [[package]] name = "turbo-tasks-malloc" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "mimalloc", ] @@ -7198,7 +7232,7 @@ dependencies = [ [[package]] name = "turbo-tasks-memory" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "auto-hash-map", @@ -7221,7 +7255,7 @@ dependencies = [ [[package]] name = "turbo-tasks-testing" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "auto-hash-map", @@ -7233,7 +7267,7 @@ dependencies = [ [[package]] name = "turbopack" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "async-recursion", @@ -7263,7 +7297,7 @@ dependencies = [ [[package]] name = "turbopack-bench" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "chromiumoxide", @@ -7293,7 +7327,7 @@ dependencies = [ [[package]] name = "turbopack-binding" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "auto-hash-map", "mdxjs", @@ -7334,7 +7368,7 @@ dependencies = [ [[package]] name = "turbopack-cli-utils" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "clap 4.1.11", @@ -7358,7 +7392,7 @@ dependencies = [ [[package]] name = "turbopack-core" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "async-trait", @@ -7386,7 +7420,7 @@ dependencies = [ [[package]] name = "turbopack-create-test-app" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "clap 4.1.11", @@ -7399,7 +7433,7 @@ dependencies = [ [[package]] name = "turbopack-css" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "async-trait", @@ -7421,7 +7455,7 @@ dependencies = [ [[package]] name = "turbopack-dev" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "indexmap", @@ -7445,7 +7479,7 @@ dependencies = [ [[package]] name = "turbopack-dev-server" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "async-compression", @@ -7480,7 +7514,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "async-trait", @@ -7513,7 +7547,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript-plugins" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "async-trait", @@ -7536,7 +7570,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript-runtime" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "indoc", @@ -7553,7 +7587,7 @@ dependencies = [ [[package]] name = "turbopack-env" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "indexmap", @@ -7569,7 +7603,7 @@ dependencies = [ [[package]] name = "turbopack-image" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "base64 0.21.0", @@ -7589,7 +7623,7 @@ dependencies = [ [[package]] name = "turbopack-json" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "serde", @@ -7604,7 +7638,7 @@ dependencies = [ [[package]] name = "turbopack-mdx" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "mdxjs", @@ -7619,7 +7653,7 @@ dependencies = [ [[package]] name = "turbopack-node" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "async-stream", @@ -7654,7 +7688,7 @@ dependencies = [ [[package]] name = "turbopack-static" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "serde", @@ -7670,7 +7704,7 @@ dependencies = [ [[package]] name = "turbopack-swc-utils" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "swc_core", "turbo-tasks", @@ -7681,7 +7715,7 @@ dependencies = [ [[package]] name = "turbopack-test-utils" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230531.2#9f86f2ed10c4d20e7d1b696cce7dc9ed928be0c2" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-230601.3#6ae2258480d2a1f1a0c893f7a63014aa50b3d90b" dependencies = [ "anyhow", "once_cell", @@ -8226,6 +8260,18 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "wasmer-cache" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f0de969b05cc3c11196beeb46e5868a3712a187d777ee94113f7258c2ec121c" +dependencies = [ + "blake3", + "hex", + "thiserror", + "wasmer", +] + [[package]] name = "wasmer-compiler" version = "3.3.0" diff --git a/packages/next-swc/crates/next-core/js/package.json b/packages/next-swc/crates/next-core/js/package.json index f3429ce9d77ca..6ab772adfbbc9 100644 --- a/packages/next-swc/crates/next-core/js/package.json +++ b/packages/next-swc/crates/next-core/js/package.json @@ -10,8 +10,8 @@ "check": "tsc --noEmit" }, "dependencies": { - "@vercel/turbopack-ecmascript-runtime": "https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230531.2", - "@vercel/turbopack-node": "https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230531.2", + "@vercel/turbopack-ecmascript-runtime": "https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230601.3", + "@vercel/turbopack-node": "https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230601.3", "anser": "^2.1.1", "css.escape": "^1.5.1", "next": "*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4c70e505ba716..4bbae4dacea97 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1014,8 +1014,8 @@ importers: '@types/react': 18.2.5 '@types/react-dom': 18.2.3 '@vercel/ncc': ^0.36.0 - '@vercel/turbopack-ecmascript-runtime': https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230531.2 - '@vercel/turbopack-node': https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230531.2 + '@vercel/turbopack-ecmascript-runtime': https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230601.3 + '@vercel/turbopack-node': https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230601.3 anser: ^2.1.1 css.escape: ^1.5.1 find-up: ^6.3.0 @@ -1027,8 +1027,8 @@ importers: stacktrace-parser: ^0.1.10 strip-ansi: ^7.0.1 dependencies: - '@vercel/turbopack-ecmascript-runtime': '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230531.2_react-refresh@0.12.0' - '@vercel/turbopack-node': '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230531.2' + '@vercel/turbopack-ecmascript-runtime': '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230601.3_react-refresh@0.12.0' + '@vercel/turbopack-node': '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230601.3' anser: 2.1.1 css.escape: 1.5.1 next: link:../../../../next @@ -25415,7 +25415,7 @@ packages: hasBin: true dependencies: '@jridgewell/source-map': 0.3.2 - acorn: 8.8.0 + acorn: 8.8.2 commander: 2.20.3 source-map-support: 0.5.20 @@ -27241,9 +27241,9 @@ packages: /zwitch/2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} - '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230531.2_react-refresh@0.12.0': - resolution: {tarball: https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230531.2} - id: '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230531.2' + '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230601.3_react-refresh@0.12.0': + resolution: {tarball: https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230601.3} + id: '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230601.3' name: '@vercel/turbopack-ecmascript-runtime' version: 0.0.0 dependencies: @@ -27254,8 +27254,8 @@ packages: - webpack dev: false - '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230531.2': - resolution: {tarball: https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230531.2} + '@gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230601.3': + resolution: {tarball: https://gitpkg.vercel.app/vercel/turbo/crates/turbopack-node/js?turbopack-230601.3} name: '@vercel/turbopack-node' version: 0.0.0 dependencies: