magic-akari
31fe3b6be1
chore(es/typescript): Improve enum comments and sourcemap ( #9652 )
2024-10-17 10:50:53 +09:00
magic-akari
abffc07356
fix(es/parser): Correct >
and <
when exit type context ( #9653 )
...
**Related issue:**
- Close https://github.com/swc-project/swc/issues/9471
2024-10-17 10:49:46 +09:00
강동윤 (Donny)
56c4416726
chore: Publish crates with swc_core
v1.0.1
2024-10-15 23:13:49 +09:00
Donny/강동윤
8a19201824
fix(es): Run esnext transforms on esnext target ( #9644 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9640
- Closes https://github.com/swc-project/swc/issues/9641
2024-10-15 23:12:50 +09:00
Levi
88a2186ba4
feat(es/minifier): Support unary negate in cast_to_number
( #9642 )
...
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
**Description:**
Adds support for `-` in `cast_to_number`. Before it only worked if `arg` is `Infinity`. Now it uses a recursive call on `arg` so it works for expressions like `-5`, `-[]` etc.
This change is important because negative number literals (e.g. `-5`) are a `UnaryExpr` with `op`=`-` & `arg`=`5`, unless you apply `expr_simplifier` pass or something else that uses it.
2024-10-15 08:00:39 +09:00
CPunisher
4436621564
fix(es/minifier): Check type of assignment target before merging assignments ( #9617 )
...
**Description:**
Collect types of vars, maybe other optimization could benefit from this:
`merged_var_type: Option<Value<Type>>`
When the variable is reassigned, the we merge the types with some simple
rules:
`None` + `None` = `None`
`None` + `Some(ty)` = `Some(ty)`
`Some(ty1)` + `Some(ty2)` if `ty1` == `ty2` = `Some(ty1)`
Otherwise = Unknown
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/8718
2024-10-14 09:55:53 +09:00
강동윤 (Donny)
30f9a70d57
chore: Publish crates with swc_core
v1.0.0
CI / Cargo fmt (push) Has been cancelled
CI / Cargo clippy (push) Has been cancelled
CI / Check license of dependencies (push) Has been cancelled
CI / Check (macos-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / Test wasm (binding_core_wasm) (push) Has been cancelled
CI / Test wasm (binding_minifier_wasm) (push) Has been cancelled
CI / Test wasm (binding_typescript_wasm) (push) Has been cancelled
CI / List crates (push) Has been cancelled
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Has been cancelled
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Has been cancelled
CI / Test with @swc/cli (push) Has been cancelled
CI / Miri (better_scoped_tls) (push) Has been cancelled
CI / Miri (string_enum) (push) Has been cancelled
CI / Miri (swc) (push) Has been cancelled
CI / Miri (swc_bundler) (push) Has been cancelled
CI / Miri (swc_ecma_codegen) (push) Has been cancelled
CI / Miri (swc_ecma_minifier) (push) Has been cancelled
Benchmark / Bench everything (push) Has been cancelled
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Has been cancelled
CI / Done (push) Has been cancelled
2024-10-12 16:20:07 +09:00
Donny/강동윤
7970d4186a
chore: Use major version for breaking changes ( #9637 )
2024-10-12 16:16:46 +09:00
강동윤 (Donny)
46f0116d4a
chore: Publish crates with swc_core
v0.109.2
2024-10-12 16:08:03 +09:00
Austaras
6f52949210
fix(es/minifier): Only merge last if return ( #9633 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9628
2024-10-12 16:07:08 +09:00
magic-akari
f74c1f3e5a
fix(es/lints): Correct the false positive error of TS2309 ( #9635 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9632
2024-10-12 16:05:49 +09:00
Austaras
f2be26efe0
fix(es/codegen): Emit space after div if rhs has leading comment ( #9631 )
...
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9630
2024-10-11 15:48:14 +09:00
강동윤 (Donny)
69f90af682
chore: Publish crates with swc_core
v0.109.1
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
2024-10-10 10:24:43 +09:00
Cong-Cong Pan
9c90a73369
fix(es/codegen): Fix source map so it works with Sentry ( #9627 )
...
**Description:**
Fix https://github.com/web-infra-dev/rspack/issues/7914
The following mapping is redundant and causes an error on Sentry.
![image](https://github.com/user-attachments/assets/0d3067d9-6adb-4434-aa84-6ed73a71fdad )
```
Your source map refers to generated column 79 on line 1, but the source only contains 78 column(s) on that line.
```
2024-10-10 10:24:29 +09:00
SWC Bot
ecf5f84685
chore: Publish crates with swc_core
v0.109.0
2024-10-08 08:54:41 +00:00
Donny/강동윤
6a3b0fc166
build: Update rustc
to nightly-2024-10-07
( #9624 )
2024-10-08 15:01:14 +09:00
강동윤 (Donny)
4b0d043c9b
chore: Publish crates with swc_core
v0.109.0
2024-10-08 14:02:03 +09:00
Levi
bfea322351
feat(es/testing): Parse test code as a Program
instead of a Module
( #9623 )
...
**Description:**
This PR addresses the issue described in https://github.com/swc-project/swc/issues/8713
**BREAKING CHANGE:**
Will break unit tests that use `fold_module`/`visit_module`/`visit_mut_module` if the visitor is intended to work for both modules and scripts instead of using `fold_program`/`visit_program`/`visit_mut_program`.
When creating visitors, you should use `fold_program`/`visit_program`/`visit_mut_program` if you simply want to visit the top-level node.
When creating tests, the input source code will be parsed using `parse_program` by default. If you need to parse it as a `Module`, you can use `module: Some(true)` in `FixtureTestConfig` (or with `test!(module, ..)`), which will parse it as a `Program::Module`, or `Some(false)` for `Program::Script`. `None` will use `parse_program` (`parse_program` will auto-detect the underlying type).
2024-10-08 13:58:58 +09:00
Donny/강동윤
9a11d34ee5
feat(es/preset-env): Update preset-env data ( #9573 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9544
2024-10-08 13:44:59 +09:00
강동윤 (Donny)
96a0c46a66
chore: Publish crates with swc_core
v0.108.0
2024-10-08 12:28:01 +09:00
Donny/강동윤
85f5e5b955
fix(es/testing): Revert #9264 ( #9621 )
...
Reverts swc-project/swc#9264
2024-10-08 12:27:03 +09:00
강동윤 (Donny)
128acffbd3
chore: Publish crates with swc_core
v0.107.0
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
2024-10-08 08:10:53 +09:00
Levi
166b8581c2
feat(es/testing): Parse test code as a Program
instead of a Module
( #9264 )
...
**Description:**
This PR addresses the issue described in #8713
**BREAKING CHANGE:**
This will break existing unit tests that use `fold_module`/`visit_module`/`visit_mut_module` if the visitor is intended to work for both modules and scripts, instead of using `fold_program`/`visit_program`/`visit_mut_program`. This will also break existing unit tests if they're testing with input code that gets parsed as a script in `parse_program` if the visitor expects a module (they will need to update their `test!` calls to add `module` as the first argument, or use a function like `apply_module_transform`)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/8713
2024-10-08 08:06:20 +09:00
canalun
8263da1766
fix(es/minifier): Compress consecutive return statements properly ( #9620 )
...
**Description:**
Compress consecutive return statements properly.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9619
2024-10-08 07:58:16 +09:00
magic-akari
2480bb00fc
refactor(es/typescript): Simplifying enum and namespace transforms ( #9558 )
...
CI / Cargo fmt (push) Has been cancelled
CI / Cargo clippy (push) Has been cancelled
CI / Check license of dependencies (push) Has been cancelled
CI / Check (macos-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / Test wasm (binding_core_wasm) (push) Has been cancelled
CI / Test wasm (binding_minifier_wasm) (push) Has been cancelled
CI / Test wasm (binding_typescript_wasm) (push) Has been cancelled
CI / List crates (push) Has been cancelled
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Has been cancelled
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Has been cancelled
CI / Test with @swc/cli (push) Has been cancelled
CI / Miri (better_scoped_tls) (push) Has been cancelled
CI / Miri (string_enum) (push) Has been cancelled
CI / Miri (swc) (push) Has been cancelled
CI / Miri (swc_bundler) (push) Has been cancelled
CI / Miri (swc_ecma_codegen) (push) Has been cancelled
CI / Miri (swc_ecma_minifier) (push) Has been cancelled
Benchmark / Bench everything (push) Has been cancelled
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Has been cancelled
CI / Done (push) Has been cancelled
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/4453
- Closes https://github.com/swc-project/swc/issues/9385
2024-10-04 18:46:26 +09:00
Donny/강동윤
ec0a62cbc5
perf(es): Avoid needless string comparisons ( #9613 )
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
2024-10-04 14:51:34 +09:00
Donny/강동윤
e2e9a9ccfc
chore(atoms): Update hstr
( #9612 )
2024-10-04 04:47:10 +00:00
강동윤 (Donny)
253d7f472a
chore: Publish crates with swc_core
v0.106.4
2024-10-02 15:25:00 +09:00
Donny/강동윤
4ee45ac1fd
fix(es/module): Allow TypeScript nodes for Rewriter
( #9606 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9592
2024-10-02 15:24:19 +09:00
magic-akari
866af6c947
perf(es/typescript): Reduce unnecessary visits ( #9605 )
2024-10-02 15:23:58 +09:00
Donny/강동윤
2f06fc559c
perf(es/codegen): Reduce usage of tracing::instrument
( #9604 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9603
2024-10-02 15:10:03 +09:00
강동윤 (Donny)
d30b5ed695
chore: Publish crates with swc_core
v0.106.3
2024-10-01 17:40:52 +09:00
Donny/강동윤
37004e735c
chore: Bump crates ( #9599 )
2024-10-01 17:40:23 +09:00
강동윤 (Donny)
f4c6fd8e4e
chore: Publish crates with swc_core
v0.106.2
2024-10-01 17:31:43 +09:00
Donny/강동윤
1659c212b2
fix(es/minifier): Ignore using declarations ( #9598 )
2024-10-01 08:09:39 +00:00
Donny/강동윤
f2b07665bf
feat(es): Add options to disable all esnext
transforms and lints ( #9597 )
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
2024-10-01 14:00:59 +09:00
강동윤 (Donny)
a0c0ceecfe
chore: Publish crates with swc_core
v0.106.1
2024-10-01 11:48:41 +09:00
CPunisher
3d9d641f8b
fix(es/codegen): Emit .d.ts when using --out-file ( #9582 )
...
**Related issue:**
Closes https://github.com/swc-project/swc/issues/9512
2024-10-01 11:43:50 +09:00
CPunisher
77900d808e
fix(es/parser): Fix failure of TS instantiation followed by satisfies ( #9583 )
...
**Related issue:**
it's already ok when followed by `as`.
Closes https://github.com/swc-project/swc/issues/8627
2024-10-01 11:41:58 +09:00
Victor Freitas
74e3d0466a
fix(es/module): Fix jsc.paths
using absolute paths with dots in a filename for an alias ( #9595 )
...
**Description:**
- Resolves `jsc.paths` using an absolute filename with dots
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9591
2024-10-01 11:12:26 +09:00
강동윤 (Donny)
0ca3f2b906
chore: Publish crates with swc_core
v0.106.0
2024-09-24 18:19:59 +09:00
magic-akari
14cfd70ee0
fix(es/compat): Skip getter
and setter
as FlowHelper function
do ( #9580 )
...
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
**Related issue:**
- Closes : #9579
- https://github.com/swc-project/swc/issues/9161#issuecomment-2211641985
2024-09-24 03:58:24 +09:00
CPunisher
fc0ba2a084
fix(es/module): Rewrite import specifier in type declaration ( #9577 )
...
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
**Description:**
Use `Arc<dyn ImportResolver>` to reduce cost
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9548
2024-09-23 11:32:52 +09:00
CPunisher
cf74382ba0
fix(es/codegen): Fix wrong sourcemap when there are new lines in tpl ( #9578 )
...
**Description:**
1. split quasi by '\n'
2. add the mapping between the original string and the generated string one by one.
<img width="873" alt="image"
src="https://github.com/user-attachments/assets/8a03da7f-2d22-4dd5-9bac-220418b10911 ">
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9567
2024-09-23 11:02:24 +09:00
jinrui
185d6f55b3
fix(ast): Add archive(check_bytes)
to all relevant AST types ( #9574 )
...
CI / Cargo fmt (push) Has been cancelled
CI / Cargo clippy (push) Has been cancelled
CI / Check license of dependencies (push) Has been cancelled
CI / Check (macos-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / Test wasm (binding_core_wasm) (push) Has been cancelled
CI / Test wasm (binding_minifier_wasm) (push) Has been cancelled
CI / Test wasm (binding_typescript_wasm) (push) Has been cancelled
CI / List crates (push) Has been cancelled
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Has been cancelled
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Has been cancelled
CI / Test with @swc/cli (push) Has been cancelled
CI / Miri (better_scoped_tls) (push) Has been cancelled
CI / Miri (string_enum) (push) Has been cancelled
CI / Miri (swc) (push) Has been cancelled
CI / Miri (swc_bundler) (push) Has been cancelled
CI / Miri (swc_ecma_codegen) (push) Has been cancelled
CI / Miri (swc_ecma_minifier) (push) Has been cancelled
Benchmark / Bench everything (push) Has been cancelled
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Has been cancelled
CI / Done (push) Has been cancelled
**Description:**
1. all struct that support rkyv add `archive(check_bytes)`
2. all recursive struct that support rkyv add check_bytes bound
this PR will fix the error reported in https://github.com/swc-project/swc/pull/9562
2024-09-20 16:46:05 +09:00
Donny/강동윤
6d15d9c2eb
fix(es/isolated-dts): Preserve comments ( #9572 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9550
2024-09-20 05:44:20 +00:00
Donny/강동윤
b7e055e2ab
chore: Stabilize some crates ( #9570 )
2024-09-19 14:19:06 +09:00
강동윤 (Donny)
f637f83eb8
chore: Publish crates with swc_core
v0.105.0
2024-09-19 13:12:01 +09:00
jinrui
c36871a848
fix(plugin): Don't panic when ast byte not match ( #9562 )
...
**Description:**
1. Disable rkyv strict feature, it is useless in swc.
2. Archived_root will panic if the wasm plugin ast binary not match core ast, so use safe api to avoid panic when mismatch. Implementation reference: https://github.com/rkyv/rkyv/blob/v0.7.43/examples/json/src/main.rs#L57-L76
2024-09-19 13:01:11 +09:00
강동윤 (Donny)
dbfcbf182a
chore: Publish crates with swc_core
v0.104.3
2024-09-19 12:57:38 +09:00