mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
chore: update crates (#9251)
Updates SWC, dprint, deno_lint, deno_doc, serde, and Tokio (to 1.1.0). Co-authored-by: Kitson Kelly <me@kitsonkelly.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
eb30c6f510
commit
40fc5f55ea
19 changed files with 375 additions and 378 deletions
587
Cargo.lock
generated
587
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -29,7 +29,7 @@ deno_fetch = { path = "../op_crates/fetch", version = "0.20.0" }
|
|||
deno_web = { path = "../op_crates/web", version = "0.28.0" }
|
||||
deno_websocket = { path = "../op_crates/websocket", version = "0.3.0" }
|
||||
regex = "1.4.3"
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
serde = { version = "1.0.121", features = ["derive"] }
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
winapi = "0.3.9"
|
||||
|
@ -37,8 +37,8 @@ winres = "0.1.11"
|
|||
|
||||
[dependencies]
|
||||
deno_core = { path = "../core", version = "0.77.0" }
|
||||
deno_doc = "0.1.20"
|
||||
deno_lint = "0.2.16"
|
||||
deno_doc = "0.1.21"
|
||||
deno_lint = "0.2.17"
|
||||
deno_runtime = { path = "../runtime", version = "0.7.0" }
|
||||
|
||||
atty = "0.2.14"
|
||||
|
@ -46,11 +46,11 @@ base64 = "0.13.0"
|
|||
byteorder = "1.4.2"
|
||||
clap = "2.33.3"
|
||||
dissimilar = "1.0.2"
|
||||
dprint-plugin-typescript = "0.38.3"
|
||||
dprint-plugin-typescript = "0.38.5"
|
||||
dprint-plugin-markdown = "0.5.1"
|
||||
encoding_rs = "0.8.26"
|
||||
env_logger = "0.8.2"
|
||||
filetime = "0.2.13"
|
||||
filetime = "0.2.14"
|
||||
http = "0.2.3"
|
||||
indexmap = "1.6.1"
|
||||
jsonc-parser = "0.15.1"
|
||||
|
@ -66,16 +66,16 @@ ring = "0.16.19"
|
|||
rustyline = { version = "7.1.0", default-features = false }
|
||||
rustyline-derive = "0.4.0"
|
||||
semver-parser = "0.10.2"
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
serde = { version = "1.0.121", features = ["derive"] }
|
||||
shell-escape = "0.1.5"
|
||||
sourcemap = "6.0.1"
|
||||
swc_bundler = "0.19.2"
|
||||
swc_common = { version = "0.10.8", features = ["sourcemap"] }
|
||||
swc_ecmascript = { version = "0.17.1", features = ["codegen", "dep_graph", "parser", "proposal", "react", "transforms", "typescript", "visit"] }
|
||||
tempfile = "3.1.0"
|
||||
swc_bundler = "0.20.4"
|
||||
swc_common = { version = "0.10.9", features = ["sourcemap"] }
|
||||
swc_ecmascript = { version = "0.18.4", features = ["codegen", "dep_graph", "parser", "proposal", "react", "transforms", "typescript", "visit"] }
|
||||
tempfile = "3.2.0"
|
||||
termcolor = "1.1.2"
|
||||
text-size = "1.1.0"
|
||||
tokio = { version = "1.0.1", features = ["full"] }
|
||||
tokio = { version = "1.1.0", features = ["full"] }
|
||||
tokio-rustls = "0.22.0"
|
||||
uuid = { version = "0.8.2", features = ["v4"] }
|
||||
walkdir = "2.3.1"
|
||||
|
|
|
@ -1540,7 +1540,7 @@ mod tests {
|
|||
let time = Instant::now();
|
||||
harness.run().await;
|
||||
assert!(
|
||||
time.elapsed().as_millis() <= 10000,
|
||||
time.elapsed().as_millis() <= 15000,
|
||||
"the execution time exceeded 10000ms"
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,31 +1,27 @@
|
|||
[WILDCARD]
|
||||
function returnsHi() {
|
||||
return "Hi";
|
||||
function printHello() {
|
||||
console.log("Hello");
|
||||
}
|
||||
function returnsFoo() {
|
||||
return "Foo";
|
||||
}
|
||||
function printHello() {
|
||||
console.log("Hello");
|
||||
}
|
||||
function printHello2() {
|
||||
printHello();
|
||||
}
|
||||
function returnsFoo2() {
|
||||
function returnsHi1() {
|
||||
return "Hi";
|
||||
}
|
||||
export { returnsHi1 as returnsHi };
|
||||
function returnsFoo21() {
|
||||
return returnsFoo();
|
||||
}
|
||||
function printHello3() {
|
||||
export { returnsFoo21 as returnsFoo2 };
|
||||
function printHello31() {
|
||||
printHello2();
|
||||
}
|
||||
function throwsError() {
|
||||
export { printHello31 as printHello3 };
|
||||
function throwsError1() {
|
||||
throw Error("exception from mod1");
|
||||
}
|
||||
const returnsHi1 = returnsHi;
|
||||
const returnsFoo21 = returnsFoo2;
|
||||
const printHello31 = printHello3;
|
||||
const throwsError1 = throwsError;
|
||||
export { returnsHi as returnsHi };
|
||||
export { returnsFoo2 as returnsFoo2 };
|
||||
export { printHello3 as printHello3 };
|
||||
export { throwsError as throwsError };
|
||||
export { throwsError1 as throwsError };
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ const b = "b";
|
|||
console.log(b);
|
||||
const mod = function() {
|
||||
const c = "c";
|
||||
const c1 = c;
|
||||
class C {
|
||||
}
|
||||
const c1 = c;
|
||||
const __default = C;
|
||||
const __default1 = C;
|
||||
return {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
const importMeta = {
|
||||
url: "file:///tests/fixture06.ts",
|
||||
main: import.meta.main
|
||||
};
|
||||
const importMeta1 = {
|
||||
url: "file:///tests/subdir/f.ts",
|
||||
main: false
|
||||
};
|
||||
const isMain = importMeta1.main;
|
||||
const modUrl = importMeta1.url;
|
||||
const isMain = importMeta.main;
|
||||
const modUrl = importMeta.url;
|
||||
const importMeta1 = {
|
||||
url: "file:///tests/fixture06.ts",
|
||||
main: import.meta.main
|
||||
};
|
||||
console.log(isMain, modUrl);
|
||||
console.log(importMeta.main, importMeta.url);
|
||||
console.log(importMeta1.main, importMeta1.url);
|
||||
|
|
|
@ -6,4 +6,4 @@ const mod = function() {
|
|||
};
|
||||
}();
|
||||
const a = mod;
|
||||
export { a };
|
||||
export { mod as a };
|
||||
|
|
|
@ -15,7 +15,6 @@ const mod1 = function() {
|
|||
};
|
||||
}();
|
||||
const k = globalThis.value ? mod : mod1;
|
||||
const { a , } = k;
|
||||
const a1 = a;
|
||||
const a2 = a;
|
||||
const { a: a2 , } = k;
|
||||
const a1 = a2;
|
||||
export { a1 as a };
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
const a = "a";
|
||||
const a1 = a;
|
||||
const o = {
|
||||
};
|
||||
const a = "a";
|
||||
const { a: a1 = a } = o;
|
||||
console.log(a1);
|
||||
const { a: a2 = a1 } = o;
|
||||
console.log(a2);
|
||||
|
|
|
@ -1,22 +1,25 @@
|
|||
var O2;
|
||||
function a() {
|
||||
console.log("a");
|
||||
}
|
||||
const a1 = a;
|
||||
var O3;
|
||||
(function(O1) {
|
||||
O1[O1["A"] = 0] = "A";
|
||||
O1[O1["B"] = 1] = "B";
|
||||
O1[O1["C"] = 2] = "C";
|
||||
})(O2 || (O2 = {
|
||||
})(O3 || (O3 = {
|
||||
}));
|
||||
function a() {
|
||||
console.log("a");
|
||||
}
|
||||
const O1 = O2;
|
||||
export { O1 as O };
|
||||
const O1 = O3;
|
||||
const a2 = a1;
|
||||
const O2 = O1;
|
||||
export { O2 as O };
|
||||
class A {
|
||||
#a;
|
||||
#c;
|
||||
constructor(o = {
|
||||
}){
|
||||
const { a: a1 = a , c , } = o;
|
||||
this.#a = a1;
|
||||
const { a: a3 = a2 , c , } = o;
|
||||
this.#a = a3;
|
||||
this.#c = c;
|
||||
}
|
||||
a() {
|
||||
|
@ -26,7 +29,6 @@ class A {
|
|||
console.log(this.#c);
|
||||
}
|
||||
}
|
||||
const a2 = new A();
|
||||
a2.a();
|
||||
a2.c();
|
||||
const O3 = O2;
|
||||
const a4 = new A();
|
||||
a4.a();
|
||||
a4.c();
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
function getIndex(c) {
|
||||
function getIndex1(c) {
|
||||
return "\x00\r\n\x85\u2028\u2029".indexOf(c);
|
||||
}
|
||||
const getIndex1 = getIndex;
|
||||
export { getIndex as getIndex };
|
||||
export { getIndex1 as getIndex };
|
||||
|
|
|
@ -189,7 +189,7 @@ Deno.test({
|
|||
assert(!ignoredOptions);
|
||||
assertEquals(stats.length, 12);
|
||||
assertEquals(Object.keys(files), ["deno:///bundle.js"]);
|
||||
assert(files["deno:///bundle.js"].includes(`const bar = "bar"`));
|
||||
assert(files["deno:///bundle.js"].includes(`const bar1 = "bar"`));
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -227,7 +227,7 @@ Deno.test({
|
|||
assert(!ignoredOptions);
|
||||
assertEquals(stats.length, 12);
|
||||
assertEquals(Object.keys(files), ["deno:///bundle.js"]);
|
||||
assert(files["deno:///bundle.js"].includes(`const bar = "bar"`));
|
||||
assert(files["deno:///bundle.js"].includes(`const bar1 = "bar"`));
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -9,15 +9,14 @@
|
|||
0.5950178237266042
|
||||
0.22440633214343908
|
||||
Uint8Array(32) [
|
||||
116, 125, 169, 69, 106, 231, 99,
|
||||
39, 148, 188, 211, 41, 46, 211,
|
||||
236, 141, 55, 10, 214, 63, 118,
|
||||
230, 218, 249, 125, 161, 137, 110,
|
||||
214, 36, 159, 154
|
||||
153, 221, 127, 193, 173, 88, 77, 155,
|
||||
23, 66, 117, 239, 157, 231, 189, 160,
|
||||
79, 198, 30, 56, 137, 159, 220, 226,
|
||||
47, 211, 26, 73, 243, 252, 71, 214
|
||||
]
|
||||
Uint8Array(32) [
|
||||
248, 21, 21, 9, 41, 0, 71, 124,
|
||||
244, 209, 252, 151, 7, 10, 168, 250,
|
||||
84, 170, 243, 140, 53, 47, 99, 212,
|
||||
18, 146, 68, 48, 66, 222, 67, 112
|
||||
18, 98, 66, 131, 76, 87, 93, 76,
|
||||
205, 81, 250, 112, 129, 119, 92, 9,
|
||||
116, 99, 5, 171, 8, 137, 132, 79,
|
||||
255, 9, 194, 1, 138, 85, 72, 189
|
||||
]
|
||||
|
|
|
@ -14,14 +14,14 @@ path = "lib.rs"
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1.0.38"
|
||||
futures = "0.3.9"
|
||||
futures = "0.3.12"
|
||||
indexmap = "1.6.1"
|
||||
lazy_static = "1.4.0"
|
||||
libc = "0.2.82"
|
||||
log = "0.4.13"
|
||||
pin-project = "1.0.4"
|
||||
rusty_v8 = "0.16.0"
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
serde = { version = "1.0.121", features = ["derive"] }
|
||||
serde_json = { version = "1.0.61", features = ["preserve_order"] }
|
||||
smallvec = "1.6.1"
|
||||
url = { version = "2.2.0", features = ["serde"] }
|
||||
|
@ -36,4 +36,4 @@ path = "examples/http_bench_json_ops.rs"
|
|||
|
||||
# These dependencies are only used for the 'http_bench_*_ops' examples.
|
||||
[dev-dependencies]
|
||||
tokio = { version = "1.0.1", features = ["full"] }
|
||||
tokio = { version = "1.1.0", features = ["full"] }
|
||||
|
|
|
@ -15,5 +15,5 @@ path = "lib.rs"
|
|||
|
||||
[dependencies]
|
||||
deno_core = { version = "0.77.0", path = "../../core" }
|
||||
rand = "0.7.3"
|
||||
rand = "0.8.2"
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ path = "lib.rs"
|
|||
bytes = "1.0.1"
|
||||
deno_core = { version = "0.77.0", path = "../../core" }
|
||||
reqwest = { version = "0.11.0", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli"] }
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
tokio = { version = "1.0.1", features = ["full"] }
|
||||
tokio-stream = "0.1.1"
|
||||
tokio-util = "0.6.0"
|
||||
serde = { version = "1.0.121", features = ["derive"] }
|
||||
tokio = { version = "1.1.0", features = ["full"] }
|
||||
tokio-stream = "0.1.2"
|
||||
tokio-util = "0.6.2"
|
||||
|
|
|
@ -16,7 +16,7 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
deno_core = { version = "0.77.0", path = "../../core" }
|
||||
idna = "0.2.0"
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
serde = { version = "1.0.121", features = ["derive"] }
|
||||
|
||||
[dev-dependencies]
|
||||
futures = "0.3.9"
|
||||
futures = "0.3.12"
|
||||
|
|
|
@ -16,8 +16,8 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
deno_core = { version = "0.77.0", path = "../../core" }
|
||||
http = "0.2.3"
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
tokio = { version = "1.0.1", features = ["full"] }
|
||||
serde = { version = "1.0.121", features = ["derive"] }
|
||||
tokio = { version = "1.1.0", features = ["full"] }
|
||||
tokio-rustls = "0.22.0"
|
||||
tokio-tungstenite = "0.13.0"
|
||||
webpki = "0.21.4"
|
||||
|
|
|
@ -39,7 +39,7 @@ atty = "0.2.14"
|
|||
dlopen = "0.1.8"
|
||||
encoding_rs = "0.8.26"
|
||||
env_logger = "0.8.2"
|
||||
filetime = "0.2.13"
|
||||
filetime = "0.2.14"
|
||||
http = "0.2.3"
|
||||
hyper = { version = "0.14.2", features = ["server"] }
|
||||
indexmap = "1.6.1"
|
||||
|
@ -52,11 +52,11 @@ regex = "1.4.3"
|
|||
ring = "0.16.19"
|
||||
rustyline = { version = "7.1.0", default-features = false }
|
||||
rustyline-derive = "0.4.0"
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
serde = { version = "1.0.121", features = ["derive"] }
|
||||
shell-escape = "0.1.5"
|
||||
sys-info = "0.7.0"
|
||||
termcolor = "1.1.2"
|
||||
tokio = { version = "1.0.1", features = ["full"] }
|
||||
tokio = { version = "1.1.0", features = ["full"] }
|
||||
tokio-rustls = "0.22.0"
|
||||
uuid = { version = "0.8.2", features = ["v4"] }
|
||||
webpki = "0.21.4"
|
||||
|
|
Loading…
Reference in a new issue