Skip to content

Commit

Permalink
fix(es): Fix bugs (#2222)
Browse files Browse the repository at this point in the history
swc_ecma_parser:
 - Don't panic on `typeof import(T)`. (#2198)
 - Fix parsing of ternary. (#2196)

swc_ecma_transforms_base:
 - `fixer`: Handle unary in lhs of an exponentation expression. (#2191)

swc_ecma_transforms_compat:
 - Use variable for `this` in arrow expressions. (#2212)

swc_ecma_visit:
 - Add a trait `InjectVars`.

node_swc:
 - Increease recursion limit while deserializing. (#2223)
  • Loading branch information
kdy1 authored Sep 9, 2021
1 parent a9573b9 commit 2c47778
Show file tree
Hide file tree
Showing 56 changed files with 1,044 additions and 459 deletions.
52 changes: 26 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc"
repository = "https://github.com/swc-project/swc.git"
version = "0.51.0"
version = "0.51.1"

[lib]
name = "swc"
Expand All @@ -46,27 +46,27 @@ serde = {version = "1", features = ["derive"]}
serde_json = "1"
sourcemap = "6"
swc_atoms = {version = "0.2", path = "./atoms"}
swc_bundler = {version = "0.58.0", path = "./bundler"}
swc_bundler = {version = "0.58.1", path = "./bundler"}
swc_common = {version = "0.12.0", path = "./common", features = ["sourcemap", "concurrent"]}
swc_ecma_ast = {version = "0.52.0", path = "./ecmascript/ast"}
swc_ecma_codegen = {version = "0.70.0", path = "./ecmascript/codegen"}
swc_ecma_ext_transforms = {version = "0.28.0", path = "./ecmascript/ext-transforms"}
swc_ecma_loader = {version = "0.18.0", path = "./ecmascript/loader", features = ["lru", "node", "tsc"]}
swc_ecma_minifier = {version = "0.27.0", path = "./ecmascript/minifier"}
swc_ecma_parser = {version = "0.70.0", path = "./ecmascript/parser"}
swc_ecma_preset_env = {version = "0.42.0", path = "./ecmascript/preset-env"}
swc_ecma_transforms = {version = "0.71.0", path = "./ecmascript/transforms", features = [
swc_ecma_codegen = {version = "0.70.2", path = "./ecmascript/codegen"}
swc_ecma_ext_transforms = {version = "0.28.1", path = "./ecmascript/ext-transforms"}
swc_ecma_loader = {version = "0.18.1", path = "./ecmascript/loader", features = ["lru", "node", "tsc"]}
swc_ecma_minifier = {version = "0.27.2", path = "./ecmascript/minifier"}
swc_ecma_parser = {version = "0.70.2", path = "./ecmascript/parser"}
swc_ecma_preset_env = {version = "0.42.1", path = "./ecmascript/preset-env"}
swc_ecma_transforms = {version = "0.71.1", path = "./ecmascript/transforms", features = [
"compat",
"module",
"optimization",
"proposal",
"react",
"typescript",
]}
swc_ecma_transforms_base = {version = "0.31.0", path = "./ecmascript/transforms/base"}
swc_ecma_utils = {version = "0.44.0", path = "./ecmascript/utils"}
swc_ecma_visit = {version = "0.38.0", path = "./ecmascript/visit"}
swc_ecmascript = {version = "0.63.0", path = "./ecmascript"}
swc_ecma_transforms_base = {version = "0.31.1", path = "./ecmascript/transforms/base"}
swc_ecma_utils = {version = "0.44.2", path = "./ecmascript/utils"}
swc_ecma_visit = {version = "0.38.1", path = "./ecmascript/visit"}
swc_ecmascript = {version = "0.63.1", path = "./ecmascript"}
swc_node_base = {version = "0.3.0", path = "./node/base"}
swc_visit = {version = "0.2.3", path = "./visit"}

Expand Down
16 changes: 8 additions & 8 deletions bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"]
license = "Apache-2.0/MIT"
name = "swc_bundler"
repository = "https://github.com/swc-project/swc.git"
version = "0.58.0"
version = "0.58.1"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
Expand All @@ -34,19 +34,19 @@ retain_mut = "0.1.2"
swc_atoms = {version = "0.2.4", path = "../atoms"}
swc_common = {version = "0.12.0", path = "../common"}
swc_ecma_ast = {version = "0.52.0", path = "../ecmascript/ast"}
swc_ecma_codegen = {version = "0.70.0", path = "../ecmascript/codegen"}
swc_ecma_loader = {version = "0.18.0", path = "../ecmascript/loader"}
swc_ecma_parser = {version = "0.70.0", path = "../ecmascript/parser"}
swc_ecma_transforms = {version = "0.71.0", path = "../ecmascript/transforms", features = ["optimization"]}
swc_ecma_utils = {version = "0.44.0", path = "../ecmascript/utils"}
swc_ecma_visit = {version = "0.38.0", path = "../ecmascript/visit"}
swc_ecma_codegen = {version = "0.70.2", path = "../ecmascript/codegen"}
swc_ecma_loader = {version = "0.18.1", path = "../ecmascript/loader"}
swc_ecma_parser = {version = "0.70.2", path = "../ecmascript/parser"}
swc_ecma_transforms = {version = "0.71.1", path = "../ecmascript/transforms", features = ["optimization"]}
swc_ecma_utils = {version = "0.44.2", path = "../ecmascript/utils"}
swc_ecma_visit = {version = "0.38.1", path = "../ecmascript/visit"}

[dev-dependencies]
hex = "0.4"
ntest = "0.7.2"
reqwest = {version = "0.11.4", features = ["blocking"]}
sha-1 = "0.9"
swc_ecma_transforms = {version = "0.71.0", path = "../ecmascript/transforms", features = ["react", "typescript"]}
swc_ecma_transforms = {version = "0.71.1", path = "../ecmascript/transforms", features = ["react", "typescript"]}
tempfile = "3.1.0"
testing = {version = "0.13.0", path = "../testing"}
url = "2.1.1"
Expand Down
18 changes: 9 additions & 9 deletions ecmascript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecmascript"
repository = "https://github.com/swc-project/swc.git"
version = "0.63.0"
version = "0.63.1"

[package.metadata.docs.rs]
all-features = true
Expand All @@ -33,13 +33,13 @@ typescript = ["typescript-parser", "swc_ecma_transforms/typescript"]

[dependencies]
swc_ecma_ast = {version = "0.52.0", path = "./ast"}
swc_ecma_codegen = {version = "0.70.0", path = "./codegen", optional = true}
swc_ecma_dep_graph = {version = "0.39.0", path = "./dep-graph", optional = true}
swc_ecma_minifier = {version = "0.27.0", path = "./minifier", optional = true}
swc_ecma_parser = {version = "0.70.0", path = "./parser", optional = true, default-features = false}
swc_ecma_preset_env = {version = "0.42.0", path = "./preset-env", optional = true}
swc_ecma_transforms = {version = "0.71.0", path = "./transforms", optional = true}
swc_ecma_utils = {version = "0.44.0", path = "./utils", optional = true}
swc_ecma_visit = {version = "0.38.0", path = "./visit", optional = true}
swc_ecma_codegen = {version = "0.70.2", path = "./codegen", optional = true}
swc_ecma_dep_graph = {version = "0.39.1", path = "./dep-graph", optional = true}
swc_ecma_minifier = {version = "0.27.2", path = "./minifier", optional = true}
swc_ecma_parser = {version = "0.70.2", path = "./parser", optional = true, default-features = false}
swc_ecma_preset_env = {version = "0.42.1", path = "./preset-env", optional = true}
swc_ecma_transforms = {version = "0.71.1", path = "./transforms", optional = true}
swc_ecma_utils = {version = "0.44.2", path = "./utils", optional = true}
swc_ecma_visit = {version = "0.38.1", path = "./visit", optional = true}

[dev-dependencies]
4 changes: 2 additions & 2 deletions ecmascript/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0/MIT"
name = "swc_ecma_codegen"
repository = "https://github.com/swc-project/swc.git"
version = "0.70.1"
version = "0.70.2"

[dependencies]
bitflags = "1"
Expand All @@ -17,7 +17,7 @@ swc_atoms = {version = "0.2", path = "../../atoms"}
swc_common = {version = "0.12.0", path = "../../common"}
swc_ecma_ast = {version = "0.52.0", path = "../ast"}
swc_ecma_codegen_macros = {version = "0.5.2", path = "./macros"}
swc_ecma_parser = {version = "0.70.0", path = "../parser"}
swc_ecma_parser = {version = "0.70.2", path = "../parser"}

[dev-dependencies]
swc_common = {version = "0.12.0", path = "../../common", features = ["sourcemap"]}
Expand Down
6 changes: 3 additions & 3 deletions ecmascript/dep-graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_dep_graph"
repository = "https://github.com/swc-project/swc.git"
version = "0.39.0"
version = "0.39.1"

[dependencies]
swc_atoms = {version = "0.2", path = "../../atoms"}
swc_common = {version = "0.12.0", path = "../../common"}
swc_ecma_ast = {version = "0.52.0", path = "../ast"}
swc_ecma_visit = {version = "0.38.0", path = "../visit"}
swc_ecma_visit = {version = "0.38.1", path = "../visit"}

[dev-dependencies]
swc_ecma_parser = {version = "0.70.0", path = "../parser"}
swc_ecma_parser = {version = "0.70.2", path = "../parser"}
testing = {version = "0.13.0", path = "../../testing"}
Loading

0 comments on commit 2c47778

Please sign in to comment.