Commit Graph

8853 Commits

Author SHA1 Message Date
SWC Bot
1496ed1814 chore: Bump crates 2024-06-02 10:34:24 +00:00
Donny/강동윤
9f8e24a76c
fix(es/minifier): Fix evaluation of -0 as a string (#9011)
**Related issue:**

 - Closes #9010

---------

Co-authored-by: magic-akari <akari.ccino@gmail.com>
2024-06-02 19:32:44 +09:00
SWC Bot
1f911f9d19 chore: Bump crates 2024-06-02 03:37:22 +00:00
Donny/강동윤
2879a4d42b
fix(es/minifier): Do not index a string with a surrogate pair (#9013)
**Related issue:**

 - Closes #9008
2024-06-02 03:35:43 +00:00
SWC Bot
04c183933a chore: Bump crates 2024-06-02 03:12:32 +00:00
Donny/강동윤
8a29577cc5
fix(es/minifier): Fix comparison of -0.0 (#9012)
**Related issue:**

 - Closes #9007
2024-06-02 03:10:55 +00:00
SWC Bot
d44ec65e36 chore: Bump crates 2024-06-01 14:20:10 +00:00
Donny/강동윤
0d9ecf39c1
fix(es/resolver): Fix hoisting of const and let (#8987)
**Description:**

 - Repro: https://github.com/kdy1/repro-next-66237

**Related issue:**

 - https://github.com/vercel/next.js/issues/66237
2024-06-01 23:18:34 +09:00
SWC Bot
774f3608d2 chore: Publish 1.5.11-nightly-20240601.1 2024-06-01 00:07:27 +00:00
SWC Bot
629d59cb18 chore: Bump crates 2024-05-31 03:15:29 +00:00
Donny/강동윤
e764ff6f64
fix(es/minifier): Preserve unused special properties (#9005)
**Related issue:**

 - https://github.com/vercel/next.js/issues/66378
2024-05-31 03:13:43 +00:00
SWC Bot
74a1fd4341 chore: Bump crates 2024-05-31 00:57:55 +00:00
Donny/강동윤
da70ebed69
feat(x): Initialize project (#8999)
**Description:**

SWC X will be a cross-module optimizer that utilizes an enormous amount of information. After merging this, I'll experiment with several approaches.
2024-05-31 00:56:21 +00:00
SWC Bot
993eccbf9c chore: Bump crates 2024-05-31 00:33:36 +00:00
Donny/강동윤
09121a61cc
fix(es/es2015): Fix injection location of this for getter/setter properties (#8993)
**Related issue:**

 - Closes #8992

---------

Co-authored-by: magic-akari <akari.ccino@gmail.com>
2024-05-31 00:32:00 +00:00
SWC Bot
4e1adfcc88 chore: Publish 1.5.11-nightly-20240531.1 2024-05-31 00:08:16 +00:00
SWC Bot
b534d03591 chore: Bump crates 2024-05-30 14:02:56 +00:00
Donny/강동윤
cc8c1550dd
feat(es/minifier): Detect TypeScript enum initialization pattern (#8986)
**Description:**

We can optimize
```js
var Foo;
Foo || Foo = {};
```

This code looks strange, but 
```ts
enum Foo {
    a = 1,
    b = 2,
}
```

transpiles to

```js
var Foo;
(function(Foo) {
    Foo[Foo["a"] = 1] = "a";
    Foo[Foo["b"] = 2] = "b";
})(Foo || (Foo = {}));

```

and after minification it becomes

```js
var Foo, Foo1;
(Foo1 = Foo || (Foo = {}))[Foo1.a = 1] = "a", Foo1[Foo1.b = 2] = "b";

```
2024-05-30 14:01:07 +00:00
강동윤 (Donny)
ffc74b8e70 chore: Update changelog 2024-05-30 20:57:07 +09:00
강동윤 (Donny)
a1084695ae chore: Publish 1.5.24 with swc_core v0.92.7 2024-05-30 20:57:04 +09:00
강동윤 (Donny)
a7772a6853 chore: Remove src/ prefix 2024-05-30 20:56:14 +09:00
강동윤 (Donny)
14dbe6a266 chore: Update changelog 2024-05-30 18:50:35 +09:00
강동윤 (Donny)
715e87ccbd chore: Publish 1.5.23 with swc_core v0.92.7 2024-05-30 18:50:32 +09:00
SWC Bot
e07be900b9 chore: Bump crates 2024-05-30 09:49:05 +00:00
Donny/강동윤
125ddd2dd9
fix(bindings/node): Fix regression of JS APIs (#8998)
**Related issue:**

 - Closes #8997
2024-05-30 18:47:24 +09:00
SWC Bot
1267e3ecd4 chore: Bump crates 2024-05-30 06:32:29 +00:00
Donny/강동윤
a81a01f629
fix(es/jest): Handle @jest/globals (#8994)
**Description:**

- We have two `jest` pass. One in `@swc/core` (via _hidden.jest flag), and one in the plugin. This PR fixes only the core one.

However, the linked issue is wrong because the code tries to break the rules of ESM specification. So, although this PR closes the issue, the final form is not the issue the author wanted.

**Related issue:**

 - Closes https://github.com/swc-project/plugins/issues/310
2024-05-30 15:30:45 +09:00
강동윤 (Donny)
f02be9f6a4 chore: Update changelog 2024-05-30 13:53:33 +09:00
강동윤 (Donny)
797b90bc88 chore: Publish 1.5.22 with swc_core v0.92.6 2024-05-30 13:53:30 +09:00
강동윤 (Donny)
2de4099b74 chore: Publish 1.5.21 with swc_core v0.92.6 2024-05-30 13:51:33 +09:00
강동윤 (Donny)
f94faf981e chore: Update changelog 2024-05-30 13:00:46 +09:00
강동윤 (Donny)
1d87db555a chore: Publish 1.5.21-nightly-20240530.2 with swc_core v0.92.6 2024-05-30 13:00:44 +09:00
강동윤 (Donny)
69a1fd652f chore: Disable some tests 2024-05-30 12:59:57 +09:00
강동윤 (Donny)
fed749ae4e chore: Publish 1.5.21-nightly-20240530.1 with swc_core v0.92.6 2024-05-30 11:16:19 +09:00
강동윤 (Donny)
da433862d4 chore: Use .npmrc 2024-05-30 11:15:32 +09:00
강동윤 (Donny)
48fd8ecb46 chore: Publish 1.5.21-nightly-20240529.4 with swc_core v0.92.6 2024-05-29 23:08:24 +09:00
강동윤 (Donny)
482fcf55c7 chore: Use yarn workspaces 2024-05-29 23:07:38 +09:00
강동윤 (Donny)
ebb135b39e chore: Use prepack instead of prepublish 2024-05-29 23:00:19 +09:00
강동윤 (Donny)
3003cdf003 chore: Update changelog 2024-05-29 22:18:57 +09:00
강동윤 (Donny)
7d881fb203 chore: Publish 1.5.21-nightly-20240529.2 with swc_core v0.92.6 2024-05-29 22:18:54 +09:00
강동윤 (Donny)
626f13eff9 chore: Use prepublish instead of prepublishOnly 2024-05-29 22:18:09 +09:00
강동윤 (Donny)
f91e09ec51 chore: Update changelog 2024-05-29 15:40:38 +09:00
강동윤 (Donny)
d7021d318f chore: Publish 1.5.21-nightly-20240529.1 with swc_core v0.92.6 2024-05-29 15:40:35 +09:00
강동윤 (Donny)
4c0b2e81d9 chore: Include binding.js 2024-05-29 15:35:15 +09:00
강동윤 (Donny)
6c80244173 chore: Update changelog 2024-05-29 14:34:40 +09:00
강동윤 (Donny)
5cfa31ee7c chore: Publish 1.5.20 with swc_core v0.92.6 2024-05-29 14:34:39 +09:00
강동윤 (Donny)
b24c44b088 chore: Include postinstall.js 2024-05-29 14:33:53 +09:00
강동윤 (Donny)
23a41a9009 chore: Publish 1.5.19 with swc_core v0.92.6 2024-05-29 13:30:33 +09:00
강동윤 (Donny)
e1488a62c4 chore: Disable node@20 for some jobs 2024-05-29 13:29:50 +09:00
강동윤 (Donny)
7ccd27a80e chore: Revert bd6a86a8b5 2024-05-29 13:28:11 +09:00