SWC Bot
|
735a82d6a4
|
chore: Publish crates
|
2023-07-05 03:52:51 +00:00 |
|
Donny/강동윤
|
b34f1adbcc
|
build(cargo): Update rustc to 2023-07-03 (#7623)
|
2023-07-05 03:50:43 +00:00 |
|
SWC Bot
|
7544ea960b
|
chore: Publish crates
|
2023-07-04 07:01:59 +00:00 |
|
Donny/강동윤
|
c087c82aa3
|
fix(es/compat): Visit transformed expression in optional chaining pass (#7614)
**Related issue:**
- Closes #7612.
|
2023-07-04 06:59:58 +00:00 |
|
SWC Bot
|
cf902d3808
|
chore: Publish crates
|
2023-07-03 01:54:53 +00:00 |
|
David Sherret
|
0a26066b7b
|
refactor(es/compat): Remove usage of box_patterns (#7613)
|
2023-07-03 01:52:51 +00:00 |
|
SWC Bot
|
cba986807a
|
chore: Publish crates
|
2023-06-30 07:43:11 +00:00 |
|
SWC Bot
|
efc1afd96a
|
chore: Publish crates
|
2023-06-29 14:15:31 +00:00 |
|
SWC Bot
|
be33efaecd
|
chore: Publish crates
|
2023-06-29 07:52:19 +00:00 |
|
SWC Bot
|
b4ae28b053
|
chore: Publish crates
|
2023-06-26 04:02:12 +00:00 |
|
SWC Bot
|
4efefb0f4e
|
chore: Publish crates
|
2023-06-23 02:28:10 +00:00 |
|
SWC Bot
|
8c1436aaf5
|
chore: Publish crates
|
2023-06-22 13:40:52 +00:00 |
|
Donny/강동윤
|
d57d0d3ad3
|
build(cargo): Update deps (#7566)
|
2023-06-22 13:37:35 +00:00 |
|
SWC Bot
|
33355cf707
|
chore: Publish crates
|
2023-06-22 07:43:38 +00:00 |
|
Donny/강동윤
|
d12dc70c91
|
build(cargo): Update deps (#7564)
|
2023-06-22 07:40:41 +00:00 |
|
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%2BvD8wRsmHUGDllibGsYsYnN2FJrHWoCKfScudUbsv2LDARewEgI4CM24uezqj7b4oj4aauOpf5EdoT4pHVFxSmNDqS1tjNhvDbVQXKNuAraaA6iysC5DYWI8izs4uwIMOC%2F6cpL%2Bc%2FnanHwwkDVpaDJM5rdBn67y6WHv5eNCVfGpCzibDJ%2FQyw%2Fv1qtqAT0lqHWiQhfjVSumi4m2I3QYUy65RmNl0kdtS8OlvPWxfhTw0lnd45pv%2FstbTLOKuGeyzKYQULwIT08l%2B5BaJVf8PfP2zz7YCAAA%3D)
-
[`a.b.c?.()`](https://play.swc.rs/?version=1.3.64&code=H4sIAAAAAAAAAyWLsQ3AIAwEe6b4Ehq7J0IMkQEQ2ESJZJGK%2FYNCdVfcMeO832mK1qNjhi%2B1tCJI2xYrtUASkBLGNEPGHNqvZ3RFxM5Jqtk%2FhMOtgSSTX%2FoBjF6UKV8AAAA%3D&config=H4sIAAAAAAAAA2VSu27DMAzc8xUC5wAZii7ZWnRJgXTKDxAKkyrQwyDpNEbgf69kxI4jexAk3olH3fm%2BMgYoXsFszT3vywchHQm2pa7cwXos28T0LRl4m0qnxJY%2BvD8wRsmHUGDllibGsYsYnN2FJrHWoCKfScudUbsv2LDARewEgI4CM24uezqj7b4oj4aauOpf5EdoT4pHVFxSmNDqS1tjNhvDbVQXKNuAraaA6iysC5DYWI8izs4uwIMOC%2F6cpL%2Bc%2FnanHwwkDVpaDJM5rdBn67y6WHv5eNCVfGpCzibDJ%2FQyw%2Fv1qtqAT0lqHWiQhfjVSumi4m2I3QYUy65RmNl0kdtS8OlvPWxfhTw0lnd45pv%2FstbTLOKuGeyzKYQULwIT08l%2B5BaJVf8PfP2zz7YCAAA%3D)
-
[`a?.b[c?.d]`](https://play.swc.rs/?version=1.3.64&code=H4sIAAAAAAAAA9PXVwjOyC%2FNSVFISrXi0tdX0IhPVLBVSNRUsLVVyCvNyVGwVyjLz0xRMFCwUohP1EuK1ohPBipIxq4gWS8l1por0R6oLtkezAYAJs%2FWxmEAAAA%3D&config=H4sIAAAAAAAAA2VSu27DMAzc8xUC5wAZii7ZWnRJgXTKDxAKkyrQwyDpNEbgf69kxI4jexAk3olH3fm%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 |
|