Commit Graph

5683 Commits

Author SHA1 Message Date
David Sherret
65dec905c0
fix(es/codegen): Fix codegen of type-only export declarations (#8447)
**Description:**

This fixes the emit for `export type { } from "..."` and `export { type A } from "..."`.
2023-12-22 12:25:52 +09:00
SWC Bot
37bb0e3bde chore: Publish crates 2023-12-21 09:19:08 +00:00
Austaras
a06d5b2341
fix(es/compat): Use correct span.lo in class transforms (#8439)
**Related issue:**

 - Closes #8435
2023-12-21 18:17:43 +09:00
강동윤 (Donny)
4983b1cef2 chore: Publish crates 2023-12-18 13:45:35 +09:00
SWC Bot
d6cd2146fa chore: Publish crates 2023-12-17 08:43:12 +00:00
Austaras
56992e3dcc
fix(es/compat): Preserve comment for arrow body (#8427)
**Related issue:**

 - Closes #8419
2023-12-17 08:41:51 +00:00
SWC Bot
45f62f7886 chore: Publish crates 2023-12-17 06:48:43 +00:00
David Sherret
7566ddf0b7
fix(es/codegen): Fix codegen of ts specific syntax in class props (#8426)
**Description:**

This fixes the codegen of private properties with `is_optional` or `definite` and class properties with `definite`.
2023-12-17 06:47:20 +00:00
SWC Bot
4bd15908c1 chore: Publish crates 2023-12-17 02:22:24 +00:00
SWC Bot
e21c0eaf5a chore: Publish crates 2023-12-13 10:43:38 +00:00
SWC Bot
dd9ed9c565 chore: Publish crates 2023-12-12 06:14:41 +00:00
Donny/강동윤
61c304fa9e
refactor(es/utils): Use exact type for factory methods (#8417)
**Description:**

This PR is extracted from #8333 because it's too large. 


**Breaking Changes**:

  - `ExprFactory::make_member()` now returns `MemberExpr` instead of `Box<Expr>`.
  - `member_expr!()` now returns `MemberExpr` instead of `Box<Expr>`.
2023-12-12 15:13:10 +09:00
SWC Bot
f736c3c2df chore: Publish crates 2023-12-12 05:55:01 +00:00
Austaras
dce369336d
fix(es/codegen): Emit extra paren emitting AssignExpr (#8413)
**Related issue:**

 - Closes #8412
2023-12-12 05:53:32 +00:00
SWC Bot
f202a2839f chore: Publish crates 2023-12-12 04:39:47 +00:00
Donny/강동윤
daf6265af4
feat(es/ast): Add as_import_with to ObjectLit to provide easier API (#8405) 2023-12-12 13:38:21 +09:00
SWC Bot
eb41cfcaf9 chore: Publish crates 2023-12-11 04:46:28 +00:00
SWC Bot
602584dd62 chore: Publish crates 2023-12-11 03:07:28 +00:00
magic-akari
a69f172aac
fix(es/fixer): Preserve parenthesis for optional chaining (#8399)
**Related issue:**
 - Closes #8398
2023-12-11 03:05:58 +00:00
SWC Bot
2aebd5fa2f chore: Publish crates 2023-12-08 14:01:33 +00:00
layton
f8ce31627b
fix(es/resolver): Handle TsInterfaceDecl and UsingDecl correctly (#8403)
**Related issue**:
 - Closes #7967
2023-12-08 14:00:00 +00:00
SWC Bot
595f13c019 chore: Publish crates 2023-12-08 07:18:16 +00:00
Donny/강동윤
835151e04d
build(macros): Drop pmutil to improve compile time (#8404)
**Description:**

`pmutil` born to die. Now almost all useful features are merged into `syn` and `quote`, so it's now just a compile-time bloat. (Although I didn't send PRs to them, sorry)
2023-12-08 16:15:44 +09:00
SWC Bot
dbeb869463 chore: Publish crates 2023-12-08 06:00:21 +00:00
magic-akari
29bec98647
fix(es/compat): Preserve spread in the generator pass (#8401)
**Related issue:**
 - Closes #8397
2023-12-08 05:58:53 +00:00
SWC Bot
0bde652b5c chore: Publish crates 2023-12-08 01:58:57 +00:00
Donny/강동윤
6a73d47aa1
perf(common): Fix OOM of inputSourceMap (#8402)
**Description:**

The previous code was very strange, and it could easily cause OOM.
2023-12-08 10:57:27 +09:00
SWC Bot
35fb6528f5 chore: Publish crates 2023-12-07 20:20:49 +00:00
magic-akari
19d1d013b2
refactor(css/lints): Support stable rust (#8384)
**Related issue:**
 - #8316
2023-12-08 05:19:22 +09:00
SWC Bot
11681e1892 chore: Publish crates 2023-12-07 19:45:03 +00:00
magic-akari
f93f2b8334
refactor(css/prefixer): Support stable rust (#8385)
**Related issue:**
 - #8316
2023-12-07 17:37:26 +00:00
SWC Bot
b9f3a0805d chore: Publish crates 2023-12-07 16:58:50 +00:00
magic-akari
bc1e32829d
refactor(css/compat): Support stable rust (#8386)
**Related issue:**
 - #8316
2023-12-07 16:57:26 +00:00
SWC Bot
6ef6cf6f35 chore: Publish crates 2023-12-07 16:22:39 +00:00
Ronak Jain
e09f4b6c60
Use sha2 in place of sha-1 (#8383)
**Descrption:**

`sha-1` crate has been deprecated and the algorithm itself is not considered secure or collision-proof. Moving to `sha2` solves this.

**Related issue:**

 - Closes #8382
2023-12-07 16:21:01 +00:00
SWC Bot
78d36e61f9 chore: Publish crates 2023-12-07 00:38:09 +00:00
magic-akari
305e72e672
refactor(css/minifier): Support stable rust (#8389)
**Related issue:**
 - #8316
2023-12-07 00:36:41 +00:00
SWC Bot
a6355c11a8 chore: Publish crates 2023-12-04 20:55:43 +00:00
magic-akari
7cddbc618a
refactor(css/codegen): Support stable rust (#8379)
**Related issue:**
- #8316
2023-12-04 20:54:14 +00:00
SWC Bot
7bf3aaa316 chore: Publish crates 2023-12-04 20:16:21 +00:00
magic-akari
77145ce47a
refactor(html/minifier): Support stable rust (#8380)
**Related issue:**
- #8316
2023-12-04 20:14:44 +00:00
SWC Bot
9b7a22c126 chore: Publish crates 2023-12-04 19:34:28 +00:00
magic-akari
0ff4157375
refactor(css/modules): Support stable rust (#8381)
**Related issue:**
- #8316
2023-12-04 19:32:54 +00:00
SWC Bot
c5ac93a9df chore: Publish crates 2023-12-04 18:52:58 +00:00
magic-akari
4870e8b47e
refactor(css/parser): Support stable rust (#8378)
**Related issue:**
- #8316
2023-12-04 18:51:26 +00:00
SWC Bot
7327f257d2 chore: Publish crates 2023-12-04 09:00:34 +00:00
SWC Bot
c6e64148b0 chore: Publish crates 2023-12-03 01:14:41 +00:00
Redfire
91e0fc7250
chore(deps): Update indexmap to v2 (#8370)
**Description:**

Updates `indexmap` to `v2`, reducing dependency duplication. Unfortunately there are still many dependencies that require `v1`, including `rkyv` and `cranelift-egraph` that have no published versions using indexmap `v2`.
2023-12-03 01:12:30 +00:00
SWC Bot
c73abc8319 chore: Publish crates 2023-12-03 00:44:55 +00:00
magic-akari
83c8fe56f0
fix(es/lints): Ignore ambient context binding (#8368)
**Related issue:**
- Closes #8367
2023-12-03 00:43:00 +00:00