Skip to content

Commit 8ec14ae

Browse files
authored
fix: support numerical properties for deno_errors (#29489)
1 parent f9bb824 commit 8ec14ae

File tree

5 files changed

+76
-70
lines changed

5 files changed

+76
-70
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -54,32 +54,32 @@ license = "MIT"
5454
repository = "https://github.com/denoland/deno"
5555

5656
[workspace.dependencies]
57-
deno_ast = { version = "=0.47.0", features = ["transpiling"] }
58-
deno_core = { version = "0.348.0" }
57+
deno_ast = { version = "=0.48.0", features = ["transpiling"] }
58+
deno_core = { version = "0.349.0" }
5959

60-
deno_cache_dir = "=0.21.0"
61-
deno_config = { version = "=0.54.2", features = ["workspace"] }
62-
deno_doc = "=0.176.0"
63-
deno_error = "=0.5.7"
64-
deno_graph = { version = "=0.93.0", default-features = false }
65-
deno_lint = "=0.75.0"
66-
deno_lockfile = "=0.28.0"
60+
deno_cache_dir = "=0.22.0"
61+
deno_config = { version = "=0.55.0", features = ["workspace"] }
62+
deno_doc = "=0.177.0"
63+
deno_error = "=0.6.0"
64+
deno_graph = { version = "=0.94.0", default-features = false }
65+
deno_lint = "=0.76.0"
66+
deno_lockfile = "=0.29.0"
6767
deno_media_type = { version = "=0.2.8", features = ["module_specifier"] }
6868
deno_native_certs = "0.3.0"
69-
deno_npm = "=0.33.4"
70-
deno_package_json = { version = "=0.6.0", default-features = false }
71-
deno_path_util = "=0.3.3"
72-
deno_semver = "=0.7.1"
73-
deno_task_shell = "=0.23.0"
69+
deno_npm = "=0.34.0"
70+
deno_package_json = { version = "=0.7.0", default-features = false }
71+
deno_path_util = "=0.4.0"
72+
deno_semver = "=0.8.0"
73+
deno_task_shell = "=0.24.0"
7474
deno_terminal = "=0.2.2"
7575
deno_unsync = "0.4.3"
7676
deno_whoami = "0.1.0"
77-
eszip = "=0.90.0"
77+
eszip = "=0.91.0"
7878

79-
denokv_proto = "0.10.0"
80-
denokv_remote = "0.10.0"
79+
denokv_proto = "0.11.0"
80+
denokv_remote = "0.11.0"
8181
# denokv_sqlite brings in bundled sqlite if we don't disable the default features
82-
denokv_sqlite = { default-features = false, version = "0.10.0" }
82+
denokv_sqlite = { default-features = false, version = "0.11.0" }
8383

8484
# exts
8585
deno_broadcast_channel = { version = "0.199.0", path = "./ext/broadcast_channel" }
@@ -177,7 +177,7 @@ hyper-rustls = { version = "0.27.2", default-features = false, features = ["http
177177
hyper-util = { version = "0.1.10", features = ["tokio", "client", "client-legacy", "server", "server-auto"] }
178178
hyper_v014 = { package = "hyper", version = "0.14.26", features = ["runtime", "http1"] }
179179
idna = "1.0.3"
180-
import_map = { version = "0.21.0", features = ["ext"] }
180+
import_map = { version = "0.22.0", features = ["ext"] }
181181
indexmap = { version = "2", features = ["serde"] }
182182
ipnet = "2.3"
183183
ipnetwork = "0.20.0"
@@ -295,7 +295,7 @@ dprint-core = "=0.67.4"
295295
dprint-plugin-json = "=0.20.0"
296296
dprint-plugin-jupyter = "=0.2.0"
297297
dprint-plugin-markdown = "=0.18.0"
298-
dprint-plugin-typescript = "=0.95.4"
298+
dprint-plugin-typescript = "=0.95.5"
299299
env_logger = "=0.11.6"
300300
fancy-regex = "=0.14.0"
301301
libsui = "0.10.0"

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fs3.workspace = true
128128
http.workspace = true
129129
http-body.workspace = true
130130
http-body-util.workspace = true
131-
import_map = { version = "=0.21.0", features = ["ext"] }
131+
import_map.workspace = true
132132
indexmap.workspace = true
133133
jsonc-parser = { workspace = true, features = ["cst", "serde"] }
134134
jupyter_runtime = { package = "runtimelib", version = "=0.19.0", features = ["tokio-runtime"] }

cli/rt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ node_resolver.workspace = true
4545

4646
async-trait.workspace = true
4747
bincode.workspace = true
48-
import_map = { version = "=0.21.0", features = ["ext"] }
48+
import_map.workspace = true
4949
indexmap.workspace = true
5050
log = { workspace = true, features = ["serde"] }
5151
serde.workspace = true

resolvers/node/errors.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ impl NodeJsErrorCode {
5858
}
5959
}
6060

61+
impl From<NodeJsErrorCode> for deno_error::PropertyValue {
62+
fn from(value: NodeJsErrorCode) -> Self {
63+
deno_error::PropertyValue::String(value.as_str().into())
64+
}
65+
}
66+
6167
pub trait NodeJsErrorCoded {
6268
fn code(&self) -> NodeJsErrorCode;
6369
}

0 commit comments

Comments
 (0)