Donny/강동윤
772f023fd2
fix(es/plugin): Revert #9696 ( #9717 )
2024-11-06 15:26:35 +09:00
CPunisher
6194044b42
feat(typescript): Port deno isolatedDeclarations
updates ( #9712 )
...
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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
In
https://github.com/denoland/deno_graph/commits/main/src/fast_check/transform_dts.rs :
From
7f38d56de3
to
258186c429
PR list:
- [x] ~https://github.com/denoland/deno_graph/pull/508~ . I don't port
this pr because swc doesn't resolve `public_ranges`. However, I refer to
fac5042afa/crates/oxc_isolated_declarations/src/lib.rs (L421C24-L421C33)
to fix the bugs.
- [x] https://github.com/denoland/deno_graph/pull/521
- [x] https://github.com/denoland/deno_graph/pull/522
- [x] https://github.com/denoland/deno_graph/pull/540
I will port the tests if I have spare time.
2024-11-06 11:15:27 +09:00
CPunisher
b49317a403
fix(es/minifier): Avoid generating reserved mangling names ( #9710 )
...
**Description:**
Copy user defined `reserved` to `preserved_symbols`, so the generated name will be skipped by
56e83e2392/crates/swc_ecma_transforms_base/src/rename/analyzer/scope.rs (L296)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9650
2024-11-06 11:14:33 +09:00
jochong
499c803413
chore: Typo ( #9709 )
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
Benchmark / Bench everything (push) Has been cancelled
Publish crates (auto) / Publish cargo crates (push) Has been cancelled
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Has been cancelled
CI / Done (push) Has been cancelled
2024-11-05 00:05:03 +09:00
SWC Bot
56e83e2392
chore: Update changelog
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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
2024-11-04 02:42:21 +00:00
SWC Bot
4d811e4c29
chore: Publish 1.8.0
with swc_core
v4.0.3
2024-11-04 02:42:20 +00:00
SWC Bot
801e044061
chore: Publish 1.8.0-nightly-20241104.1
with swc_core
v4.0.3
2024-11-04 01:49:28 +00:00
강동윤 (Donny)
d1e182a7bf
chore: Publish crates with swc_core
v4.0.3
2024-11-04 10:41:37 +09:00
magic-akari
c135f718ed
fix(es/typescript): Handle ASI hazards in fast type strip ( #9707 )
...
**Related issue:**
- Closes : #9681
2024-11-04 10:41:22 +09:00
강동윤 (Donny)
1ccbbf0a93
chore: Publish crates with swc_core
v4.0.2
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
Benchmark / Bench everything (push) Has been cancelled
Publish crates (auto) / Publish cargo crates (push) Has been cancelled
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Has been cancelled
CI / Done (push) Has been cancelled
2024-11-02 22:54:02 +09:00
Donny/강동윤
91a9106624
perf(es/renamer): Modify parallel renaming threshold ( #9706 )
...
**Related issue:**
- #9601
2024-11-02 22:52:16 +09:00
강동윤 (Donny)
dd25ecface
chore: Publish crates with swc_core
v4.0.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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
2024-11-02 10:11:26 +09:00
magic-akari
c5ed19c710
fix(es/typescript): Handle multiline type parameters in async arrow functions ( #9704 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9698
2024-11-02 10:10:57 +09:00
강동윤 (Donny)
b48bdee4df
chore: Publish crates with swc_core
v4.0.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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
2024-11-01 16:35:29 +09:00
Donny/강동윤
97298c4e36
feat(es/plugin): Introduce manual-tokio-runtmie
to swc
crate ( #9701 )
...
**Description:**
This can cause a problem for Wasm plugin runtimes.
2024-11-01 16:34:33 +09:00
Donny/강동윤
1c3eaf684a
perf(common): Make character analysis lazy ( #9696 )
...
**Related issue:**
- https://github.com/swc-project/swc/issues/9601
2024-11-01 15:44:25 +09:00
Donny/강동윤
5a6f0e644e
feat(es): Add es2023
and es2024
to EsVersion
( #9700 )
2024-11-01 15:34:08 +09:00
SWC Bot
cbfd3ddc04
chore: Update changelog
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
Benchmark / Bench everything (push) Has been cancelled
Publish crates (auto) / Publish cargo crates (push) Has been cancelled
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Has been cancelled
CI / Done (push) Has been cancelled
2024-10-31 04:00:05 +00:00
SWC Bot
f770a54cca
chore: Publish 1.7.42
with swc_core
v3.0.2
2024-10-31 04:00:04 +00:00
SWC Bot
08660d8da9
chore: Publish 1.7.42-nightly-20241031.1
with swc_core
v3.0.2
2024-10-31 03:07:33 +00:00
강동윤 (Donny)
cc1ebe6d78
chore: Disable tldraw
of swc-ecosystem-ci
2024-10-31 12:00:24 +09:00
SWC Bot
9131b4dc6a
chore: Publish 1.7.41-nightly-20241031.1
with swc_core
v3.0.2
2024-10-31 01:46:51 +00:00
강동윤 (Donny)
11deca0f41
chore: Publish crates with swc_core
v3.0.2
2024-10-31 10:32:48 +09:00
magic-akari
bcf05de2eb
fix(es/parser): Parse await using()
call ( #9693 )
...
**Related issue:**
- Closes #9688
2024-10-31 10:32:27 +09:00
magic-akari
6ed1715b93
fix(es/resolver): Skip resolving lowercase JSXIdentifiers
( #9686 )
...
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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9685
2024-10-30 18:37:30 +09:00
Donny/강동윤
4b4dcfa4d8
fix(es/types): Add jsc.experimental.keepImportAssertions
to types ( #9691 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9687
2024-10-30 17:57:16 +09:00
Donny/강동윤
4d887d062b
perf(es/lints): Disable lints by default ( #9689 )
...
**Description:**
This is a footgun for users of `swc` crate. So I changed the default value of `jsc.experimental.disableAllLints` to `true`.
**Related issue:**
- https://github.com/swc-project/swc/issues/9601
2024-10-30 05:19:52 +00:00
강동윤 (Donny)
f1470cf722
chore: Publish crates with swc_core
v3.0.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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
2024-10-30 11:10:45 +09:00
renovate[bot]
3597b0f53d
chore(deps): update cargo (patch) ( #9607 )
...
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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [futures](https://rust-lang.github.io/futures-rs )
([source](https://redirect.github.com/rust-lang/futures-rs )) |
workspace.dependencies | patch | `0.3.30` -> `0.3.31` |
| [js-sys](https://rustwasm.github.io/wasm-bindgen/ )
([source](https://redirect.github.com/rustwasm/wasm-bindgen/tree/HEAD/crates/js-sys ))
| workspace.dependencies | patch | `0.3.70` -> `0.3.72` |
| [pathdiff](https://redirect.github.com/Manishearth/pathdiff ) |
workspace.dependencies | patch | `0.2.1` -> `0.2.2` |
| [triomphe](https://redirect.github.com/Manishearth/triomphe ) |
workspace.dependencies | patch | `0.1.13` -> `0.1.14` |
| [wasm-bindgen](https://rustwasm.github.io/ )
([source](https://redirect.github.com/rustwasm/wasm-bindgen )) |
dependencies | patch | `0.2.93` -> `0.2.95` |
| [wasm-bindgen](https://rustwasm.github.io/ )
([source](https://redirect.github.com/rustwasm/wasm-bindgen )) |
workspace.dependencies | patch | `0.2.93` -> `0.2.95` |
| [wasm-bindgen-futures](https://rustwasm.github.io/wasm-bindgen/ )
([source](https://redirect.github.com/rustwasm/wasm-bindgen/tree/HEAD/crates/futures ))
| workspace.dependencies | patch | `0.4.43` -> `0.4.45` |
---
### Release Notes
<details>
<summary>rust-lang/futures-rs (futures)</summary>
###
[`v0.3.31`](https://redirect.github.com/rust-lang/futures-rs/blob/HEAD/CHANGELOG.md#0331---2024-10-05 )
[Compare
Source](https://redirect.github.com/rust-lang/futures-rs/compare/0.3.30...0.3.31 )
- Fix use after free of task in `FuturesUnordered` when dropped future
panics
([#​2886](https://redirect.github.com/rust-lang/futures-rs/issues/2886 ))
- Fix soundness bug in `task::waker_ref`
([#​2830](https://redirect.github.com/rust-lang/futures-rs/issues/2830 ))
This is a breaking change but allowed because it is soundness bug fix.
- Fix bugs in `AsyncBufRead::read_line` and `AsyncBufReadExt::lines`
([#​2884](https://redirect.github.com/rust-lang/futures-rs/issues/2884 ))
- Fix parsing issue in `select!`/`select_biased!`
([#​2832](https://redirect.github.com/rust-lang/futures-rs/issues/2832 ))
This is technically a breaking change as it will now reject a very odd
undocumented syntax that was previously accidentally accepted.
- Work around issue due to upstream `Waker::will_wake` change
([#​2865](https://redirect.github.com/rust-lang/futures-rs/issues/2865 ))
- Add `stream::Iter::{get_ref,get_mut,into_inner}`
([#​2875](https://redirect.github.com/rust-lang/futures-rs/issues/2875 ))
- Add `future::AlwaysReady`
([#​2825](https://redirect.github.com/rust-lang/futures-rs/issues/2825 ))
- Relax trait bound on non-constructor methods of
`io::{BufReader,BufWriter}`
([#​2848](https://redirect.github.com/rust-lang/futures-rs/issues/2848 ))
</details>
<details>
<summary>Manishearth/triomphe (triomphe)</summary>
###
[`v0.1.14`](https://redirect.github.com/Manishearth/triomphe/compare/v0.1.13...v0.1.14 )
[Compare
Source](https://redirect.github.com/Manishearth/triomphe/compare/v0.1.13...v0.1.14 )
</details>
<details>
<summary>rustwasm/wasm-bindgen (wasm-bindgen)</summary>
###
[`v0.2.95`](https://redirect.github.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0295 )
[Compare
Source](https://redirect.github.com/rustwasm/wasm-bindgen/compare/0.2.94...0.2.95 )
Released 2024-10-10
##### Added
- Added support for implicit discriminants in enums.
[#​4152](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4152 )
- Added support for `Self` in complex type expressions in methods.
[#​4155](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4155 )
##### Changed
- String enums are no longer generate TypeScript types.
[#​4174](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4174 )
##### Fixed
- Fixed generated setters from WebIDL interface attributes binding to
wrong JS method names.
[#​4170](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4170 )
- Fix string enums showing up in JS documentation and TypeScript
bindings without corresponding types.
[#​4175](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4175 )
***
###
[`v0.2.94`](https://redirect.github.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0294-YANKED )
[Compare
Source](https://redirect.github.com/rustwasm/wasm-bindgen/compare/0.2.93...0.2.94 )
Released 2024-10-09
##### Added
- Added support for the WebAssembly `Tail Call` proposal.
[#​4111](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4111 )
- Add bindings for
`RTCPeerConnection.setConfiguration(RTCConfiguration)` method.
[#​4105](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4105 )
- Add bindings to `RTCRtpTransceiverDirection.stopped`.
[#​4102](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4102 )
- Added experimental support for `Symbol.dispose` via
`WASM_BINDGEN_EXPERIMENTAL_SYMBOL_DISPOSE`.
[#​4118](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4118 )
- Added bindings for the draft [WebRTC Encoded
Transform](https://www.w3.org/TR/webrtc-encoded-transform ) spec.
[#​4125](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4125 )
- Added `Debug` implementation to `JsError`.
[#​4136](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4136 )
- Added support for `js_name` and `skip_typescript` attributes for
string enums.
[#​4147](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4147 )
- Added `unsupported` crate to `wasm_bindgen_test(unsupported = test)`
as a way of running tests on non-Wasm targets as well.
[#​4150](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4150 )
- Added additional bindings for methods taking buffer view types (e.g.
`&[u8]`) with corresponding JS types (e.g. `Uint8Array`).
[#​4156](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4156 )
- Added additional bindings for setters from WebIDL interface attributes
with applicaple parameter types of just `JsValue`.
[#​4156](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4156 )
##### Changed
- Implicitly enable reference type and multivalue transformations if the
module already makes use of the corresponding target features.
[#​4133](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4133 )
- Updated Gamepad API.
[#​4134](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4134 )
- Deprecated `Gamepad::display_id` and `GamepadHapticActuator::type_`.
[#​4134](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4134 )
- Removed `GamepadAxisMoveEvent`, `GamepadAxisMoveEventInit`,
`GamepadButtonEvent`, `GamepadButtonEventInit` and `GamepadServiceTest`,
which were seemingly never implemented by any JS environment.
[#​4134](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4134 )
- Changed `TextDecoder.decode()` `input` parameter type from `&mut [u8]`
to `&[u8]`.
[#​4141](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4141 )
- Updated the WebGPU API to the current draft as of 2024-10-07.
[#​4145](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4145 )
- Deprecated generated setters from WebIDL interface attribute taking
`JsValue` in favor of newer bindings with specific parameter types.
[#​4156](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4156 )
##### Fixed
- Fixed linked modules emitting snippet files when not using
`--split-linked-modules`.
[#​4066](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4066 )
- Fixed incorrect deprecation warning when passing no parameter into
`default()` (`init()`) or `initSync()`.
[#​4074](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4074 )
- Fixed many proc-macro generated `impl` blocks missing
`#[automatically_derived]`, affecting test coverage.
[#​4078](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4078 )
- Fixed negative `BigInt` values being incorrectly formatted with two
minus signs.
[#​4082](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4082 )
[#​4088](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4088 )
- Fixed emitted `package.json` structure to correctly specify its
dependencies
[#​4091](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4091 )
- Fixed returning `Option<Enum>` now correctly has the `| undefined`
type in TS bindings.
[#​4137](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4137 )
- Fixed enum variant name collisions with object prototype fields.
[#​4137](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4137 )
- Fixed multiline doc comment alignment and remove empty ones entirely.
[#​4135](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4135 )
- Fixed `experimental-nodejs-module` target when used with
`#[wasm_bindgen(start)]`.
[#​4093](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4093 )
- Fixed error when importing very large JS files.
[#​4146](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4146 )
- Specify `"type": "module"` when deploying to nodejs-module
[#​4092](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4092 )
- Fixed string enums not generating TypeScript types.
[#​4147](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4147 )
- Bindings that take buffer view types (e.g. `&[u8]`) as parameters will
now correctly return a `Result` when they might not support a backing
`SharedArrayBuffer`. This only applies to new and unstable APIs, which
won't cause a breaking in the API.
[#​4156](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4156 )
***
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/swc-project/swc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzguMTIwLjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-29 23:20:24 +09:00
CPunisher
65872afaf1
fix(es/generator): Fix code generation for break
in nested while ( #9684 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9110
2024-10-29 22:21:11 +09:00
Donny/강동윤
7aab945a21
perf(es): Cache current_dir()
system calls ( #9683 )
...
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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
**Description:**
Cache `current_dir()` system calls. Those are needless because we already cache `current_dir` in some places so it will break if the user changes cwd anyway.
**Related issue:**
- https://github.com/swc-project/swc/issues/9601
2024-10-29 11:53:29 +09:00
강동윤 (Donny)
09de6f4065
chore: Publish crates with swc_core
v3.0.0
2024-10-29 11:30:46 +09:00
Donny/강동윤
581aafb4df
perf(visit): Introduce Pass
API and adjust visitor APIs for it ( #9680 )
...
**Description:**
- `Pass`: `FnMut(&mut Program)`.
**Breaking Changes:**
- `chain!`: Use a tuple instead. You can replace all `chain!(` with `(` with IDE feature and it will work.
- `chain!` with 13 or more args: Use nested tuples for items after 13th element.
**Related issue:**
- Related to https://github.com/swc-project/swc/issues/9601
2024-10-29 11:25:16 +09:00
강동윤 (Donny)
b32a5332cf
chore: Publish crates with swc_core
v2.0.0
2024-10-29 10:39:49 +09:00
CPunisher
7344a638b5
feat(es/minifier): Optimize switch with side effect and termination tests ( #9677 )
...
**Description:**
This is learnt from https://github.com/terser/terser/pull/1044
**Key point:** all the cases (statements) after the last side-effect and
non-terminated one are useless.
There are also some points on whether a statement is side-effect free:
- **Var declaration:** I think var declaration always contains side
effect.
- **Function declaration:** In non-strict mode, function declaration is
same as var declaration. In strict mode, function is declared in
enclosing block scope, so it's side-effect free. But there is a bad case
when we call the function before it is declared in the switch case:
```js
"use strict";
const k = (() => {
let x = 1;
switch (x) {
case y():
case x: {
async function y() {
console.log(123);
}
}
}
return x;
})();
```
**This is an existing bug.** I'm not sure whether we should fix it since
it is a very bad code and I also find some similar bad cases with
terser.
~I'm also not sure it's appropriate to introduce context variable
`in_strict` for `StmtExt:: may_have_side_effects`, because `in_strict`
could change from `false` to `true`. But this is a **conservative**
mistake and does not break the program. Maybe we should use visitor for
context-aware side effect checker in the future.~
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/8953
2024-10-29 10:39:05 +09:00
David Sherret
2bbd1e8485
feat(es/parser): Ability to get script's potential module errors ( #9682 )
...
**Description:**
In Deno I'm now parsing stuff as a program more often because I sometimes now need to discover if something is a script or es module by looking at the contents. A problem is that the module errors are discarded when parsing as a script, but I still might need them later if I discover the program the program should be treated as an ES module.
**BREAKING CHANGE:**
Adds a new method to the `Tokens` trait.
2024-10-29 09:50:14 +09:00
SWC Bot
97c90a1fb7
chore: Update changelog
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
Benchmark / Bench everything (push) Has been cancelled
Publish crates (auto) / Publish cargo crates (push) Has been cancelled
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Has been cancelled
CI / Done (push) Has been cancelled
2024-10-26 09:47:08 +00:00
SWC Bot
75e237b31a
chore: Publish 1.7.40
with swc_core
v1.0.6
2024-10-26 09:47:07 +00:00
SWC Bot
a5ea3271ee
chore: Publish 1.7.40-nightly-20241026.1
with swc_core
v1.0.6
2024-10-26 08:50:07 +00:00
강동윤 (Donny)
17b05f283d
chore: Publish crates with swc_core
v1.0.6
2024-10-26 17:33:51 +09:00
CPunisher
78500af546
fix(typescript): Check whether the method is abstract when checking is_overload
( #9678 )
...
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
Benchmark / Bench everything (push) Has been cancelled
Publish crates (auto) / Publish cargo crates (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/9656
2024-10-25 12:53:48 +09:00
renovate[bot]
b8d255bf5a
chore(deps): update dependency swc-plugin-coverage-instrument to ^0.0.25 ( #9676 )
...
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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[swc-plugin-coverage-instrument](https://redirect.github.com/kwonoj/swc-coverage-instrument )
| [`^0.0.24` ->
`^0.0.25`](https://renovatebot.com/diffs/npm/swc-plugin-coverage-instrument/0.0.24/0.0.25 )
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/swc-plugin-coverage-instrument/0.0.25?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/swc-plugin-coverage-instrument/0.0.25?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/swc-plugin-coverage-instrument/0.0.24/0.0.25?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/swc-plugin-coverage-instrument/0.0.24/0.0.25?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>kwonoj/swc-coverage-instrument
(swc-plugin-coverage-instrument)</summary>
###
[`v0.0.25`](https://redirect.github.com/kwonoj/swc-coverage-instrument/compare/v0.0.24...v0.0.25 )
[Compare
Source](https://redirect.github.com/kwonoj/swc-coverage-instrument/compare/v0.0.24...v0.0.25 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/swc-project/swc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-24 15:11:16 +00:00
강동윤 (Donny)
dacb6cfce7
chore: Publish crates with swc_core
v1.0.5
2024-10-24 23:28:24 +09:00
James Zhan
715c42c0bf
fix(bindings/node): Add VisitTsPropertySignature
( #9670 )
...
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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
**Description:**
As per PR #8955
> TsPropertySignature can not have params, type params, or an initializer.
This PR cleans up these fields from ts definition and visitor
2024-10-24 16:35:35 +09:00
CamWass
ba2a942f56
fix(es/codegen): Improve EndsWithAlphaNum ( #9675 )
...
**Description:**
This PR makes EndsWithAlphaNum smarter, improving codegen of in/instanceof binary expressions, and for in/of heads. For example:
Before:
```js
foo() in b;
```
After:
```js
foo()in b;
```
---------
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2024-10-24 16:34:18 +09:00
LongYinan
8f45eaf837
fix(bindings): Update napi to handle string with \0
( #9665 )
...
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
Benchmark / Bench everything (push) Has been cancelled
Publish crates (auto) / Publish cargo crates (push) Has been cancelled
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Has been cancelled
CI / Done (push) Has been cancelled
- Closes https://github.com/swc-project/swc/issues/8868
2024-10-23 10:31:28 +09:00
Donny/강동윤
602c667b9d
doc(contributing): Document changeset ( #9667 )
...
Requested from https://github.com/swc-project/swc/pull/9666#issuecomment-2428091630
2024-10-23 10:30:43 +09:00
CPunisher
aec0e402d8
chore(ci): Remove miri ci for swc_ecma_codegen
and swc_ecma_minifier
( #9664 )
...
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 / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
**Description:**
Running miri for `swc_ecma_codegen` and `swc_ecma_minifier` is too slow.
Miri on `swc_ecma_codegen` consumes up to 4 hours, and miri on
`swc_ecma_minifier` consumes up to 6 hours, which exceeded github's 6
hour limit and makes ci bound to error.
Since they do not introduce too much unsafe code, I think we'd better
remove the miri tests for them or run partial tests in a reasonable
time.
2024-10-22 14:03:20 +09:00
unbyte
87b4e10e5d
fix(es/renamer): Check preserved
in normal renaming mode ( #9666 )
...
**Description:**
Check `preserved` in normal renaming mode
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/9663
2024-10-22 14:02:38 +09:00
SWC Bot
d38f9fc5f0
chore: Update changelog
2024-10-22 02:54:35 +00:00