0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -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:
Luca Casonato 2021-01-26 17:00:40 +01:00 committed by GitHub
parent eb30c6f510
commit 40fc5f55ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 375 additions and 378 deletions

587
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -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_web = { path = "../op_crates/web", version = "0.28.0" }
deno_websocket = { path = "../op_crates/websocket", version = "0.3.0" } deno_websocket = { path = "../op_crates/websocket", version = "0.3.0" }
regex = "1.4.3" regex = "1.4.3"
serde = { version = "1.0.116", features = ["derive"] } serde = { version = "1.0.121", features = ["derive"] }
[target.'cfg(windows)'.build-dependencies] [target.'cfg(windows)'.build-dependencies]
winapi = "0.3.9" winapi = "0.3.9"
@ -37,8 +37,8 @@ winres = "0.1.11"
[dependencies] [dependencies]
deno_core = { path = "../core", version = "0.77.0" } deno_core = { path = "../core", version = "0.77.0" }
deno_doc = "0.1.20" deno_doc = "0.1.21"
deno_lint = "0.2.16" deno_lint = "0.2.17"
deno_runtime = { path = "../runtime", version = "0.7.0" } deno_runtime = { path = "../runtime", version = "0.7.0" }
atty = "0.2.14" atty = "0.2.14"
@ -46,11 +46,11 @@ base64 = "0.13.0"
byteorder = "1.4.2" byteorder = "1.4.2"
clap = "2.33.3" clap = "2.33.3"
dissimilar = "1.0.2" dissimilar = "1.0.2"
dprint-plugin-typescript = "0.38.3" dprint-plugin-typescript = "0.38.5"
dprint-plugin-markdown = "0.5.1" dprint-plugin-markdown = "0.5.1"
encoding_rs = "0.8.26" encoding_rs = "0.8.26"
env_logger = "0.8.2" env_logger = "0.8.2"
filetime = "0.2.13" filetime = "0.2.14"
http = "0.2.3" http = "0.2.3"
indexmap = "1.6.1" indexmap = "1.6.1"
jsonc-parser = "0.15.1" jsonc-parser = "0.15.1"
@ -66,16 +66,16 @@ ring = "0.16.19"
rustyline = { version = "7.1.0", default-features = false } rustyline = { version = "7.1.0", default-features = false }
rustyline-derive = "0.4.0" rustyline-derive = "0.4.0"
semver-parser = "0.10.2" semver-parser = "0.10.2"
serde = { version = "1.0.116", features = ["derive"] } serde = { version = "1.0.121", features = ["derive"] }
shell-escape = "0.1.5" shell-escape = "0.1.5"
sourcemap = "6.0.1" sourcemap = "6.0.1"
swc_bundler = "0.19.2" swc_bundler = "0.20.4"
swc_common = { version = "0.10.8", features = ["sourcemap"] } swc_common = { version = "0.10.9", features = ["sourcemap"] }
swc_ecmascript = { version = "0.17.1", features = ["codegen", "dep_graph", "parser", "proposal", "react", "transforms", "typescript", "visit"] } swc_ecmascript = { version = "0.18.4", features = ["codegen", "dep_graph", "parser", "proposal", "react", "transforms", "typescript", "visit"] }
tempfile = "3.1.0" tempfile = "3.2.0"
termcolor = "1.1.2" termcolor = "1.1.2"
text-size = "1.1.0" text-size = "1.1.0"
tokio = { version = "1.0.1", features = ["full"] } tokio = { version = "1.1.0", features = ["full"] }
tokio-rustls = "0.22.0" tokio-rustls = "0.22.0"
uuid = { version = "0.8.2", features = ["v4"] } uuid = { version = "0.8.2", features = ["v4"] }
walkdir = "2.3.1" walkdir = "2.3.1"

View file

@ -1540,7 +1540,7 @@ mod tests {
let time = Instant::now(); let time = Instant::now();
harness.run().await; harness.run().await;
assert!( assert!(
time.elapsed().as_millis() <= 10000, time.elapsed().as_millis() <= 15000,
"the execution time exceeded 10000ms" "the execution time exceeded 10000ms"
); );
} }

View file

@ -1,31 +1,27 @@
[WILDCARD] [WILDCARD]
function returnsHi() { function printHello() {
return "Hi"; console.log("Hello");
} }
function returnsFoo() { function returnsFoo() {
return "Foo"; return "Foo";
} }
function printHello() {
console.log("Hello");
}
function printHello2() { function printHello2() {
printHello(); printHello();
} }
function returnsFoo2() { function returnsHi1() {
return "Hi";
}
export { returnsHi1 as returnsHi };
function returnsFoo21() {
return returnsFoo(); return returnsFoo();
} }
function printHello3() { export { returnsFoo21 as returnsFoo2 };
function printHello31() {
printHello2(); printHello2();
} }
function throwsError() { export { printHello31 as printHello3 };
function throwsError1() {
throw Error("exception from mod1"); throw Error("exception from mod1");
} }
const returnsHi1 = returnsHi; export { throwsError1 as throwsError };
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 };

