Skip to content

Commit

Permalink
feat: upgrade to Deno 2024.02.01
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Feb 5, 2024
1 parent 800fd1a commit a47efbd
Show file tree
Hide file tree
Showing 9 changed files with 140 additions and 72 deletions.
114 changes: 82 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repository = "https://github.com/filecoin-station/zinnia"
assert_cmd = "2.0.13"
assert_fs = "1.1.1"
console_static_text = "=0.8.1"
deno_core = "0.232.0"
deno_core = "0.256.0"
log = "0.4.20"
pretty_assertions = "1.4.0"
env_logger = "0.10.2"
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function fail() {

let expected_stderr = format!(
r#"
error: Uncaught Error: boom!
error: Uncaught (in promise) Error: boom!
throw new Error("boom!");
^
at fail ({mod_url}:5:9)
Expand Down
6 changes: 3 additions & 3 deletions ext/libp2p/js/01_peer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const core = globalThis.Deno.core;
const { ops, opAsync } = core;
const { ops } = core;
const { op_p2p_request_protocol } = core.ensureFastOps();

async function requestProtocol(remoteAddress, protocolName, requestPayload) {
if (typeof remoteAddress !== "string")
Expand All @@ -11,8 +12,7 @@ async function requestProtocol(remoteAddress, protocolName, requestPayload) {
throw new TypeError(`requestPayload must be Uint8Array (found: ${actualType})`);
}

const responsePayload = await opAsync(
"op_p2p_request_protocol",
const responsePayload = await op_p2p_request_protocol(
remoteAddress,
protocolName,
requestPayload,
Expand Down
12 changes: 6 additions & 6 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ path = "lib.rs"
[dependencies]
console_static_text.workspace = true
chrono = { version= "0.4.33", default-features = false, features = [ "clock", "std" ] }
deno_console = "0.127.0"
deno_console = "0.136.0"
deno_core.workspace = true
deno_crypto = "0.141.0"
deno_fetch = "0.151.0"
deno_url = "0.127.0"
deno_web = "0.158.0"
deno_webidl = "0.127.0"
deno_crypto = "0.150.0"
deno_fetch = "0.160.0"
deno_url = "0.136.0"
deno_web = "0.167.0"
deno_webidl = "0.136.0"
lassie = "0.9.0"
# lassie = { git = "https://github.com/filecoin-station/rusty-lassie.git" }
log.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion runtime/js/98_global_scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import * as eventSource from "ext:deno_fetch/27_eventsource.js";
import * as fetch from "ext:zinnia_runtime/fetch.js";
import * as messagePort from "ext:deno_web/13_message_port.js";
import * as webidl from "ext:deno_webidl/00_webidl.js";
import DOMException from "ext:deno_web/01_dom_exception.js";
import { DOMException } from "ext:deno_web/01_dom_exception.js";
import * as abortSignal from "ext:deno_web/03_abort_signal.js";
import * as globalInterfaces from "ext:deno_web/04_global_interfaces.js";
import { zinniaNs, log } from "ext:zinnia_runtime/90_zinnia_apis.js";
Expand Down
3 changes: 1 addition & 2 deletions runtime/js/99_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
inspectArgs,
quoteString,
setNoColorFn,
wrapConsole,
} from "ext:deno_console/01_console.js";
import * as performance from "ext:deno_web/15_performance.js";
import {
Expand Down Expand Up @@ -94,7 +93,7 @@ function bootstrapMainRuntime(runtimeOptions) {
if (runtimeOptions.inspectFlag) {
const consoleFromV8 = core.console;
const consoleFromDeno = globalThis.console;
wrapConsole(consoleFromDeno, consoleFromV8);
core.wrapConsole(consoleFromDeno, consoleFromV8);
}

event.setEventTargetData(globalThis);
Expand Down
Loading

0 comments on commit a47efbd

Please sign in to comment.