Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
swc-bot committed May 7, 2024
2 parents e41492b + 8654a34 commit 0a4e417
Show file tree
Hide file tree
Showing 33 changed files with 454 additions and 242 deletions.
15 changes: 9 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@



- **(css/modules)** Allow any order of composes ([#8930](https://github.com/swc-project/swc/issues/8930)) ([7014c63](https://github.com/swc-project/swc/commit/7014c63625c7c9f83322931600a52c82ba8b107a))


- **(es/fixer)** Wrap class expressions in callee ([#8928](https://github.com/swc-project/swc/issues/8928)) ([6b60bdb](https://github.com/swc-project/swc/commit/6b60bdb69713f7ccf603db04696621985d200d28))


- **(es/minifier)** Respect `module: false` ([#8925](https://github.com/swc-project/swc/issues/8925)) ([aca6a77](https://github.com/swc-project/swc/commit/aca6a77903e31099f473587eb9285ae1c4dee309))


- **(es/minifier)** Consider side effects of operands of binary expressions ([#8929](https://github.com/swc-project/swc/issues/8929)) ([4d4a7a9](https://github.com/swc-project/swc/commit/4d4a7a9bcb39228973c0da2991310b5107feb319))

## [1.5.4] - 2024-05-06

### Bug Fixes
Expand Down Expand Up @@ -1311,9 +1320,6 @@
- **(ci)** Fix CI ([#8079](https://github.com/swc-project/swc/issues/8079)) ([7073e83](https://github.com/swc-project/swc/commit/7073e83f65ed5e98ee294c8e366a80b0a0f5921f))


- **(es/codegen)** Fix codegen of type-only imports ([#8070](https://github.com/swc-project/swc/issues/8070)) ([6f45b46](https://github.com/swc-project/swc/commit/6f45b4693e6d35bf05bacb89b65c7f013d0366a2))


- **(es/compat)** Handle `__proto__` edge case in `shorthand` pass ([#8077](https://github.com/swc-project/swc/issues/8077)) ([a912937](https://github.com/swc-project/swc/commit/a912937cea672ad4fbda057efc3a09283e3635fe))


Expand All @@ -1323,9 +1329,6 @@
- **(es/decorators)** Fix a regression about class expressions ([#8102](https://github.com/swc-project/swc/issues/8102)) ([cb4361f](https://github.com/swc-project/swc/commit/cb4361f2931cf222edbb449db6fe2c261c4b735d))


- **(es/helpers)** Override mistake in `_interop_require_wildcard` ([#8076](https://github.com/swc-project/swc/issues/8076)) ([1346528](https://github.com/swc-project/swc/commit/1346528477bd8c587f0ee0d5fa6969f397739ddb))


- **(es/minifier)** Don't inline functions if `keep_fnames` is enabled ([#8093](https://github.com/swc-project/swc/issues/8093)) ([94bb42e](https://github.com/swc-project/swc/commit/94bb42e29418a8697ba0ab41dad2ffe63f1c32c7))


Expand Down
9 changes: 5 additions & 4 deletions Cargo.lock

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

38 changes: 19 additions & 19 deletions bindings/Cargo.lock

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

2 changes: 1 addition & 1 deletion bindings/binding_core_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ tracing-chrome = "0.5.0"
tracing-futures = "0.2.5"
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }

swc_core = { version = "0.91.4", features = [
swc_core = { version = "0.92.0", features = [
"allocator_node",
"ecma_ast",
"ecma_codegen",
Expand Down
4 changes: 2 additions & 2 deletions bindings/binding_core_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "Apache-2.0"
name = "binding_core_wasm"
publish = false
repository = "https://github.com/swc-project/swc.git"
version = "1.5.4"
version = "1.5.5-nightly-20240507.1"

[lib]
bench = false
Expand Down Expand Up @@ -35,7 +35,7 @@ anyhow = "1.0.66"
getrandom = { version = "0.2.10", features = ["js"] }
serde = { version = "1", features = ["derive"] }
serde-wasm-bindgen = "0.4.5"
swc_core = { version = "0.91.4", features = [
swc_core = { version = "0.92.0", features = [
"ecma_ast_serde",
"ecma_codegen",
"binding_macro_wasm",
Expand Down
4 changes: 2 additions & 2 deletions bindings/binding_minifier_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ tracing-futures = "0.2.5"
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }


swc_compiler_base = { version = "0.8.1", features = ["node"] }
swc_compiler_base = { version = "0.9.0", features = ["node"] }
swc_config = "0.1.13"
swc_core = { version = "0.91.4", features = [
swc_core = { version = "0.92.0", features = [
"allocator_node",
"common_concurrent",
"common_sourcemap",
Expand Down
4 changes: 2 additions & 2 deletions bindings/binding_minifier_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "Apache-2.0"
name = "binding_minifier_wasm"
publish = false
repository = "https://github.com/swc-project/swc.git"
version = "1.5.4"
version = "1.5.5-nightly-20240507.1"

[lib]
bench = false
Expand Down Expand Up @@ -35,7 +35,7 @@ anyhow = "1.0.66"
getrandom = { version = "0.2.10", features = ["js"] }
serde = { version = "1", features = ["derive"] }
serde-wasm-bindgen = "0.4.5"
swc_core = { version = "0.91.4", features = [
swc_core = { version = "0.92.0", features = [
"ecma_ast_serde",
"ecma_codegen",
"binding_macro_wasm",
Expand Down
4 changes: 2 additions & 2 deletions bindings/swc_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_cli"
repository = "https://github.com/swc-project/swc.git"
version = "0.91.238"
version = "0.91.239"

[[bin]]
bench = false
Expand All @@ -19,4 +19,4 @@ plugin = ["swc_cli_impl/plugin"]

[dependencies]
anyhow = "1.0.66"
swc_cli_impl = "0.9.1"
swc_cli_impl = "0.10.0"
64 changes: 64 additions & 0 deletions crates/swc/tests/fixture/issues-8xxx/8920/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": false
},
"target": "es2022",
"loose": false,
"minify": {
"compress": {
"arguments": false,
"arrows": true,
"booleans": true,
"booleans_as_integers": false,
"collapse_vars": true,
"comparisons": true,
"computed_props": true,
"conditionals": true,
"dead_code": true,
"directives": true,
"drop_console": false,
"drop_debugger": true,
"evaluate": true,
"expression": false,
"hoist_funs": false,
"hoist_props": true,
"hoist_vars": false,
"if_return": true,
"join_vars": true,
"keep_classnames": false,
"keep_fargs": true,
"keep_fnames": false,
"keep_infinity": false,
"loops": true,
"negate_iife": true,
"properties": true,
"reduce_funcs": false,
"reduce_vars": false,
"side_effects": true,
"switches": true,
"typeofs": true,
"unsafe": false,
"unsafe_arrows": false,
"unsafe_comps": false,
"unsafe_Function": false,
"unsafe_math": false,
"unsafe_symbols": false,
"unsafe_methods": false,
"unsafe_proto": false,
"unsafe_regexp": false,
"unsafe_undefined": false,
"unused": true,
"const_to_let": true,
"pristine_globals": true
},
"mangle": false
}
},
"module": {
"type": "commonjs"
},
"minify": false,
"isModule": false
}
8 changes: 8 additions & 0 deletions crates/swc/tests/fixture/issues-8xxx/8920/input/1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use strict";
const k = (() => {
function f() {
class x { }
x();
}
return f;
})();
5 changes: 5 additions & 0 deletions crates/swc/tests/fixture/issues-8xxx/8920/output/1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";
let k = function() {
(class {
})();
};
2 changes: 1 addition & 1 deletion crates/swc_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
license = "Apache-2.0"
name = "swc_core"
repository = "https://github.com/swc-project/swc.git"
version = "0.92.0"
version = "0.92.1"
[package.metadata.docs.rs]
features = [
"allocator_node",
Expand Down
3 changes: 2 additions & 1 deletion crates/swc_css_modules/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"
name = "swc_css_modules"
repository = "https://github.com/swc-project/swc.git"
version = "0.29.35"
version = "0.29.36"

[lib]
bench = false
Expand All @@ -26,6 +26,7 @@ swc_css_parser = { version = "0.150.33", path = "../swc_css_parser" }
swc_css_visit = { version = "0.139.22", path = "../swc_css_visit" }

[dev-dependencies]
indexmap = { workspace = true, features = ["serde"] }
serde_json = { workspace = true }

swc_css_compat = { version = "0.27.35", path = "../swc_css_compat" }
Expand Down

0 comments on commit 0a4e417

Please sign in to comment.