diff --git a/CHANGELOG.md b/CHANGELOG.md index 05cf331d1b9..7e27e86f089 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ - **(es/compat)** Do not reuse span ([#9117](https://github.com/swc-project/swc/issues/9117)) ([6520052](https://github.com/swc-project/swc/commit/652005243260f46074595a6c031f7b82fa85302d)) +### Features + + + +- **(preset-env)** Upgrade `browserslist-rs` ([#9023](https://github.com/swc-project/swc/issues/9023)) ([18d6277](https://github.com/swc-project/swc/commit/18d6277e4c68474333349a5b413ad30e59813483)) + ## [1.6.6] - 2024-06-29 ### Bug Fixes @@ -1335,9 +1341,6 @@ -- **(es/codegen)** Fix panic due to `\\ud` ([#8346](https://github.com/swc-project/swc/issues/8346)) ([1891afa](https://github.com/swc-project/swc/commit/1891afa2ad27f183e56adcd288dd3a1ae0c5b367)) - - - **(es/codegen)** Wrap quote for length greater than one ([#8351](https://github.com/swc-project/swc/issues/8351)) ([2cdea3f](https://github.com/swc-project/swc/commit/2cdea3fbeaf4a2dac662a4d019982943c0a896ba)) diff --git a/Cargo.lock b/Cargo.lock index 4ffbd049fa3..c32bb2cd814 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -309,7 +309,7 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.69.0" +version = "0.70.0" dependencies = [ "anyhow", "console_error_panic_hook", @@ -2763,7 +2763,7 @@ dependencies = [ [[package]] name = "preset_env_base" -version = "0.4.13" +version = "0.5.0" dependencies = [ "ahash 0.8.8", "anyhow", @@ -3640,7 +3640,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.278.2" +version = "0.279.0" dependencies = [ "ansi_term", "anyhow", @@ -3767,7 +3767,7 @@ dependencies = [ [[package]] name = "swc_cli_impl" -version = "0.13.1" +version = "0.14.0" dependencies = [ "anyhow", "assert_cmd", @@ -3874,7 +3874,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.95.11" +version = "0.96.0" dependencies = [ "anyhow", "binding_macros", @@ -3928,7 +3928,7 @@ dependencies = [ [[package]] name = "swc_css" -version = "0.158.0" +version = "0.159.0" dependencies = [ "swc_css_ast", "swc_css_codegen", @@ -4071,7 +4071,7 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.154.0" +version = "0.155.0" dependencies = [ "once_cell", "preset_env_base", @@ -4479,7 +4479,7 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.209.1" +version = "0.210.0" dependencies = [ "anyhow", "criterion", @@ -4864,7 +4864,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "0.244.1" +version = "0.245.0" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", @@ -4910,7 +4910,7 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "0.203.1" +version = "0.204.0" dependencies = [ "ahash 0.8.8", "anyhow", @@ -5093,7 +5093,7 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.67.1" +version = "0.68.0" dependencies = [ "anyhow", "dashmap", diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml index 9bd03679ddd..f3a86dad719 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.69.0" +version = "0.70.0" [lib] bench = false @@ -33,7 +33,7 @@ binding_wasm = [ [dependencies] # Common deps for the SWC imports -swc = { optional = true, version = "0.278.0", path = "../swc" } +swc = { optional = true, version = "0.279.0", path = "../swc" } swc_common = { optional = true, version = "0.34.0", path = "../swc_common" } swc_ecma_ast = { optional = true, version = "0.115.0", path = "../swc_ecma_ast" } swc_ecma_transforms = { optional = true, version = "0.232.0", path = "../swc_ecma_transforms" } diff --git a/crates/preset_env_base/Cargo.toml b/crates/preset_env_base/Cargo.toml index 9cd828cf566..1ee06a85515 100644 --- a/crates/preset_env_base/Cargo.toml +++ b/crates/preset_env_base/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "preset_env_base" repository = { workspace = true } -version = "0.4.13" +version = "0.5.0" [lib] bench = false diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index b07a02c5d0c..9384ead909d 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.278.2" +version = "0.279.0" [lib] bench = false @@ -87,7 +87,7 @@ swc_ecma_loader = { version = "0.46.0", path = "../swc_ecma_loader", features = ] } swc_ecma_minifier = { version = "0.197.1", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.146.6", path = "../swc_ecma_parser" } -swc_ecma_preset_env = { version = "0.209.1", path = "../swc_ecma_preset_env" } +swc_ecma_preset_env = { version = "0.210.0", path = "../swc_ecma_preset_env" } swc_ecma_transforms = { version = "0.232.1", path = "../swc_ecma_transforms", features = [ "compat", "module", diff --git a/crates/swc_cli_impl/Cargo.toml b/crates/swc_cli_impl/Cargo.toml index ce90f84cce0..80de4d17db4 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.13.1" +version = "0.14.0" [[bin]] name = "swc" @@ -40,7 +40,7 @@ tracing-futures = { workspace = true } tracing-subscriber = { workspace = true, features = ["env-filter"] } walkdir = { workspace = true } -swc_core = { version = "0.95.0", features = [ +swc_core = { version = "0.96.0", features = [ "trace_macro", "common_concurrent", "base_concurrent", diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 65bbf8c8042..f2224951e93 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.95.11" +version = "0.96.0" [package.metadata.docs.rs] features = [ "allocator_node", @@ -336,8 +336,8 @@ __visit = ["__ecma", "swc_ecma_visit"] once_cell = { workspace = true, optional = true } # swc_* dependencies -binding_macros = { optional = true, version = "0.69.0", path = "../binding_macros" } -swc = { optional = true, version = "0.278.2", path = "../swc" } +binding_macros = { optional = true, version = "0.70.0", path = "../binding_macros" } +swc = { optional = true, version = "0.279.0", path = "../swc" } swc_atoms = { optional = true, version = "0.6.5", path = "../swc_atoms" } swc_bundler = { optional = true, version = "0.230.2", path = "../swc_bundler" } swc_cached = { optional = true, version = "0.3.19", path = "../swc_cached" } @@ -348,7 +348,7 @@ swc_css_compat = { optional = true, version = "0.28.0", path = swc_css_minifier = { optional = true, version = "0.117.0", path = "../swc_css_minifier" } swc_css_modules = { optional = true, version = "0.30.0", path = "../swc_css_modules" } swc_css_parser = { optional = true, version = "0.151.0", path = "../swc_css_parser" } -swc_css_prefixer = { optional = true, version = "0.154.0", path = "../swc_css_prefixer" } +swc_css_prefixer = { optional = true, version = "0.155.0", path = "../swc_css_prefixer" } swc_css_utils = { optional = true, version = "0.138.0", path = "../swc_css_utils/" } swc_css_visit = { optional = true, version = "0.140.0", path = "../swc_css_visit" } swc_ecma_ast = { optional = true, version = "0.115.0", path = "../swc_ecma_ast" } @@ -357,7 +357,7 @@ swc_ecma_lints = { optional = true, version = "0.95.1", path = swc_ecma_loader = { optional = true, version = "0.46.0", path = "../swc_ecma_loader" } swc_ecma_minifier = { optional = true, version = "0.197.1", path = "../swc_ecma_minifier" } swc_ecma_parser = { optional = true, version = "0.146.6", path = "../swc_ecma_parser" } -swc_ecma_preset_env = { optional = true, version = "0.209.1", path = "../swc_ecma_preset_env" } +swc_ecma_preset_env = { optional = true, version = "0.210.0", path = "../swc_ecma_preset_env" } swc_ecma_quote_macros = { optional = true, version = "0.57.1", path = "../swc_ecma_quote_macros" } swc_ecma_transforms_base = { optional = true, version = "0.140.1", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_compat = { optional = true, version = "0.166.1", path = "../swc_ecma_transforms_compat" } @@ -371,7 +371,7 @@ swc_ecma_usage_analyzer = { optional = true, version = "0.26.0", path = swc_ecma_utils = { optional = true, version = "0.130.1", path = "../swc_ecma_utils" } swc_ecma_visit = { optional = true, version = "0.101.0", path = "../swc_ecma_visit" } swc_malloc = { optional = true, version = "0.5.10", path = "../swc_malloc" } -swc_node_bundler = { optional = true, version = "0.67.1", path = "../swc_node_bundler" } +swc_node_bundler = { optional = true, version = "0.68.0", 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.16", path = "../swc_plugin_macro" } diff --git a/crates/swc_css/Cargo.toml b/crates/swc_css/Cargo.toml index 0317cb2793e..3198b01b1e0 100644 --- a/crates/swc_css/Cargo.toml +++ b/crates/swc_css/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_css" repository = "https://github.com/swc-project/swc.git" -version = "0.158.0" +version = "0.159.0" [package.metadata.docs.rs] all-features = true @@ -28,6 +28,6 @@ swc_css_compat = { version = "0.28.0", path = "../swc_css_compat", optional = swc_css_minifier = { version = "0.117.0", path = "../swc_css_minifier", optional = true } swc_css_modules = { version = "0.30.0", path = "../swc_css_modules", optional = true } swc_css_parser = { version = "0.151.0", path = "../swc_css_parser" } -swc_css_prefixer = { version = "0.154.0", path = "../swc_css_prefixer", optional = true } +swc_css_prefixer = { version = "0.155.0", path = "../swc_css_prefixer", optional = true } swc_css_utils = { version = "0.138.0", path = "../swc_css_utils/" } swc_css_visit = { version = "0.140.0", path = "../swc_css_visit" } diff --git a/crates/swc_css_prefixer/Cargo.toml b/crates/swc_css_prefixer/Cargo.toml index 67cf22f88b7..523ad62d07d 100644 --- a/crates/swc_css_prefixer/Cargo.toml +++ b/crates/swc_css_prefixer/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/**/*.json", "data/**/*.json"] license = "Apache-2.0" name = "swc_css_prefixer" repository = "https://github.com/swc-project/swc.git" -version = "0.154.0" +version = "0.155.0" [lib] bench = false @@ -17,7 +17,7 @@ once_cell = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -preset_env_base = { version = "0.4.13", path = "../preset_env_base" } +preset_env_base = { version = "0.5.0", path = "../preset_env_base" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.34.0", path = "../swc_common" } swc_css_ast = { version = "0.141.0", path = "../swc_css_ast" } diff --git a/crates/swc_ecma_preset_env/Cargo.toml b/crates/swc_ecma_preset_env/Cargo.toml index df438d3804b..044f0d1c548 100644 --- a/crates/swc_ecma_preset_env/Cargo.toml +++ b/crates/swc_ecma_preset_env/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/**/*.json", "data/**/*.json"] license = "Apache-2.0" name = "swc_ecma_preset_env" repository = { workspace = true } -version = "0.209.1" +version = "0.210.0" [lib] bench = false @@ -26,7 +26,7 @@ serde = { workspace = true, features = ["derive"], optional = true } serde_json = { workspace = true } st-map = { workspace = true } -preset_env_base = { version = "0.4.13", path = "../preset_env_base" } +preset_env_base = { version = "0.5.0", path = "../preset_env_base" } rustc-hash = { workspace = true } string_enum = { version = "0.4.4", path = "../string_enum" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index bab8c45cb8c..127a80480b0 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.244.1" +version = "0.245.0" [package.metadata.docs.rs] all-features = true @@ -42,7 +42,7 @@ swc_ecma_ast = { version = "0.115.0", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.151.1", path = "../swc_ecma_codegen", optional = true } swc_ecma_minifier = { version = "0.197.1", path = "../swc_ecma_minifier", optional = true } swc_ecma_parser = { version = "0.146.6", path = "../swc_ecma_parser", optional = true, default-features = false } -swc_ecma_preset_env = { version = "0.209.1", path = "../swc_ecma_preset_env", optional = true } +swc_ecma_preset_env = { version = "0.210.0", path = "../swc_ecma_preset_env", optional = true } swc_ecma_quote = { version = "0.62.0", path = "../swc_ecma_quote", optional = true } swc_ecma_transforms = { version = "0.232.1", path = "../swc_ecma_transforms", optional = true } swc_ecma_utils = { version = "0.130.1", path = "../swc_ecma_utils", optional = true } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 4d38cb20915..cf8a7e082d1 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.203.1" +version = "0.204.0" [package.metadata.docs.rs] all-features = true @@ -40,7 +40,7 @@ swc_node_comments = { version = "0.21.0", path = "../swc_node_comments/" } criterion = { workspace = true } pretty_assertions = { workspace = true } -swc = { version = "0.278.2", path = "../swc" } +swc = { version = "0.279.0", path = "../swc" } swc_ecma_ast = { version = "0.115.0", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.146.6", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "0.232.1", path = "../swc_ecma_transforms/" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index 96fc569ce27..dd769edbb39 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.67.1" +version = "0.68.0" [lib] bench = false @@ -29,7 +29,7 @@ serde_json = { workspace = true } tracing = { workspace = true } string_enum = { version = "0.4.4", path = "../string_enum" } -swc = { version = "0.278.2", path = "../swc" } +swc = { version = "0.279.0", path = "../swc" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_bundler = { version = "0.230.2", path = "../swc_bundler", features = [ "concurrent",