View file

@ -2,9 +2,9 @@ const b = "b";
console.log(b); console.log(b);
const mod = function() { const mod = function() {
const c = "c"; const c = "c";
const c1 = c;
class C { class C {
} }
const c1 = c;
const __default = C; const __default = C;
const __default1 = C; const __default1 = C;
return { return {

View file

@ -1,12 +1,12 @@
const importMeta = { const importMeta = {
url: "file:///tests/fixture06.ts",
main: import.meta.main
};
const importMeta1 = {
url: "file:///tests/subdir/f.ts", url: "file:///tests/subdir/f.ts",
main: false main: false
}; };
const isMain = importMeta1.main; const isMain = importMeta.main;
const modUrl = importMeta1.url; const modUrl = importMeta.url;
const importMeta1 = {
url: "file:///tests/fixture06.ts",
main: import.meta.main
};
console.log(isMain, modUrl); console.log(isMain, modUrl);
console.log(importMeta.main, importMeta.url); console.log(importMeta1.main, importMeta1.url);

View file

@ -6,4 +6,4 @@ const mod = function() {
}; };
}(); }();
const a = mod; const a = mod;
export { a }; export { mod as a };

View file

@ -15,7 +15,6 @@ const mod1 = function() {
}; };
}(); }();
const k = globalThis.value ? mod : mod1; const k = globalThis.value ? mod : mod1;
const { a , } = k; const { a: a2 , } = k;
const a1 = a; const a1 = a2;
const a2 = a;
export { a1 as a }; export { a1 as a };

View file

@ -1,5 +1,6 @@
const a = "a";
const a1 = a;
const o = { const o = {
}; };
const a = "a"; const { a: a2 = a1 } = o;
const { a: a1 = a } = o; console.log(a2);
console.log(a1);

View file

@ -1,22 +1,25 @@
var O2; function a() {
console.log("a");
}
const a1 = a;
var O3;
(function(O1) { (function(O1) {
O1[O1["A"] = 0] = "A"; O1[O1["A"] = 0] = "A";
O1[O1["B"] = 1] = "B"; O1[O1["B"] = 1] = "B";
O1[O1["C"] = 2] = "C"; O1[O1["C"] = 2] = "C";
})(O2 || (O2 = { })(O3 || (O3 = {
})); }));
function a() { const O1 = O3;
console.log("a"); const a2 = a1;
} const O2 = O1;
const O1 = O2; export { O2 as O };
export { O1 as O };
class A { class A {
#a; #a;
#c; #c;
constructor(o = { constructor(o = {
}){ }){
const { a: a1 = a , c , } = o; const { a: a3 = a2 , c , } = o;
this.#a = a1; this.#a = a3;
this.#c = c; this.#c = c;
} }
a() { a() {
@ -26,7 +29,6 @@ class A {
console.log(this.#c); console.log(this.#c);
} }
} }
const a2 = new A(); const a4 = new A();
a2.a(); a4.a();
a2.c(); a4.c();
const O3 = O2;

View file

@ -1,5 +1,4 @@
function getIndex(c) { function getIndex1(c) {
return "\x00\r\n\x85\u2028\u2029".indexOf(c); return "\x00\r\n\x85\u2028\u2029".indexOf(c);
} }
const getIndex1 = getIndex; export { getIndex1 as getIndex };
export { getIndex as getIndex };

View file

@ -189,7 +189,7 @@ Deno.test({
assert(!ignoredOptions); assert(!ignoredOptions);
assertEquals(stats.length, 12); assertEquals(stats.length, 12);
assertEquals(Object.keys(files), ["deno:///bundle.js"]); 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); assert(!ignoredOptions);
assertEquals(stats.length, 12); assertEquals(stats.length, 12);
assertEquals(Object.keys(files), ["deno:///bundle.js"]); 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"`));
}, },
}); });

View file

@ -9,15 +9,14 @@
0.5950178237266042 0.5950178237266042
0.22440633214343908 0.22440633214343908
Uint8Array(32) [ Uint8Array(32) [
116, 125, 169, 69, 106, 231, 99, 153, 221, 127, 193, 173, 88, 77, 155,
39, 148, 188, 211, 41, 46, 211, 23, 66, 117, 239, 157, 231, 189, 160,
236, 141, 55, 10, 214, 63, 118, 79, 198, 30, 56, 137, 159, 220, 226,
230, 218, 249, 125, 161, 137, 110, 47, 211, 26, 73, 243, 252, 71, 214
214, 36, 159, 154
] ]
Uint8Array(32) [ Uint8Array(32) [
248, 21, 21, 9, 41, 0, 71, 124, 18, 98, 66, 131, 76, 87, 93, 76,
244, 209, 252, 151, 7, 10, 168, 250, 205, 81, 250, 112, 129, 119, 92, 9,
84, 170, 243, 140, 53, 47, 99, 212, 116, 99, 5, 171, 8, 137, 132, 79,
18, 146, 68, 48, 66, 222, 67, 112 255, 9, 194, 1, 138, 85, 72, 189
] ]

