Skip to content

Commit 6a1ffbe

Browse files
committed
chore(release): 0.55.0
Upgrades swc.
1 parent f8a4af3 commit 6a1ffbe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dprint-plugin-typescript"
3-
version = "0.54.0"
3+
version = "0.55.0"
44
authors = ["David Sherret <[email protected]>"]
55
edition = "2018"
66
homepage = "https://github.com/dprint/dprint-plugin-typescript"
@@ -29,9 +29,9 @@ dprint-core = { version = "0.46.0", features = ["formatting"] }
2929
fnv = "1.0.7"
3030
serde = { version = "1.0.118", features = ["derive"] }
3131
serde_json = { version = "1.0", optional = true }
32-
swc_ast_view = { version = "0.33.1", package = "dprint-swc-ecma-ast-view" }
33-
swc_common = "0.11.8"
34-
swc_ecmascript = { version = "0.60.0", features = ["parser"] }
32+
swc_ast_view = { version = "0.35.0", package = "dprint-swc-ecma-ast-view" }
33+
swc_common = "0.12.0"
34+
swc_ecmascript = { version = "0.63.0", features = ["parser"] }
3535

3636
[dev-dependencies]
3737
debug-here = "0.2"

src/swc/parse_swc_ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn parse_inner(file_path: &Path, file_text: &str) -> Result<ParsedSourceFile, Er
5555
dts: false,
5656
no_early_errors: false,
5757
};
58-
let lexer = Lexer::new(Syntax::Typescript(ts_config), JscTarget::Es2019, string_input, Some(&comments));
58+
let lexer = Lexer::new(Syntax::Typescript(ts_config), JscTarget::Es2021, string_input, Some(&comments));
5959
let lexer = Capturing::new(lexer);
6060
let mut parser = Parser::new_from(lexer);
6161
let parse_module_result = parser.parse_module();

0 commit comments

Comments
 (0)