Commit Graph

484 Commits

Author SHA1 Message Date
SWC Bot
34370b18ce chore: Publish 1.3.101-nightly-20231204.1 2023-12-04 00:07:05 +00:00
SWC Bot
7c666caed2 chore: Publish 1.3.101-nightly-20231203.1 2023-12-03 00:07:30 +00:00
SWC Bot
79966b9d26 chore: Publish 1.3.101-nightly-20231202.1 2023-12-02 00:06:52 +00:00
SWC Bot
d0a885d358 chore: Publish 1.3.101-nightly-20231201.1 2023-12-01 00:07:48 +00:00
강동윤 (Donny)
d19de29937 chore: Publish crates 2023-11-30 14:16:00 +09:00
Donny/강동윤
02add74b73
chore: Publish v1.3.100 with swc_core v0.86.84 (#8359)
**Related issue:**

 - Closes #8355
2023-11-30 14:14:46 +09:00
SWC Bot
60ebd11064 chore: Publish 1.3.100-nightly-20231130.1 2023-11-30 00:07:21 +00:00
SWC Bot
a87d50bb14 chore: Publish 1.3.100-nightly-20231129.1 2023-11-29 00:07:25 +00:00
SWC Bot
14dbece85a chore: Publish 1.3.100-nightly-20231128.1 2023-11-28 00:07:09 +00:00
SWC Bot
6e63b95bac chore: Publish 1.3.100-nightly-20231127.1 2023-11-27 00:07:00 +00:00
SWC Bot
0b2fd10833 chore: Publish 1.3.100-nightly-20231126.1 2023-11-26 00:07:32 +00:00
SWC Bot
8e37eca0a5 chore: Publish 1.3.100-nightly-20231125.1 2023-11-25 00:06:53 +00:00
SWC Bot
48a5af1ecd chore: Publish 1.3.100-nightly-20231124.1 2023-11-24 00:06:55 +00:00
SWC Bot
0004ce3f47 chore: Publish 1.3.100-nightly-20231123.1 2023-11-23 00:07:17 +00:00
SWC Bot
c9c3e7d189 chore: Publish 1.3.100-nightly-20231122.1 2023-11-22 00:07:18 +00:00
강동윤 (Donny)
85350d31ae chore: Publish v1.3.99 with swc_core v0.86.73 2023-11-21 11:50:59 +09:00
강동윤 (Donny)
23fdaf13f8 chore: Publish crates 2023-11-21 10:23:28 +09:00
Donny/강동윤
99ad5022d1
chore: Publish v1.3.98 with swc_core v0.86.73 (#8321) 2023-11-21 10:21:44 +09:00
SWC Bot
e23adc81c9 chore: Publish 1.3.98-nightly-20231121.1 2023-11-21 00:07:29 +00:00
강동윤 (Donny)
e9fa6e90c8 chore: Publish crates 2023-11-21 02:28:23 +09:00
SWC Bot
8c3dc02d0d chore: Publish 1.3.98-nightly-20231120.1 2023-11-20 00:07:09 +00:00
SWC Bot
cf692e055e chore: Publish 1.3.98-nightly-20231119.1 2023-11-19 00:07:33 +00:00
SWC Bot
f6179b57a1 chore: Publish 1.3.98-nightly-20231118.1 2023-11-18 00:07:05 +00:00
SWC Bot
ba9d2f56cc chore: Publish 1.3.98-nightly-20231117.1 2023-11-17 00:07:02 +00:00
SWC Bot
f88d6f3c8d chore: Publish 1.3.98-nightly-20231116.1 2023-11-16 00:06:58 +00:00
SWC Bot
b8c887f8ce chore: Publish 1.3.98-nightly-20231115.1 2023-11-15 00:07:00 +00:00
SWC Bot
0c05f6e76e chore: Publish 1.3.98-nightly-20231114.1 2023-11-14 00:06:45 +00:00
SWC Bot
001fe85bd5 chore: Publish 1.3.98-nightly-20231113.1 2023-11-13 00:06:52 +00:00
SWC Bot
d0e6bab9b1 chore: Publish 1.3.98-nightly-20231112.1 2023-11-12 00:07:42 +00:00
SWC Bot
ca73387c47 chore: Publish 1.3.98-nightly-20231111.2 2023-11-11 22:14:24 +00:00
Donny/강동윤
9a0572b968
refactor(swc_node_base): Rename to swc_malloc (#8272)
**Description:**

This is quite convinient.
2023-11-11 19:10:56 +00:00
SWC Bot
c8379c27a0 chore: Publish 1.3.98-nightly-20231111.1 2023-11-11 00:07:33 +00:00
SWC Bot
981ab771af chore: Publish 1.3.98-nightly-20231110.1 2023-11-10 00:07:08 +00:00
강동윤 (Donny)
60455b0e3a chore: Publish crates 2023-11-09 15:12:15 +09:00
Donny/강동윤
05313ecd8f
chore: Publish v1.3.97 with swc_core v0.86.46 (#8250) 2023-11-09 15:09:41 +09:00
SWC Bot
5472afb40e chore: Publish 1.3.97-nightly-20231109.1 2023-11-09 00:06:57 +00:00
SWC Bot
501f72a1d4 chore: Publish 1.3.97-nightly-20231108.1 2023-11-08 00:06:51 +00:00
SWC Bot
d1c6d6ea7b chore: Publish 1.3.97-nightly-20231107.1 2023-11-07 00:07:01 +00:00
SWC Bot
6c59d53815 chore: Publish 1.3.97-nightly-20231106.1 2023-11-06 00:07:38 +00:00
SWC Bot
7ebdfd18f8 chore: Publish 1.3.97-nightly-20231105.1 2023-11-05 00:10:36 +00:00
SWC Bot
cb29fdd1f4 chore: Publish 1.3.97-nightly-20231104.1 2023-11-04 00:06:40 +00:00
강동윤 (Donny)
808547f592 chore: Publish crates 2023-11-04 06:42:43 +09:00
Donny/강동윤
93bb69d14e
chore: Publish v1.3.96 with swc_core v0.86.29 (#8216) 2023-11-04 06:41:56 +09:00
SWC Bot
f2c1da891b chore: Publish 1.3.96-nightly-20231103.1 2023-11-03 00:07:43 +00:00
SWC Bot
aefa70159a chore: Publish 1.3.96-nightly-20231102.1 2023-11-02 00:07:27 +00:00
SWC Bot
5243cdb035 chore: Publish 1.3.96-nightly-20231101.1 2023-11-01 00:07:05 +00:00
SWC Bot
2503e720cc chore: Publish 1.3.96-nightly-20231031.1 2023-10-31 00:06:54 +00:00
SWC Bot
769bc5b725 chore: Publish 1.3.96-nightly-20231030.1 2023-10-30 00:06:53 +00:00
SWC Bot
5ba6150088 chore: Publish 1.3.96-nightly-20231029.1 2023-10-29 00:07:44 +00:00
강동윤 (Donny)
b74ef5a807 chore: Publish crates 2023-10-27 22:23:14 -07:00
SWC Bot
257eefbbb1 chore: Publish 1.3.96-nightly-20231028.1 2023-10-28 00:07:03 +00:00
SWC Bot
cb1fa02b99 chore: Publish 1.3.96-nightly-20231026.1 2023-10-26 00:06:58 +00:00
SWC Bot
1e70ccc224 chore: Publish 1.3.96-nightly-20231025.1 2023-10-25 00:07:01 +00:00
강동윤 (Donny)
dc21f79176 chore: Publish crates 2023-10-24 04:32:08 -07:00
Donny/강동윤
fb96b154bd
chore: Publish v1.3.95 with swc_core v0.86.16 (#8176) 2023-10-24 04:29:53 -07:00
SWC Bot
ed9bfa9faf chore: Publish 1.3.95-nightly-20231024.2 2023-10-24 00:22:32 +00:00
SWC Bot
b070885e37 chore: Publish 1.3.95-nightly-20231024.1 2023-10-24 00:07:12 +00:00
SWC Bot
7932111fb9 chore: Publish 1.3.95-nightly-20231023.1 2023-10-23 00:06:49 +00:00
SWC Bot
c9a4b563cd chore: Publish 1.3.95-nightly-20231022.1 2023-10-22 00:07:22 +00:00
강동윤 (Donny)
5c8a14bd69 chore: Publish crates 2023-10-21 04:37:40 -07:00
SWC Bot
f5b10dac1a chore: Publish 1.3.94-nightly-20231021.1 2023-10-21 00:07:40 +00:00
SWC Bot
10e523d667 chore: Publish 1.3.94-nightly-20231020.2 2023-10-20 12:49:10 +00:00
SWC Bot
401219451f chore: Publish 1.3.94-nightly-20231020.1 2023-10-20 00:07:27 +00:00
SWC Bot
5dacaa174b chore: Publish 1.3.94-nightly-20231019.1 2023-10-19 00:07:16 +00:00
SWC Bot
748a7feae3 chore: Publish 1.3.94-nightly-20231018.1 2023-10-18 00:07:02 +00:00
SWC Bot
075756587b chore: Publish 1.3.94-nightly-20231017.1 2023-10-17 00:07:16 +00:00
SWC Bot
7fe9c76c37 chore: Publish 1.3.94-nightly-20231016.1 2023-10-16 00:07:24 +00:00
SWC Bot
ad3006ed1a chore: Publish 1.3.94-nightly-20231015.1 2023-10-15 00:07:17 +00:00
SWC Bot
1c67df55f5 chore: Publish 1.3.94-nightly-20231014.1 2023-10-14 00:06:43 +00:00
강동윤 (Donny)
787a465d8d chore: Publish crates 2023-10-13 12:28:41 +09:00
Donny/강동윤
06b733ddc1
chore: Publish v1.3.93 with swc_core v0.85.7 (#8112) 2023-10-13 12:26:21 +09:00
SWC Bot
def2bb1efc chore: Publish 1.3.93-nightly-20231013.1 2023-10-13 00:07:16 +00:00
SWC Bot
ee21b4e8e5 chore: Publish 1.3.93-nightly-20231012.2 2023-10-12 05:23:00 +00:00
SWC Bot
d3c548843b chore: Publish 1.3.93-nightly-20231012.1 2023-10-12 01:15:58 +00:00
SWC Bot
4cb383d339 chore: Publish 1.3.93-nightly-20231012.1 2023-10-12 01:12:25 +00:00
SWC Bot
70b65fb91f chore: Publish 1.3.93-nightly-20231012.1 2023-10-12 00:52:45 +00:00
SWC Bot
c4a1a06580 chore: Publish 1.3.93-nightly.20231011.1 2023-10-11 23:23:02 +00:00
Donny/강동윤
7073e83f65
fix(ci): Fix CI (#8079) 2023-10-08 02:03:50 +00:00
Donny/강동윤
84cec8766d
refactor(atoms): Remove usage of js_word! to drop string-cache (#7976)
**Description:**

This PR is to prepare removal of `string-cache`. Actually, this PR does not remove it. Instead, this PR only removes direct usages of `js_word!`s, especially in patterns.



**Related issue:**

 - #4946.
2023-10-08 00:39:51 +00:00
강동윤 (Donny)
a35fed015f chore: Publish crates 2023-10-05 16:29:43 +09:00
Donny/강동윤
28af875811
chore: Publish v1.3.92 with swc_core v0.83.38 (#8067) 2023-10-05 07:27:16 +00:00
Donny/강동윤
f717cf21cc
refactor(cli): Make CLI testable/managable with swc-bump (#8045)
**Description:**

It was hard to maintain CLI because actual logic was in `./bindings`.
2023-10-02 15:46:14 +00:00
Donny/강동윤
f2bc6a3fcc
chore(ci): Prepare multi-package repository (#8043) 2023-10-02 04:41:21 +00:00
강동윤 (Donny)
13161c45cd chore: Publish crates 2023-10-01 20:52:47 +09:00
Donny/강동윤
020027d5d9
chore: Publish v1.3.91 with swc_core v0.83.34 (#8040) 2023-10-01 11:51:50 +00:00
Donny/강동윤
8214b9ed4e
chore(ci): Prepare @swc/minifier (#8027) 2023-09-29 19:51:00 +00:00
Donny/강동윤
a13f5cbe03
refactor(es): Extract parser/codegen code for swc::Compiler (#8030) 2023-09-29 14:48:31 +00:00
Donny/강동윤
64d8f4b59f
feat(bindings): Create a minifier-only package (#7993) 2023-09-29 08:47:59 +00:00
강동윤 (Donny)
8231f874e7 chore: Publish crates 2023-09-27 10:13:08 +09:00
Donny/강동윤
724b83b05d
chore: Publish v1.3.90 with swc_core v0.83.26 (#8013) 2023-09-27 01:12:23 +00:00
강동윤 (Donny)
243d68d8dc chore: Publish crates 2023-09-25 22:24:43 +09:00
Donny/강동윤
98d283cb34
chore: Publish v1.3.89 with swc_core v0.83.22 (#8002) 2023-09-25 13:24:09 +00:00
magic-akari
9c9a538f23
refactor(es/typescript): Reimplement TypeScript pass (#7202)
**Description:**

## Bugfixes
- Exported `let`/`var` declarations in TypeScript namespaces should be mutable.
- Fix missing declaration of complex exported patterns in TypeScript namespaces.
- Preserve concrete TS namespaces.

## New Features
- Introducing [Verbatim Module Syntax](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax).
- Enum value will now be inlined whenever possible within a single module, optimizing runtime performance.
- Constant enums will be automatically eliminated when feasible, This can reduce bundle size.
- Added support for cross-referencing enum values.

## Deprecated
`TsEnumConfig` is deprecated
  - The `treat_const_enum_as_enum` transform option is deprecated.
  - The `ts_enum_is_readonly` assumption option is deprecated.

**BREAKING CHANGE:**

TypeScript Config is changed.


**Related issue:**

 - Closes #5197
 - Closes #5259 
 - Closes #7177
 - Closes #7453
 - Closes #7676 
 - Closes #7681
 - Closes #7791 
 - Closes #7961
2023-09-25 01:41:00 +00:00
강동윤 (Donny)
489797f1cf chore: Publish crates 2023-09-24 13:59:06 +09:00
Donny/강동윤
dff9e15b72
chore: Publish v1.3.88 with swc_core v0.83.19 (#7997) 2023-09-24 04:57:46 +00:00
강동윤 (Donny)
276be28ae1 chore: Publish crates 2023-09-22 11:15:56 +09:00
Donny/강동윤
866f34d278
chore: Publish v1.3.87 with swc_core v0.83.18 (#7986) 2023-09-22 02:10:47 +00:00
강동윤 (Donny)
2dac39304d chore: Publish crates 2023-09-19 07:09:26 +09:00
강동윤 (Donny)
76b7a747ad chore: Publish crates 2023-09-19 07:05:57 +09:00
강동윤 (Donny)
199a13847a chore: Publish crates 2023-09-19 06:38:30 +09:00
Donny/강동윤
6b1216e9e8
chore: Publish v1.3.86 with swc_core v0.83.16 (#7970) 2023-09-18 21:37:45 +00:00
강동윤 (Donny)
67e30819bd chore: Publish crates 2023-09-15 15:07:28 +09: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/강동윤
26b01bd01b chore: Publish crates 2023-09-11 23:26:44 +09:00
Donny/강동윤
c8ac13e60c
chore: Publish v1.3.84 with swc_core v0.83.5 (#7937) 2023-09-11 23:21:02 +09:00
Donny/강동윤
8bb2925e23 chore: Publish crates 2023-09-07 10:23:00 +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/강동윤
fd1c0cfdae chore: Publish crates 2023-09-01 11:36:14 +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/강동윤
15d3900f60 chore: Publish crates 2023-08-30 21:08:25 +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/강동윤
7911973020 chore: Publish crates 2023-08-25 22:55:28 +09:00
Donny/강동윤
74a5dc62a7
chore: Publish v1.3.80 with swc_core v0.81.5 (#7867) 2023-08-25 22:54:38 +09:00
Donny/강동윤
c18051fb0b chore: Publish crates 2023-08-25 15:21:54 +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/강동윤
6f2773a744 chore: Publish crates 2023-08-16 11:26:52 +09:00
Donny/강동윤
677e25026d
chore: Publish v1.3.77 with swc_core v0.79.59 (#7817) 2023-08-16 11:23:54 +09:00
Donny/강동윤
7fac0270c4 chore: Publish crates 2023-08-10 17:13:03 +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/강동윤
54f38cb47e chore: Publish crates 2023-08-10 12:05:44 +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/강동윤
000f817bcc chore: Publish crates 2023-08-08 14:05:39 +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/강동윤
5afdd2ed54 chore: Publish crates 2023-08-03 07:19:43 +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/강동윤
6d7e13ae26 chore: Publish crates 2023-08-01 12:41:32 +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/강동윤
ffe99a9665 chore: Publish crates 2023-07-29 04:36:29 +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/강동윤
42198679aa chore: Publish crates 2023-07-25 12:53:29 +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/강동윤
6c181256f3 chore: Publish crates 2023-07-18 13:22:16 +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/강동윤
d9209ec3d7 chore: Publish crates 2023-07-13 11:21:28 +09:00
Donny/강동윤
480c97f9e5
chore: Publish v1.3.69 with swc_core v0.79.15 (#7654) 2023-07-13 11:18:42 +09:00
Donny/강동윤
b34f1adbcc
build(cargo): Update rustc to 2023-07-03 (#7623) 2023-07-05 03:50:43 +00:00
Donny/강동윤
40ee26b2c9 chore: Publish crates 2023-07-05 10:08:41 +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/강동윤
00eb41847b chore: Publish crates 2023-06-29 11:20:28 +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/강동윤
5bee46263c chore: Publish crates 2023-06-20 18:39:53 +09:00
Donny/강동윤
1f65d50610
chore: Publish v1.3.66 with swc_core v0.78.15 (#7554) 2023-06-20 18:38:32 +09:00
Donny/강동윤
6e5d8b3cf1
feat(es/codegen): Support preamble (#7551)
**Related issue:**

 - Closes #7475.
2023-06-20 14:35:46 +09:00
Donny/강동윤
0129ad080b chore: Publish v1.3.65 with swc_core v0.78.8 2023-06-19 12:37:22 +09:00
Donny/강동윤
d1430c00b4 chore: Publish crates 2023-06-19 12:36:16 +09:00
Donny/강동윤
fe1a545e65 chore: Publish crates 2023-06-19 12:26:07 +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/강동윤
37c7296913 chore: Publish crates 2023-06-14 14:08:15 +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/강동윤
983d2e8eb4 chore: Publish v1.3.63 2023-06-13 11:06:58 +09:00
Donny/강동윤
e773efc3a8 chore: Publish crates 2023-06-12 21:33:11 +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/강동윤
ddb5635ebf chore: Publish crates 2023-06-03 18:23:17 +09:00
Donny/강동윤
0e37c18c9c
chore(ci): Fix publish action (#7485) 2023-06-03 18:21:24 +09:00
Donny/강동윤
decebadff1 chore: Publish crates 2023-06-03 00:44:10 +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/강동윤
ad8e6a006c chore: Publish crates 2023-05-30 14:41:39 +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/강동윤
c856808f61 chore: Publish crates 2023-05-25 11:25:07 +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/강동윤
0ac3aebe3d chore: Publish crates 2023-05-19 14:25:31 +09:00
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/강동윤
4a53951fe3 chore: Publish crates 2023-05-15 13:18:22 +09:00
Donny/강동윤
a5e68243e2
chore: Publish v1.3.58 with swc_core v0.76.7 (#7393) 2023-05-15 13:17:25 +09:00
Donny/강동윤
8e6fea8519 chore: Publish crates 2023-05-15 12:42:54 +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/강동윤
1ecc4385b6 chore: Publish crates 2023-04-25 19:25:16 +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/강동윤
897099b970 chore: Publish crates 2023-04-25 09:30:08 +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/강동윤
2c441f5c8d chore: Publish crates 2023-04-21 15:30:05 +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/강동윤
e7f7b01f59
fix(es): Fix a crash related to source map (#7307)
**Related issue:**

 - Reverts #7229.
 - Closes #7301.
2023-04-21 03:58:24 +00:00
Donny/강동윤
07feee98ac
chore: Publish v1.3.52 with swc_core v0.75.27 (#7297) 2023-04-19 23:27:00 +09:00
Donny/강동윤
e757e65393 chore: Publish crates 2023-04-16 13:23:28 +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/강동윤
5629e6b529 chore: Publish crates 2023-04-13 20:23:18 +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/강동윤
a24f3554ce chore: Publish crates 2023-04-10 14:04:04 +09:00
Donny/강동윤
1cc60084a2 chore: Publish v1.3.49 with swc_core v0.75.1 2023-04-10 13:59:00 +09:00
Donny/강동윤
bc676e9f0f chore: Publish crates 2023-04-10 13:14:30 +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/강동윤
e116fedd22 chore: Publish crates 2023-04-10 11:55:00 +09:00