magic-akari
740e6f390a
fix(es/parser): Correctly parse the keyword ( #8483 )
...
**Related issue:**
- Closes #8482 .
2024-01-04 12:26:25 +00:00
SWC Bot
4e860c988d
chore: Publish crates
2024-01-04 04:49:50 +00:00
David Sherret
e0bdc0f7c2
fix(es/codegen): Emit ?
for an optional computed property ( #8481 )
...
**Description:**
Emits optional `?` for a computed property.
2024-01-04 04:48:07 +00:00
SWC Bot
8997ed1547
chore: Publish crates
2024-01-04 04:25:54 +00:00
Austaras
82bd8070cb
fix(es/resolver): Resolve top-level undefined
, NaN
, and Infinity
correctly ( #8471 )
...
**Description:**
For following code
```js
var NaN = 1
console.log(NaN)
```
Result would be
|Envirnoment|Result|
|-|-|
|Non strict script(browser, nodejs repl)|NaN|
|Non strict script(nodejs script)|1|
|Strict script(browser, nodejs repl)|runtime error|
|Strict script(nodejs script)|1|
|ESM|1|
So SWC choose to behave like browser in script mode and confirm to esm
standard.
**Related issue:**
- Closes #8465
2024-01-04 04:24:14 +00:00
SWC Bot
ce76159e98
chore: Publish 1.3.103-nightly-20240104.1
2024-01-04 00:09:19 +00:00
SWC Bot
f00ff72b95
chore: Publish crates
2024-01-03 20:42:53 +00:00
Donny/강동윤
85be8a4de1
refactor(css/parser): Remove value normalization ( #8434 )
...
**Related issue :**
- https://linear.app/vercel/issue/PACK-2154
2024-01-03 20:40:51 +00:00
SWC Bot
68b9646681
chore: Publish crates
2024-01-03 20:18:10 +00:00
Donny/강동윤
b70e96ffe9
fix(es/module): Fix resolving of .js
files ( #8480 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/56144
2024-01-03 20:15:53 +00:00
강동윤 (Donny)
c9e8376d3b
chore: Make kodiak
auto-approve PRs by @kdy1
2024-01-04 04:46:43 +09:00
SWC Bot
229619779b
chore: Publish crates
2024-01-03 07:39:06 +00:00
Marsel Shayhin
566063dca5
feat(html/parser): Allow self-closing />
on non-void HTML elements via a flag ( #8460 )
2024-01-03 07:37:37 +00:00
SWC Bot
f2ede40e38
chore: Publish crates
2024-01-03 06:58:23 +00:00
David Sherret
d98a28290b
fix(es/codegen): Emit implements clause with commas ( #8477 )
2024-01-03 06:56:46 +00:00
SWC Bot
cddb0165bb
chore: Publish crates
2024-01-03 05:41:28 +00:00
David Sherret
2076ef8f35
fix(es/codegen): Emit declare keyword for class properties ( #8478 )
2024-01-03 14:40:01 +09:00
강동윤 (Donny)
faf8cdec19
chore: Configure kodiak
2024-01-03 14:09:58 +09:00
SWC Bot
a4e91af934
chore: Publish crates
2024-01-03 04:45:13 +00:00
David Sherret
a12eaae0e5
fix(es/codegen): Emit abstract keyword ( #8479 )
2024-01-03 04:43:45 +00:00
SWC Bot
fed943fdb4
chore: Publish 1.3.103-nightly-20240103.1
2024-01-03 00:09:07 +00:00
강동윤 (Donny)
f9bbd11911
chore: Publish crates
2024-01-02 15:44:51 +09:00
SWC Bot
8883fd4ffb
chore: Publish crates
2024-01-02 06:01:48 +00:00
Austaras
b676e75cdd
test(es/minifier): Enable script mode for terser_exec
and mangle
( #8474 )
2024-01-02 06:00:26 +00:00
SWC Bot
0ba043bd5f
chore: Publish crates
2024-01-02 04:35:05 +00:00
Austaras
1120336f23
test(es/minifier): Enable non esm mode for tests ( #8472 )
2024-01-02 04:33:39 +00:00
SWC Bot
327bba294b
chore: Publish crates
2024-01-02 02:38:22 +00:00
Andrew Leung
79438e6dc2
fix(binding/types): Add type for decoratorVersion
( #8468 )
...
**Description:**
Add type hint `"2021-12" | "2023-03` for `jsc.transform.decoratorVersion`.
**Related issue:**
- Closes #8467
2024-01-02 02:37:00 +00:00
SWC Bot
98920ca78d
chore: Publish crates
2024-01-02 02:10:29 +00:00
Austaras
4416077f4a
fix(es/compat): Set inserted var inside export class in destructing ( #8470 )
2024-01-02 02:09:13 +00:00
SWC Bot
ae659616e6
chore: Publish 1.3.103-nightly-20240102.1
2024-01-02 00:08:54 +00:00
SWC Bot
e49f538360
chore: Publish 1.3.103-nightly-20240101.1
2024-01-01 00:09:37 +00:00
강동윤 (Donny)
7d4061bef4
chore: Publish crates
2023-12-31 20:57:43 +09:00
Donny/강동윤
cc328ea016
chore: Publish v1.3.102
with swc_core
v0.87.10
( #8464 )
2023-12-31 20:56:34 +09:00
SWC Bot
66fe8138f2
chore: Publish 1.3.102-nightly-20231231.1
2023-12-31 00:09:43 +00:00
SWC Bot
2e0f305fa4
chore: Publish 1.3.102-nightly-20231230.1
2023-12-30 00:08:58 +00:00
SWC Bot
e3f25c2011
chore: Publish crates
2023-12-29 12:26:47 +00:00
Luke Page
d681785b42
fix(es/minifier): Add WeakRef as a safe global reference ( #8458 )
...
**Description:**
I was trying to remove references to Weak Ref from minified code and
despite the expression not being used, it was still included.
E.g.
```
var x = WeakRef;
```
with
```
{
"minify": true,
"jsc": {
"minify": {
"compress": {
"pure_getters": true,
"unused": true
},
"mangle": true
}
}
}
```
outputs
```
WeakRef;
```
but when I use something on this list e.g. parseFloat, it gets cleaned
up and outputs empty string.
btw - I tried different options for pure_getters that I assumed would
allow me to say WeakRef as a getter was pure, but it had no effect.
WeakRef getter is as safe to remove as the other items on this list and
has no effect in accessing it.
2023-12-29 12:25:23 +00:00
SWC Bot
4229e7b99b
chore: Publish crates
2023-12-29 08:49:51 +00:00
Ian Tan
0b188ccdff
fix(es/parser): Disallowing await as an identifier in class static block ( #8450 )
2023-12-29 08:48:24 +00:00
SWC Bot
b76dd4635d
chore: Publish 1.3.102-nightly-20231229.1
2023-12-29 00:08:14 +00:00
SWC Bot
3492e6f13e
chore: Publish crates
2023-12-28 23:58:04 +00:00
Austaras
1e44e57a09
fix(es/renamer): Correctly check top level ( #8456 )
...
**Related issue:**
- Closes #8451 .
- Closes #8185 .
2023-12-28 23:56:38 +00:00
SWC Bot
c39e75c61d
chore: Publish 1.3.102-nightly-20231228.1
2023-12-28 00:08:40 +00:00
SWC Bot
df5ad064c7
chore: Publish 1.3.102-nightly-20231227.1
2023-12-27 00:08:21 +00:00
SWC Bot
986eb7886e
chore: Publish 1.3.102-nightly-20231226.1
2023-12-26 00:08:38 +00:00
SWC Bot
cf9e865f3c
chore: Publish 1.3.102-nightly-20231225.1
2023-12-25 00:09:10 +00:00
SWC Bot
d6dd1f9240
chore: Publish crates
2023-12-24 01:32:20 +00:00
David Sherret
0dd96f85e2
fix(es/codegen): Emit override
keyword ( #8449 )
...
**Description:**
Emits the `override` keyword.
2023-12-24 10:30:46 +09:00
SWC Bot
5dfd0dc75e
chore: Publish 1.3.102-nightly-20231224.1
2023-12-24 00:08:55 +00:00