Skip to content

Commit 94709ef

Browse files
authored
update turbopack and update code for API changes (#53576)
* vercel/turborepo#5640 * vercel/turborepo#5661
1 parent 324814f commit 94709ef

File tree

20 files changed

+77
-90
lines changed

20 files changed

+77
-90
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ swc_core = { version = "0.79.40" }
4444
testing = { version = "0.33.21" }
4545

4646
# Turbo crates
47-
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230803.2" }
47+
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230804.1" }
4848
# [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros..
49-
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230803.2" }
49+
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230804.1" }
5050
# [TODO]: need to refactor embed_directory! macro usage in next-core
51-
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230803.2" }
51+
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230804.1" }
5252

5353
# General Deps
5454

packages/next-swc/crates/napi/src/next_api/utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use turbopack_binding::{
1313
turbopack::core::{
1414
diagnostics::{Diagnostic, DiagnosticContextExt, PlainDiagnostic},
1515
error::PrettyPrintError,
16-
issue::{IssueContextExt, PlainIssue, PlainIssueSource, PlainSource},
16+
issue::{IssueFilePathExt, PlainIssue, PlainIssueSource, PlainSource},
1717
source_pos::SourcePos,
1818
},
1919
};
@@ -107,7 +107,7 @@ pub async fn get_diagnostics<T>(source: Vc<T>) -> Result<Vec<ReadRef<PlainDiagno
107107
pub struct NapiIssue {
108108
pub severity: String,
109109
pub category: String,
110-
pub context: String,
110+
pub file_path: String,
111111
pub title: String,
112112
pub description: String,
113113
pub detail: String,
@@ -121,7 +121,7 @@ impl From<&PlainIssue> for NapiIssue {
121121
Self {
122122
description: issue.description.clone(),
123123
category: issue.category.clone(),
124-
context: issue.context.clone(),
124+
file_path: issue.file_path.clone(),
125125
detail: issue.detail.clone(),
126126
documentation_link: issue.documentation_link.clone(),
127127
severity: issue.severity.as_str().to_string(),

packages/next-swc/crates/next-build/src/next_build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use turbopack_binding::{
3535
asset::Asset,
3636
chunk::ChunkingContext,
3737
environment::ServerAddr,
38-
issue::{IssueContextExt, IssueReporter, IssueSeverity},
38+
issue::{IssueFilePathExt, IssueReporter, IssueSeverity},
3939
output::{OutputAsset, OutputAssets},
4040
virtual_fs::VirtualFileSystem,
4141
},

packages/next-swc/crates/next-core/js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"check": "tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230803.2",
14-
"@vercel/turbopack-node": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-node/js?turbopack-230803.2",
13+
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230804.1",
14+
"@vercel/turbopack-node": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-node/js?turbopack-230804.1",
1515
"anser": "^2.1.1",
1616
"css.escape": "^1.5.1",
1717
"next": "*",

0 commit comments

Comments
 (0)