Commit Graph

916 Commits

Author SHA1 Message Date
SWC Bot
18af9c3a27 chore: Publish crates 2023-02-01 06:51:38 +00:00
Donny/강동윤
e79d46697c
test(es/compat): Add a test for a fixed issue (#6887)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6886.
2023-01-31 15:01:57 +00:00
SWC Bot
5160378f53 chore: Publish crates 2023-01-31 06:27:05 +00:00
Donny/강동윤
57781e90d3
fix(es/compat): Make optional chaining pass less permissive (#6885)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6878.
2023-01-31 06:24:23 +00:00
SWC Bot
3e8d80a324 chore: Publish crates 2023-01-30 11:17:16 +00:00
Donny/강동윤
d8088646df
fix(es/compat): Fix optional chaining pass (#6875)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6762.
2023-01-30 11:14:53 +00:00
SWC Bot
0bb4dc2c3d chore: Publish crates 2023-01-29 14:56:26 +00:00
SWC Bot
5a5a7d70e4 chore: Publish crates 2023-01-27 06:59:44 +00:00
SWC Bot
8fc1b651b1 chore: Publish crates 2023-01-26 02:11:53 +00:00
SWC Bot
8863e31446 chore: Publish crates 2023-01-20 08:11:11 +00:00
SWC Bot
c3607ba6eb chore: Publish crates 2023-01-16 16:09:51 +00:00
SWC Bot
b1f3eb74df chore: Publish crates 2023-01-16 15:26:01 +00:00
SWC Bot
4a75eb0157 chore: Publish crates 2023-01-16 06:59:39 +00:00
SWC Bot
179a5f8a92 chore: Publish crates 2023-01-16 04:53:53 +00:00
SWC Bot
a5707ae7c1 chore: Publish crates 2023-01-15 06:45:26 +00:00
Donny/강동윤
e7ea054c63
test(es): Enable execution tests for fixed issues (#6805) 2023-01-13 07:30:21 +00:00
SWC Bot
b27793f579 chore: Publish crates 2023-01-13 05:02:46 +00:00
SWC Bot
ba910306ad chore: Publish crates 2023-01-12 09:22:29 +00:00
Donny/강동윤
07676d5515
fix(es/compat): Ignore this in nested scopes in classes pass (#6796)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6506.
2023-01-12 09:19:40 +00:00
Donny/강동윤
7dc5ccb0fc
test(es/compat): Add a test to verify parameters passs (#6792)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6790.
2023-01-12 15:54:36 +09:00
SWC Bot
cd06479a43 chore: Publish crates 2023-01-11 03:00:59 +00:00
SWC Bot
52dada97ff chore: Publish crates 2023-01-10 06:03:34 +00:00
SWC Bot
478b1fe458 chore: Publish crates 2023-01-10 05:10:48 +00:00
SWC Bot
ca64ab0906 chore: Publish crates 2023-01-09 11:00:40 +00:00
SWC Bot
a225efe363 chore: Publish crates 2023-01-08 04:59:27 +00:00
SWC Bot
1161360d54 chore: Publish crates 2023-01-06 03:49:20 +00:00
SWC Bot
ec8497b42c chore: Publish crates 2023-01-06 03:16:51 +00:00
HeYunfei
a1ccc8afdf
feat(es/minifier): Make name mangler understand block scoping (#6670)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5090.
 - Closes https://github.com/swc-project/swc/issues/5766.
2023-01-06 03:14:10 +00:00
SWC Bot
790c478a7a chore: Publish crates 2023-01-04 07:29:33 +00:00
SWC Bot
30471796c9 chore: Publish crates 2023-01-03 09:47:06 +00:00
Donny/강동윤
206c0dbebe
fix(es/compat): Fix syntax context of async-to-generator (#6741)
**Description:**

Previously, the `async-to-generator` produced invalid AST, in the aspect of span hygiene.

[Playground](https://play.swc.rs/?version=1.3.24&code=H4sIAAAAAAAAAz1MbQqAIBT77yn2UyG6gNQJuoSZRCAa7xkk4d1TicZgH7C5%2B4yUYGPgBE7ZuyWazREmSIVpxiMAcumi0C3ANZxyvQ6%2Fqa8CehxjaGNpOAcLaWjn%2F6KhKN1dGaoULSpfHPTdxn8AAAA%3D&config=H4sIAAAAAAAAA0WOSwrDMAxE76K1F22hXfgE3fQQxlWCi39ICsQY3z12cMlOjObNTIUfW9AVsiFGGheXKGYHDVIysiWXBRQId2kxnrEpwF2QovFv9BmJQQtt2D2GVpROIj9u92enfEqMk1MQXHRLGR02hUzIfL1MXP3f2XpFSN9tCPWccWa%2BoF0Zk3P8mcYxoR3Kj7IYzwAAAA%3D%3D).
It generate two bindings for `args` so it's invalid.


**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6730.
2023-01-03 09:45:03 +00:00
SWC Bot
2e32faaa3c chore: Publish crates 2023-01-03 03:14:24 +00:00
SWC Bot
61245739ea chore: Publish crates 2022-12-21 03:03:05 +00:00
SWC Bot
913230d02a chore: Publish crates 2022-12-20 06:11:34 +00:00
SWC Bot
fa1b02bbd2 chore: Publish crates 2022-12-14 09:23:16 +00:00
SWC Bot
4986694d4c chore: Publish crates 2022-12-14 04:07:34 +00:00
SWC Bot
30692bc26c chore: Publish crates 2022-12-13 15:48:32 +00:00
SWC Bot
292c3388b5 chore: Publish crates 2022-12-13 07:31:37 +00:00
SWC Bot
581d9ce769 chore: Publish crates 2022-12-13 03:38:21 +00:00
SWC Bot
4d4406d5b3 chore: Publish crates 2022-12-12 02:40:19 +00:00
SWC Bot
2e50dd54e8 chore: Publish crates 2022-12-12 02:01:40 +00:00
SWC Bot
3d80fa4c25 chore: Publish crates 2022-12-10 00:55:14 +00:00
SWC Bot
fc21895bce chore: Publish crates 2022-12-10 00:09:46 +00:00
SWC Bot
fef8fc99a0 chore: Publish crates 2022-12-09 01:52:11 +00:00
HeYunfei
4c2d42261e
fix(es/compat): Prepend generated _loop to the correct scope (#6604) 2022-12-09 01:48:29 +00:00
SWC Bot
96f9858639 chore: Publish crates 2022-12-07 23:43:51 +00:00
SWC Bot
9d0247a394 chore: Publish crates 2022-12-06 00:54:17 +00:00
SWC Bot
2379fc1fd9 chore: Publish crates 2022-12-04 05:55:52 +00:00
SWC Bot
cffa11122b chore: Publish crates 2022-12-03 00:26:38 +00:00
SWC Bot
ab2e19b601 chore: Publish crates 2022-12-02 08:01:39 +00:00
SWC Bot
912743aadb chore: Publish crates 2022-11-30 17:13:08 +00:00
SWC Bot
171733e8bb chore: Publish crates 2022-11-30 07:50:13 +00:00
SWC Bot
6ca36c198b chore: Publish crates 2022-11-29 06:00:22 +00:00
SWC Bot
5a9aab2392 chore: Publish crates 2022-11-28 16:00:01 +00:00
SWC Bot
96a1f93e91 chore: Publish crates 2022-11-28 07:54:59 +00:00
Donny/강동윤
cc4646a4cc
test(ts/compat): Migrate inline tests to fixture testing (#6475) 2022-11-28 04:54:38 +00:00
SWC Bot
f019c0210b chore: Publish crates 2022-11-25 11:31:34 +00:00
SWC Bot
6fd97971c9 chore: Publish crates 2022-11-24 08:47:34 +00:00
SWC Bot
553ba9c382 chore: Publish crates 2022-11-21 00:11:04 +00:00
SWC Bot
66b4966d60 chore: Publish crates 2022-11-20 23:40:48 +00:00
Austaras
c57307d002
refactor(es): Remove settings related to privateInObject (#6468) 2022-11-21 08:34:20 +09:00
SWC Bot
40ad709523 chore: Publish crates 2022-11-20 10:06:27 +00:00
SWC Bot
59954370cb chore: Publish crates 2022-11-20 00:30:30 +00:00
SWC Bot
e45c66535c chore: Publish crates 2022-11-18 07:19:26 +00:00
SWC Bot
7716f58303 chore: Publish crates 2022-11-17 02:04:20 +00:00
Austaras
f7072dbb7e
fix(es/compat): Fix consecutive optional call (#6461) 2022-11-17 02:00:46 +00:00
SWC Bot
cdc1b4cea4 chore: Publish crates 2022-11-14 06:06:09 +00:00
Donny/강동윤
81a4bb304a
fix(es/compat): Fix span hygiene of function naming pass (#6345)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6344.
2022-11-14 06:03:09 +00:00
SWC Bot
6672c52af2 chore: Publish crates 2022-11-13 23:55:36 +00:00
magic-akari
67286032b1
fix(es/compat): Improve destructuring pass (#6412) 2022-11-13 23:52:34 +00:00
SWC Bot
c74f922311 chore: Publish crates 2022-11-13 08:44:40 +00:00
SWC Bot
2088dd4a84 chore: Publish crates 2022-11-11 22:50:50 +00:00
SWC Bot
c1588eb3e5 chore: Publish crates 2022-11-11 02:00:43 +00:00
Austaras
574502a816
feat(es/utils): Use more unique names for aliases (#6399) 2022-11-11 01:57:49 +00:00
SWC Bot
c356f96820 chore: Publish crates 2022-11-09 06:32:39 +00:00
SWC Bot
9f685796c3 chore: Publish crates 2022-11-07 03:59:24 +00:00
Daiki Nishikawa
f6faeb3bad
fix(es/parser): Fix parsing of TS satisfies expressions (#6354) 2022-11-07 03:56:15 +00:00
SWC Bot
981dc88517 chore: Publish crates 2022-11-06 00:23:31 +00:00
Austaras
982012289f
fix(es/compat): Fix this in computed class method names (#6364) 2022-11-06 00:20:21 +00:00
SWC Bot
2c8c1392d1 chore: Publish crates 2022-11-05 18:33:53 +00:00
Austaras
2de45fb0f7
fix(es/compat): Handle a nullish coalescing in a switch case (#6363) 2022-11-05 18:31:02 +00:00
SWC Bot
1b839321c0 chore: Publish crates 2022-11-05 15:28:00 +00:00
Austaras
6cc9e90ef4
fix(es/compat): Handle super access in a private static property (#6361) 2022-11-05 15:25:51 +00:00
SWC Bot
134b134581 chore: Publish crates 2022-11-05 14:10:18 +00:00
SWC Bot
a1a6513ee7 chore: Publish crates 2022-11-03 06:03:12 +00:00
SWC Bot
4293463bb6 chore: Publish crates 2022-11-03 04:55:30 +00:00
SWC Bot
394924cb99 chore: Publish crates 2022-11-02 10:05:19 +00:00
SWC Bot
fffc5f22d6 chore: Publish crates 2022-11-02 09:32:51 +00:00
Alexander Akait
3bea6f7248
fix(es/compat): Fix destructuring of an empty array (#6314) 2022-11-02 16:06:52 +09:00
SWC Bot
33d83ae734 chore: Publish crates 2022-10-31 02:33:07 +00:00
Austaras
aa18612e62
fix(es/compat): Fix new.target in a nested scope (#6296) 2022-10-31 02:29:55 +00:00
SWC Bot
a4546a4d22 chore: Publish crates 2022-10-28 01:27:37 +00:00
SWC Bot
09b296164c chore: Publish crates 2022-10-27 03:05:43 +00:00
SWC Bot
fd4b66ea8c chore: Publish crates 2022-10-27 01:25:04 +00:00
SWC Bot
51132f0636 chore: Publish crates 2022-10-27 00:19:24 +00:00
SWC Bot
2f05c3fd32 chore: Publish crates 2022-10-24 03:58:37 +00:00
SWC Bot
e2c1fcffd4 chore: Publish crates 2022-10-21 23:50:56 +00:00
SWC Bot
b79997ba02 chore: Publish crates 2022-10-21 09:11:29 +00:00
SWC Bot
bcd5f6f5be chore: Publish crates 2022-10-21 03:21:15 +00:00
SWC Bot
3f648bdf0f chore: Publish crates 2022-10-20 08:59:26 +00:00
SWC Bot
0c23592d14 chore: Publish crates 2022-10-20 01:50:04 +00:00
Austaras
0e2de3069d
fix(es/compat): Fix super method call in loose mode (#6207) 2022-10-20 00:20:43 +00:00
SWC Bot
b48ec880fd chore: Publish crates 2022-10-19 04:00:51 +00:00
SWC Bot
a049ef058b chore: Publish crates 2022-10-18 14:51:39 +00:00
SWC Bot
789ea16fc8 chore: Publish crates 2022-10-18 05:41:47 +00:00
Austaras
aefc11b8a7
feat(es/compat): Support readonly and writeonly for private fields (#6182) 2022-10-18 05:38:36 +00:00
SWC Bot
fed888f822 chore: Publish crates 2022-10-17 08:33:49 +00:00
SWC Bot
c3ba51f48e chore: Publish crates 2022-10-15 23:59:27 +00:00
SWC Bot
a50b5aeeb1 chore: Publish crates 2022-10-14 10:42:11 +00:00
SWC Bot
1affcfe8e8 chore: Publish crates 2022-10-13 06:12:56 +00:00
SWC Bot
56da9981bb chore: Publish crates 2022-10-12 10:06:01 +00:00
SWC Bot
7c9cb80a52 chore: Publish crates 2022-10-12 04:34:51 +00:00
SWC Bot
e37ced5bf4 chore: Publish crates 2022-10-12 01:55:47 +00:00
SWC Bot
dcb3a4371d chore: Publish crates 2022-10-11 23:55:24 +00:00
SWC Bot
521bdbe9cc chore: Publish crates 2022-10-11 23:11:17 +00:00
SWC Bot
5bf306565f chore: Publish crates 2022-10-11 11:23:16 +00:00
IWANABETHATGUY
27bda13591
build(cargo): Remove unused deps (#6117) 2022-10-11 11:20:14 +00:00
SWC Bot
018ca946e7 chore: Publish crates 2022-10-10 13:09:51 +00:00
SWC Bot
3171718e07 chore: Publish crates 2022-10-07 07:48:18 +00:00
SWC Bot
477626b9ff chore: Publish crates 2022-10-07 05:55:53 +00:00
Donny/강동윤
e6b1dd4731
feat(es/testing): Add an option to test sourcemap (#6079) 2022-10-07 05:52:22 +00:00
SWC Bot
5f49ac012e chore: Publish crates 2022-10-06 11:38:55 +00:00
SWC Bot
ad58d5daf8 chore: Publish crates 2022-10-06 01:40:03 +00:00
SWC Bot
37286e369e chore: Publish crates 2022-10-04 15:22:12 +00:00
Donny/강동윤
7554482205
fix(es/compat): Fix handling of op-assignment in generator (#6036) 2022-10-04 15:17:50 +00:00
SWC Bot
5df3eb1f43 chore: Publish crates 2022-10-04 14:37:35 +00:00
Donny/강동윤
0c67a3adba
fix(es/compat): Fix handling of deep array pattern of object rest pass (#6035) 2022-10-04 23:34:03 +09:00
SWC Bot
676831477c chore: Publish crates 2022-10-04 12:46:12 +00:00
Donny/강동윤
80da0981bd
feat(es/compat): Support iterator protocol on loose mode (#6034) 2022-10-04 21:42:39 +09:00
SWC Bot
d620ce60ff chore: Publish crates 2022-10-02 15:36:08 +00:00
SWC Bot
b6824ff254 chore: Publish crates 2022-10-01 03:36:56 +00:00
Austaras
31ffd5a01d
fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
Donny/강동윤
10fb645552
chore(ci): Merge CI scripts (#5999)
**Description:**

This PR merges CI scripts, and make integration tests use patched crates.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5540.
2022-09-30 16:57:15 +09:00
SWC Bot
2f626e95eb chore: Publish crates 2022-09-30 07:16:28 +00:00
OJ Kwon
af64217f19
build(cargo): Introduce workspace deps (#5997) 2022-09-30 13:43:32 +09:00
SWC Bot
f86ff4fa7c chore: Publish crates 2022-09-29 05:19:48 +00:00
SWC Bot
c499e2054d chore: Publish crates 2022-09-28 22:57:51 +00:00
SWC Bot
1c9870a744 chore: Publish crates 2022-09-28 13:44:08 +00:00
SWC Bot
d75addbdec chore: Publish crates 2022-09-28 10:37:40 +00:00
SWC Bot
b5be765a87 chore: Publish crates 2022-09-28 05:39:30 +00:00
SWC Bot
f655488cfa chore: Publish crates 2022-09-27 13:57:39 +00:00
Finn Böger
1f892cd979
fix(es/compat): Fix unrolling of arrays in generator (#5965)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5951.
2022-09-27 13:53:51 +00:00
SWC Bot
1682095813 chore: Publish crates 2022-09-27 05:54:04 +00:00
SWC Bot
e001226674 chore: Publish crates 2022-09-26 09:21:39 +00:00
SWC Bot
e1f421b6af chore: Publish crates 2022-09-25 01:36:48 +00:00
SWC Bot
e5ba9636ac chore: Publish crates 2022-09-24 03:36:47 +00:00
SWC Bot
8a5ed1e0ba chore: Publish crates 2022-09-23 07:50:26 +00:00
Donny/강동윤
5cddb4c734
feat(es/typescript): Support TS 4.9 (#5938)
**Description:**

This PR adds satisfaction expression to the AST and parser.
2022-09-23 16:41:56 +09:00
SWC Bot
4c3813dbcc chore: Publish crates 2022-09-22 03:16:22 +00:00
SWC Bot
8a9cc7dd2a chore: Publish crates 2022-09-21 07:33:40 +00:00
SWC Bot
5c2b1bb15d chore: Publish crates 2022-09-20 03:51:28 +00:00
Donny/강동윤
1a182ef8d9
perf(es): Optimize memory layout of AST (#5829) 2022-09-20 12:47:21 +09:00
Donny/강동윤
f0ca487848 chore: Publish crates 2022-09-16 15:46:25 +09:00
SWC Bot
52c17f3056 chore: Publish crates 2022-09-15 14:49:03 +00:00
SWC Bot
1d633e8ba7 chore: Publish crates 2022-09-15 06:08:07 +00:00
SWC Bot
ec8bb432b9 chore: Publish crates 2022-09-15 05:23:46 +00:00
SWC Bot
73ee9d6784 chore: Publish crates 2022-09-15 03:06:15 +00:00
magic-akari
006c7fb56e
fix(es/compat): Fix handling of objects in generator (#5861) 2022-09-15 12:02:48 +09:00
Donny/강동윤
dfb01bde71
refactor: Refactor code using clippy (#5863)
**Description:**

I temporarily updated rustc to use newer version of `cargo clippy`.
2022-09-14 15:05:59 +00:00
SWC Bot
d35792f424 chore: Publish crates 2022-09-14 07:56:20 +00:00
SWC Bot
8432c0a1ad chore: Publish crates 2022-09-14 07:19:24 +00:00
SWC Bot
0c24841274 chore: Publish crates 2022-09-14 06:54:54 +00:00
SWC Bot
0a56a2d5ab chore: Publish crates 2022-09-14 06:10:39 +00:00
magic-akari
2b2464271a
fix(es/codegen): Remove redundant ; after export default decl (#5851) 2022-09-14 06:07:15 +00:00
SWC Bot
d16fb9a8cf chore: Publish crates 2022-09-13 05:04:36 +00:00
SWC Bot
b2c0fbd7ba chore: Publish crates 2022-09-13 02:19:15 +00:00
SWC Bot
2df19176fb chore: Publish crates 2022-09-12 05:16:53 +00:00
SWC Bot
9f28c246dc chore: Publish crates 2022-09-12 04:34:08 +00:00
SWC Bot
5fe032c01a chore: Publish crates 2022-09-11 03:00:57 +00:00
SWC Bot
4084fc1aeb chore: Publish crates 2022-09-10 17:14:48 +00:00
SWC Bot
961a9047c0 chore: Publish crates 2022-09-10 15:07:06 +00:00
SWC Bot
417b1f2a92 chore: Publish crates 2022-09-10 07:23:37 +00:00
SWC Bot
4c078b0ac3 chore: Publish crates 2022-09-10 06:04:28 +00:00
magic-akari
aa8672e739
fix(es/compat): Fix generator (#5796)
**Description:**

- Merge `temp_vars` into `hoisted_vars`.
- Fix the context of the function call and new call.

**Related issue (if exists):**

 - https://github.com/vercel/next.js/issues/40399
2022-09-10 15:01:43 +09:00
SWC Bot
c8bb70f97e chore: Publish crates 2022-09-10 05:48:09 +00:00
SWC Bot
575940e770 chore: Publish crates 2022-09-09 08:09:53 +00:00
SWC Bot
54b108dc51 chore: Publish crates 2022-09-09 05:55:06 +00:00
SWC Bot
701fa74631 chore: Publish crates 2022-09-09 05:05:59 +00:00
SWC Bot
d2188eac3f chore: Publish crates 2022-09-08 04:28:01 +00:00
SWC Bot
bad9811ea8 chore: Publish crates 2022-09-07 06:16:59 +00:00
SWC Bot
4507b10219 chore: Publish crates 2022-09-07 05:32:06 +00:00
SWC Bot
e654741336 chore: Publish crates 2022-09-06 12:41:54 +00:00
OJ Kwon
d6e67b5944
feat(atoms): Introduce bytecheck-ed rkyv version (#5686) 2022-09-03 14:29:02 +09:00
SWC Bot
3a0b749f1e chore: Publish crates 2022-09-01 04:39:40 +00:00
Donny/강동윤
1085667049
perf(es/minifier): Enable parallel processing (#5705) 2022-09-01 13:36:30 +09:00
OJ Kwon
7686faece5
fix(swc_core): Bump versions (#5706) 2022-09-01 13:08:04 +09:00
SWC Bot
d6204761f3 chore: Publish crates 2022-08-30 13:16:02 +00:00
Donny/강동윤
edef5f868b
fix(es/compat): Don't move variables from object-rest pass (#5673) 2022-08-30 13:12:11 +00:00
Donny/강동윤
1ae539aac5
test(es/compat): Add a test for a fixed issue (#5672) 2022-08-30 11:09:58 +00:00
SWC Bot
1fa9cacad6 chore: Publish crates 2022-08-30 09:58:58 +00:00
Donny/강동윤
4820f0cbcc
fix(es/compat): Handle yield in block scoping pass (#5668) 2022-08-30 09:55:18 +00:00
SWC Bot
e951aa6996 chore: Publish crates 2022-08-29 10:14:19 +00:00
SWC Bot
d538b72002 chore: Publish crates 2022-08-26 04:07:25 +00:00
magic-akari
d18ee54aef
fix(es/compat): Fix evaluation order of computed class keys (#5621) 2022-08-26 04:03:39 +00:00
SWC Bot
1dd17ffd23 chore: Publish crates 2022-08-25 16:14:21 +00:00
Donny/강동윤
83fec33359
feat(es/generator): Use new generator implementation (#5627) 2022-08-25 16:10:47 +00:00
SWC Bot
e5926186ee chore: Publish crates 2022-08-25 09:01:43 +00:00
Donny/강동윤
927ae7e8d3
fix(es/compat): Revert generator reimplementation (#5624) 2022-08-25 17:58:37 +09:00
SWC Bot
3ea433bd0a chore: Publish crates 2022-08-25 04:53:03 +00:00
Donny/강동윤
2aa009018f
feat(es/generator): Replace generator implementation with one from tsc (#5173) 2022-08-25 04:50:00 +00:00
SWC Bot
77ae3cfa74 chore: Publish crates 2022-08-24 15:23:21 +00:00
magic-akari
35d3558535
fix(es/compat): Handle super in a private method (#5613) 2022-08-25 00:19:41 +09:00
SWC Bot
8d44b71b6c chore: Publish crates 2022-08-24 08:46:23 +00:00
magic-akari
1181d0ffe2
fix(es/compat): Ignore invalid class method names (#5612) 2022-08-24 08:42:57 +00:00
OJ Kwon
1769191f9a
chore(swc_core): Update dependency version (#5595) 2022-08-23 10:10:30 +09:00
OJ Kwon
9bc40e3d08
build(swc_core): Fix dependency version (#5593) 2022-08-23 00:21:29 +00:00
magic-akari
86452511e7
fix(es/compat): Fix destructuring assignments and updates of super properties in async method (#5580) 2022-08-22 13:36:02 +00:00
SWC Bot
1d235e0d06 chore: Publish crates 2022-08-22 00:45:24 +00:00
magic-akari
bee26a9abb
fix(es/compat): Fix destructuring assignments and updates of super properties (#5576) 2022-08-22 00:42:50 +00:00
SWC Bot
2c35990a07 chore: Publish crates 2022-08-21 08:33:31 +00:00
SWC Bot
4e9e64f6dd chore: Publish crates 2022-08-19 13:04:31 +00:00
Austaras
b717a68199
fix(es/compat): Use separate SyntaxContext for class names (#5566) 2022-08-19 13:01:50 +00:00
SWC Bot
34d366ee1a chore: Publish crates 2022-08-19 06:52:14 +00:00
magic-akari
f2c1164026
fix(es/compat): Handle async in class method parameters (#5560) 2022-08-19 06:49:34 +00:00
Donny/강동윤
f7b34e70e9 chore: Publish crates 2022-08-17 14:28:18 +09:00
SWC Bot
67f0479b8e chore: Publish crates 2022-08-16 13:10:23 +00:00
Donny/강동윤
b9933b159a
feat(es/compat): Fix syntax context of transpiled class methods (#5498) 2022-08-16 13:07:27 +00:00
OJ Kwon
76797b1fc1
build(bindings): Bump up swc_core (#5484) 2022-08-14 07:48:15 +00:00
Donny/강동윤
b655bf473a
fix(es/helpers): Fix for await (#5458) 2022-08-14 05:46:07 +00:00
Donny/강동윤
925839adc6 chore: Publish crates 2022-08-13 19:11:26 +09:00
Donny/강동윤
1b089be611 chore: Publish crates 2022-08-13 14:09:52 +09:00
SWC Bot
62303e7cd5 chore: Publish crates 2022-08-13 02:40:33 +00:00
OJ Kwon
4a3b4b27e2
refactor(es/compat): Respect MSRV (#5473) 2022-08-13 02:38:23 +00:00
Donny/강동윤
d2f2a1315b chore: Publish crates 2022-08-13 00:49:08 +09:00
SWC Bot
415c495505 chore: Publish crates 2022-08-12 13:42:01 +00:00
Austaras
5a06271116
feat(es/compat): Add pure comments for generator and async transform (#5463) 2022-08-12 13:39:26 +00:00
Donny/강동윤
3eb1f4b2b1
chore(ci): Fix lints (#5462) 2022-08-12 13:13:35 +00:00
Donny/강동윤
033e05677a chore: Publish crates 2022-08-12 15:18:06 +09:00
OJ Kwon
072eb13bf1
build(es): Bump up packages (#5451) 2022-08-11 23:58:00 +00:00
OJ Kwon
e25b37d579
build(atoms): Bump swc_atoms (#5442) 2022-08-11 18:52:44 +09:00
SWC Bot
cdb9bbd707 chore: Publish crates 2022-08-08 03:00:13 +00:00
OJ Kwon
5c9ea16b2a
build(cargo): Update packages (#5331) 2022-07-29 08:30:41 +09:00
SWC Bot
129a886e13 chore: Publish crates 2022-07-27 04:18:47 +00:00
SWC Bot
b4e2aded26 chore: Publish crates 2022-07-25 03:36:13 +00:00
Austaras
b423d6f936
fix(es/compat): Fix capturing of block scoping pass (#5279) 2022-07-25 03:34:18 +00:00
Donny/강동윤
a37fdca969 chore: Publish crates 2022-07-22 21:06:43 +09:00
Donny/강동윤
037a53d5d1
perf(es/ast): Use Atom in some places (#5271) 2022-07-22 20:09:25 +09:00
SWC Bot
6cca12d119 chore: Publish crates 2022-07-20 06:59:57 +00:00
magic-akari
2010409bac
fix(es/compat): Preserve orders of imports and exports (#5249) 2022-07-20 06:57:43 +00:00
SWC Bot
fe74b7067c chore: Publish crates 2022-07-20 04:10:58 +00:00
OJ Kwon
0d91741eb9
build(cargo): Align dependency versions (#5248) 2022-07-20 03:42:04 +00:00
Donny/강동윤
54982d4d72 chore: Publish crates 2022-07-19 11:38:23 +09:00
Donny/강동윤
d3b0996617 chore: Publish crates 2022-07-16 23:30:15 +09:00
Austaras
375774d31e
fix(es): Check the syntax context of arguments (#5174) 2022-07-13 10:29:03 +00:00
Donny/강동윤
b433b69263 chore: Publish crates 2022-07-12 23:58:30 +09:00
SWC Bot
2bd5b4413a chore: Publish crates 2022-07-09 10:17:04 +00:00
SWC Bot
8b62d47eb1 chore: Publish crates 2022-07-08 06:29:34 +00:00
Austaras
cd8d65b9a7
fix(es/compat): Remove extra this/arguments capture in arrows (#5152) 2022-07-08 06:27:15 +00:00
SWC Bot
d4c9e70e39 chore: Publish crates 2022-07-08 00:57:00 +00:00
magic-akari
93513031b5
fix(es/compat): Optimize for-of loops for array literals (#5141) 2022-07-08 00:54:53 +00:00
SWC Bot
297228a690 chore: Publish crates 2022-07-07 07:48:49 +00:00
SWC Bot
40dabaddfd chore: Publish crates 2022-07-07 04:38:01 +00:00
Edwin Coronado
2d94797975
feat(es/parser): Support d in regex flag for es2022 (#5127) 2022-07-07 04:35:49 +00:00
SWC Bot
43744c9eed chore: Publish crates 2022-07-06 05:20:40 +00:00
magic-akari
dd39a798ae
fix(es/compat): Preserve more class names (#5106) 2022-07-06 05:18:40 +00:00
SWC Bot
9385103649 chore: Publish crates 2022-07-06 04:44:10 +00:00
SWC Bot
a27c14357c chore: Publish crates 2022-07-04 14:39:41 +00:00
Austaras
adbb0bf8d8
fix(es/compat): Preserve class names (#5104) 2022-07-04 14:37:03 +00:00
SWC Bot
f5447cd1b1 chore: Publish crates 2022-07-02 03:53:10 +00:00
magic-akari
de66b64aed
fix(es/compat): Preserve spans in object_rest_spread (#5082) 2022-07-02 03:50:30 +00:00
Donny/강동윤
c2c923e205 chore: Publish crates 2022-07-01 11:50:45 +09:00
SWC Bot
73874486b2 chore: Publish crates 2022-06-29 11:05:08 +00:00
SWC Bot
4a2b1764c4 chore: Publish crates 2022-06-29 04:05:59 +00:00
Austaras
18ea2b5770
fix(es/compat): Preserve this in function with block scoped vars (#5056) 2022-06-29 04:03:00 +00:00
SWC Bot
5576c3c601 chore: Publish crates 2022-06-29 03:37:57 +00:00
SWC Bot
47628512f3 chore: Publish crates 2022-06-28 05:39:19 +00:00
Austaras
25bd520620
fix(es/compat): Handle classes with accessors and a method with the same name (#5039) 2022-06-28 05:36:22 +00:00
Donny/강동윤
8b042745c6 chore: Publish crates 2022-06-27 21:36:54 +09:00
SWC Bot
4883fe8011 chore: Publish crates 2022-06-25 05:06:17 +00:00
magic-akari
04fc1cb429
fix(es/compat): Fix name conflict of Array (#5034) 2022-06-25 04:55:59 +00:00
Donny/강동윤
36d960c7e9
perf(es/hygiene): Make hygiene faster (#4952) 2022-06-15 14:36:57 +00:00
SWC Bot
2d1fbe8dcd chore: Publish crates 2022-06-13 18:44:15 +00:00
Donny/강동윤
bfede71e6c chore: Publish crates 2022-06-11 16:47:29 +09:00
SWC Bot
0f094da77f chore: Publish crates 2022-06-11 07:45:15 +00:00
Donny/강동윤
35c93be60f
perf(es/transforms): Make transforms parallel (#4939) 2022-06-11 07:42:43 +00:00
Donny/강동윤
eb0acc3859 chore: Publish crates 2022-06-06 04:54:19 +09:00
Donny/강동윤
f847709787
chore(common): Update rustc (#4828) 2022-05-28 07:07:58 +00:00
SWC Bot
af31b15e70 chore: Publish crates 2022-05-27 05:15:50 +00:00
Donny/강동윤
dc911dcae6
feat(es/compat): Don't create vars for computed class methods if possible (#4805) 2022-05-27 05:12:57 +00:00
SWC Bot
424e62e663 chore: Publish crates 2022-05-26 16:01:22 +00:00
Donny/강동윤
a487fc1d28
refactor(es/transforms): Remove concurrent (#4808) 2022-05-26 15:58:19 +00:00
SWC Bot
a163279c88 chore: Publish crates 2022-05-26 11:35:19 +00:00
Austaras
573bcb5b49
fix(es/compat): Use define for non-spread props (#4754) 2022-05-26 20:32:41 +09:00
SWC Bot
3d496d6408 chore: Publish crates 2022-05-24 13:32:27 +00:00
Shinobu Hayashi
a3e4c201de
fix(es/compat): Escape keywords in class method names (#4775) 2022-05-24 13:29:59 +00:00
SWC Bot
f4d828feaf chore: Publish crates 2022-05-24 12:34:23 +00:00
Austaras
db1698e012
fix(es/compat): Handle nested break/continue in block_scoping (#4778) 2022-05-24 12:31:50 +00:00
SWC Bot
9857b2f4ca chore: Publish crates 2022-05-24 11:35:40 +00:00
Austaras
4f00914c1a
fix(es/compat): Handle nested for loops with break/continue (#4777) 2022-05-24 11:32:49 +00:00
SWC Bot
fd8a08a7e7 chore: Publish crates 2022-05-24 04:43:53 +00:00
Satish Srinivasan
8720f9a948
fix(es/compat): Fix span of instanceof (#4757) 2022-05-24 04:41:34 +00:00
SWC Bot
b509ca0c7b chore: Publish crates 2022-05-18 22:09:14 +00:00
magic-akari
100c0b58c9
fix(es/compat): Fix break in for await loop (#4705) 2022-05-18 22:06:48 +00:00
SWC Bot
ead25ee153 chore: Publish crates 2022-05-15 05:09:48 +00:00
SWC Bot
97808349a2 chore: Publish crates 2022-05-11 16:17:07 +00:00
SWC Bot
d768200e10 chore: Publish crates 2022-05-11 05:36:57 +00:00
Donny/강동윤
3b2b8c4512
fix(es/config): Merge jsc.transform correctly (#4615) 2022-05-11 14:28:40 +09:00
SWC Bot
90569d4673 chore: Publish crates 2022-05-11 04:38:52 +00:00
Donny/강동윤
6a97c7bef8
fix(es/utils): Fix wrong apis (#4604)
# API Changes

## `swc_ecma_utils`

### Renames

 - `find_ids` => `find_pat_ids`
 - `prepend` => `prepend_stmt`
 - `as_bool` => `cast_to_bool`
 - `as_number` => `as_pure_number`
 - `as_string` => `cast_to_string`
 - (`as_pure_bool`, `cast_to_number` is not renamed)
 - `UsageFinder` => `IdentUsageFinder`.
 - `IdentFinder` => `IdentRefFinder`.

## Changes

 - Re-export of `HANDLER` from `swc_common::errors` is removed. Use `swc_common::error::HANDLER` instead.
 - Re-export of `Id` from `swc_ecma_ast` is removed. Use `swc_ecma_ast::Id` instead.
 - `ExprCtx` is used for apis related to `Expr`.
 - `preserve_effects` is now a method of `ExprCtx`. It was a top-level function.
 - `extract_side_effects_to` is now a method of `ExprCtx`. It was a top-level function.
 - `IdentUsageFinder` (previously `UsageFinder`) now takes `Id` instead of `Ident`.
 - `IdentRefFinder` (previously `IdentFinder`) now takes `Id` instead of `Ident`.
 - `ExprExt::is_ident_ref_to` is removed.
 - `Expr::is_global_ref_to` is added.
 - `:🆔:id` is removed. Use `Ident::to_id()` instead.
2022-05-11 04:36:22 +00:00
Donny/강동윤
2c861bd9e5
feat(es/ast): Improve Id APIs (#4614)
# API Changes

 - `Ident` now has `to_id()`. This method is added to allow removing an import.
2022-05-11 12:02:14 +09:00
SWC Bot
e4ce388632 chore: Publish crates 2022-05-06 04:10:39 +00:00
Austaras
2e74787870
fix(es/compat): Memorize computed props in logical assignment (#4525) 2022-05-05 02:25:37 +00:00
Donny/강동윤
a6d404a8c2
chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
SWC Bot
51574d8b15 chore: Publish crates 2022-05-04 03:15:35 +00:00
Austaras
9e45882b84
fix(es/compat): Fix the position of inserted statements in class_properties (#4511) 2022-05-04 12:13:38 +09:00
Donny/강동윤
97e0e271d5
fix(es/compat): Revert a wrong patch about private properties 2022-05-04 12:13:07 +09:00
SWC Bot
00695f4b23 chore: Publish crates 2022-05-03 07:50:35 +00:00
SWC Bot
6cd5cfe045 chore: Publish crates 2022-05-03 02:23:15 +00:00
Austaras
c4b156ce1f
fix(es/compat): Visit default export in static_block (#4500) 2022-05-03 02:20:49 +00:00
Donny/강동윤
518f769ef0 chore: Publish crates 2022-05-02 15:50:14 +09:00
magic-akari
1e1d081805
fix(es/compat): Support updating a private field with bigint value (#4136) 2022-05-02 13:34:46 +09:00
SWC Bot
3443208810 chore: Publish crates 2022-04-30 12:35:42 +00:00
Satish Srinivasan
de53a6fa9d
feat(es/compat): Verify private property access (#4465) 2022-04-30 12:32:52 +00:00
Donny/강동윤
951e7b3fb9 chore: Publish crates 2022-04-30 18:21:26 +09:00
Donny/강동윤
a444726fe3
fix(es/bugfixes): Fix handling of syntax context (#4490) 2022-04-30 09:11:20 +00:00
Donny/강동윤
a72f436148 chore: Publish crates 2022-04-28 17:35:33 +09:00
Donny/강동윤
0bc0bae90d
fix(es/async-generator): Fix yield* in async generators (#4452) 2022-04-28 04:14:17 +00:00
Donny/강동윤
27f9b30ef2 chore: Publish crates 2022-04-26 19:30:11 +09:00
Donny/강동윤
53610fdafc
feat(es/resolver): Use different syntax context for unresolved refs (#4436)
- We don't need a list of bindings to check if an identifier is unresolved.
 - Checking if an identifier is unresolved is now one CPU instruction.
   - Previously it was one hashmap operation.
 - This PR also improves performance, by removing the hashmaps mentioned above.
2022-04-26 07:38:50 +00:00
SWC Bot
7d23492b16 chore: Publish crates 2022-04-21 10:02:50 +00:00
OJ Kwon
8419b60430
fix(plugin): Align deps to fix build (#4377) 2022-04-20 08:05:02 +00:00
SWC Bot
995b4367cc chore: Publish crates 2022-04-15 07:39:50 +00:00
Donny/강동윤
7599fe7431
fix(es/parser): Enable static blocks by default (#4334) 2022-04-15 07:31:41 +00:00
SWC Bot
591b98df66 chore: Publish crates 2022-04-12 22:11:46 +09:00
Donny/강동윤
6c9882ec68 fix(es/compat): Fix renaming bug of block_scoping (#4310) 2022-04-12 22:11:34 +09:00
SWC Bot
fa880634bd chore: Publish crates 2022-04-11 20:05:28 +00:00
SWC Bot
4a097adbf7 chore: Publish crates 2022-04-11 18:48:43 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting (#4304) 2022-04-11 18:45:58 +00:00
OJ Kwon
fad652f879
chore(plugin): Align version of swc_common to include dummy comment api (#4270) 2022-04-07 07:21:37 +00:00
SWC Bot
5eb3d8315a chore: Publish crates 2022-04-05 12:49:22 +00:00
Alexander Akait
f39d3aca4d
feat(es/ast): Add raw to Num (#4245) 2022-04-05 12:46:35 +00:00
OJ Kwon
4093814895
chore(build): Dedup swc_common (#4247) 2022-04-05 14:28:07 +09:00
Donny/강동윤
1f466e1d2f
chore(ci): Fix benchmark action (#4242) 2022-04-04 20:12:03 +09:00
Donny/강동윤
7eea95be7a
fix(es/preset-env): Change order of passes 2022-04-02 06:57:17 +00:00
SWC Bot
3337777f8c chore: Publish crates 2022-04-02 06:06:39 +00:00
Alexander Akait
e91f271873
feat(es/ast): Add raw to BigInt (#4218) 2022-04-02 06:04:14 +00:00
SWC Bot
1068561800 chore: Publish crates 2022-04-01 04:29:08 +00:00
magic-akari
b793aa0200
feat(es/compat): Support more regex expressions (#4205) 2022-04-01 04:26:30 +00:00
SWC Bot
d19c8a8aa3 chore: Publish crates 2022-03-31 13:03:06 +00:00
magic-akari
6a27a0ce88
fix(es/compat): Hoist env in function params (#4210) 2022-03-31 13:00:19 +00:00
SWC Bot
cfed024514 chore: Publish crates 2022-03-30 21:19:05 +00:00
Austaras
c946236fcc
fix(es/compat): Fix label handling of block_scoping (#4198) 2022-03-30 21:16:34 +00:00
SWC Bot
b67c104877 chore: Publish crates 2022-03-30 12:07:14 +00:00
Austaras
3426dda4f7
fix(es/compat): Handle new.target in getter/setter properties (#4194) 2022-03-30 12:04:27 +00:00
SWC Bot
40b3381ae8 chore: Publish crates 2022-03-30 10:32:51 +00:00
magic-akari
4f5c5cf842
fix(es/compat): Handle spreads of string literials (#4191) 2022-03-30 19:30:06 +09:00
SWC Bot
6125de9808 chore: Publish crates 2022-03-28 12:20:51 +00:00
Donny/강동윤
e6088408bf chore: Publish crates 2022-03-24 12:05:47 +09:00
SWC Bot
8d322ef575 chore: Publish crates 2022-03-22 10:46:03 +00:00
Donny/강동윤
154d443c88
fix(es/compat): Fix regression of es2015 (#4119) 2022-03-22 10:42:05 +00:00