Commit Graph

8143 Commits

Author SHA1 Message Date
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
SWC Bot
a611932dd5 chore: Publish crates 2023-12-23 06:46:40 +00:00
Austaras
e68720a76c
fix(es): Apply paren_remover for minify (#8442)
**Related issue:**

 - Closes #8437
2023-12-23 06:45:21 +00:00
SWC Bot
4564a01927 chore: Publish crates 2023-12-23 03:41:17 +00:00
Donny/강동윤
d89b60a000
fix(css/parser): Fix parsing of hsla(var(--foo), 1) (#8443)
**Description:**

```css
.test {
    border-color: hsla(var(--ds-gray-200-value), 1);
}
```

should be compiled as

```css

.test {
    border-color: hsla(var(--ds-gray-200-value), 1);
}
```

Previously, it was

```
.test {
    border-color: hsla(var(--ds-gray-200-value),);
}

```


**Related issue:**

 - https://linear.app/vercel/issue/PACK-2175
2023-12-23 12:39:54 +09:00
SWC Bot
eea8ba3fe1 chore: Publish 1.3.102-nightly-20231223.1 2023-12-23 00:08:09 +00:00
SWC Bot
611d7175d4 chore: Publish crates 2023-12-22 03:27:18 +00:00
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
a9f25b2fb6 chore: Publish 1.3.102-nightly-20231222.1 2023-12-22 00:08:27 +00: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
SWC Bot
dc26f0f95c chore: Publish crates 2023-12-21 04:42:55 +00:00
Donny/강동윤
2ef9ed663a
chore(ci): Fix license check (#8441) 2023-12-21 13:40:52 +09:00
SWC Bot
de281705ef chore: Publish 1.3.102-nightly-20231221.1 2023-12-21 00:08:13 +00:00
SWC Bot
ffd2789fda chore: Publish 1.3.102-nightly-20231220.1 2023-12-20 00:07:08 +00:00
SWC Bot
d883c13d3d chore: Publish 1.3.102-nightly-20231219.1 2023-12-19 00:08:54 +00:00
강동윤 (Donny)
4983b1cef2 chore: Publish crates 2023-12-18 13:45:35 +09:00
Donny/강동윤
2037f0da9b
chore: Publish v1.3.101 with swc_core v0.87.2 (#8432) 2023-12-18 13:44:14 +09:00
SWC Bot
3550d0be26 chore: Publish 1.3.101-nightly-20231218.1 2023-12-18 00:08:17 +00: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
LongYinan
8d47b9ab40
chore(ci): Fix prepublish script by upgrading NAPI-RS cli (#8430) 2023-12-17 11:20:59 +09:00
SWC Bot
38b417b190 chore: Publish 1.3.101-nightly-20231217.1 2023-12-17 00:08:51 +00:00
SWC Bot
80e2c238c0 chore: Publish 1.3.101-nightly-20231216.1 2023-12-16 00:07:52 +00:00
SWC Bot
09c19dfa63 chore: Publish 1.3.101-nightly-20231215.1 2023-12-15 00:08:05 +00:00
SWC Bot
53b111865a chore: Publish 1.3.101-nightly-20231214.1 2023-12-14 00:07:36 +00:00