diff --git a/CHANGELOG.md b/CHANGELOG.md index c0ec8a226f1..40ff7cc2fa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Changelog +## [unreleased] + +### Bug Fixes + + + +- **(es/compat)** Handle private fields in nested classes (#3431) ([01500a5](https://github.com/swc-project/swc/commit/01500a54e04b88d08edff09f218166c862763657)) + ## [1.2.136] - 2022-02-03 ### Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index aa501786ca6..ff7365d620f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2612,7 +2612,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.120.2" +version = "0.120.3" dependencies = [ "ahash", "anyhow", @@ -3042,7 +3042,7 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.114.4" +version = "0.114.5" dependencies = [ "pretty_assertions", "sourcemap", @@ -3102,7 +3102,7 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.68.7" +version = "0.68.8" dependencies = [ "ahash", "arrayvec 0.7.2", @@ -3311,7 +3311,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "0.111.12" +version = "0.111.13" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 43e1eb84ef9..aef3153eb30 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.120.2" +version = "0.120.3" [lib] name = "swc" @@ -55,7 +55,7 @@ swc_ecma_loader = {version = "0.28.0", path = "../swc_ecma_loader", features = [ swc_ecma_minifier = {version = "0.71.4", path = "../swc_ecma_minifier"} swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser"} swc_ecma_preset_env = {version = "0.87.1", path = "../swc_ecma_preset_env"} -swc_ecma_transforms = {version = "0.114.4", path = "../swc_ecma_transforms", features = [ +swc_ecma_transforms = {version = "0.114.5", path = "../swc_ecma_transforms", features = [ "compat", "module", "optimization", @@ -64,11 +64,11 @@ swc_ecma_transforms = {version = "0.114.4", path = "../swc_ecma_transforms", fea "typescript", ]} swc_ecma_transforms_base = {version = "0.57.1", path = "../swc_ecma_transforms_base"} -swc_ecma_transforms_compat = {version = "0.68.7", path = "../swc_ecma_transforms_compat"} +swc_ecma_transforms_compat = {version = "0.68.8", path = "../swc_ecma_transforms_compat"} swc_ecma_transforms_optimization = {version = "0.84.0", path = "../swc_ecma_transforms_optimization"} swc_ecma_utils = {version = "0.64.0", path = "../swc_ecma_utils"} swc_ecma_visit = {version = "0.51.1", path = "../swc_ecma_visit"} -swc_ecmascript = {version = "0.111.12", path = "../swc_ecmascript"} +swc_ecmascript = {version = "0.111.13", path = "../swc_ecmascript"} swc_node_comments = {version = "0.4.0", path = "../swc_node_comments"} swc_plugin_runner = {version = "0.30.0", path = "../swc_plugin_runner", optional = true} swc_visit = {version = "0.3.0", path = "../swc_visit"} diff --git a/crates/swc_ecma_transforms/Cargo.toml b/crates/swc_ecma_transforms/Cargo.toml index 7cce439cb81..37f12ccdce9 100644 --- a/crates/swc_ecma_transforms/Cargo.toml +++ b/crates/swc_ecma_transforms/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_ecma_transforms" repository = "https://github.com/swc-project/swc.git" -version = "0.114.4" +version = "0.114.5" [package.metadata.docs.rs] all-features = true @@ -28,7 +28,7 @@ swc_common = {version = "0.17.0", path = "../swc_common"} swc_ecma_ast = {version = "0.65.0", path = "../swc_ecma_ast"} swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser"} swc_ecma_transforms_base = {version = "0.57.1", path = "../swc_ecma_transforms_base"} -swc_ecma_transforms_compat = {version = "0.68.7", path = "../swc_ecma_transforms_compat", optional = true} +swc_ecma_transforms_compat = {version = "0.68.8", path = "../swc_ecma_transforms_compat", optional = true} swc_ecma_transforms_module = {version = "0.75.2", path = "../swc_ecma_transforms_module", optional = true} swc_ecma_transforms_optimization = {version = "0.84.0", path = "../swc_ecma_transforms_optimization", optional = true} swc_ecma_transforms_proposal = {version = "0.75.0", path = "../swc_ecma_transforms_proposal", optional = true} diff --git a/crates/swc_ecma_transforms_compat/Cargo.toml b/crates/swc_ecma_transforms_compat/Cargo.toml index e5786835903..817e9a6ce5b 100644 --- a/crates/swc_ecma_transforms_compat/Cargo.toml +++ b/crates/swc_ecma_transforms_compat/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_ecma_transforms_compat" repository = "https://github.com/swc-project/swc.git" -version = "0.68.7" +version = "0.68.8" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] diff --git a/crates/swc_ecma_transforms_compat/src/es2022/class_properties/private_field.rs b/crates/swc_ecma_transforms_compat/src/es2022/class_properties/private_field.rs index 6864df7d527..330097d5a7b 100644 --- a/crates/swc_ecma_transforms_compat/src/es2022/class_properties/private_field.rs +++ b/crates/swc_ecma_transforms_compat/src/es2022/class_properties/private_field.rs @@ -46,7 +46,7 @@ impl PrivateRecord { } } // TODO: better error information with span - panic!("Private name #{name} is not defined."); + panic!("Private name #{} is not defined.", name); } } diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index ae2b65ed3bb..c106c152dd4 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.111.12" +version = "0.111.13" [package.metadata.docs.rs] all-features = true @@ -39,7 +39,7 @@ swc_ecma_dep_graph = {version = "0.58.0", path = "../swc_ecma_dep_graph", option swc_ecma_minifier = {version = "0.71.4", path = "../swc_ecma_minifier", optional = true} swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser", optional = true, default-features = false} swc_ecma_preset_env = {version = "0.87.1", path = "../swc_ecma_preset_env", optional = true} -swc_ecma_transforms = {version = "0.114.4", path = "../swc_ecma_transforms", optional = true} +swc_ecma_transforms = {version = "0.114.5", path = "../swc_ecma_transforms", optional = true} swc_ecma_utils = {version = "0.64.0", path = "../swc_ecma_utils", optional = true} swc_ecma_visit = {version = "0.51.1", path = "../swc_ecma_visit", optional = true}