Commit Graph

89 Commits

Author SHA1 Message Date
Donny/강동윤
a79a9cf6ff
chore: Publish v1.3.59 with swc_core v0.76.16 (#7416) 2023-05-19 14:24:32 +09: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
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
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
OJ Kwon
6bd58cbcfd
refactor(plugin): Remove bytecheck flag (#7256) 2023-04-13 05:49:58 +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
Donny/강동윤
df69abc3d1
chore: Publish v1.3.47 with swc_core v0.74.6 (#7231) 2023-04-10 11:54:14 +09:00
Donny/강동윤
a282f507e3
chore: Publish v1.3.45 with swc_core v0.74.0 (#7201) 2023-04-04 14:44:58 +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
realtimetodie
4e6b44cef9
chore: Publish v1.3.41 with swc_core v0.69.11 (#7093) 2023-03-17 16:11:02 +09: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/강동윤
0324d5a78b
chore(bot): Allow org members to use bump comments (#6942) 2023-02-14 04:47:41 +00:00
LongYinan
0771418dd0
chore(swc_nodejs_common): remove swc_node_base from swc_nodejs_common (#6940)
- Ref: https://github.com/vercel/turbo/pull/3772
2023-02-14 03:13:36 +00: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