Skip to content

Commit

Permalink
Merge branch 'main' into issue-8588
Browse files Browse the repository at this point in the history
  • Loading branch information
swc-bot authored Feb 2, 2024
2 parents d51a684 + 386c391 commit 389c40e
Show file tree
Hide file tree
Showing 70 changed files with 703 additions and 726 deletions.
15 changes: 6 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

- **(es/testing)** Make `test_inline!` not read output as a file ([#8569](https://github.com/swc-project/swc/issues/8569)) ([d683089](https://github.com/swc-project/swc/commit/d683089be1116f7944fcd3dbd4536b343becdf5e))

### Features



- **(es/minifier)** Inline more IIFE arguments ([#8584](https://github.com/swc-project/swc/issues/8584)) ([18e0b53](https://github.com/swc-project/swc/commit/18e0b53fbb19eb016fe3695a169ac7f0708c96d3))

### Testing


Expand Down Expand Up @@ -1480,15 +1486,6 @@
- **(es/minifier)** Inline constants even if they are exported ([#7583](https://github.com/swc-project/swc/issues/7583)) ([398e922](https://github.com/swc-project/swc/commit/398e922ca0214e03556bb84fe632e5e03badd533))


- **(plugin/runner)** Update `wasmer` to `v4` ([#7576](https://github.com/swc-project/swc/issues/7576)) ([ab7b17c](https://github.com/swc-project/swc/commit/ab7b17cf106620caa1ba46adf23e6013cc4d6288))


- **(plugin/runner)** Share runtime `Engine` ([#7590](https://github.com/swc-project/swc/issues/7590)) ([9512ea3](https://github.com/swc-project/swc/commit/9512ea31ff1bb0c70f4f96a620b429fa01f48e0c))

### Refactor



- **(common)** Remove `add_bitflags` and update `bitflags` ([#7571](https://github.com/swc-project/swc/issues/7571)) ([95ac74e](https://github.com/swc-project/swc/commit/95ac74e6e494afc90f32c8fc9add2b1824f25db5))

<!-- generated by git-cliff -->
26 changes: 13 additions & 13 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions crates/binding_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "Apache-2.0"
name = "binding_macros"
repository = "https://github.com/swc-project/swc.git"
version = "0.63.7"
version = "0.63.8"

[lib]
bench = false
Expand Down Expand Up @@ -33,7 +33,7 @@ binding_wasm = [

[dependencies]
# Common deps for the SWC imports
swc = { optional = true, version = "0.272.7", path = "../swc" }
swc = { optional = true, version = "0.272.8", path = "../swc" }
swc_common = { optional = true, version = "0.33.15", path = "../swc_common" }
swc_ecma_ast = { optional = true, version = "0.111.1", path = "../swc_ecma_ast" }
swc_ecma_transforms = { optional = true, version = "0.228.8", path = "../swc_ecma_transforms" }
Expand Down
4 changes: 2 additions & 2 deletions crates/dbg-swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "Apache-2.0"
name = "dbg-swc"
repository = "https://github.com/kdy1/dbg-swc.git"
version = "0.90.45"
version = "0.90.46"

[[bin]]
bench = false
Expand All @@ -32,7 +32,7 @@ swc_common = { version = "0.33.15", features = [
], path = "../swc_common" }
swc_ecma_ast = { version = "0.111.1", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "0.147.3", path = "../swc_ecma_codegen" }
swc_ecma_minifier = { version = "0.191.8", path = "../swc_ecma_minifier", features = [
swc_ecma_minifier = { version = "0.191.9", path = "../swc_ecma_minifier", features = [
"concurrent",
] }
swc_ecma_parser = { version = "0.142.1", path = "../swc_ecma_parser" }
Expand Down
6 changes: 3 additions & 3 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.272.7"
version = "0.272.8"

[lib]
bench = false
Expand Down Expand Up @@ -73,7 +73,7 @@ swc_common = { version = "0.33.15", path = "../swc_common", features = [
"sourcemap",
"parking_lot",
] }
swc_compiler_base = { version = "0.6.6", path = "../swc_compiler_base" }
swc_compiler_base = { version = "0.6.7", path = "../swc_compiler_base" }
swc_config = { version = "0.1.10", path = "../swc_config" }
swc_ecma_ast = { version = "0.111.1", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "0.147.3", path = "../swc_ecma_codegen" }
Expand All @@ -84,7 +84,7 @@ swc_ecma_loader = { version = "0.45.17", path = "../swc_ecma_loader", features =
"node",
"tsc",
] }
swc_ecma_minifier = { version = "0.191.8", path = "../swc_ecma_minifier" }
swc_ecma_minifier = { version = "0.191.9", path = "../swc_ecma_minifier" }
swc_ecma_parser = { version = "0.142.1", path = "../swc_ecma_parser" }
swc_ecma_preset_env = { version = "0.205.8", path = "../swc_ecma_preset_env" }
swc_ecma_transforms = { version = "0.228.8", path = "../swc_ecma_transforms", features = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ var _class, _class1, C = function C() {
return _class_call_check(this, _class), _super.apply(this, arguments);
}
return _class;
}(C)).x = 1, _class).x], function() {
(void 0)[((_class1 = function(C) {
}(C)).x = 1, _class).x], function(param) {
param[((_class1 = function(C) {
_inherits(_class, C);
var _super = _create_super(_class);
function _class() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
});
}(), function(first) {
for(var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)rest[_key - 1] = arguments[_key];
first || rest.map(function(n) {
return n > 0;
});
}(8, 9, 10), function() {
var _ref = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {
r: 18
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
});
}(), function(first) {
for(var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)rest[_key - 1] = arguments[_key];
first || rest.map(function(n) {
return n > 0;
});
}(8, 9, 10), function() {
var _ref = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {
r: 18
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
return impl.detectMobileBrowsers.tabletPattern.test(userAgent);
}, impl.prepareDetectionCache = function(cache, userAgent, maxPhoneWidth) {
var phone, tablet, phoneSized;
if (undefined === cache.mobile) {
if (void 0 === cache.mobile) {
if (tablet = impl.findMatch(impl.mobileDetectRules.tablets, userAgent)) {
cache.mobile = cache.tablet = tablet, cache.phone = null;
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ export var O = function(N) {
return O;
}(N);
export var VariableBase = function(x) {
_inherits(VariableBase, null);
_inherits(VariableBase, x);
var _super = _create_super(VariableBase);
function VariableBase() {
return _class_call_check(this, VariableBase), _super.apply(this, arguments);
}
return VariableBase;
}(0);
}(null);
export var HasStatics = function() {
function HasStatics() {
_class_call_check(this, HasStatics);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//// [nullishCoalescingOperatorInParameterBindingPattern.2.ts]
var param, _a, _a1, a = function() {};
(void 0)[null !== (_a = a()) && void 0 !== _a ? _a : "d"], param[null !== (_a1 = a()) && void 0 !== _a1 ? _a1 : "d"], param.d;
(void 0)[null !== (_a = a()) && void 0 !== _a ? _a : "d"], (void 0)[null !== (_a1 = a()) && void 0 !== _a1 ? _a1 : "d"], param.d;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// [optionalChainingInParameterBindingPattern.2.ts]
var _a, _a1, a = function() {};
(void 0)[null === (_a = a()) || void 0 === _a ? void 0 : _a.d], function() {
(void 0)[null === (_a1 = a()) || void 0 === _a1 ? void 0 : _a1.d], arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
(void 0)[null === (_a = a()) || void 0 === _a ? void 0 : _a.d], function(param) {
param[null === (_a1 = a()) || void 0 === _a1 ? void 0 : _a1.d], arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
}();

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

Loading

0 comments on commit 389c40e

Please sign in to comment.