diff --git a/CHANGELOG.md b/CHANGELOG.md index 089b34624a4f..b47f939959e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Changelog +## [unreleased] + +### Features + + + +- **(es/minifier)** Evaluate more `toFixed` expressions ([#8109](https://github.com/swc-project/swc/issues/8109)) ([7da3f52](https://github.com/swc-project/swc/commit/7da3f52485062eb23c719e1236b2fee90c228bdd)) + ## [1.3.93] - 2023-10-13 ### Bug Fixes @@ -1751,9 +1759,6 @@ Full refactor of the "calc" simplification to be more compliant with the spec. ( - **(es)** Allow any kind of input source maps if it's enabled ([#7002](https://github.com/swc-project/swc/issues/7002)) ([da5367b](https://github.com/swc-project/swc/commit/da5367b3fbac2cf4ab7d7f4562d58be3cff0edf8)) -- **(es/minifier)** Don't create invalid property names ([#7010](https://github.com/swc-project/swc/issues/7010)) ([bb2486c](https://github.com/swc-project/swc/commit/bb2486c4592214c19ee6a1aa747dda5e58a1b07d)) - - - **(es/parser)** Fix parsing of an array spread in tsx properties ([#7011](https://github.com/swc-project/swc/issues/7011)) ([6d6731f](https://github.com/swc-project/swc/commit/6d6731f355ed3bc314be31061b971f9317bea713)) diff --git a/Cargo.lock b/Cargo.lock index c0381173d04c..fe1ccf0baedd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -283,7 +283,7 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.59.7" +version = "0.59.8" dependencies = [ "anyhow", "console_error_panic_hook", @@ -1055,7 +1055,7 @@ checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" [[package]] name = "dbg-swc" -version = "0.88.14" +version = "0.88.15" dependencies = [ "anyhow", "clap 3.2.25", @@ -3668,7 +3668,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.268.7" +version = "0.268.8" dependencies = [ "ansi_term", "anyhow", @@ -3739,7 +3739,7 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.221.7" +version = "0.221.8" dependencies = [ "anyhow", "crc", @@ -3794,7 +3794,7 @@ dependencies = [ [[package]] name = "swc_cli_impl" -version = "0.3.7" +version = "0.3.8" dependencies = [ "anyhow", "atty", @@ -3852,7 +3852,7 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "0.2.7" +version = "0.2.8" dependencies = [ "anyhow", "base64 0.13.1", @@ -3895,7 +3895,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.85.7" +version = "0.85.8" dependencies = [ "anyhow", "binding_macros", @@ -4439,7 +4439,7 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.188.7" +version = "0.188.8" dependencies = [ "ansi_term", "anyhow", @@ -4890,7 +4890,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "0.235.8" +version = "0.235.9" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", @@ -4938,7 +4938,7 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "0.193.7" +version = "0.193.8" dependencies = [ "ahash 0.8.3", "anyhow", @@ -4986,7 +4986,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.133.6" +version = "0.133.7" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -5037,7 +5037,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.130.6" +version = "0.130.7" dependencies = [ "criterion", "once_cell", @@ -5123,7 +5123,7 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.57.7" +version = "0.57.8" dependencies = [ "anyhow", "dashmap", diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml index e826d1474689..c9d2e3032c4a 100644 --- a/crates/binding_macros/Cargo.toml +++ b/crates/binding_macros/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "binding_macros" repository = "https://github.com/swc-project/swc.git" -version = "0.59.7" +version = "0.59.8" [lib] bench = false @@ -33,7 +33,7 @@ binding_wasm = [ [dependencies] # Common deps for the SWC imports -swc = { optional = true, version = "0.268.7", path = "../swc" } +swc = { optional = true, version = "0.268.8", path = "../swc" } swc_common = { optional = true, version = "0.33.0", path = "../swc_common" } swc_ecma_ast = { optional = true, version = "0.110.0", path = "../swc_ecma_ast" } swc_ecma_transforms = { optional = true, version = "0.225.6", path = "../swc_ecma_transforms" } diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index 72cd544f626d..be15c3334e88 100644 --- a/crates/dbg-swc/Cargo.toml +++ b/crates/dbg-swc/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "dbg-swc" repository = "https://github.com/kdy1/dbg-swc.git" -version = "0.88.14" +version = "0.88.15" [[bin]] bench = false @@ -32,7 +32,7 @@ swc_common = { version = "0.33.0", features = [ ], path = "../swc_common" } swc_ecma_ast = { version = "0.110.0", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.146.1", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.188.7", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.188.8", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_parser = { version = "0.141.1", path = "../swc_ecma_parser" } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 6eeaa37a26ec..58c375c107f8 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -9,7 +9,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc" repository = "https://github.com/swc-project/swc.git" -version = "0.268.7" +version = "0.268.8" [lib] bench = false @@ -73,7 +73,7 @@ swc_common = { version = "0.33.0", path = "../swc_common", features = [ "sourcemap", "parking_lot", ] } -swc_compiler_base = { version = "0.2.7", path = "../swc_compiler_base" } +swc_compiler_base = { version = "0.2.8", path = "../swc_compiler_base" } swc_config = { version = "0.1.7", path = "../swc_config" } swc_ecma_ast = { version = "0.110.0", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.146.1", path = "../swc_ecma_codegen" } @@ -84,7 +84,7 @@ swc_ecma_loader = { version = "0.45.0", path = "../swc_ecma_loader", features = "node", "tsc", ] } -swc_ecma_minifier = { version = "0.188.7", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.188.8", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.141.1", path = "../swc_ecma_parser" } swc_ecma_preset_env = { version = "0.202.7", path = "../swc_ecma_preset_env" } swc_ecma_transforms = { version = "0.225.6", path = "../swc_ecma_transforms", features = [ diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index ce81b2ee5a6f..2d6c4821937e 100644 --- a/crates/swc_bundler/Cargo.toml +++ b/crates/swc_bundler/Cargo.toml @@ -9,7 +9,7 @@ include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"] license = "Apache-2.0" name = "swc_bundler" repository = "https://github.com/swc-project/swc.git" -version = "0.221.7" +version = "0.221.8" [package.metadata.docs.rs] all-features = true @@ -63,7 +63,7 @@ swc_ecma_loader = { version = "0.45.0", path = "../swc_ecma_loader", features = "node", "cache", ] } -swc_ecma_minifier = { version = "0.188.7", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.188.8", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_transforms_proposal = { version = "0.168.6", path = "../swc_ecma_transforms_proposal" } diff --git a/crates/swc_cli_impl/Cargo.toml b/crates/swc_cli_impl/Cargo.toml index 39e37ed70ad6..24ac3bd544c6 100644 --- a/crates/swc_cli_impl/Cargo.toml +++ b/crates/swc_cli_impl/Cargo.toml @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_cli_impl" repository = "https://github.com/swc-project/swc.git" -version = "0.3.7" +version = "0.3.8" [features] default = [] @@ -32,7 +32,7 @@ tracing-futures = "0.2.5" tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } walkdir = "2" -swc_core = { version = "0.85.7", features = [ +swc_core = { version = "0.85.8", features = [ "trace_macro", "common_concurrent", "base_concurrent", diff --git a/crates/swc_compiler_base/Cargo.toml b/crates/swc_compiler_base/Cargo.toml index bade623dfaf6..9604149b38e5 100644 --- a/crates/swc_compiler_base/Cargo.toml +++ b/crates/swc_compiler_base/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_compiler_base" repository = "https://github.com/swc-project/swc.git" -version = "0.2.7" +version = "0.2.8" [features] node = ["napi", "napi-derive"] @@ -25,7 +25,7 @@ swc_common = { version = "0.33.0", path = "../swc_common", features = [ swc_config = { version = "0.1.7", path = "../swc_config" } swc_ecma_ast = { version = "0.110.0", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.146.1", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.188.7", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.188.8", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.141.1", path = "../swc_ecma_parser" } swc_ecma_visit = { version = "0.96.0", path = "../swc_ecma_visit" } swc_timer = { version = "0.21.0", path = "../swc_timer" } diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 25a9a5b3f234..bb3a6339f242 100644 --- a/crates/swc_core/Cargo.toml +++ b/crates/swc_core/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_core" repository = "https://github.com/swc-project/swc.git" -version = "0.85.7" +version = "0.85.8" [package.metadata.docs.rs] features = [ "allocator_node", @@ -324,10 +324,10 @@ __visit = ["__ecma", "swc_ecma_visit"] once_cell = { optional = true, version = "1.18.0" } # swc_* dependencies -binding_macros = { optional = true, version = "0.59.7", path = "../binding_macros" } -swc = { optional = true, version = "0.268.7", path = "../swc" } +binding_macros = { optional = true, version = "0.59.8", path = "../binding_macros" } +swc = { optional = true, version = "0.268.8", path = "../swc" } swc_atoms = { optional = true, version = "0.6.0", path = "../swc_atoms" } -swc_bundler = { optional = true, version = "0.221.7", path = "../swc_bundler" } +swc_bundler = { optional = true, version = "0.221.8", path = "../swc_bundler" } swc_cached = { optional = true, version = "0.3.17", path = "../swc_cached" } swc_common = { optional = true, version = "0.33.0", path = "../swc_common" } swc_css_ast = { optional = true, version = "0.140.0", path = "../swc_css_ast" } @@ -342,7 +342,7 @@ swc_css_visit = { optional = true, version = "0.139.0", path swc_ecma_ast = { optional = true, version = "0.110.0", path = "../swc_ecma_ast" } swc_ecma_codegen = { optional = true, version = "0.146.1", path = "../swc_ecma_codegen" } swc_ecma_loader = { optional = true, version = "0.45.0", path = "../swc_ecma_loader" } -swc_ecma_minifier = { optional = true, version = "0.188.7", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { optional = true, version = "0.188.8", path = "../swc_ecma_minifier" } swc_ecma_parser = { optional = true, version = "0.141.1", path = "../swc_ecma_parser" } swc_ecma_preset_env = { optional = true, version = "0.202.7", path = "../swc_ecma_preset_env" } swc_ecma_quote_macros = { optional = true, version = "0.52.1", path = "../swc_ecma_quote_macros" } @@ -358,7 +358,7 @@ swc_ecma_usage_analyzer = { optional = true, version = "0.20.3", path = swc_ecma_utils = { optional = true, version = "0.124.3", path = "../swc_ecma_utils" } swc_ecma_visit = { optional = true, version = "0.96.0", path = "../swc_ecma_visit" } swc_node_base = { optional = true, version = "0.5.8", path = "../swc_node_base" } -swc_node_bundler = { optional = true, version = "0.57.7", path = "../swc_node_bundler" } +swc_node_bundler = { optional = true, version = "0.57.8", path = "../swc_node_bundler" } swc_nodejs_common = { optional = true, version = "0.0.8", path = "../swc_nodejs_common" } swc_plugin = { optional = true, version = "0.90.0", path = "../swc_plugin" } swc_plugin_macro = { optional = true, version = "0.9.15", path = "../swc_plugin_macro" } diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index 1d70a1b92f86..cac2e3bca194 100644 --- a/crates/swc_ecma_minifier/Cargo.toml +++ b/crates/swc_ecma_minifier/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/lists/*.json"] license = "Apache-2.0" name = "swc_ecma_minifier" repository = "https://github.com/swc-project/swc.git" -version = "0.188.7" +version = "0.188.8" [package.metadata.docs.rs] all-features = true diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index c65ea30d1a80..b3728457c0c6 100644 --- a/crates/swc_ecmascript/Cargo.toml +++ b/crates/swc_ecmascript/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_ecmascript" repository = "https://github.com/swc-project/swc.git" -version = "0.235.8" +version = "0.235.9" [package.metadata.docs.rs] all-features = true @@ -42,7 +42,7 @@ typescript = ["typescript-parser", "swc_ecma_transforms/typescript"] swc_ecma_ast = { version = "0.110.0", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.146.1", path = "../swc_ecma_codegen", optional = true } swc_ecma_dep_graph = { version = "0.113.1", path = "../swc_ecma_dep_graph", optional = true } -swc_ecma_minifier = { version = "0.188.7", path = "../swc_ecma_minifier", optional = true } +swc_ecma_minifier = { version = "0.188.8", path = "../swc_ecma_minifier", optional = true } swc_ecma_parser = { version = "0.141.1", path = "../swc_ecma_parser", optional = true, default-features = false } swc_ecma_preset_env = { version = "0.202.7", path = "../swc_ecma_preset_env", optional = true } swc_ecma_quote = { version = "0.57.1", path = "../swc_ecma_quote", optional = true } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 17e0a02c3ab8..05620e39adac 100644 --- a/crates/swc_estree_compat/Cargo.toml +++ b/crates/swc_estree_compat/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_estree_compat" repository = "https://github.com/swc-project/swc.git" -version = "0.193.7" +version = "0.193.8" [package.metadata.docs.rs] all-features = true @@ -40,7 +40,7 @@ swc_node_comments = { version = "0.20.0", path = "../swc_node_comments/" } criterion = "0.5" pretty_assertions = "1.3" -swc = { version = "0.268.7", path = "../swc" } +swc = { version = "0.268.8", path = "../swc" } swc_ecma_ast = { version = "0.110.0", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.141.1", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "0.225.6", path = "../swc_ecma_transforms/" } diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index e273be59b95e..35399459667e 100644 --- a/crates/swc_html/Cargo.toml +++ b/crates/swc_html/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_html" repository = "https://github.com/swc-project/swc.git" -version = "0.133.6" +version = "0.133.7" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.33.0", path = "../swc_html_ast"} swc_html_codegen = {version = "0.42.0", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.130.6", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.130.7", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.39.0", path = "../swc_html_parser"} swc_html_visit = {version = "0.33.0", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 3b1754f4f89d..0a89414cf148 100644 --- a/crates/swc_html_minifier/Cargo.toml +++ b/crates/swc_html_minifier/Cargo.toml @@ -10,7 +10,7 @@ include = ["Cargo.toml", "src/**/*.rs", "data/**/*.json"] license = "Apache-2.0" name = "swc_html_minifier" repository = "https://github.com/swc-project/swc.git" -version = "0.130.6" +version = "0.130.7" [lib] bench = false @@ -31,7 +31,7 @@ swc_ecma_ast = { version = "0.110.0", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.146.1", path = "../swc_ecma_codegen", features = [ "serde-impl", ] } -swc_ecma_minifier = { version = "0.188.7", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.188.8", path = "../swc_ecma_minifier", features = [ "extra-serde", ] } swc_ecma_parser = { version = "0.141.1", path = "../swc_ecma_parser" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index ed11bef140c6..e26a60dc4b39 100644 --- a/crates/swc_node_bundler/Cargo.toml +++ b/crates/swc_node_bundler/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_node_bundler" repository = "https://github.com/swc-project/swc.git" -version = "0.57.7" +version = "0.57.8" [lib] bench = false @@ -29,9 +29,9 @@ serde_json = "1" tracing = "0.1.37" string_enum = { version = "0.4.1", path = "../string_enum" } -swc = { version = "0.268.7", path = "../swc" } +swc = { version = "0.268.8", path = "../swc" } swc_atoms = { version = "0.6.0", path = "../swc_atoms" } -swc_bundler = { version = "0.221.7", path = "../swc_bundler", features = [ +swc_bundler = { version = "0.221.8", path = "../swc_bundler", features = [ "concurrent", ] } swc_common = { version = "0.33.0", path = "../swc_common", features = [