Donny/강동윤
6b1216e9e8
chore: Publish v1.3.86
with swc_core
v0.83.16
( #7970 )
2023-09-18 21:37:45 +00:00
Donny/강동윤
94b45e92a4
chore: Publish v1.3.85
with swc_core
v0.83.10
( #7954 )
2023-09-15 06:03:20 +00:00
Anders Kaseorg
b87ac646f8
fix(es/minifier): Parse a file as a module only if opts.module
is true
( #7943 )
...
**Description:**
Previously it was impossible to minify non-strict code (e.g. `delete identifier;`) because `minify()` unconditionally parsed the input as a module regardless of the `module` setting.
**BREAKING CHANGE:**
`minify()` now respects the `module` parameter instead of ignoring it, so users who had been processing modules with `minify()` without passing `{ module: true }` will now need to pass it.
**Related issue**
- Closes #6130 .
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-09-13 05:55:34 +00:00
Donny/강동윤
c8ac13e60c
chore: Publish v1.3.84
with swc_core
v0.83.5
( #7937 )
2023-09-11 23:21:02 +09:00
Donny/강동윤
3b10b7532d
chore: Publish v1.3.83
with swc_core
v0.83.2
( #7920 )
2023-09-07 10:20:12 +09:00
Donny/강동윤
a86e9f3bb5
fix(es/module): Fix jsc.paths
for projects using pnpm ( #7918 )
...
**Related issue:**
- x-ref: https://vercel.slack.com/archives/C04DUD7EB1B/p1693911653100299?thread_ts=1693819683.070959&cid=C04DUD7EB1B
2023-09-06 17:29:47 +00:00
Donny/강동윤
ee7575695d
feat(es/codegen): Add an option to print assert
for import attributes ( #7914 )
...
**Description:**
- `jsc.experimental.keepImportAssertions` is renamed to `jsc.experimental.keepImportAttributes`.
- `jsc.experimental.emitAssertForImportAttributes` is added.
**Related issue:**
- Closes #7908
2023-09-05 21:24:25 +09:00
Donny/강동윤
7d2a3015dc
chore: Publish v1.3.82
with swc_core
v0.82.10
( #7905 )
2023-09-01 11:35:07 +09:00
Donny/강동윤
feb36e61ff
chore: Publish v1.3.81
with swc_core
v0.82.7
( #7895 )
2023-08-30 21:07:19 +09:00
Donny/강동윤
5fbc251db1
fix(es/module): Don't create absolute paths for jsc.paths
on Windows ( #7892 )
...
**Related issue:**
- Closes #7806
2023-08-30 10:11:34 +00:00
Donny/강동윤
74a5dc62a7
chore: Publish v1.3.80
with swc_core
v0.81.5
( #7867 )
2023-08-25 22:54:38 +09:00
Donny/강동윤
f819c4487d
chore: Publish v1.3.79
with swc_core
v0.81.3
( #7859 )
2023-08-25 15:20:50 +09:00
Donny/강동윤
854e2e78b3
chore(ci): Fix CI ( #7857 )
2023-08-25 03:32:44 +00:00
Donny/강동윤
f9013a0409
chore: Publish v1.3.78
with swc_core
v0.79.69
( #7831 )
2023-08-18 04:29:38 +09:00
David Sherret
981d7b152b
refactor(common): Make ahash
optional ( #7816 )
...
**Description:**
This adds the ability to not include `ahash` with swc_common, which
caused some issues for me compiling dprint-plugin-typescript to Wasm
because of:
```
Compiling ahash v0.8.3
Compiling getrandom v0.2.10
error: the wasm*-unknown-unknown targets are not supported by default, you may need to enable the "js" feature. For more information see: https://docs.rs/getrandom/#webassembly-support
--> C:\Users\david\.cargo\registry\src\index.crates.io-6f17d22bba15001f\getrandom-0.2.10\src\lib.rs:285:9
|
285 | / compile_error!("the wasm*-unknown-unknown targets are not supported by \
286 | | default, you may need to enable the \"js\" feature. \
287 | | For more information see: \
288 | | https://docs.rs/getrandom/#webassembly-support ");
| |________________________________________________________________________^
```
(I can't enable the JS feature because it's running the wasm file in
Wasmer and also I don't support Wasi in dprint plugins)
**BREAKING CHANGE:**
This removes swc_common's "perf" feature and makes it the default, then
adds an `ahash` feature instead. An alternative would be to make the
`ahash` dep optional and part of the default features, then do
`default-features = false` in the downstream crates (I think, but I'm
not sure), but I figure most people will be using the perf default
anyway? I'm not sure what's preferable.
**Related issue:**
- Closes #7729 .
2023-08-16 18:02:05 +00:00
Donny/강동윤
677e25026d
chore: Publish v1.3.77
with swc_core
v0.79.59
( #7817 )
2023-08-16 11:23:54 +09:00
Donny/강동윤
7aea2bdd97
chore: Publish v1.3.76
with swc_core
v0.79.55
( #7794 )
2023-08-10 17:12:04 +09:00
Donny/강동윤
9079050232
chore: Publish v1.3.76
with swc_core
v0.79.54
( #7792 )
2023-08-10 12:04:11 +09:00
Donny/강동윤
41692f91db
chore: Publish v1.3.75
with swc_core
v0.79.49
( #7778 )
2023-08-08 14:03:36 +09:00
Donny/강동윤
9eb05f2d05
chore: Publish v1.3.74
with swc_core
v0.79.38
( #7744 )
2023-08-03 07:17:29 +09:00
Donny/강동윤
6dce81e2ca
chore: Publish v1.3.73
with swc_core
v0.79.36
( #7733 )
2023-08-01 12:40:40 +09:00
Donny/강동윤
00a0575408
chore: Publish v1.3.72
with swc_core
v0.79.33
( #7727 )
2023-07-29 04:34:33 +09:00
Donny/강동윤
d358c01392
chore: Publish v1.3.71
with swc_core
v0.79.27
( #7703 )
2023-07-25 12:52:06 +09:00
Donny/강동윤
882d31980f
chore: Publish v1.3.70
with swc_core
v0.79.19
( #7668 )
2023-07-18 13:21:00 +09:00
Donny/강동윤
dc5135f43f
buiild(bindings/wasm): Fix Wasm build ( #7666 )
...
**Related issue:**
- Closes #7663 .
2023-07-18 03:33:46 +00:00
Donny/강동윤
480c97f9e5
chore: Publish v1.3.69
with swc_core
v0.79.15
( #7654 )
2023-07-13 11:18:42 +09:00
Donny/강동윤
be8a0e9a49
chore: Publish v1.3.68
with swc_core
v0.79.9
( #7628 )
2023-07-05 10:05:58 +09:00
Donny/강동윤
e62a0b91bd
chore: Publish v1.3.67
with swc_core
v0.78.27
( #7594 )
2023-06-29 11:18:46 +09:00
Donny/강동윤
c51eac6075
chore(ci): Fix CI ( #7589 )
2023-06-27 14:34:41 +00:00
Donny/강동윤
d57d0d3ad3
build(cargo): Update deps ( #7566 )
2023-06-22 13:37:35 +00:00
Donny/강동윤
d12dc70c91
build(cargo): Update deps ( #7564 )
2023-06-22 07:40:41 +00:00
Donny/강동윤
1f65d50610
chore: Publish v1.3.66
with swc_core
v0.78.15
( #7554 )
2023-06-20 18:38:32 +09:00
Donny/강동윤
4585ed99db
chore: Publish v1.3.65
with swc_core
v0.78.8
( #7541 )
2023-06-19 12:24:49 +09:00
Donny/강동윤
5b0ee541b4
chore: Publish v1.3.64
with swc_core
v0.78.3
( #7529 )
2023-06-14 14:07:00 +09:00
Donny/강동윤
178abee03e
chore: Publish v1.3.63
with swc_core
v0.78.0
( #7520 )
2023-06-12 21:32:15 +09:00
Donny/강동윤
c7463893e6
chore: Publish v1.3.62
with swc_core
v0.76.39
( #7484 )
2023-06-03 00:43:20 +09:00
Donny/강동윤
43d1e46ccf
chore: Publish v1.3.61
with swc_core
v0.76.37
( #7468 )
2023-05-30 14:40:44 +09:00
Donny/강동윤
df7a2be938
chore: Publish v1.3.60
with swc_core
v0.76.30
( #7448 )
2023-05-25 11:23:55 +09:00
Donny/강동윤
a79a9cf6ff
chore: Publish v1.3.59
with swc_core
v0.76.16
( #7416 )
2023-05-19 14:24:32 +09:00
Donny/강동윤
a5e68243e2
chore: Publish v1.3.58
with swc_core
v0.76.7
( #7393 )
2023-05-15 13:17:25 +09:00
OJ Kwon
bba1fad35c
feat(plugin): Add versioned wrapper struct ( #7382 )
2023-05-15 03:17:31 +00:00
Donny/강동윤
6399d450cc
chore: Publish v1.3.57
with swc_core
v0.75.46
( #7368 )
2023-05-09 12:02:09 +09:00
Donny/강동윤
fee0ec4d01
chore: Publish v1.3.56
with swc_core
v0.75.41
( #7345 )
2023-04-29 22:56:07 +09:00
Donny/강동윤
c67900278e
chore: Publish v1.3.55
with swc_core
v0.75.35
( #7332 )
2023-04-25 19:22:55 +09:00
magic-akari
caee073935
feat(es/module): Add export_interop_annotation
flag ( #7330 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/48801
2023-04-25 10:04:28 +00:00
Donny/강동윤
08b3dc0149
chore: Publish v1.3.54
with swc_core
v0.75.34
( #7327 )
2023-04-25 09:28:27 +09:00
Donny/강동윤
a483750bd9
chore: Publish v1.3.53
with swc_core
v0.75.31
( #7310 )
2023-04-21 15:29:14 +09:00
Donny/강동윤
07feee98ac
chore: Publish v1.3.52
with swc_core
v0.75.27
( #7297 )
2023-04-19 23:27:00 +09:00
Donny/강동윤
439fcddef2
chore: Publish v1.3.51
with swc_core
v0.75.22
( #7277 )
2023-04-16 13:22:21 +09:00
Donny/강동윤
b05916bdbb
chore: Publish v1.3.50
with swc_core
v0.75.15
( #7259 )
2023-04-13 11:10:36 +00:00
Donny/강동윤
1cc60084a2
chore: Publish v1.3.49
with swc_core
v0.75.1
2023-04-10 13:59:00 +09:00
Donny/강동윤
e12a44346c
chore: Publish v1.3.48
with swc_core
v0.75.0
( #7233 )
2023-04-10 13:13:46 +09:00
OJ Kwon
56bdacc72d
feat(plugin/runner): Update wasmer
to v3
( #7197 )
...
**Description:**
This PR reattempts https://github.com/swc-project/swc/pull/5456 .
Most of the changes are for the breaking changes of wasmer@3, as well as enabling rkyv's strict mode (https://github.com/swc-project/swc/pull/6922 ). This could not be seperated since wasmer@3 enables strict mode by default without a way to turn it off.
There are a couple of changes worth noting:
- Disabling in-memory module lookup: https://github.com/swc-project/swc/pull/7197/files#diff-3bda5def6ce2b7553c3b3a5ad241c0bdb7021e67b7de1e594df4cd5a54d403b3R154-R159
- Disabling plugin_runner in bindings_wasm: https://github.com/swc-project/swc/pull/7197/files#diff-dc3ded556a1fd709a129acd588e5eda651b842c6acc3f5340d40088a1f927facR310-R312
- Skipping plugin compat test: https://github.com/swc-project/swc/pull/7197/files#diff-531197dfcefba05faca53f0cf442ecc2dc6b59d5ead01979f5ffb912aa36249aR64-R66
2023-04-10 03:40:25 +00:00
Donny/강동윤
df69abc3d1
chore: Publish v1.3.47
with swc_core
v0.74.6
( #7231 )
2023-04-10 11:54:14 +09:00
Donny/강동윤
9ae13a1d9e
chore: Publish v1.3.46
with fixed peerDependency
( #7206 )
2023-04-04 19:27:43 +09:00
Donny/강동윤
a282f507e3
chore: Publish v1.3.45
with swc_core
v0.74.0
( #7201 )
2023-04-04 14:44:58 +09:00
magic-akari
3ca954b9f9
fix(es/helpers): Use snake_case for helpers ( #7147 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7144 .
- Closes https://github.com/swc-project/swc/issues/7118 .
2023-03-31 15:15:21 +09:00
Donny/강동윤
dd48918417
chore: Publish v1.3.44
with swc_core
v0.72.6
( #7172 )
2023-03-30 17:58:06 +09:00
Donny/강동윤
82a0521ccf
chore: Publish v1.3.43
with swc_core
v0.72.2
( #7158 )
2023-03-29 16:05:00 +09:00
Donny/강동윤
e445502072
build(cargo): Update rustc
to nightly-2023-03-28
( #7154 )
...
**Description:**
This PR also updates `rkyv` to `=0.7.40`.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6807 .
2023-03-29 06:24:19 +00:00
Donny/강동윤
5e58b3e5f6
feat(css/parser): Add legacy_ie
to the ParserConfig
( #7109 )
2023-03-27 15:02:18 +09:00
Donny/강동윤
30bc086052
refactor(ast): Make serde optional ( #7138 )
...
**Description:**
Turbopack does not use `serde` of swc AST types.
2023-03-27 13:28:42 +09:00
Donny/강동윤
6795dc89c0
chore: Publish v1.3.42
with swc_core v0.69.20
( #7117 )
2023-03-22 11:58:59 +09:00
Austaras
c114f006b4
refactor(es/resolver): Make syntax context for unresolved and top-level stable ( #7096 )
2023-03-20 11:01:19 +09:00
realtimetodie
4e6b44cef9
chore: Publish v1.3.41
with swc_core v0.69.11
( #7093 )
2023-03-17 16:11:02 +09:00
magic-akari
7b491a69a5
fix(es/react): Align to babel@8
behavior ( #7081 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7044 .
2023-03-16 03:35:17 +00:00
Donny/강동윤
06071b9fa0
chore: Publish v1.3.40
with swc_core v0.69.3
( #7069 )
2023-03-13 13:29:16 +09:00
Donny/강동윤
1b40689c3a
fix(bindings/cli): Update swc_ecma_ast
( #7060 )
2023-03-12 00:46:46 +00:00
Donny/강동윤
bdc57edac3
chore: Publish v1.3.39
( #7049 )
2023-03-10 04:54:02 +00:00
Donny/강동윤
f378a14888
perf(es/parser): Use SmartString
as the buffer ( #7033 )
2023-03-09 08:07:40 +00:00
Donny/강동윤
873e532f91
chore: Publish v1.3.38
( #7018 )
2023-03-06 09:30:21 +00:00
realtimetodie
4c38a4427b
chore: Publish v1.3.37
( #6992 )
2023-02-28 11:12:57 +09:00
Donny/강동윤
bc8cec8684
chore: Publish v1.3.36
( #6970 )
2023-02-21 16:09:58 +09:00
Donny/강동윤
8c1dba85f5
chore: Publish v1.3.35
( #6929 )
2023-02-10 05:01:14 +00:00
Donny/강동윤
6728091e31
chore: Publish v1.3.34
( #6919 )
2023-02-08 07:46:17 +00:00
realtimetodie
5793e37ac7
chore: Publish v1.3.33
( #6905 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2023-02-08 03:02:37 +00:00
Donny/강동윤
37fd8687dc
chore: Publish v1.3.32
( #6889 )
2023-02-01 09:36:55 +09:00
realtimetodie
8888fd17bf
chore: Publish v1.3.31
( #6877 )
2023-01-30 22:33:39 +09:00
Donny/강동윤
deb2fc5ecc
chore: Publish v1.3.30
( #6869 )
2023-01-28 18:32:28 +00:00
Donny/강동윤
00870d273e
chore: Publish v1.3.29
with swc_core
v0.59.1
2023-01-26 12:26:45 +09:00
Donny/강동윤
ae84f0f35a
chore: Publish v1.3.29
( #6855 )
2023-01-26 03:07:19 +00:00
Donny/강동윤
2d5324f98a
chore: Publish v1.3.28
( #6846 )
2023-01-24 07:02:54 +00:00
Donny/강동윤
db612c1438
chore: Publish v1.3.27
( #6827 )
2023-01-17 02:50:07 +00:00
Donny/강동윤
1c6fe35313
chore: Publish v1.3.26
( #6787 )
2023-01-11 08:40:40 +00:00
Donny/강동윤
ec7e913815
fix(es/minifier): Make name mangler respect toplevel
( #6774 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6418 .
2023-01-10 06:42:49 +00:00
Donny/강동윤
9769a9c677
chore: Publish v1.3.25 ( #6754 )
2023-01-05 10:48:00 +00:00
Donny/강동윤
34ad988099
chore: Publish v1.3.24
( #6702 )
2022-12-21 08:26:01 +00:00
Donny/강동윤
56cd08f19c
chore: Publish v1.3.23 ( #6650 )
2022-12-14 12:30:26 +00:00
Donny/강동윤
6238abe571
chore: Publish v1.3.22
( #6608 )
2022-12-09 03:57:35 +00:00
Donny/강동윤
805ff71c27
chore: Publish v1.3.21
( #6550 )
2022-11-30 19:15:03 +09:00
Donny/강동윤
ae6322064d
feat(es/preset-env): Update data ( #6538 )
2022-11-30 04:27:59 +00:00
Donny/강동윤
71ce4a449a
chore: Publish v1.3.20
( #6516 )
2022-11-26 22:35:16 +09:00
OJ Kwon
d957aac056
refactor(binding/wasm): Use binding_macro ( #6487 )
2022-11-21 01:38:25 +00:00
Donny/강동윤
408dec0fa7
chore: Publish v1.3.19
( #6483 )
2022-11-20 15:49:52 +09:00
OJ Kwon
dd4b9e87de
refactor(bindings): Deprecate jsvalue::*_serde
( #6462 )
2022-11-18 10:21:23 +09:00
Donny/강동윤
fd2064d9de
chore: Publish v1.3.18
( #6456 )
2022-11-16 05:42:35 +00:00
Donny/강동윤
375fe85ce2
chore: Publish v1.13.17
( #6442 )
2022-11-15 05:48:57 +00:00
Donny/강동윤
948e35bcd6
fix(bindings): Revert #6436 ( #6444 )
2022-11-15 13:50:53 +09:00
OJ Kwon
8ca3cc7875
chore(ci): Ensure to honor node package manager ( #6437 )
2022-11-15 00:52:44 +00:00
OJ Kwon
1dd8b3d9d5
refactor(bindings): Deprecate JsValue::*_serde
( #6436 )
2022-11-14 23:46:13 +00:00