Commit Graph

5661 Commits

Author SHA1 Message Date
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
SWC Bot
9a41fac89f chore: Publish crates 2023-12-02 23:25:06 +00:00
magic-akari
630f9d342f
fix(es/compat): Fix destructuring of export class/function (#8371)
**Related issue:**
 - Closes #8366
2023-12-02 23:23:06 +00:00
SWC Bot
c77f987b9b chore: Publish crates 2023-12-02 11:43:08 +00:00
Redfire
c2d1a6c9fe
chore(deps): Update base64 to v0.21 (#8369) 2023-12-02 11:40:56 +00:00
SWC Bot
98c47df37a chore: Publish crates 2023-12-01 20:08:13 +00:00
David Sherret
1e8edb4769
chore(atoms): Evaluate .into() in AtomStoreCell eagerly (#8363)
**Related issue:** 

 - Closes #8362
2023-12-02 05:06:12 +09:00
강동윤 (Donny)
d19de29937 chore: Publish crates 2023-11-30 14:16:00 +09:00
SWC Bot
0845693536 chore: Publish crates 2023-11-29 14:11:49 +00:00
bohan
2cdea3fbea
fix(es/codegen): Wrap quote for length greater than one (#8351) 2023-11-29 14:09:44 +00:00
SWC Bot
655e95a24d chore: Publish crates 2023-11-29 13:41:46 +00:00
magic-akari
ff719f0cdd
fix(es/fixer): Wrap yield expression in await expression (#8357)
**Related issue:**

 - Closes #8356
2023-11-29 13:39:46 +00:00
SWC Bot
1853280f4f chore: Publish crates 2023-11-29 02:43:33 +00:00
Donny/강동윤
55da0bb9dd
chore(css/linter): Document rules require porting (#8352) 2023-11-29 11:40:33 +09:00
SWC Bot
ddddd20559 chore: Publish crates 2023-11-27 01:56:46 +00:00
Donny/강동윤
1891afa2ad
fix(es/codegen): Fix panic due to \\ud (#8346)
**Related issue:**

 - Closes #8345
2023-11-27 01:54:45 +00:00
SWC Bot
e158c0e5a0 chore: Publish crates 2023-11-26 11:37:59 +00:00
Han Seung Min - 한승민
a423681df8
fix(es/parser): Fix conditional compilation (#8343)
**Description:**

`swc_ecma_parser` crate has a `typescript` feature which enables TS parsing, the `Syntax::Typescript` variant is behind the `typescript` feature, compiling without this feature fails as `Syntax::Typescript` is referenced at many places without `#[cfg(feature = "typescript")]`
2023-11-26 11:36:05 +00:00
SWC Bot
7e8b6c0f04 chore: Publish crates 2023-11-26 00:50:50 +00:00
Bin Xin
58568fa23b
fix(es/react): Make jsx with single spread child static (#8339)
**Description:**

Example:
```js
<h1>{...a}</h1>
```
Before:
```js
_jsx("h1", {
    children: [
        ...a
    ]
})
```
After:
```js
_jsxs("h1", {
    children: [
        ...a
    ]
})
```

Following the implementation in [Typescript](d4fbc9b57d/src/compiler/transformers/jsx.ts (L340)), jsx with a single spread child should also be considered as static jsx.

Live examples:
[Typescript](https://www.typescriptlang.org/play?target=99&jsx=4#code/MYewdgzgLgBAhjAvDAPACwIwD4DeA6AgbQwCYBmAXQF8UB6TLAKCA)
[Esbuild](https://esbuild.github.io/try/#dAAwLjE5LjcAewogIGxvYWRlcjogJ2pzeCcsCiAganN4OiAnYXV0b21hdGljJywKfQA8ZGl2PnsuLi5bXX08L2Rpdj4)
[SWC](https://play.swc.rs/?version=1.3.100-nightly-20231124.1&code=H4sIAAAAAAAAA0vOzysuUUhUsFWwSckss6vW09OLjq210QdxAHOBudocAAAA&config=H4sIAAAAAAAAA1WOMQrDMAxF95zCaO5QPPY2wijFIbaDJENL8N0rO2lJN%2F33kPT3yTlYJMDD7TZa2JCF%2BJeNyDsrvowAhYQSOG4Kt69dpCvlSoO0Q8BaipCJGVehkyljlrlwul5nwqAX0FHNGlPfBqxaEmoMcOr290WRn6Sjmvi796NWm9oHTYlQ69cAAAA%3D)
2023-11-26 00:48:51 +00:00
SWC Bot
ae6c30b221 chore: Publish crates 2023-11-25 02:45:12 +00:00
Austaras
ed5a9b3f2e
fix(es/minifier): Give up terminate merge if in try with finally (#8342)
**Related issue:**

 - Closes #8337.
 - Closes #8324.
 - Reverts #8328.
2023-11-25 02:43:18 +00:00
SWC Bot
727ce04f89 chore: Publish crates 2023-11-23 11:22:29 +00:00