Commit Graph

1057 Commits

Author SHA1 Message Date
SWC Bot
16ad8ec4d1 chore: Publish crates 2023-09-14 07:19:55 +00:00
SWC Bot
9f8d454e00 chore: Publish crates 2023-09-14 02:49:44 +00:00
SWC Bot
47388a047e chore: Publish crates 2023-09-14 02:17:21 +00:00
SWC Bot
418a2e3016 chore: Publish crates 2023-09-13 05:57:44 +00:00
SWC Bot
858a4f4a22 chore: Publish crates 2023-09-13 02:05:35 +00:00
SWC Bot
0d0f04689c chore: Publish crates 2023-09-11 08:33:49 +00:00
SWC Bot
5431010c75 chore: Publish crates 2023-09-10 07:00:21 +00:00
SWC Bot
3210556c7e chore: Publish crates 2023-09-10 06:29:19 +00:00
SWC Bot
8bb911269c chore: Publish crates 2023-09-06 17:31:41 +00: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
SWC Bot
5c005256d6 chore: Publish crates 2023-09-06 10:26:13 +00:00
SWC Bot
4623b3e07f chore: Publish crates 2023-09-05 12:26:15 +00:00
SWC Bot
92d08c38e2 chore: Publish crates 2023-09-01 05:26:46 +00:00
SWC Bot
d1ec49e3e5 chore: Publish crates 2023-08-31 13:25:10 +00:00
SWC Bot
e5f7a9dab0 chore: Publish crates 2023-08-31 07:26:53 +00:00
SWC Bot
482306086d chore: Publish crates 2023-08-31 05:56:04 +00:00
SWC Bot
3127ad9515 chore: Publish crates 2023-08-30 10:15:47 +00:00
SWC Bot
766d3e8896 chore: Publish crates 2023-08-30 03:03:30 +00:00
SWC Bot
853b4803ad chore: Publish crates 2023-08-30 02:26:08 +00:00
SWC Bot
aa8ad10ad8 chore: Publish crates 2023-08-29 10:23:30 +00:00
SWC Bot
c31f05a675 chore: Publish crates 2023-08-29 05:47:51 +00:00
SWC Bot
4a2c24bbec chore: Publish crates 2023-08-29 05:06:03 +00:00
SWC Bot
44de87f481 chore: Publish crates 2023-08-28 01:12:12 +00:00
SWC Bot
562f5e1eb3 chore: Publish crates 2023-08-28 00:31:39 +00:00
SWC Bot
5d25307a1a chore: Publish crates 2023-08-27 23:38:50 +00:00
SWC Bot
2be46c920c chore: Publish crates 2023-08-27 18:25:51 +00:00
SWC Bot
84737cdcd8 chore: Publish crates 2023-08-26 01:14:53 +00:00
SWC Bot
5c96b8545d chore: Publish crates 2023-08-25 13:48:47 +00:00
SWC Bot
7986566128 chore: Publish crates 2023-08-25 07:25:19 +00:00
SWC Bot
9c69caf665 chore: Publish crates 2023-08-25 06:07:50 +00:00
SWC Bot
f79ca54584 chore: Publish crates 2023-08-25 04:49:30 +00:00
SWC Bot
e3b4cfbbf9 chore: Publish crates 2023-08-24 18:52:19 +00:00
SWC Bot
7b5cb902a5 chore: Publish crates 2023-08-24 12:58:41 +00:00
SWC Bot
a9a6928a4e chore: Publish crates 2023-08-24 08:20:56 +00:00
SWC Bot
da5bc1084d chore: Publish crates 2023-08-24 07:37:21 +00:00
SWC Bot
662f236aa5 chore: Publish crates 2023-08-22 02:06:20 +00:00
SWC Bot
becea47a2d chore: Publish crates 2023-08-17 18:11:16 +00:00
SWC Bot
9dbfadb48d chore: Publish crates 2023-08-17 14:38:07 +00:00
SWC Bot
ebbc9292e3 chore: Publish crates 2023-08-17 05:18:03 +00:00
SWC Bot
a6a5ec30cd chore: Publish crates 2023-08-17 04:37:14 +00:00
SWC Bot
05200ad352 chore: Publish crates 2023-08-17 04:03:33 +00:00
SWC Bot
0d036b4915 chore: Publish crates 2023-08-16 19:11:18 +00:00
SWC Bot
e9dfe879d9 chore: Publish crates 2023-08-16 18:04:14 +00: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
SWC Bot
d5495eeb9a chore: Publish crates 2023-08-16 14:18:56 +00:00
SWC Bot
2dc88ef147 chore: Publish crates 2023-08-16 13:26:52 +00:00
SWC Bot
a671afa0aa chore: Publish crates 2023-08-16 02:12:39 +00:00
SWC Bot
023042dfb9 chore: Publish crates 2023-08-15 15:29:35 +00:00
SWC Bot
47350a8ac6 chore: Publish crates 2023-08-14 16:35:22 +00:00
SWC Bot
0f66ee315a chore: Publish crates 2023-08-14 15:47:58 +00:00
SWC Bot
74d446f759 chore: Publish crates 2023-08-14 01:35:45 +00:00
SWC Bot
b5dcce03c1 chore: Publish crates 2023-08-10 08:01:19 +00:00
SWC Bot
be58d36c42 chore: Publish crates 2023-08-10 02:50:53 +00:00
SWC Bot
e90b555790 chore: Publish crates 2023-08-09 20:44:26 +00:00
SWC Bot
0edc4207f4 chore: Publish crates 2023-08-09 20:04:15 +00:00
SWC Bot
c04ca528b8 chore: Publish crates 2023-08-09 09:19:00 +00:00
SWC Bot
1c2eb88a60 chore: Publish crates 2023-08-09 05:00:38 +00:00
SWC Bot
83983f49c8 chore: Publish crates 2023-08-07 22:56:50 +00:00
SWC Bot
14906e279f chore: Publish crates 2023-08-07 22:20:08 +00:00
SWC Bot
0219eebeb9 chore: Publish crates 2023-08-07 21:31:50 +00:00
SWC Bot
1323c25ed6 chore: Publish crates 2023-08-07 20:38:40 +00:00
SWC Bot
1e6ade8cfa chore: Publish crates 2023-08-07 20:01:21 +00:00
SWC Bot
51d17b66ad chore: Publish crates 2023-08-06 22:16:01 +00:00
SWC Bot
434472a678 chore: Publish crates 2023-08-06 21:44:26 +00:00
SWC Bot
97289b4edc chore: Publish crates 2023-08-06 20:31:13 +00:00
SWC Bot
c9a55603ae chore: Publish crates 2023-08-03 22:23:07 +00:00
SWC Bot
875a7a7393 chore: Publish crates 2023-08-03 03:23:59 +00:00
SWC Bot
d0ea6bdd84 chore: Publish crates 2023-08-03 02:45:17 +00:00
SWC Bot
e22cdccedd chore: Publish crates 2023-08-02 22:04:35 +00:00
SWC Bot
791025943a chore: Publish crates 2023-08-02 20:43:00 +00:00
SWC Bot
5284220d6c chore: Publish crates 2023-07-31 08:08:38 +00:00
SWC Bot
1a5a3313cf chore: Publish crates 2023-07-31 04:12:06 +00:00
SWC Bot
ef306256d2 chore: Publish crates 2023-07-31 03:33:30 +00:00
SWC Bot
640318c616 chore: Publish crates 2023-07-28 16:59:14 +00:00
SWC Bot
d3b516d692 chore: Publish crates 2023-07-28 05:59:26 +00:00
SWC Bot
9a57f8ab6d chore: Publish crates 2023-07-28 05:22:07 +00:00
SWC Bot
3f3de2e316 chore: Publish crates 2023-07-28 04:42:31 +00:00
SWC Bot
e105f207df chore: Publish crates 2023-07-28 03:30:04 +00:00
OJ Kwon
2bc96373b7
feat(swc_core): Expose visit/serde as serde feature (#7722) 2023-07-28 12:27:55 +09:00
SWC Bot
9daa0e2c6a chore: Publish crates 2023-07-25 08:17:01 +00:00
SWC Bot
4c43d5aa3d chore: Publish crates 2023-07-25 03:32:13 +00:00
SWC Bot
cd98859482 chore: Publish crates 2023-07-25 02:56:16 +00:00
SWC Bot
11efd4e7c5 chore: Publish crates 2023-07-24 04:39:18 +00:00
SWC Bot
ab17d2a4ae chore: Publish crates 2023-07-21 05:24:53 +00:00
SWC Bot
aff07b1a0a chore: Publish crates 2023-07-21 02:00:00 +00:00
SWC Bot
026101b71e chore: Publish crates 2023-07-20 05:57:51 +00:00
SWC Bot
c61dd52909 chore: Publish crates 2023-07-20 02:37:25 +00:00
SWC Bot
ce7f4b693d chore: Publish crates 2023-07-19 05:22:34 +00:00
SWC Bot
3c89bdfd99 chore: Publish crates 2023-07-18 04:13:08 +00:00
SWC Bot
7c12060b70 chore: Publish crates 2023-07-18 01:10:44 +00:00
SWC Bot
3930f77b54 chore: Publish crates 2023-07-17 07:19:08 +00:00
SWC Bot
bed73c168c chore: Publish crates 2023-07-14 20:56:32 +00:00
SWC Bot
26d79444c6 chore: Publish crates 2023-07-13 02:09:23 +00:00
SWC Bot
e4f9f734ad chore: Publish crates 2023-07-07 04:09:05 +00:00
SWC Bot
e80c695c89 chore: Publish crates 2023-07-07 02:59:38 +00:00
SWC Bot
1fe263903d chore: Publish crates 2023-07-07 02:17:07 +00:00
SWC Bot
2ef760357f chore: Publish crates 2023-07-06 03:29:42 +00:00
SWC Bot
735a82d6a4 chore: Publish crates 2023-07-05 03:52:51 +00:00
Donny/강동윤
b34f1adbcc
build(cargo): Update rustc to 2023-07-03 (#7623) 2023-07-05 03:50:43 +00:00
SWC Bot
7544ea960b chore: Publish crates 2023-07-04 07:01:59 +00:00
SWC Bot
984fdc8ef5 chore: Publish crates 2023-07-04 06:25:39 +00:00
SWC Bot
9214427667 chore: Publish crates 2023-07-04 05:49:44 +00:00
SWC Bot
9cb9f055ba chore: Publish crates 2023-07-04 05:13:14 +00:00
SWC Bot
cf902d3808 chore: Publish crates 2023-07-03 01:54:53 +00:00
SWC Bot
cba986807a chore: Publish crates 2023-06-30 07:43:11 +00:00
SWC Bot
af3654c0c3 chore: Publish crates 2023-06-30 03:30:23 +00:00
SWC Bot
efcad6a499 chore: Publish crates 2023-06-30 02:55:28 +00:00
SWC Bot
3aee9a23aa chore: Publish crates 2023-06-30 02:15:04 +00:00
SWC Bot
efc1afd96a chore: Publish crates 2023-06-29 14:15:31 +00:00
SWC Bot
be33efaecd chore: Publish crates 2023-06-29 07:52:19 +00:00
SWC Bot
8f016cd8f3 chore: Publish crates 2023-06-29 01:58:47 +00:00
SWC Bot
ed9a4ae5bc chore: Publish crates 2023-06-27 15:25:59 +00:00
SWC Bot
7f2ace5d3f chore: Publish crates 2023-06-27 02:16:08 +00:00
SWC Bot
b4ae28b053 chore: Publish crates 2023-06-26 04:02:12 +00:00
SWC Bot
fcd650c0e6 chore: Publish crates 2023-06-24 01:30:47 +00:00
SWC Bot
4efefb0f4e chore: Publish crates 2023-06-23 02:28:10 +00:00
SWC Bot
8c1436aaf5 chore: Publish crates 2023-06-22 13:40:52 +00:00
SWC Bot
33355cf707 chore: Publish crates 2023-06-22 07:43:38 +00:00
Donny/강동윤
d12dc70c91
build(cargo): Update deps (#7564) 2023-06-22 07:40:41 +00:00
SWC Bot
f9c5265bde chore: Publish crates 2023-06-21 15:44:11 +00:00
SWC Bot
c9f2838071 chore: Publish crates 2023-06-21 09:40:25 +00:00
SWC Bot
690ca6c8e1 chore: Publish crates 2023-06-21 07:27:39 +00:00
SWC Bot
c023a03d7b chore: Publish crates 2023-06-21 03:18:22 +00:00
SWC Bot
8b765e6763 chore: Publish crates 2023-06-20 05:37:57 +00:00
SWC Bot
f27d6ea58c chore: Publish crates 2023-06-20 05:05:01 +00:00
SWC Bot
69b034931e chore: Publish crates 2023-06-20 04:14:44 +00:00
SWC Bot
fec056f5db chore: Publish crates 2023-06-20 03:21:20 +00:00
SWC Bot
17e339fc26 chore: Publish crates 2023-06-20 01:54:14 +00:00
SWC Bot
8f1c8ea9fa chore: Publish crates 2023-06-19 06:36:31 +00:00
SWC Bot
44aac8fe27 chore: Publish crates 2023-06-19 05:51:51 +00:00
SWC Bot
2669fc214a chore: Publish crates 2023-06-19 03:20:19 +00:00
SWC Bot
d38c40914e chore: Publish crates 2023-06-19 03:02:08 +00:00
SWC Bot
0859b76ed0 chore: Publish crates 2023-06-16 06:46:25 +00:00
SWC Bot
b9acc83fa7 chore: Publish crates 2023-06-16 02:59:35 +00:00
SWC Bot
39276402bf chore: Publish crates 2023-06-14 05:01:49 +00:00
SWC Bot
db85bf3ee2 chore: Publish crates 2023-06-13 16:14:41 +00:00
SWC Bot
275db1baec chore: Publish crates 2023-06-13 03:39:28 +00:00
SWC Bot
08574e690b chore: Publish crates 2023-06-12 08:04:50 +00:00
SWC Bot
96895b1f3f chore: Publish crates 2023-06-12 06:49:35 +00:00
SWC Bot
d8f5158963 chore: Publish crates 2023-06-12 02:24:36 +00:00
SWC Bot
cea1237c5e chore: Publish crates 2023-06-12 01:39:32 +00:00
SWC Bot
b46bcf3f50 chore: Publish crates 2023-06-08 05:08:56 +00:00
SWC Bot
37634a758d chore: Publish crates 2023-06-08 04:15:29 +00:00
SWC Bot
3fe1236fe0 chore: Publish crates 2023-06-08 03:28:07 +00:00
SWC Bot
eeac6fa68a chore: Publish crates 2023-06-08 02:21:20 +00:00
OJ Kwon
73929fc43c
feat(plugin/runner): Support shared wasix runtime (#7504) 2023-06-08 02:19:07 +00:00
SWC Bot
89bee900e4 chore: Publish crates 2023-06-07 05:10:31 +00:00
SWC Bot
f634c3ad2f chore: Publish crates 2023-06-07 04:25:48 +00:00
SWC Bot
b6b4b0fd2e chore: Publish crates 2023-06-07 03:03:16 +00:00
SWC Bot
61dc611da3 chore: Publish crates 2023-06-05 04:47:07 +00:00
SWC Bot
47dc78f607 chore: Publish crates 2023-06-05 04:06:15 +00:00
SWC Bot
9de08611e1 chore: Publish crates 2023-06-02 15:24:25 +00:00
SWC Bot
d6bbbc332d chore: Publish crates 2023-05-31 01:59:26 +00:00
SWC Bot
a63905aa2c chore: Publish crates 2023-05-30 05:18:06 +00:00
SWC Bot
076b4d4023 chore: Publish crates 2023-05-30 03:24:10 +00:00
SWC Bot
81a413b332 chore: Publish crates 2023-05-28 14:12:53 +00:00
SWC Bot
dcda6498f3 chore: Publish crates 2023-05-28 13:29:30 +00:00
SWC Bot
15217a1f9e chore: Publish crates 2023-05-25 05:40:33 +00:00
SWC Bot
a85816d505 chore: Publish crates 2023-05-25 04:54:11 +00:00
SWC Bot
8d52500a9a chore: Publish crates 2023-05-25 04:00:53 +00:00
SWC Bot
1b5aa4a09b chore: Publish crates 2023-05-25 02:17:22 +00:00
SWC Bot
6c3ff01a53 chore: Publish crates 2023-05-24 07:48:00 +00:00
SWC Bot
c1f2b4a09f chore: Publish crates 2023-05-24 06:59:37 +00:00
SWC Bot
b95cd8444e chore: Publish crates 2023-05-24 06:27:35 +00:00
SWC Bot
f9f0cc2380 chore: Publish crates 2023-05-24 05:44:06 +00:00
SWC Bot
c14306c914 chore: Publish crates 2023-05-24 04:52:50 +00:00
SWC Bot
552bc0ba18 chore: Publish crates 2023-05-23 07:16:28 +00:00
SWC Bot
8872b41272 chore: Publish crates 2023-05-23 06:25:54 +00:00
SWC Bot
47114702ef chore: Publish crates 2023-05-23 05:30:42 +00:00
SWC Bot
ed9d316833 chore: Publish crates 2023-05-22 05:29:02 +00:00
OJ Kwon
558ca40b99
fix(swc_core): Correctly expose plugin with host (#7427)
**Description:**

Following up https://github.com/swc-project/swc/pull/7422, `swc_core::plugin` itself is not exposed to `__plugin_transform_host`, so still not able to access the inner plugin proxy.
2023-05-22 05:27:01 +00:00
SWC Bot
7964e1cb78 chore: Publish crates 2023-05-22 04:09:40 +00:00
OJ Kwon
cfdd407896
refactor(swc_core): Make common_plugin_transform agnostic to mode (#7422) 2023-05-22 04:07:55 +00:00
SWC Bot
12b966ea21 chore: Publish crates 2023-05-22 03:23:50 +00:00
SWC Bot
344a6ea7be chore: Publish crates 2023-05-20 04:47:53 +00:00
SWC Bot
920013511b chore: Publish crates 2023-05-20 04:00:44 +00:00
SWC Bot
b2c9bb47a0 chore: Publish crates 2023-05-19 04:37:45 +00:00
SWC Bot
135c4fd16b chore: Publish crates 2023-05-18 08:20:26 +00:00
SWC Bot
9440f4b196 chore: Publish crates 2023-05-18 07:08:08 +00:00
OJ Kwon
ac5ab607c9
refactor(plugin/runner): Revise cache, module loading (#7408)
**Description:**

One of the oversight around design of `TransformExecutor` is
encapsulating plugin module logic. It has access to the cache and do its
own loading & storing. This means consumer of plugin runner have tricky
challenge to control its caching system. First, there is no way to
escape how swc_plugin_runner controls cache and cannot synchronize into
their own, also depends on the usecases cannot control the features they
want to opt in: for example, there's no way one interface uses in-memory
cache, and another uses filesystem since it is compile time configured
singleton.

PR revisits overall design of TransformExecutor: now it accepts a tratir
`PluginModuleBytes`, which abstracts any kind of bytes we are dealing
with, such as raw file slice or serialized `wasmer::Module`. Cache
instantiation and managing is now bubbled up to the application level
(`swc` in here), so if someone wants non-singleton caching or integrate
into their own caching system it can be customized.

Lastly, deprecated `memory_cache` feature and only exposes
`filesystem_cache`. Cache implementation uses in-memory is always
available, and can opt in filesystem cache where it's supported.


**BREAKING CHANGE:**

This is clearly breaking changes for the consumers of swc_core. for the
@swc/core, this PR takes care of necessary changes. I'll work on
next-swc changes later once we have new @swc/core version with this
changes.
2023-05-18 07:05:39 +00:00
SWC Bot
31d7b88555 chore: Publish crates 2023-05-18 01:21:08 +00:00
SWC Bot
a2a544a0ae chore: Publish crates 2023-05-17 13:12:20 +00:00
SWC Bot
c520e7469e chore: Publish crates 2023-05-17 06:17:15 +00:00
SWC Bot
8052d4dabd chore: Publish crates 2023-05-17 04:53:45 +00:00
SWC Bot
da0c612d85 chore: Publish crates 2023-05-16 05:18:57 +00:00
SWC Bot
d3db7edd51 chore: Publish crates 2023-05-16 04:14:36 +00:00
SWC Bot
a05e28906b chore: Publish crates 2023-05-15 04:14:42 +00:00
OJ Kwon
05b4c11497
feat(swc_core): Expose plugin proxy to the host env (#7391) 2023-05-15 13:12:33 +09:00
SWC Bot
5e3d156aca chore: Publish crates 2023-05-15 03:20:03 +00:00
SWC Bot
5d30437206 chore: Publish crates 2023-05-15 02:27:59 +00:00
SWC Bot
a2577adffa chore: Publish crates 2023-05-14 06:08:33 +00:00
OJ Kwon
e3868a7e00
feat(swc_core): Allow native env plugin to use memory cache (#7390)
**Description:**

I just realized there could be some case who'll want plugin in native env, but without filesystem cache. If there's a custom cache implementation, it'll make a conflict to swc's caching mechanism since swc does not expose any interface to the its cache.

PR takes simple approach to expose another feature to opt in native env with memory cache for those case. Ideally we should make `plugin_transform_host_native` to not to opt-in any cache, and then make `swc_plugin_runner` to run without any cache implementation - but that'll be a breaking changes with few more involved changes.
2023-05-14 06:06:24 +00:00
SWC Bot
a71d5b2180 chore: Publish crates 2023-05-14 05:23:11 +00:00
SWC Bot
e88ae37a0c chore: Publish crates 2023-05-12 00:47:49 +00:00
SWC Bot
7655aaa42a chore: Publish crates 2023-05-11 14:02:24 +00:00
SWC Bot
65785bdf21 chore: Publish crates 2023-05-10 04:19:21 +00:00
SWC Bot
6432e1f5c5 chore: Publish crates 2023-05-10 03:33:12 +00:00
SWC Bot
e1c9182e1c chore: Publish crates 2023-05-09 05:47:00 +00:00
SWC Bot
7fc9b00443 chore: Publish crates 2023-05-08 03:40:27 +00:00
SWC Bot
aef5ac4812 chore: Publish crates 2023-05-06 03:56:38 +00:00