Commit Graph

8412 Commits

Author SHA1 Message Date
SWC Bot
942c95be2d chore: Bump crates 2024-02-26 08:21:15 +00:00
Artur
c0d01dff21
feat(es/lints): Add no-cond-assign rule (#8661) 2024-02-26 08:19:40 +00:00
SWC Bot
5ff50b7491 chore: Publish 1.4.3-nightly-20240226.1 2024-02-26 07:39:20 +00:00
SWC Bot
d32e3723f0 chore: Bump crates 2024-02-26 07:03:32 +00:00
Donny/강동윤
1bc4cb7c05
fix(es/modules): Do not call Path::parent() for FileName::Anon (#8662)
**Related issue:**

 - Closes #8660
2024-02-26 07:01:32 +00:00
SWC Bot
1603569a75 chore: Bump crates 2024-02-26 02:49:45 +00:00
xc2
e1791340cd
fix(es/codegen): Fix replacement when inline_script is on (#8659)
**Description:**


The replacements for `inline_script` might be with mistake


40682c8d1f/crates/swc_ecma_codegen/src/lib.rs (L649)

which in terser is:

![image](https://github.com/swc-project/swc/assets/18117084/e843e125-c001-44d1-9572-15bec355a34e)



0ef05847fa/lib/output.js (L414)


**Related issue:**

https://github.com/web-infra-dev/rspack/issues/5757
2024-02-26 02:48:06 +00:00
SWC Bot
3258bf4839 chore: Publish 1.4.3-nightly-20240225.1 2024-02-25 00:36:40 +00:00
SWC Bot
40682c8d1f chore: Bump crates 2024-02-23 07:08:33 +00:00
Donny/강동윤
60b234077e
fix(css/parser): Fix parsing of @import without ; or space (#8657) 2024-02-23 16:06:54 +09:00
SWC Bot
4154cfa8cb chore: Bump crates 2024-02-23 00:15:59 +00:00
David Sherret
66bf8e907d
fix(es/codegen): Emit computed getter and setter signatures (#8656)
**Description:**

Emits computed getter/setter signatures.
2024-02-23 00:14:29 +00:00
SWC Bot
4fa09ebda3 chore: Publish 1.4.3-nightly-20240222.2 2024-02-22 04:47:12 +00:00
SWC Bot
41820c0964 chore: Bump crates 2024-02-22 04:10:18 +00:00
Donny/강동윤
671c4a78dd
perf(visit): Use qualified paths for generated codes (#8655) 2024-02-22 13:08:36 +09:00
SWC Bot
7c5113b6a9 chore: Bump crates 2024-02-22 02:56:23 +00:00
Donny/강동윤
8defcb2819
perf(visit): Use quote::quote! instead of pmutil::q! (#8485)
**Description:**


**Related issue:**

 - Closes #7071.
2024-02-22 11:54:41 +09:00
SWC Bot
728187daa5 chore: Publish 1.4.3-nightly-20240222.1 2024-02-22 00:36:29 +00:00
SWC Bot
359ae7a16a chore: Bump crates 2024-02-21 10:22:20 +00:00
Donny/강동윤
7d62c762e6
feat(es/ast): Add alias to EsVersion (#8653)
**Related issue:**

 - Closes #8516
2024-02-21 10:20:02 +00:00
SWC Bot
c4230373e4 chore: Bump crates 2024-02-21 02:12:58 +00:00
magic-akari
3bf3a62505
doc(es/minifier): Update examples code (#8652)
**Related issue:**

- Closes #8651 

The core logic of SWC is correct, but there are incorrect code examples in our code repository.
2024-02-21 02:11:19 +00:00
SWC Bot
5cab610db1 chore: Bump crates 2024-02-20 01:27:25 +00:00
Donny/강동윤
ca23a3353c
fix(es/parser): Check for existence of modifiers while parsing accessor token (#8649)
**Related issue:**

 - Closes #8526
2024-02-20 01:25:42 +00:00
SWC Bot
463cd3bf4c chore: Bump crates 2024-02-20 00:55:31 +00:00
Donny/강동윤
6fe6810c49
fix(es/compat): Split declaration and init in block-scoping pass (#8648)
**Description:**

This does not support 

```js
class Foo extends Bar {
    constructor() {
        for (const i of [1]) {
            setTimeout(() => {
                console.log(this)
            });
        }
        super();
    }
}
```

but it does not seem to be used in a real-world code.

**Related issue:**

 - Closes #8300
 - Closes #8311
2024-02-20 09:53:53 +09:00
강동윤 (Donny)
f1a3bad429 chore: Update changelog 2024-02-19 13:24:23 +09:00
강동윤 (Donny)
f07f5c35db chore: Publish 1.4.2 with swc_core v0.90.10 2024-02-19 13:24:21 +09:00
SWC Bot
e761c3ddd2 chore: Publish 1.4.2-nightly-20240219.2 2024-02-19 04:22:44 +00:00
SWC Bot
129ace0272 chore: Bump crates 2024-02-19 04:10:46 +00:00
Donny/강동윤
97153206ad
fix(es/minifier): Abort property hoister on this usage (#8647)
**Related issue:**

 - Closes #8643
2024-02-19 13:09:15 +09:00
SWC Bot
d7434beaf8 chore: Bump crates 2024-02-19 03:15:59 +00:00
magic-akari
22c8e2e1e9
fix(es/typescript): Handle exported JSX members (#8642)
**Related issue:**

- Closes #8640
2024-02-19 03:14:20 +00:00
SWC Bot
90f7a29845 chore: Publish 1.4.2-nightly-20240219.1 2024-02-19 00:23:21 +00:00
SWC Bot
9ac304be9e chore: Publish 1.4.2-nightly-20240216.1 2024-02-16 00:28:25 +00:00
SWC Bot
84c05b5eec chore: Bump crates 2024-02-14 03:23:28 +00:00
phiresky
cd38ef39d6
fix(es/helpers): Add addInitializer to field decorators (#8619)
**Description:**

At some point the spec text of ES decorators was changed to also have
addInitializer for field decorators. This is already used e.g. in mobx.
This simple change removes the special case that was present for field
decorators and seems to fix the issue for me.

This change is backwards compatible since it only affects code that was
broken before.

**Related issue:**

 - Closes #8525
2024-02-14 03:21:58 +00:00
SWC Bot
cb95f0478c chore: Bump crates 2024-02-14 02:41:18 +00:00
Donny/강동윤
5f1cf01823
fix(es/react): Validate pragma before parsing (#8637)
**Related issue:**

 - Closes #7938
2024-02-14 02:39:40 +00:00
SWC Bot
09bedecff6 chore: Bump crates 2024-02-14 02:10:39 +00:00
Donny/강동윤
8cd4813067
feat(es/minifier): Remove unused parameters of arrow functions (#8636)
**Related issue:**

 - Closes #8626
2024-02-14 02:09:11 +00:00
SWC Bot
d170d7bc2c chore: Bump crates 2024-02-13 07:43:18 +00:00
Donny/강동윤
a0b77e0664
test(es/transforms): Add a test for reserved_words pass (#8638)
**Related issue:**

 - Closes #7691
2024-02-13 07:41:24 +00:00
SWC Bot
07bbfbd2a4 chore: Bump crates 2024-02-13 07:05:36 +00:00
Donny/강동윤
762959c72d
feat(swc_core): Expose ES linter (#8635) 2024-02-13 07:03:57 +00:00
SWC Bot
9b36e7fd23 chore: Bump crates 2024-02-13 06:34:59 +00:00
Donny/강동윤
2c63b31143
test(es/parser): Add a test for << (#8634)
**Related issue:**

 - Closes #7621.
2024-02-13 06:33:11 +00:00
강동윤 (Donny)
9b1a70bf3e chore: Improve publish script 2024-02-13 14:52:53 +09:00
강동윤 (Donny)
790d0d3719 chore: Update changelog 2024-02-13 14:51:59 +09:00
강동윤 (Donny)
83dfc26dac chore: Publish 1.4.1 with swc_core v0.90.8 2024-02-13 14:51:57 +09:00