SWC Bot
|
f9c5265bde
|
chore: Publish crates
|
2023-06-21 15:44:11 +00:00 |
|
Donny/강동윤
|
54410047fa
|
build(deps): Update syn to v2 (#7557)
|
2023-06-21 15:38:46 +00:00 |
|
SWC Bot
|
c023a03d7b
|
chore: Publish crates
|
2023-06-21 03:18:22 +00:00 |
|
SWC Bot
|
8b765e6763
|
chore: Publish crates
|
2023-06-20 05:37:57 +00:00 |
|
SWC Bot
|
f27d6ea58c
|
chore: Publish crates
|
2023-06-20 05:05:01 +00:00 |
|
SWC Bot
|
69b034931e
|
chore: Publish crates
|
2023-06-20 04:14:44 +00:00 |
|
Donny/강동윤
|
bc6e95052e
|
fix(es/compat): Visit arrow body from optional chaining pass (#7549)
**Related issue:**
- Closes #7547.
|
2023-06-20 04:12:31 +00:00 |
|
SWC Bot
|
fec056f5db
|
chore: Publish crates
|
2023-06-20 03:21:20 +00:00 |
|
SWC Bot
|
44aac8fe27
|
chore: Publish crates
|
2023-06-19 05:51:51 +00:00 |
|
SWC Bot
|
d38c40914e
|
chore: Publish crates
|
2023-06-19 03:02:08 +00:00 |
|
Justin Ridgewell
|
990e48e0e8
|
fix(es/compat): Fix optional chaining (#7530)
**Description:**
This fixes a few bugs with optional chaining:
-
[`a?.c()`](https://play.swc.rs/?version=1.3.64&code=H4sIAAAAAAAAA9PXVwjOyC%2FNSVFISrXi0tdXSFSwtVXIK83JUbBXKM1LSU3LzEtNUbBSSNRL1tC05kq0h9AAouc%2F7DgAAAA%3D&config=H4sIAAAAAAAAA2VSu27DMAzc8xUC5wAZii7ZWnRJgXTKDxAKkyrQwyDpNEbgf69kxI4jexAk3olH3fm%2BMgYoXsFszT3vywchHQm2pa7cwXos28T0LRl4m0qnxJY%2BvD8wRsmHUGDllibGsYsYnN2FJrHWoCKfScudUbsv2LDARewEgI4CM24uezqj7b4oj4aauOpf5EdoT4pHVFxSmNDqS1tjNhvDbVQXKNuAraaA6iysC5DYWI8izs4uwIMOC%2F6cpL%2Bc%2FnanHwwkDVpaDJM5rdBn67y6WHv5eNCVfGpCzibDJ%2FQyw%2Fv1qtqAT0lqHWiQhfjVSumi4m2I3QYUy65RmNl0kdtS8OlvPWxfhTw0lnd45pv%2FstbTLOKuGeyzKYQULwIT08l%2B5BaJVf8PfP2zz7YCAAA%3D)
-
[`a?.b.c()`](https://play.swc.rs/?version=1.3.64&code=H4sIAAAAAAAAA9PXVwjOyC%2FNSVFISrXi0tdXSFSwtVXIK83JUbBXKM1LSU3LzEtNUbBSSNRL0kvW0LTmSrSHsQBsP8xLPAAAAA%3D%3D&config=H4sIAAAAAAAAA2VSu27DMAzc8xUC5wAZii7ZWnRJgXTKDxAKkyrQwyDpNEbgf69kxI4jexAk3olH3fm%2BMgYoXsFszT3vywchHQm2pa7cwXos28T0LRl4m0qnxJY%2BvD8wRsmHUGDllibGsYsYnN2FJrHWoCKfScudUbsv2LDARewEgI4CM24uezqj7b4oj4aauOpf5EdoT4pHVFxSmNDqS1tjNhvDbVQXKNuAraaA6iysC5DYWI8izs4uwIMOC%2F6cpL%2Bc%2FnanHwwkDVpaDJM5rdBn67y6WHv5eNCVfGpCzibDJ%2FQyw%2Fv1qtqAT0lqHWiQhfjVSumi4m2I3QYUy65RmNl0kdtS8OlvPWxfhTw0lnd45pv%2FstbTLOKuGeyzKYQULwIT08l%2B5BaJVf8PfP2zz7YCAAA%3D)
-
[`a.c?.()`](https://play.swc.rs/?version=1.3.64&code=H4sIAAAAAAAAAxWKsQ3AIAwEe6b4Ehq7J0IMkQGQYxMlkkUq9g80d1ccM87nm264eg7MiE2aomwvSiJNKAVjuqNiDuv3O7ohY4%2Bk4r7WdAQhrRRX%2FIwaKV1TAAAA&config=H4sIAAAAAAAAA2VSu27DMAzc8xUC5wAZii7ZWnRJgXTKDxAKkyrQwyDpNEbgf69kxI4jexAk3olH3fm%2BMgYoXsFszT3vywchHQm2pa7cwXos28T0LRl4m0qnxJY%2BvD8wRsmHUGDllibGsYsYnN2FJrHWoCKfScudUbsv2LDARewEgI4CM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Zii7ZWnRJgXTKDxAKkyrQwyDpNEbgf69kxI4jexAk3olH3fm%2BMgYoXsFszT3vywchHQm2pa7cwXos28T0LRl4m0qnxJY%2BvD8wRsmHUGDllibGsYsYnN2FJrHWoCKfScudUbsv2LDARewEgI4CM24uezqj7b4oj4aauOpf5EdoT4pHVFxSmNDqS1tjNhvDbVQXKNuAraaA6iysC5DYWI8izs4uwIMOC%2F6cpL%2Bc%2FnanHwwkDVpaDJM5rdBn67y6WHv5eNCVfGpCzibDJ%2FQyw%2Fv1qtqAT0lqHWiQhfjVSumi4m2I3QYUy65RmNl0kdtS8OlvPWxfhTw0lnd45pv%2FstbTLOKuGeyzKYQULwIT08l%2B5BaJVf8PfP2zz7YCAAA%3D)
- [`delete
foo?.bar`](https://play.swc.rs/?version=1.3.64&code=H4sIAAAAAAAAA9PXVwjOyC%2FNSVFISrXi0tdXSMvPV7C1VcgrzclRsFcoKSpNVbBSSEnNSS1JBcnpJSUWcSG49iA%2BAGcLTstEAAAA&config=H4sIAAAAAAAAA1WPSw7CMAxE9zlF5DULYIEEd%2BAQVnCrVPkpTiWqqncnTZMAO3vG42evQkqYWMFDrrnMTcDIFHufFV5cwndWgJRFVlGHBKfmTrxbAxqmIm2HAwnjSKmk%2BHq%2B3GsCjPdMWU5xpipZ7fSw%2FCKVtyESc9vcaRbdaOgfKCoUrH%2FNxayvpCXQccANvkMN1heD5mdL7leJ7QOQNa2NFgEAAA%3D%3D)
- [`function foo(a, b = a?.b)
{}`](https://play.swc.rs/?version=1.3.64&code=H4sIAAAAAAAAA9PXVwjOyC%2FNSVFISrXi0tdXSCvNSy7JzM9TSMvP10jUUUhSsFXQ0NBUsLVTqFYoSyxSiE%2B0VnjUsEyhVlNDU1OhupYLm45Ee70kkCQAp8DQOl8AAAA%3D&config=H4sIAAAAAAAAA22Rz07DMAzG73uKyOdJAw5I7Ii4cBjvYKXuyJQ%2Fle3AqmnvTltIm63cHH%2B%2F%2BPtkXzbGwEks7M1lKIeHMkZpE4e5NbU9HdH2b2QToyYeROVM2wVoinQgxQYV1wgTWr0Za8xuZzhHdYH2BjBrCqjOwnYUEhvrUcTZ6gP84bDia0g%2FOX2%2Ftx8YSDq0tAozMFnoNTuvLsp%2FckNf5FMXKI6ZW%2FRS6ddSzgX4lOTeBzpkIb5dpfRR8TzmJxtQLLtOoVrTSc5rw2W%2F92GXBIp8JJ0Gy9PD48s0dJIhpCZ7qq7cd%2FQLPsMMOTkUrBhAcNG1fcmzuf4AkV7gUzECAAA%3D)
It also optimizes the AST for runtime evaluation. Before, we constructed
a leftwards conditional tree (`(_a_b = (_a = a) == null ? void 0 : _a.b)
== null ? void 0 : _a_b.c`) instead of a rightward tree (`(_a = a) ==
null ? void 0 : (_a_b = _a.b) == null ? void 0 : _a_b.c`), which
required multiple `== null` checks after the first nullish is found.
**Related issue:**
- Closes #7531.
|
2023-06-19 12:00:11 +09:00 |
|
SWC Bot
|
b9acc83fa7
|
chore: Publish crates
|
2023-06-16 02:59:35 +00:00 |
|
SWC Bot
|
39276402bf
|
chore: Publish crates
|
2023-06-14 05:01:49 +00:00 |
|
Donny/강동윤
|
4644d005d2
|
fix(es/compat): Fix handling of this of optional chaining pass (#7527)
**Related issue:**
- Closes #7526.
|
2023-06-14 13:59:35 +09:00 |
|
SWC Bot
|
db85bf3ee2
|
chore: Publish crates
|
2023-06-13 16:14:41 +00:00 |
|
SWC Bot
|
275db1baec
|
chore: Publish crates
|
2023-06-13 03:39:28 +00:00 |
|
SWC Bot
|
08574e690b
|
chore: Publish crates
|
2023-06-12 08:04:50 +00:00 |
|
Donny/강동윤
|
3958f1792c
|
refactor(es/ast): Remove unused fields (#7518)
**Related issue:**
- Closes #7347.
- Closes #7487.
|
2023-06-12 08:02:34 +00:00 |
|
SWC Bot
|
96895b1f3f
|
chore: Publish crates
|
2023-06-12 06:49:35 +00:00 |
|
Donny/강동윤
|
aa83584634
|
refactor(es/ast): Reimplement optional chaining (#7441)
**Related issue:**
- Closes #7003.
- Closes #7156.
|
2023-06-12 06:47:40 +00:00 |
|
SWC Bot
|
cea1237c5e
|
chore: Publish crates
|
2023-06-12 01:39:32 +00:00 |
|
SWC Bot
|
89bee900e4
|
chore: Publish crates
|
2023-06-07 05:10:31 +00:00 |
|
SWC Bot
|
b6b4b0fd2e
|
chore: Publish crates
|
2023-06-07 03:03:16 +00:00 |
|
SWC Bot
|
a63905aa2c
|
chore: Publish crates
|
2023-05-30 05:18:06 +00:00 |
|
SWC Bot
|
076b4d4023
|
chore: Publish crates
|
2023-05-30 03:24:10 +00:00 |
|
SWC Bot
|
a85816d505
|
chore: Publish crates
|
2023-05-25 04:54:11 +00:00 |
|
SWC Bot
|
6c3ff01a53
|
chore: Publish crates
|
2023-05-24 07:48:00 +00:00 |
|
SWC Bot
|
c1f2b4a09f
|
chore: Publish crates
|
2023-05-24 06:59:37 +00:00 |
|
SWC Bot
|
b95cd8444e
|
chore: Publish crates
|
2023-05-24 06:27:35 +00:00 |
|
SWC Bot
|
f9f0cc2380
|
chore: Publish crates
|
2023-05-24 05:44:06 +00:00 |
|
Donny/강동윤
|
f3d660f972
|
fix(es/compat): Fix variable scoping of object rest pass. (#7437)
**Related issue:**
- Closes #6988.
|
2023-05-24 05:41:57 +00:00 |
|
Donny/강동윤
|
2071f89d4e
|
fix(es/preset-env): Fix pass ordering (#7434)
**Related issue:**
- Closes #6898.
- Closes #7432.
|
2023-05-23 07:14:37 +00:00 |
|
Donny/강동윤
|
97d0f79142
|
fix(es/compat): Fix stage 3 decorator pass (#7392)
|
2023-05-23 06:24:05 +00:00 |
|
SWC Bot
|
47114702ef
|
chore: Publish crates
|
2023-05-23 05:30:42 +00:00 |
|
SWC Bot
|
12b966ea21
|
chore: Publish crates
|
2023-05-22 03:23:50 +00:00 |
|
Donny/강동윤
|
66d52ec849
|
fix(es/compat): Fix destructuring handling of block_scoping (#7425)
**Related issue:**
- Closes #7418.
|
2023-05-22 03:21:50 +00:00 |
|
SWC Bot
|
135c4fd16b
|
chore: Publish crates
|
2023-05-18 08:20:26 +00:00 |
|
SWC Bot
|
a2a544a0ae
|
chore: Publish crates
|
2023-05-17 13:12:20 +00:00 |
|
Yunfei He
|
dba78a0031
|
fix(es/compat): Mark reserved function names private (#7298)
|
2023-05-17 13:10:27 +00:00 |
|
SWC Bot
|
8052d4dabd
|
chore: Publish crates
|
2023-05-17 04:53:45 +00:00 |
|
SWC Bot
|
da0c612d85
|
chore: Publish crates
|
2023-05-16 05:18:57 +00:00 |
|
SWC Bot
|
d3db7edd51
|
chore: Publish crates
|
2023-05-16 04:14:36 +00:00 |
|
SWC Bot
|
5e3d156aca
|
chore: Publish crates
|
2023-05-15 03:20:03 +00:00 |
|
SWC Bot
|
a71d5b2180
|
chore: Publish crates
|
2023-05-14 05:23:11 +00:00 |
|
SWC Bot
|
e88ae37a0c
|
chore: Publish crates
|
2023-05-12 00:47:49 +00:00 |
|
SWC Bot
|
7655aaa42a
|
chore: Publish crates
|
2023-05-11 14:02:24 +00:00 |
|
Donny/강동윤
|
166e77c2b3
|
chore(es): Enable tracing spans for release builds (#7379)
|
2023-05-11 13:59:53 +00:00 |
|
SWC Bot
|
65785bdf21
|
chore: Publish crates
|
2023-05-10 04:19:21 +00:00 |
|
Donny/강동윤
|
041b491466
|
feat(es/parser): Implement explicit resource management (#7322)
**Description:**
- Add `UsingDecl`.
- Add `UsingDecl` to `Decl`.
- Rename `VarDeclOrPat` to `ForHead`.
- Add `UsingDecl` to `ForHead`.
- Implement parser for using declarations.
**Related issue:**
- #7316.
|
2023-05-10 04:16:44 +00:00 |
|
SWC Bot
|
e1c9182e1c
|
chore: Publish crates
|
2023-05-09 05:47:00 +00:00 |
|
SWC Bot
|
7fc9b00443
|
chore: Publish crates
|
2023-05-08 03:40:27 +00:00 |
|
SWC Bot
|
aef5ac4812
|
chore: Publish crates
|
2023-05-06 03:56:38 +00:00 |
|
SWC Bot
|
e9f3371c5f
|
chore: Publish crates
|
2023-05-02 02:13:33 +00:00 |
|
Donny/강동윤
|
e0de83e862
|
fix(es/compat): Fix is_setter in parameters pass (#7348)
**Description:**
x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1682667306929829
|
2023-05-02 02:11:42 +00:00 |
|
SWC Bot
|
767284e27f
|
chore: Publish crates
|
2023-04-29 13:28:01 +00:00 |
|
SWC Bot
|
e7911ee594
|
chore: Publish crates
|
2023-04-26 01:25:19 +00:00 |
|
SWC Bot
|
923ed13b6a
|
chore: Publish crates
|
2023-04-24 09:25:42 +00:00 |
|
SWC Bot
|
51f3840609
|
chore: Publish crates
|
2023-04-24 05:25:39 +00:00 |
|
Fy
|
66b5b110bf
|
fix(es/compat): Transform curried function call with optional chaining (#7313)
**Related issue:**
- Closes #7312
|
2023-04-24 05:23:53 +00:00 |
|
SWC Bot
|
5400648de8
|
chore: Publish crates
|
2023-04-24 04:17:24 +00:00 |
|
SWC Bot
|
f2a38e808a
|
chore: Publish crates
|
2023-04-21 06:13:37 +00:00 |
|
magic-akari
|
38dfb91ebc
|
fix(es/helpers): Remove unnecessary parameters in helper_expr! macro (#7296)
**Description:**
We have moved to snake_case, so the last parameter of helper_expr is unnecessary.
|
2023-04-20 08:26:34 +00:00 |
|
Donny/강동윤
|
38495a9835
|
test(es/compat): Add a test for a wrong issue (#7300)
**Related issue:**
- Closes #7290.
|
2023-04-20 11:10:25 +09:00 |
|
SWC Bot
|
7fd1e93434
|
chore: Publish crates
|
2023-04-19 21:54:39 +00:00 |
|
SWC Bot
|
0e4d764f90
|
chore: Publish crates
|
2023-04-19 11:27:00 +00:00 |
|
SWC Bot
|
9e752bd1aa
|
chore: Publish crates
|
2023-04-15 04:21:44 +00:00 |
|
SWC Bot
|
42c4b07f34
|
chore: Publish crates
|
2023-04-15 03:29:04 +00:00 |
|
SWC Bot
|
db9320c051
|
chore: Publish crates
|
2023-04-15 02:19:38 +00:00 |
|
SWC Bot
|
e6cffb7581
|
chore: Publish crates
|
2023-04-13 08:41:47 +00:00 |
|
SWC Bot
|
8fc527343b
|
chore: Publish crates
|
2023-04-13 05:52:04 +00:00 |
|
SWC Bot
|
8e5cb60183
|
chore: Publish crates
|
2023-04-12 12:33:03 +00:00 |
|
SWC Bot
|
d4782ee526
|
chore: Publish crates
|
2023-04-12 11:46:53 +00:00 |
|
magic-akari
|
2e947e7aeb
|
fix(es/compat): Handle export function in reserved_word (#7251)
|
2023-04-12 11:44:49 +00:00 |
|
SWC Bot
|
f31f67c7fb
|
chore: Publish crates
|
2023-04-11 07:05:27 +00:00 |
|
SWC Bot
|
80e125a386
|
chore: Publish crates
|
2023-04-11 02:13:17 +00:00 |
|
SWC Bot
|
2a662350e6
|
chore: Publish crates
|
2023-04-10 10:47:52 +00:00 |
|
SWC Bot
|
ab9e793fa8
|
chore: Publish crates
|
2023-04-10 08:48:13 +00:00 |
|
SWC Bot
|
2204b7809b
|
chore: Publish crates
|
2023-04-10 03:42:39 +00:00 |
|
SWC Bot
|
bb80c659b3
|
chore: Publish crates
|
2023-04-07 01:46:34 +00:00 |
|
SWC Bot
|
4b9cfbb4dd
|
chore: Publish crates
|
2023-04-06 13:48:37 +00:00 |
|
Donny/강동윤
|
f5c62fbbf8
|
fix(es/compat): Fix finally handling of generator (#7215)
**Description:**
Update generator implementation to match
e83d61398e/src/compiler/transformers/generators.ts
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5913.
|
2023-04-06 09:37:21 +00:00 |
|
SWC Bot
|
c6b28f91cc
|
chore: Publish crates
|
2023-04-05 05:17:51 +00:00 |
|
SWC Bot
|
c8fca9a054
|
chore: Publish crates
|
2023-04-04 03:07:51 +00:00 |
|
SWC Bot
|
ae2362e97b
|
chore: Publish crates
|
2023-04-03 08:15:39 +00:00 |
|
SWC Bot
|
a679dbe9aa
|
chore: Publish crates
|
2023-04-02 22:16:24 +00:00 |
|
SWC Bot
|
b94fbed4c9
|
chore: Publish crates
|
2023-03-31 06:17:53 +00:00 |
|
magic-akari
|
3ca954b9f9
|
fix(es/helpers): Use snake_case for helpers (#7147)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7144.
- Closes https://github.com/swc-project/swc/issues/7118.
|
2023-03-31 15:15:21 +09:00 |
|
SWC Bot
|
7d69b79a9e
|
chore: Publish crates
|
2023-03-31 03:23:35 +00:00 |
|
magic-akari
|
0a80e0506b
|
fix(es/compat): Handle shorthand object prop while renaming (#7176)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7174.
|
2023-03-31 03:21:39 +00:00 |
|
SWC Bot
|
bf1e55d27b
|
chore: Publish crates
|
2023-03-30 08:48:31 +00:00 |
|
magic-akari
|
23fb8c5563
|
fix(es/compat): Fix the position for temp var injection (#7171)
|
2023-03-30 17:41:55 +09:00 |
|
SWC Bot
|
6a015550ba
|
chore: Publish crates
|
2023-03-30 08:40:29 +00:00 |
|
magic-akari
|
065d11cb9b
|
fix(es/compat): Handle import/export in reserved_word (#7165)
|
2023-03-30 17:38:35 +09:00 |
|
SWC Bot
|
b1fb6b655f
|
chore: Publish crates
|
2023-03-30 08:08:20 +00:00 |
|
Donny/강동윤
|
0259a7465f
|
build(cargo): Update rustc to nightly-2023-03-20 (#7170)
**Description:**
This PR also updates `rkyv` to `=0.7.40`.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6807.
|
2023-03-30 08:06:02 +00:00 |
|
SWC Bot
|
44062d6fa5
|
chore: Publish crates
|
2023-03-29 08:50:54 +00:00 |
|
Donny/강동윤
|
12546c853a
|
build(cargo): Revert rustc upgrade (#7162)
**Description:**
The `rkyv` bug is not fixed.
|
2023-03-29 17:48:45 +09:00 |
|
SWC Bot
|
d74103739a
|
chore: Publish crates
|
2023-03-29 06:26:30 +00:00 |
|
Donny/강동윤
|
e445502072
|
build(cargo): Update rustc to nightly-2023-03-28 (#7154)
**Description:**
This PR also updates `rkyv` to `=0.7.40`.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6807.
|
2023-03-29 06:24:19 +00:00 |
|
SWC Bot
|
47f15f9f28
|
chore: Publish crates
|
2023-03-27 06:04:11 +00:00 |
|