Commit Graph

8525 Commits

Author SHA1 Message Date
강동윤 (Donny)
9ef3397252 chore: Publish 1.4.10 with swc_core v0.90.26 2024-03-26 14:44:42 +09:00
강동윤 (Donny)
c4b905225d chore: Fix publish script 2024-03-26 14:44:30 +09:00
강동윤 (Donny)
7b6ba82e3d chore: Update changelog 2024-03-26 14:41:56 +09:00
강동윤 (Donny)
34c0b5c838 chore: Publish 1.4.9 with swc_core v0.90.26 2024-03-26 14:41:54 +09:00
SWC Bot
0aafd62ccd chore: Bump crates 2024-03-26 04:22:17 +00:00
magic-akari
53fd09cbd7
fix(es/parser): Parse await using in for head (#8775)
**Related issue:**
 
 - Closes #8774
2024-03-26 04:20:44 +00:00
SWC Bot
cd06af3ef7 chore: Bump crates 2024-03-26 03:56:14 +00:00
Donny/강동윤
e7bca10142
fix(es/minifier): Fix tpl-to-string conversion (#8778)
**Related issue:**

 - Closes #8773
2024-03-26 03:54:35 +00:00
SWC Bot
eec697f458 chore: Publish 1.4.9-nightly-20240326.2 2024-03-26 02:27:03 +00:00
SWC Bot
2377e00518 chore: Bump crates 2024-03-26 01:56:57 +00:00
Donny/강동윤
2920a88cf7
build(bindings/node): Update sourcemap (#8777) 2024-03-26 01:55:18 +00:00
SWC Bot
a05b2ee27b chore: Publish 1.4.9-nightly-20240326.1 2024-03-26 00:08:47 +00:00
SWC Bot
dbf930a2c9 chore: Bump crates 2024-03-25 04:20:57 +00:00
Donny/강동윤
f8681c9299
chore(deps): Update sourcemap to v8.0.0 (#8771)
**Related issue:**

 - https://github.com/getsentry/rust-sourcemap/pull/77
2024-03-25 13:18:49 +09:00
SWC Bot
44209386ca chore: Bump crates 2024-03-22 07:03:51 +00:00
pshu
f62097ca01
fix(es/utils): Mark ident of default fn/class as binding (#8764) 2024-03-22 07:02:08 +00:00
강동윤 (Donny)
ad932f0921 chore: Improve update script 2024-03-21 11:02:48 +09:00
SWC Bot
45c11f6e4a chore: Publish 1.4.9-nightly-20240321.1 2024-03-21 00:07:23 +00:00
SWC Bot
df977a0bbd chore: Bump crates 2024-03-20 02:37:04 +00:00
Donny/강동윤
9f98a7026d
fix(es/minifier): Abort eval on valueOf or toString (#8763)
**Related issue:**

 - Closes #8704
 - Closes #8705
2024-03-20 02:35:24 +00:00
SWC Bot
6fba5f7c97 chore: Bump crates 2024-03-19 05:41:00 +00:00
pshu
c9c971a792
feat(es/lints): Detect duplicate bindings in export defaults (#8760)
**Description:**
add DefaultDecl's FnExpr and ClassExpr's ident to bindings. 
because all of them should be treated as hoisted Fn/Class Declare

```txt
  × the name `x` is defined multiple times
   ╭─[examples/all.js:1:1]
 1 │ export default class x{}
   ·                      ┬
   ·                      ╰── previous definition of `x` here
 2 │
 3 │ let x = 1;
   ·     ┬
   ·     ╰── `x` redefined here
 4 │ let t = function x(){};
   ╰────
```



**Related issue:**

 - Closes #8755
2024-03-19 14:39:06 +09:00
SWC Bot
2067677e49 chore: Bump crates 2024-03-18 14:41:15 +00:00
Donny/강동윤
2d6de94936
fix(es/parser): Fix parsing of TypeScript type instantiation (#8758)
**Related issue:**

 - Closes #8735
2024-03-18 14:39:31 +00:00
SWC Bot
32ed69227a chore: Bump crates 2024-03-18 06:25:49 +00:00
Donny/강동윤
7c896e5902
chore: Provide a script to update all SWC crates (#8759) 2024-03-18 15:23:54 +09:00
SWC Bot
8263c6fafe chore: Bump crates 2024-03-18 05:40:18 +00:00
Donny/강동윤
e2c6db5226
fix(es/module): Fix interop of jsc.paths with symlinks (#8757)
**Related issue:**

 - Closes #8667
2024-03-18 05:38:31 +00:00
강동윤 (Donny)
4c83dcc370 chore: Publish @swc/helpers@v0.5.7 2024-03-18 10:46:12 +09:00
강동윤 (Donny)
5f2ea762a1 chore: Publish @swc/types@v0.1.6 2024-03-18 10:45:42 +09:00
SWC Bot
82d1b8e49a chore: Bump crates 2024-03-17 13:04:54 +00:00
Kyuuhachi
f2300dadbf
refactor(common): Debug-print spans more compactly (#8746)
**Description:**

`dbg!()` output on ASTs is kinda verbose,

```rs
ExprStmt {
    span: Span {
        lo: BytePos(
            37,
        ),
        hi: BytePos(
            50,
        ),
        ctxt: #0,
    },
    expr: Lit(
        Str(
            Str {
                span: Span {
                    lo: BytePos(
                        37,
                    ),
                    hi: BytePos(
                        49,
                    ),
                    ctxt: #0,
                },
                value: "use strict",
                raw: Some(
                    "\"use strict\"",
                ),
            },
        ),
    ),
}
```

A lot of the space is wasted on spans — 9 lines per span, even though
it's pretty much unimportant cruft. This PR changes that to just one
line per span:

```rs
ExprStmt {
    span: 37..50#0,
    expr: Lit(
        Str(
            Str {
                span: 37..49#0,
                value: "use strict",
                raw: Some(
                    "\"use strict\"",
                ),
            },
        ),
    ),
}
```

While not a statistically meaningful measurement, in my tests (sample
size = 1) this change reduces the `dbg!()` of a 1103-byte script from
5597 to 2885 lines, which is a 48% reduction. In `{:?}` mode it goes
from 40034 to 25457 chars, or 37% reduction.
2024-03-17 13:03:14 +00:00
SWC Bot
1240b8834f chore: Publish 1.4.9-nightly-20240316.1 2024-03-16 00:06:03 +00:00
강동윤 (Donny)
0c180032c1 chore: Update changelog 2024-03-14 13:42:08 +09:00
강동윤 (Donny)
a0d0563114 chore: Publish 1.4.8 with swc_core v0.90.22 2024-03-14 13:42:07 +09:00
SWC Bot
3672a58ed6 chore: Bump crates 2024-03-14 04:00:19 +00:00
one230six
bfb0c6e534
chore: Remove repetitive words (#8741)
Signed-off-by: one230six <723682061@qq.com>
2024-03-14 03:58:51 +00:00
SWC Bot
1ec92dff2f chore: Bump crates 2024-03-14 03:24:06 +00:00
Donny/강동윤
f988b66e1f
fix(es/module): Fix regression of resolving relative modules (#8748)
**Description:**

- x-ref (vercel slack):
https://vercel.slack.com/archives/C03S8ED1DKM/p1710371667695459?thread_ts=1710362018.271789&cid=C03S8ED1DKM


**Related issue (if exists):**
2024-03-14 12:22:28 +09:00
SWC Bot
31ecd2a6c1 chore: Bump crates 2024-03-14 01:32:37 +00:00
Donny/강동윤
663261be97
fix(es/parser): Allow export after decorators when valid (#8739)
**Related issue:**

 - Closes #5276
2024-03-14 01:30:49 +00:00
SWC Bot
10f25067db chore: Bump crates 2024-03-13 07:45:30 +00:00
Donny/강동윤
9c1eb017fc
chore(es): Allow using older tokio (#8740)
**Description:**

I made a mistake while working on https://github.com/swc-project/swc/pull/8711
2024-03-13 07:43:50 +00:00
강동윤 (Donny)
80449374c1 chore: Update changelog 2024-03-13 15:03:36 +09:00
강동윤 (Donny)
583958a112 chore: Publish 1.4.7 with swc_core v0.90.20 2024-03-13 15:03:34 +09:00
SWC Bot
6e672aaf9a chore: Bump crates 2024-03-13 03:08:09 +00:00
Donny/강동윤
633cd89bac
fix(es/proposal): Fix var placement for using transform (#8732)
**Related issue:**

 - Closes #8629
2024-03-13 03:06:29 +00:00
SWC Bot
8a5163ce5d chore: Bump crates 2024-03-13 02:23:10 +00:00
Donny/강동윤
95761b76bf
fix(es/minifier): Make Finalizer handle hoisted_props correctly (#8738)
**Related issue:**

 - Closes #8737
2024-03-13 02:21:15 +00:00
SWC Bot
391d6f6820 chore: Publish 1.4.7-nightly-20240312.1 2024-03-12 06:34:54 +00:00