summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-08-23 13:57:09 +0200
committerGitHub <noreply@github.com>2020-08-23 13:57:09 +0200
commitc1558beffbb5f7941059be2e4e91ba2d1454adaa (patch)
tree4ce7f64d796d7ae726ba762c4c4ffbb6ed34f401 /cli
parentfe59a423a6237b66ae048f2c130cbb8d968ad647 (diff)
upgrade: swc, dprint, deno_lint, deno_doc (#7162)
Diffstat (limited to 'cli')
-rw-r--r--cli/Cargo.toml8
-rw-r--r--cli/swc_util.rs6
-rw-r--r--cli/tests/error_syntax.js.out2
-rw-r--r--cli/tests/lint/expected_json.out2
-rw-r--r--cli/tests/swc_syntax_error.ts.out2
5 files changed, 7 insertions, 13 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index f1f72045d..631b74b89 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -24,8 +24,8 @@ winapi = "0.3.9"
[dependencies]
deno_core = { path = "../core", version = "0.54.0" }
-deno_doc = { version = "0.1.0" }
-deno_lint = { version = "0.1.23", features = ["json"] }
+deno_doc = { version = "0.1.1" }
+deno_lint = { version = "0.1.24", features = ["json"] }
atty = "0.2.14"
base64 = "0.12.3"
@@ -35,7 +35,7 @@ clap = "2.33.2"
dissimilar = "1.0.2"
dlopen = "0.1.8"
encoding_rs = "0.8.23"
-dprint-plugin-typescript = "0.29.1"
+dprint-plugin-typescript = "0.30.0"
futures = "0.3.5"
http = "0.2.1"
idna = "0.2.0"
@@ -55,7 +55,7 @@ serde_json = { version = "1.0.57", features = [ "preserve_order" ] }
sys-info = "0.7.0"
sourcemap = "6.0.1"
swc_common = { version = "=0.9.1", features = ["sourcemap"] }
-swc_ecmascript = { version = "=0.3.2", features = ["codegen", "parser", "transforms", "visit"] }
+swc_ecmascript = { version = "=0.5.0", features = ["codegen", "parser", "transforms", "visit"] }
tempfile = "3.1.0"
termcolor = "1.1.0"
tokio = { version = "0.2.22", features = ["full"] }
diff --git a/cli/swc_util.rs b/cli/swc_util.rs
index 13d165113..be1e6cad7 100644
--- a/cli/swc_util.rs
+++ b/cli/swc_util.rs
@@ -57,10 +57,6 @@ impl Into<Location> for swc_common::Loc {
}
}
-struct DummyHandler;
-
-impl swc_ecmascript::codegen::Handlers for DummyHandler {}
-
fn get_default_es_config() -> EsConfig {
let mut config = EsConfig::default();
config.num_sep = true;
@@ -244,7 +240,6 @@ impl AstParser {
let mut src_map_buf = vec![];
let mut buf = vec![];
{
- let handlers = Box::new(DummyHandler);
let writer = Box::new(JsWriter::new(
self.source_map.clone(),
"\n",
@@ -257,7 +252,6 @@ impl AstParser {
comments: Some(&self.comments),
cm: self.source_map.clone(),
wr: writer,
- handlers,
};
program.emit_with(&mut emitter)?;
}
diff --git a/cli/tests/error_syntax.js.out b/cli/tests/error_syntax.js.out
index 107bc1df0..d458bae49 100644
--- a/cli/tests/error_syntax.js.out
+++ b/cli/tests/error_syntax.js.out
@@ -1 +1 @@
-error: Expected Comma, got Some(Word(following)) at [WILDCARD]tests/error_syntax.js:3:5
+error: Expected ,, got following at [WILDCARD]tests/error_syntax.js:3:5
diff --git a/cli/tests/lint/expected_json.out b/cli/tests/lint/expected_json.out
index b4ce63395..8d2e83bb7 100644
--- a/cli/tests/lint/expected_json.out
+++ b/cli/tests/lint/expected_json.out
@@ -37,7 +37,7 @@
"errors": [
{
"file_path": "[WILDCARD]malformed.js",
- "message": "Expected RBrace, got None at [WILDCARD]malformed.js:4:15"
+ "message": "Expected }, got <eof> at [WILDCARD]malformed.js:4:15"
}
]
}
diff --git a/cli/tests/swc_syntax_error.ts.out b/cli/tests/swc_syntax_error.ts.out
index 0cc365e20..53ed29cb6 100644
--- a/cli/tests/swc_syntax_error.ts.out
+++ b/cli/tests/swc_syntax_error.ts.out
@@ -1 +1 @@
-error: Unexpected token Some(RBrace) at [WILDCARD]syntax_error.ts:4:0
+error: Unexpected token `}`. Expected an identifier, void, yield, null, await, break, a string literal, a numeric literal, true, false, `, -, import, this, typeof, {, [, ( at [WILDCARD]syntax_error.ts:4:0