summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/Cargo.toml22
-rw-r--r--cli/lsp/language_server.rs2
-rw-r--r--cli/tests/bundle.test.out28
-rw-r--r--cli/tests/bundle/fixture02.out2
-rw-r--r--cli/tests/bundle/fixture06.out14
-rw-r--r--cli/tests/bundle/fixture08.out2
-rw-r--r--cli/tests/bundle/fixture09.out5
-rw-r--r--cli/tests/bundle/fixture10.out7
-rw-r--r--cli/tests/bundle/fixture11.out28
-rw-r--r--cli/tests/bundle/fixture15.out5
-rw-r--r--cli/tests/compiler_api_test.ts4
-rw-r--r--cli/tests/seed_random.js.out17
12 files changed, 66 insertions, 70 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index 8f0fc7235..bb4352967 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -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"
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs
index 21a229b47..55ae92c00 100644
--- a/cli/lsp/language_server.rs
+++ b/cli/lsp/language_server.rs
@@ -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"
);
}
diff --git a/cli/tests/bundle.test.out b/cli/tests/bundle.test.out
index 155430c99..b21e53b42 100644
--- a/cli/tests/bundle.test.out
+++ b/cli/tests/bundle.test.out
@@ -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 };
diff --git a/cli/tests/bundle/fixture02.out b/cli/tests/bundle/fixture02.out
index b14fc143b..f831aac2e 100644
--- a/cli/tests/bundle/fixture02.out
+++ b/cli/tests/bundle/fixture02.out
@@ -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 {
diff --git a/cli/tests/bundle/fixture06.out b/cli/tests/bundle/fixture06.out
index 3c583c56e..47288d5e4 100644
--- a/cli/tests/bundle/fixture06.out
+++ b/cli/tests/bundle/fixture06.out
@@ -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);
diff --git a/cli/tests/bundle/fixture08.out b/cli/tests/bundle/fixture08.out
index 0ab646840..7ddb20077 100644
--- a/cli/tests/bundle/fixture08.out
+++ b/cli/tests/bundle/fixture08.out
@@ -6,4 +6,4 @@ const mod = function() {
};
}();
const a = mod;
-export { a };
+export { mod as a };
diff --git a/cli/tests/bundle/fixture09.out b/cli/tests/bundle/fixture09.out
index 73031ef02..e7396f493 100644
--- a/cli/tests/bundle/fixture09.out
+++ b/cli/tests/bundle/fixture09.out
@@ -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 };
diff --git a/cli/tests/bundle/fixture10.out b/cli/tests/bundle/fixture10.out
index 209c19612..776aac1ae 100644
--- a/cli/tests/bundle/fixture10.out
+++ b/cli/tests/bundle/fixture10.out
@@ -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);
diff --git a/cli/tests/bundle/fixture11.out b/cli/tests/bundle/fixture11.out
index 9c22c3b09..876eb45ac 100644
--- a/cli/tests/bundle/fixture11.out
+++ b/cli/tests/bundle/fixture11.out
@@ -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();
diff --git a/cli/tests/bundle/fixture15.out b/cli/tests/bundle/fixture15.out
index 408d8464f..dc72fdeff 100644
--- a/cli/tests/bundle/fixture15.out
+++ b/cli/tests/bundle/fixture15.out
@@ -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 };
diff --git a/cli/tests/compiler_api_test.ts b/cli/tests/compiler_api_test.ts
index 98685f467..17c02b0e5 100644
--- a/cli/tests/compiler_api_test.ts
+++ b/cli/tests/compiler_api_test.ts
@@ -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"`));
},
});
diff --git a/cli/tests/seed_random.js.out b/cli/tests/seed_random.js.out
index 2b5551c83..4d1ebd081 100644
--- a/cli/tests/seed_random.js.out
+++ b/cli/tests/seed_random.js.out
@@ -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
]