View file

@ -14,14 +14,14 @@ path = "lib.rs"
[dependencies] [dependencies]
anyhow = "1.0.38" anyhow = "1.0.38"
futures = "0.3.9" futures = "0.3.12"
indexmap = "1.6.1" indexmap = "1.6.1"
lazy_static = "1.4.0" lazy_static = "1.4.0"
libc = "0.2.82" libc = "0.2.82"
log = "0.4.13" log = "0.4.13"
pin-project = "1.0.4" pin-project = "1.0.4"
rusty_v8 = "0.16.0" 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"] } serde_json = { version = "1.0.61", features = ["preserve_order"] }
smallvec = "1.6.1" smallvec = "1.6.1"
url = { version = "2.2.0", features = ["serde"] } 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. # These dependencies are only used for the 'http_bench_*_ops' examples.
[dev-dependencies] [dev-dependencies]
tokio = { version = "1.0.1", features = ["full"] } tokio = { version = "1.1.0", features = ["full"] }

View file

@ -15,5 +15,5 @@ path = "lib.rs"
[dependencies] [dependencies]
deno_core = { version = "0.77.0", path = "../../core" } deno_core = { version = "0.77.0", path = "../../core" }
rand = "0.7.3" rand = "0.8.2"

View file

@ -17,7 +17,7 @@ path = "lib.rs"
bytes = "1.0.1" bytes = "1.0.1"
deno_core = { version = "0.77.0", path = "../../core" } deno_core = { version = "0.77.0", path = "../../core" }
reqwest = { version = "0.11.0", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli"] } reqwest = { version = "0.11.0", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli"] }
serde = { version = "1.0.116", features = ["derive"] } serde = { version = "1.0.121", features = ["derive"] }
tokio = { version = "1.0.1", features = ["full"] } tokio = { version = "1.1.0", features = ["full"] }
tokio-stream = "0.1.1" tokio-stream = "0.1.2"
tokio-util = "0.6.0" tokio-util = "0.6.2"

View file

@ -16,7 +16,7 @@ path = "lib.rs"
[dependencies] [dependencies]
deno_core = { version = "0.77.0", path = "../../core" } deno_core = { version = "0.77.0", path = "../../core" }
idna = "0.2.0" idna = "0.2.0"
serde = { version = "1.0.116", features = ["derive"] } serde = { version = "1.0.121", features = ["derive"] }
[dev-dependencies] [dev-dependencies]
futures = "0.3.9" futures = "0.3.12"

View file

@ -16,8 +16,8 @@ path = "lib.rs"
[dependencies] [dependencies]
deno_core = { version = "0.77.0", path = "../../core" } deno_core = { version = "0.77.0", path = "../../core" }
http = "0.2.3" http = "0.2.3"
serde = { version = "1.0.116", features = ["derive"] } serde = { version = "1.0.121", features = ["derive"] }
tokio = { version = "1.0.1", features = ["full"] } tokio = { version = "1.1.0", features = ["full"] }
tokio-rustls = "0.22.0" tokio-rustls = "0.22.0"
tokio-tungstenite = "0.13.0" tokio-tungstenite = "0.13.0"
webpki = "0.21.4" webpki = "0.21.4"

View file

@ -39,7 +39,7 @@ atty = "0.2.14"
dlopen = "0.1.8" dlopen = "0.1.8"
encoding_rs = "0.8.26" encoding_rs = "0.8.26"
env_logger = "0.8.2" env_logger = "0.8.2"
filetime = "0.2.13" filetime = "0.2.14"
http = "0.2.3" http = "0.2.3"
hyper = { version = "0.14.2", features = ["server"] } hyper = { version = "0.14.2", features = ["server"] }
indexmap = "1.6.1" indexmap = "1.6.1"
@ -52,11 +52,11 @@ regex = "1.4.3"
ring = "0.16.19" ring = "0.16.19"
rustyline = { version = "7.1.0", default-features = false } rustyline = { version = "7.1.0", default-features = false }
rustyline-derive = "0.4.0" rustyline-derive = "0.4.0"
serde = { version = "1.0.116", features = ["derive"] } serde = { version = "1.0.121", features = ["derive"] }
shell-escape = "0.1.5" shell-escape = "0.1.5"
sys-info = "0.7.0" sys-info = "0.7.0"
termcolor = "1.1.2" termcolor = "1.1.2"
tokio = { version = "1.0.1", features = ["full"] } tokio = { version = "1.1.0", features = ["full"] }
tokio-rustls = "0.22.0" tokio-rustls = "0.22.0"
uuid = { version = "0.8.2", features = ["v4"] } uuid = { version = "0.8.2", features = ["v4"] }
webpki = "0.21.4" webpki = "0.21.4"