Commit Graph

8438 Commits

Author SHA1 Message Date
SWC Bot
9c6195f1bf chore: Publish 1.4.4-nightly-20240305.1 2024-03-05 04:24:49 +00:00
강동윤 (Donny)
05a4227b86 chore: Update changelog 2024-03-05 11:48:25 +09:00
강동윤 (Donny)
2ae4f1ca75 chore: Publish 1.4.3 with swc_core v0.90.16 2024-03-05 11:48:23 +09:00
SWC Bot
e23ba917af chore: Bump crates 2024-03-04 11:27:25 +00:00
Levi
7e05adf0fa
feat(es/minifier): Allow expr_simplifier to do arithmetic with string literals (#8683)
**Description:**
This PR implements the feature described for the issue in #8682.


**Related issue:**

 - Closes #8682.
2024-03-04 11:25:54 +00:00
SWC Bot
eac6620b04 chore: Bump crates 2024-03-04 11:02:44 +00:00
magic-akari
570483ae48
fix(es/decorators): Handle default exported class (#8691)
**Related issue:**

- Closes #8681
2024-03-04 11:01:04 +00:00
SWC Bot
98aa9824d5 chore: Bump crates 2024-03-04 10:08:47 +00:00
Donny/강동윤
b47438245a
perf(visit): Drop pmutil to improve compile time (#8673) 2024-03-04 10:07:02 +00:00
SWC Bot
bf2535070d chore: Bump crates 2024-03-04 09:37:55 +00:00
Donny/강동윤
761365eb56
fix(es/module): Allow FileName::Anon from node resolver (#8686)
**Related issue:**
 
 - Closes #8674
2024-03-04 09:36:17 +00:00
SWC Bot
7a5c7df195 chore: Bump crates 2024-03-04 07:48:09 +00:00
magic-akari
baba663464
fix(es/typescript): Handle accessibility in private method (#8689)
**Related issue:**

- Closes #8687
2024-03-04 07:46:31 +00:00
SWC Bot
5ae0a2f858 chore: Bump crates 2024-03-04 01:49:57 +00:00
Donny/강동윤
08ed0fb666
fix(es/modules): Fix resolution of jsc.paths with exact match (#8685)
**Related issue:**

 - Closes #8668
2024-03-04 01:48:18 +00:00
SWC Bot
147e7d0e68 chore: Publish 1.4.3-nightly-20240304.1 2024-03-04 00:37:36 +00:00
SWC Bot
ca0312504e chore: Bump crates 2024-03-02 10:50:01 +00:00
David Sherret
64c9b8f4f1
fix(es/codegen): Emit namespace keyword of TsModuleDecl if possible (#8676)
**Description:** 

Emits the namespace keyword for TsModuleDecls when able.

Been meaning to open a PR for this one for a while, but the module
keyword may be deprecated in the future in TS in non-ambient modules, so
it's better to do this.
2024-03-02 10:48:30 +00:00
SWC Bot
5dc40d347b chore: Bump crates 2024-03-02 10:24:52 +00:00
David Sherret
a7a00aafb9
fix(es/visit): Skip TsExprWithTypeArgs from noop_visit/fold_type macros (#8677)
**Description:**

See https://github.com/swc-project/swc/discussions/8669

**BREAKING CHANGE:**

`TsExprWithTypeArgs` is now skipped in these macros. This fix might be a
breaking change for anyone who was relying on the previous behaviour
even though this is more correct now.
2024-03-02 10:23:14 +00:00
SWC Bot
8938fb0ecf chore: Publish 1.4.3-nightly-20240301.1 2024-03-01 00:27:14 +00:00
SWC Bot
1537c480ba chore: Bump crates 2024-02-28 07:16:45 +00:00
Artur
15eef4dc73
feat(es/lints): Add no-new-object rule (#8663) 2024-02-28 07:15:17 +00:00
SWC Bot
aaf0c5c239 chore: Publish 1.4.3-nightly-20240228.1 2024-02-28 00:24:05 +00:00
SWC Bot
d8186fb94e chore: Bump crates 2024-02-27 03:54:36 +00:00
Changwoo Yoo
f5651e87b1
doc(contributing): Remove enum_kind from ARCHITECTURE.md (#8666) 2024-02-27 03:53:03 +00:00
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