From 1edc8693bfc4b75e3bb61fc8dc531bdf569b332d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 10 Jul 2023 00:48:47 +0200 Subject: [PATCH] chore: upgrade deno_core and rusty_v8 (#19773) --- Cargo.lock | 16 ++++++++-------- Cargo.toml | 6 +++--- ext/io/lib.rs | 3 ++- runtime/ops/os/mod.rs | 7 +++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d98e7842f1..d05bf423a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -958,9 +958,9 @@ dependencies = [ [[package]] name = "deno_core" -version = "0.194.0" +version = "0.195.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc857567cdff39a7d554c686b0353cc89958cd2b34319dd11793541323531e9d" +checksum = "408e433386de30dd501cf82d26ca1fb4cd84b055536f8f6f9c78c3380649d94b" dependencies = [ "anyhow", "bytes", @@ -1331,9 +1331,9 @@ dependencies = [ [[package]] name = "deno_ops" -version = "0.72.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5229c9b8b4fe7805123794727c4be2a8af46c41c49681ce07d20bca09978e74d" +checksum = "c6d06feb9b26ccd2997f35610517d5a8f1dd423e21364509523f72474601f87f" dependencies = [ "deno-proc-macro-rules", "lazy-regex", @@ -4366,9 +4366,9 @@ dependencies = [ [[package]] name = "serde_v8" -version = "0.105.0" +version = "0.106.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b30e810bbf80dff0dfa2a13eeeb9060a4038b210bb230410c9b3f5b33669afe" +checksum = "1506733ba5b864018c44320fa3bb11dbb4bf01b62dd09eda007be73034371c51" dependencies = [ "bytes", "derive_more", @@ -5795,9 +5795,9 @@ dependencies = [ [[package]] name = "v8" -version = "0.74.1" +version = "0.74.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1202e0bd078112bf8d521491560645e1fd6955c4afd975c75b05596a7e7e4eea" +checksum = "7568bf38565bd5b350d96abbf3d09417e8c9dd74fbb38860e91b759e46f9009c" dependencies = [ "bitflags 1.3.2", "fslock", diff --git a/Cargo.toml b/Cargo.toml index 0121181ad3..9a921e7a7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,9 +41,9 @@ repository = "https://github.com/denoland/deno" v8 = { version = "0.74.1", default-features = false } deno_ast = { version = "0.27.0", features = ["transpiling"] } -deno_core = { version = "0.194.0" } -deno_ops = { version = "0.71.0" } -serde_v8 = { version = "0.104.0" } +deno_core = { version = "0.195.0" } +deno_ops = { version = "0.72.0" } +serde_v8 = { version = "0.105.0" } deno_runtime = { version = "0.118.0", path = "./runtime" } napi_sym = { version = "0.40.0", path = "./cli/napi/sym" } diff --git a/ext/io/lib.rs b/ext/io/lib.rs index 6dec7c3a7f..00509011fe 100644 --- a/ext/io/lib.rs +++ b/ext/io/lib.rs @@ -10,6 +10,7 @@ use deno_core::BufMutView; use deno_core::BufView; use deno_core::CancelHandle; use deno_core::CancelTryFuture; +use deno_core::Op; use deno_core::OpState; use deno_core::RcRef; use deno_core::Resource; @@ -89,7 +90,7 @@ deno_core::extension!(deno_io, stdio: Option, }, middleware = |op| match op.name { - "op_print" => op_print::decl(), + "op_print" => op_print::DECL, _ => op, }, state = |state, options| { diff --git a/runtime/ops/os/mod.rs b/runtime/ops/os/mod.rs index bbadee993a..cfd531a180 100644 --- a/runtime/ops/os/mod.rs +++ b/runtime/ops/os/mod.rs @@ -8,6 +8,7 @@ use deno_core::error::AnyError; use deno_core::op; use deno_core::url::Url; use deno_core::v8; +use deno_core::Op; use deno_core::OpState; use deno_node::NODE_ENV_VAR_ALLOWLIST; use serde::Serialize; @@ -54,10 +55,8 @@ deno_core::extension!( deno_os_worker, ops_fn = deno_ops, middleware = |op| match op.name { - "op_exit" | "op_set_exit_code" => deno_core::OpDecl { - v8_fn_ptr: deno_core::op_void_sync::v8_fn_ptr as _, - ..op - }, + "op_exit" | "op_set_exit_code" => + op.with_implementation_from(&deno_core::op_void_sync::DECL), _ => op, }, );