overlookmotel
8d2beff2fe
fix(transformer): use correct scope for TS namespaces ( #3489 )
...
Re-use scope ID from `TSModuleDeclaration` for the scope of the function which replaces it in transformed output.
This should mean the scope tree is left in correct state after the transform.
NB: Still incomplete - we also need to transfer the binding ID from `X` in `namespace X {}` to `let X` in output.
2024-06-03 12:31:39 +00:00
overlookmotel
8e4f33557d
fix(transformer): output empty file for TS definition files ( #3500 )
...
As discussed in
https://github.com/oxc-project/oxc/pull/3489#issuecomment-2143482458 ,
transformer should output an empty file for TS definition files.
2024-06-03 20:25:02 +08:00
Dunqing
98c90291b0
fix(codegen): should be double quote for jsx attribute value ( #3516 )
2024-06-03 10:05:13 +00:00
Dunqing
d4588d7cac
chore(codegen): print typescript code for typescript files ( #3515 )
...
We should not print typescript code as javascript code. Forcing to print as JavaScript code may result in syntax errors. If we truly want javascript code, we can use the `oxc_transformer`.
2024-06-03 10:05:08 +00:00
Dunqing
d8063b6210
fix(codegen): wrong escape string ( #3514 )
...
close : #3492
2024-06-03 15:48:01 +08:00
github-actions[bot]
079d42f68b
Release crates v0.13.2 ( #3513 )
...
Co-authored-by: Boshen <Boshen@users.noreply.github.com>
2024-06-03 12:40:53 +08:00
Wang Wenzhe
6b39654c80
feat(linter/tree-shaking): support options ( #3504 )
2024-06-03 11:28:48 +08:00
renovate[bot]
568c9c54c4
chore(deps): lock file maintenance website npm packages ( #3511 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change | Age | Adoption | Passing |
Confidence |
|---|---|---|---|---|---|---|---|
| | | lockFileMaintenance | All locks refreshed | | | | |
|
[@codemirror/autocomplete](https://togithub.com/codemirror/autocomplete )
| dependencies | patch | [`6.16.0` ->
`6.16.2`](https://renovatebot.com/diffs/npm/@codemirror%2fautocomplete/6.16.0/6.16.2 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [pnpm](https://pnpm.io ) ([source](https://togithub.com/pnpm/pnpm )) |
packageManager | patch | [`9.1.2` ->
`9.1.4`](https://renovatebot.com/diffs/npm/pnpm/9.1.2/9.1.4 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [vite](https://vitejs.dev )
([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite )) |
devDependencies | patch | [`5.2.11` ->
`5.2.12`](https://renovatebot.com/diffs/npm/vite/5.2.11/5.2.12 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
🔧 This Pull Request updates lock files to use the latest dependency
versions.
---
### Release Notes
<details>
<summary>codemirror/autocomplete
(@​codemirror/autocomplete)</summary>
###
[`v6.16.2`](https://togithub.com/codemirror/autocomplete/blob/HEAD/CHANGELOG.md#6162-2024-05-31 )
[Compare
Source](https://togithub.com/codemirror/autocomplete/compare/6.16.1...6.16.2 )
##### Bug fixes
Allow backslash-escaped closing braces inside snippet field
names/content.
###
[`v6.16.1`](https://togithub.com/codemirror/autocomplete/blob/HEAD/CHANGELOG.md#6161-2024-05-29 )
[Compare
Source](https://togithub.com/codemirror/autocomplete/compare/6.16.0...6.16.1 )
##### Bug fixes
Fix a bug where multiple backslashes before a brace in a snippet were
all removed.
</details>
<details>
<summary>pnpm/pnpm (pnpm)</summary>
### [`v9.1.4`](https://togithub.com/pnpm/pnpm/compare/v9.1.3...v9.1.4 )
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v9.1.3...v9.1.4 )
### [`v9.1.3`](https://togithub.com/pnpm/pnpm/compare/v9.1.2...v9.1.3 )
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v9.1.2...v9.1.3 )
</details>
<details>
<summary>vitejs/vite (vite)</summary>
###
[`v5.2.12`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small5212-2024-05-28-small )
[Compare
Source](https://togithub.com/vitejs/vite/compare/v5.2.11...v5.2.12 )
- chore: move to eslint flat config
([#​16743](https://togithub.com/vitejs/vite/issues/16743 ))
([8f16765](https://togithub.com/vitejs/vite/commit/8f16765 )), closes
[#​16743](https://togithub.com/vitejs/vite/issues/16743 )
- chore(deps): remove unused deps
([#​17329](https://togithub.com/vitejs/vite/issues/17329 ))
([5a45745](https://togithub.com/vitejs/vite/commit/5a45745 )), closes
[#​17329](https://togithub.com/vitejs/vite/issues/17329 )
- chore(deps): update all non-major dependencies
([#​16722](https://togithub.com/vitejs/vite/issues/16722 ))
([b45922a](https://togithub.com/vitejs/vite/commit/b45922a )), closes
[#​16722](https://togithub.com/vitejs/vite/issues/16722 )
- fix: mention `build.rollupOptions.output.manualChunks` instead of
`build.rollupOutput.manualChunks`
([89378c0](https://togithub.com/vitejs/vite/commit/89378c0 )), closes
[#​16721](https://togithub.com/vitejs/vite/issues/16721 )
- fix(build): make SystemJSWrapRE match lazy
([#​16633](https://togithub.com/vitejs/vite/issues/16633 ))
([6583ad2](https://togithub.com/vitejs/vite/commit/6583ad2 )), closes
[#​16633](https://togithub.com/vitejs/vite/issues/16633 )
- fix(css): avoid generating empty JS files when JS files becomes empty
but has CSS files imported
([#​1](https://togithub.com/vitejs/vite/issues/1 )
([95fe5a7](https://togithub.com/vitejs/vite/commit/95fe5a7 )), closes
[#​16078](https://togithub.com/vitejs/vite/issues/16078 )
- fix(css): handle lightningcss compiled css in Deno
([#​17301](https://togithub.com/vitejs/vite/issues/17301 ))
([8e4e932](https://togithub.com/vitejs/vite/commit/8e4e932 )), closes
[#​17301](https://togithub.com/vitejs/vite/issues/17301 )
- fix(css): only use files the current bundle contains
([#​16684](https://togithub.com/vitejs/vite/issues/16684 ))
([15a6ebb](https://togithub.com/vitejs/vite/commit/15a6ebb )), closes
[#​16684](https://togithub.com/vitejs/vite/issues/16684 )
- fix(css): page reload was not happening with .css?raw
([#​16455](https://togithub.com/vitejs/vite/issues/16455 ))
([8041846](https://togithub.com/vitejs/vite/commit/8041846 )), closes
[#​16455](https://togithub.com/vitejs/vite/issues/16455 )
- fix(deps): update all non-major dependencies
([#​16603](https://togithub.com/vitejs/vite/issues/16603 ))
([6711553](https://togithub.com/vitejs/vite/commit/6711553 )), closes
[#​16603](https://togithub.com/vitejs/vite/issues/16603 )
- fix(deps): update all non-major dependencies
([#​16660](https://togithub.com/vitejs/vite/issues/16660 ))
([bf2f014](https://togithub.com/vitejs/vite/commit/bf2f014 )), closes
[#​16660](https://togithub.com/vitejs/vite/issues/16660 )
- fix(deps): update all non-major dependencies
([#​17321](https://togithub.com/vitejs/vite/issues/17321 ))
([4a89766](https://togithub.com/vitejs/vite/commit/4a89766 )), closes
[#​17321](https://togithub.com/vitejs/vite/issues/17321 )
- fix(error-logging): rollup errors weren't displaying id and codeframe
([#​16540](https://togithub.com/vitejs/vite/issues/16540 ))
([22dc196](https://togithub.com/vitejs/vite/commit/22dc196 )), closes
[#​16540](https://togithub.com/vitejs/vite/issues/16540 )
- fix(hmr): normalize the path info
([#​14255](https://togithub.com/vitejs/vite/issues/14255 ))
([6a085d0](https://togithub.com/vitejs/vite/commit/6a085d0 )), closes
[#​14255](https://togithub.com/vitejs/vite/issues/14255 )
- fix(hmr): trigger page reload when calling invalidate on root module
([#​16636](https://togithub.com/vitejs/vite/issues/16636 ))
([2b61cc3](https://togithub.com/vitejs/vite/commit/2b61cc3 )), closes
[#​16636](https://togithub.com/vitejs/vite/issues/16636 )
- fix(logger): truncate log over 5000 characters long
([#​16581](https://togithub.com/vitejs/vite/issues/16581 ))
([b0b839a](https://togithub.com/vitejs/vite/commit/b0b839a )), closes
[#​16581](https://togithub.com/vitejs/vite/issues/16581 )
- fix(optimizer): log dependencies added by plugins
([#​16729](https://togithub.com/vitejs/vite/issues/16729 ))
([f0fb987](https://togithub.com/vitejs/vite/commit/f0fb987 )), closes
[#​16729](https://togithub.com/vitejs/vite/issues/16729 )
- fix(sourcemap): improve sourcemap compatibility for vue2
([#​16594](https://togithub.com/vitejs/vite/issues/16594 ))
([913c040](https://togithub.com/vitejs/vite/commit/913c040 )), closes
[#​16594](https://togithub.com/vitejs/vite/issues/16594 )
- docs: correct proxy shorthand example
([#​15938](https://togithub.com/vitejs/vite/issues/15938 ))
([abf766e](https://togithub.com/vitejs/vite/commit/abf766e )), closes
[#​15938](https://togithub.com/vitejs/vite/issues/15938 )
- docs: deprecate server.hot
([#​16741](https://togithub.com/vitejs/vite/issues/16741 ))
([e7d38ab](https://togithub.com/vitejs/vite/commit/e7d38ab )), closes
[#​16741](https://togithub.com/vitejs/vite/issues/16741 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-03 00:04:53 +00:00
renovate[bot]
fabe7d02ae
chore(deps): lock file maintenance vscode npm packages ( #3510 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change | Age | Adoption | Passing |
Confidence |
|---|---|---|---|---|---|---|---|
| | | lockFileMaintenance | All locks refreshed | | | | |
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node )
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ))
| devDependencies | minor | [`20.12.12` ->
`20.14.0`](https://renovatebot.com/diffs/npm/@types%2fnode/20.12.12/20.14.0 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [prettier](https://prettier.io )
([source](https://togithub.com/prettier/prettier )) | devDependencies |
minor | [`3.2.5` ->
`3.3.0`](https://renovatebot.com/diffs/npm/prettier/3.2.5/3.3.0 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
🔧 This Pull Request updates lock files to use the latest dependency
versions.
---
### Release Notes
<details>
<summary>prettier/prettier (prettier)</summary>
###
[`v3.3.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#330 )
[Compare
Source](https://togithub.com/prettier/prettier/compare/3.2.5...3.3.0 )
[diff](https://togithub.com/prettier/prettier/compare/3.2.5...3.3.0 )
🔗 [Release Notes](https://prettier.io/blog/2024/06/01/3.3.0.html )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-02 23:34:54 +00:00
renovate[bot]
dc0ccba397
chore(deps): lock file maintenance rust crates ( #3509 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| | | lockFileMaintenance | All locks refreshed |
| [oxc_resolver](https://togithub.com/oxc-project/oxc-resolver ) |
workspace.dependencies | minor | `1.7.0` -> `1.8.1` |
| [proc-macro2](https://togithub.com/dtolnay/proc-macro2 ) |
workspace.dependencies | patch | `1.0.84` -> `1.0.85` |
| [tokio](https://tokio.rs )
([source](https://togithub.com/tokio-rs/tokio )) | workspace.dependencies
| minor | `1.37.0` -> `1.38.0` |
🔧 This Pull Request updates lock files to use the latest dependency
versions.
---
### Release Notes
<details>
<summary>oxc-project/oxc-resolver (oxc_resolver)</summary>
###
[`v1.8.1`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#181---2024-05-31 )
[Compare
Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.8.0...oxc_resolver-v1.8.1 )
##### Fixed
- alias value should try fragment as path
([#​172](https://togithub.com/oxc-project/oxc_resolver/pull/172 ))
###
[`v1.8.0`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#180---2024-05-27 )
[Compare
Source](https://togithub.com/oxc-project/oxc-resolver/compare/v1.7.0...oxc_resolver-v1.8.0 )
##### Added
- \[**breaking**] remove the constraint on packages exports `default`
must be the last one
([#​171](https://togithub.com/oxc-project/oxc_resolver/pull/171 ))
- \[**breaking**] return `ResolveError:Builtin("node:{specifier}")` from
package imports and exports
([#​165](https://togithub.com/oxc-project/oxc_resolver/pull/165 ))
##### Fixed
- alias not found should return error
([#​168](https://togithub.com/oxc-project/oxc_resolver/pull/168 ))
##### Other
- add panic test for extensions without a leading dot
([#​150](https://togithub.com/oxc-project/oxc_resolver/pull/150 ))
- add test case for empty alias fields
([#​149](https://togithub.com/oxc-project/oxc_resolver/pull/149 ))
</details>
<details>
<summary>dtolnay/proc-macro2 (proc-macro2)</summary>
###
[`v1.0.85`](https://togithub.com/dtolnay/proc-macro2/releases/tag/1.0.85 )
[Compare
Source](https://togithub.com/dtolnay/proc-macro2/compare/1.0.84...1.0.85 )
- Mark some tests as only for 64-bit targets
([#​463](https://togithub.com/dtolnay/proc-macro2/issues/463 ))
</details>
<details>
<summary>tokio-rs/tokio (tokio)</summary>
###
[`v1.38.0`](https://togithub.com/tokio-rs/tokio/releases/tag/tokio-1.38.0 ):
Tokio v1.38.0
[Compare
Source](https://togithub.com/tokio-rs/tokio/compare/tokio-1.37.0...tokio-1.38.0 )
This release marks the beginning of stabilization for runtime metrics.
It
stabilizes `RuntimeMetrics::worker_count`. Future releases will continue
to
stabilize more metrics.
##### Added
- fs: add `File::create_new` ([#​6573])
- io: add `copy_bidirectional_with_sizes` ([#​6500])
- io: implement `AsyncBufRead` for `Join` ([#​6449])
- net: add Apple visionOS support ([#​6465])
- net: implement `Clone` for `NamedPipeInfo` ([#​6586])
- net: support QNX OS ([#​6421])
- sync: add `Notify::notify_last` ([#​6520])
- sync: add `mpsc::Receiver::{capacity,max_capacity}` ([#​6511])
- sync: add `split` method to the semaphore permit ([#​6472],
[#​6478])
- task: add `tokio::task::join_set::Builder::spawn_blocking`
([#​6578])
- wasm: support rt-multi-thread with wasm32-wasi-preview1-threads
([#​6510])
##### Changed
- macros: make `#[tokio::test]` append `#[test]` at the end of the
attribute list ([#​6497])
- metrics: fix `blocking_threads` count ([#​6551])
- metrics: stabilize `RuntimeMetrics::worker_count` ([#​6556])
- runtime: move task out of the `lifo_slot` in `block_in_place`
([#​6596])
- runtime: panic if `global_queue_interval` is zero ([#​6445])
- sync: always drop message in destructor for oneshot receiver
([#​6558])
- sync: instrument `Semaphore` for task dumps ([#​6499])
- sync: use FIFO ordering when waking batches of wakers ([#​6521])
- task: make `LocalKey::get` work with Clone types ([#​6433])
- tests: update nix and mio-aio dev-dependencies ([#​6552])
- time: clean up implementation ([#​6517])
- time: lazily init timers on first poll ([#​6512])
- time: remove the `true_when` field in `TimerShared` ([#​6563])
- time: use sharding for timer implementation ([#​6534])
##### Fixed
- taskdump: allow building taskdump docs on non-unix machines
([#​6564])
- time: check for overflow in `Interval::poll_tick` ([#​6487])
- sync: fix incorrect `is_empty` on mpsc block boundaries
([#​6603])
##### Documented
- fs: rewrite file system docs ([#​6467])
- io: fix `stdin` documentation ([#​6581])
- io: fix obsolete reference in `ReadHalf::unsplit()` documentation
([#​6498])
- macros: render more comprehensible documentation for `select!`
([#​6468])
- net: add missing types to module docs ([#​6482])
- net: fix misleading `NamedPipeServer` example ([#​6590])
- sync: add examples for `SemaphorePermit`, `OwnedSemaphorePermit`
([#​6477])
- sync: document that `Barrier::wait` is not cancel safe
([#​6494])
- sync: explain relation between `watch::Sender::{subscribe,closed}`
([#​6490])
- task: clarify that you can't abort `spawn_blocking` tasks
([#​6571])
- task: fix a typo in doc of `LocalSet::run_until` ([#​6599])
- time: fix test-util requirement for pause and resume in docs
([#​6503])
[#​6421]: https://togithub.com/tokio-rs/tokio/pull/6421
[#​6433]: https://togithub.com/tokio-rs/tokio/pull/6433
[#​6445]: https://togithub.com/tokio-rs/tokio/pull/6445
[#​6449]: https://togithub.com/tokio-rs/tokio/pull/6449
[#​6465]: https://togithub.com/tokio-rs/tokio/pull/6465
[#​6467]: https://togithub.com/tokio-rs/tokio/pull/6467
[#​6468]: https://togithub.com/tokio-rs/tokio/pull/6468
[#​6472]: https://togithub.com/tokio-rs/tokio/pull/6472
[#​6477]: https://togithub.com/tokio-rs/tokio/pull/6477
[#​6478]: https://togithub.com/tokio-rs/tokio/pull/6478
[#​6482]: https://togithub.com/tokio-rs/tokio/pull/6482
[#​6487]: https://togithub.com/tokio-rs/tokio/pull/6487
[#​6490]: https://togithub.com/tokio-rs/tokio/pull/6490
[#​6494]: https://togithub.com/tokio-rs/tokio/pull/6494
[#​6497]: https://togithub.com/tokio-rs/tokio/pull/6497
[#​6498]: https://togithub.com/tokio-rs/tokio/pull/6498
[#​6499]: https://togithub.com/tokio-rs/tokio/pull/6499
[#​6500]: https://togithub.com/tokio-rs/tokio/pull/6500
[#​6503]: https://togithub.com/tokio-rs/tokio/pull/6503
[#​6510]: https://togithub.com/tokio-rs/tokio/pull/6510
[#​6511]: https://togithub.com/tokio-rs/tokio/pull/6511
[#​6512]: https://togithub.com/tokio-rs/tokio/pull/6512
[#​6517]: https://togithub.com/tokio-rs/tokio/pull/6517
[#​6520]: https://togithub.com/tokio-rs/tokio/pull/6520
[#​6521]: https://togithub.com/tokio-rs/tokio/pull/6521
[#​6534]: https://togithub.com/tokio-rs/tokio/pull/6534
[#​6551]: https://togithub.com/tokio-rs/tokio/pull/6551
[#​6552]: https://togithub.com/tokio-rs/tokio/pull/6552
[#​6556]: https://togithub.com/tokio-rs/tokio/pull/6556
[#​6558]: https://togithub.com/tokio-rs/tokio/pull/6558
[#​6563]: https://togithub.com/tokio-rs/tokio/pull/6563
[#​6564]: https://togithub.com/tokio-rs/tokio/pull/6564
[#​6571]: https://togithub.com/tokio-rs/tokio/pull/6571
[#​6573]: https://togithub.com/tokio-rs/tokio/pull/6573
[#​6578]: https://togithub.com/tokio-rs/tokio/pull/6578
[#​6581]: https://togithub.com/tokio-rs/tokio/pull/6581
[#​6586]: https://togithub.com/tokio-rs/tokio/pull/6586
[#​6590]: https://togithub.com/tokio-rs/tokio/pull/6590
[#​6596]: https://togithub.com/tokio-rs/tokio/pull/6596
[#​6599]: https://togithub.com/tokio-rs/tokio/pull/6599
[#​6603]: https://togithub.com/tokio-rs/tokio/pull/6603
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-02 18:31:21 +00:00
Boshen
28cc351cf3
ci: add prepare release workflow
2024-06-03 00:54:13 +08:00
renovate[bot]
b59356c3ed
chore(deps): lock file maintenance npm packages ( #3506 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change | Age | Adoption | Passing |
Confidence |
|---|---|---|---|---|---|---|---|
| | | lockFileMaintenance | All locks refreshed | | | | |
| [pnpm](https://pnpm.io ) ([source](https://togithub.com/pnpm/pnpm )) |
packageManager | patch | [`9.1.2` ->
`9.1.4`](https://renovatebot.com/diffs/npm/pnpm/9.1.2/9.1.4 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [tar](https://togithub.com/isaacs/node-tar ) | devDependencies | minor
| [`7.1.0` ->
`7.2.0`](https://renovatebot.com/diffs/npm/tar/7.1.0/7.2.0 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
🔧 This Pull Request updates lock files to use the latest dependency
versions.
---
### Release Notes
<details>
<summary>pnpm/pnpm (pnpm)</summary>
### [`v9.1.4`](https://togithub.com/pnpm/pnpm/compare/v9.1.3...v9.1.4 )
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v9.1.3...v9.1.4 )
### [`v9.1.3`](https://togithub.com/pnpm/pnpm/compare/v9.1.2...v9.1.3 )
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v9.1.2...v9.1.3 )
</details>
<details>
<summary>isaacs/node-tar (tar)</summary>
###
[`v7.2.0`](https://togithub.com/isaacs/node-tar/compare/v7.1.0...v7.2.0 )
[Compare
Source](https://togithub.com/isaacs/node-tar/compare/v7.1.0...v7.2.0 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-02 16:13:02 +00:00
renovate[bot]
ef35792623
chore(deps): update samypr100/setup-dev-drive action to v3 ( #3505 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
|
[samypr100/setup-dev-drive](https://togithub.com/samypr100/setup-dev-drive )
| action | major | `v2` -> `v3` |
---
### Release Notes
<details>
<summary>samypr100/setup-dev-drive (samypr100/setup-dev-drive)</summary>
###
[`v3`](https://togithub.com/samypr100/setup-dev-drive/releases/tag/v3 )
[Compare
Source](https://togithub.com/samypr100/setup-dev-drive/compare/v2...v3 )
#### What's Changed
- See
[CHANGELOG.md](https://togithub.com/samypr100/setup-dev-drive/blob/v3/CHANGELOG.md )
**Full Changelog**:
https://github.com/samypr100/setup-dev-drive/compare/v2...v3
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 10am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, 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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-02 16:08:16 +00:00
cinchen
daf559f06f
feat(linter): eslint-plugin-jest/no-large-snapshot ( #3436 )
...
part of https://github.com/oxc-project/oxc/issues/492
Rule Detail:
[link](https://github.com/jest-community/eslint-plugin-jest/blob/main/src/rules/no-large-snapshots.ts )
---------
Co-authored-by: wenzhe <mysteryven@gmail.com>
2024-06-02 22:58:28 +08:00
Boshen
ac66de651b
chore: bump criterion2 to 0.10.0 ( #3499 )
2024-06-02 00:22:53 +08:00
overlookmotel
6f71541db0
fix(semantic): set program scope_id for TS definition files ( #3496 )
...
Semantic does not visit the AST for TS definition files, but it does create a root scope. Record this scope ID in `Program`'s `scope_id` field.
2024-06-01 10:13:45 +00:00
Boshen
9ff4feaa4c
chore: bump oxc-browserslist to 0.17.0 ( #3495 )
2024-06-01 15:06:34 +08:00
overlookmotel
ff7e8c7448
refactor(ast): update scope attrs ( #3494 )
...
Update scope attrs used by `oxc_traverse` codegen on `MethodDefinition` and `Function` types. These attrs are currently ignored by the codegen anyway, so causes no change in generated code, but bringing them up to date in preparation for #3392 .
2024-05-31 17:58:01 +00:00
overlookmotel
3967a15b60
fix(traverse): exit scope early if enter it late ( #3493 )
...
Fixes #3490 .
2024-05-31 17:53:23 +00:00
overlookmotel
55bbde2888
refactor(ast): move scope from TSModuleBlock to TSModuleDeclaration ( #3488 )
...
Closes #3471 .
Remove scope from `TSModuleBlock` and add scope to `TSModuleDeclaration` instead.
2024-05-31 17:33:05 +00:00
overlookmotel
9c3d1631a4
refactor(ast): rename function params ( #3487 )
...
Rename function params from `_kind` to `kind`. This has no practical effect but makes Rust Analyser give nicer param name hints when using these APIs.
2024-05-31 12:34:48 +00:00
overlookmotel
286b5ed3d7
refactor(ast): remove defunct hashing of Span ( #3486 )
...
`Span` has a no-op `Hash` impl.
ea53267956/crates/oxc_span/src/span.rs (L50-L54)
So remove pointless `self.span.hash(state)` operations from `Hash` impls for AST nodes.
2024-05-31 12:25:05 +00:00
Dunqing
ea53267956
fix(ast): UsingDeclaration is not a typescript syntax ( #3482 )
2024-05-31 11:15:37 +00:00
Dunqing
9dc58d582d
refactor(transformer/typescript): use a memory-safe implementation instead ( #3481 )
...
The previous implementation causes memory double free, but I don't know why.
2024-05-31 11:15:35 +00:00
Dunqing
25e5bdda3c
fix(transformer/typescript) if this statement is typescript syntax, replace it with a BlockStatement ( #3480 )
2024-05-31 07:24:47 +00:00
overlookmotel
84feceb118
refactor(transformer): explicit skip TS statements in TS namespace transform ( #3479 )
...
No substantive change. This should just be slightly more efficient as we've already handled most of the other variants earlier in the match.
2024-05-31 05:52:14 +00:00
overlookmotel
7f7b5ea9e8
refactor(transformer): shorter code in TS namespace transform ( #3478 )
...
Small refactor to shorten code.
2024-05-31 05:39:50 +00:00
overlookmotel
7e7b4526ba
refactor(transformer): panic on illegal cases in TS namespace transform ( #3477 )
...
Panic on function or class declaration without `id`. This should be impossible.
2024-05-31 05:39:46 +00:00
overlookmotel
8e089a9f2d
refactor(transformer): rename var ( #3476 )
...
Just rename a variable.
2024-05-31 05:34:56 +00:00
Boshen
851318b413
ci(): install rust before cache in windows-test
2024-05-31 10:01:09 +08:00
Boshen
8fe58921e9
ci: speed up windows build ( #3474 )
...
Windows warm cache run reduced from 3 mins to 2 mins 20 seconds.
Unsung heros of the internet, who led me here to speed up window's
slowness:
* `https://github.com/actions/cache/issues/752#issuecomment-1847036770 `
*
502e04200d/.github/workflows/ci.yml (L158)
2024-05-31 09:48:28 +08:00
overlookmotel
0f69ffda5f
refactor(transformer): shorten code in TS namespace transform ( #3468 )
...
Refactor to shorten code.
2024-05-30 21:56:31 +00:00
overlookmotel
deef86aff2
refactor(transformer): remove unreachable code from TS namespace transform ( #3475 )
...
As discussed in https://github.com/oxc-project/oxc/pull/3468#discussion_r1619782711 , `export {x}` is not legal inside a TS namespace. So remove the code which handles this impossible case.
2024-05-30 21:56:30 +00:00
Boshen
0f4bcc0a68
ci: fix cache for clippy and docs
2024-05-30 23:43:41 +08:00
Boshen
41d67fe6f6
ci: clean up the bloat action
2024-05-30 23:26:34 +08:00
Dunqing
574629e5de
feat(tasks/coverage): turn on idempotency testing for transformer ( #3470 )
2024-05-30 22:15:32 +08:00
Dunqing
350cd9158a
fix(parser): should parser error when function declaration has no name ( #3461 )
...
https://oxc-project.github.io/oxc/playground/?code=3YCAAICNgICAgICAgICzncl%2FKeF7k4Y7upgY2l43c79%2FYxaAgA%3D%3D
2024-05-30 19:58:50 +08:00
Dunqing
baed1ca645
fix(transformer/jsx-source): add filename statement only after inserting the source object ( #3469 )
2024-05-30 11:36:14 +00:00
Boshen
83a1715a08
chore: oxc-browserslist to v0.16.2 ( #3466 )
2024-05-30 19:30:21 +08:00
谭光志
4c17bc6f53
feat(linter): eslint/no-constructor-return ( #3321 )
2024-05-30 09:06:17 +00:00
IWANABETHATGUY
0cdb45a1ff
feat(oxc_codegen): preserve annotate comment ( #3465 )
...
1. Copy tests from
efa3dd2d8e/internal/bundler_tests/bundler_dce_test.go (L3833-L3971)
2. Add option to preserve annotate comment like `/* #__NO_SIDE_EFFECTS__
*/` and `/* #__PURE__ */`
2024-05-30 15:25:23 +08:00
Boshen
ec041a07fd
chore: oxc-browserslist to v0.16.1 ( #3466 )
2024-05-30 10:30:57 +08:00
overlookmotel
15734f5c4b
chore(parser): code comment for cold trampoline function ( #3467 )
...
Add a comment to explain the "cold trampoline function" used in lexer.
2024-05-30 01:11:00 +01:00
Dunqing
b4fd1ad31c
fix(transformer/typescript): variable declarations are not created when a function has a binding with the same name ( #3460 )
2024-05-29 23:00:22 +00:00
Dunqing
1a50b86281
refactor(typescript/namespace): reuse TSModuleBlock's scope id ( #3459 )
2024-05-29 23:00:15 +00:00
Boshen
0d35f227b5
ci: fix sccache in "check conformance"
2024-05-30 00:46:47 +08:00
overlookmotel
90b0f6da81
fix(transformer): use UIDs for React imports ( #3431 )
...
Use UIDs for local var names for React JSX imports e.g. `_jsx` in
`import { jsx as _jsx } from "react/jsx-runtime";`.
2024-05-29 18:32:10 +08:00
rzvxa
b1887782ac
fix(linter/eslint): fix require-await false positives in ForOfStatement. ( #3457 )
...
closes #3456
2024-05-28 17:58:31 +00:00
Boshen
0a61843ea8
ci: fix smoke test failing because bash is not installed on alpine
2024-05-28 23:47:10 +08:00
Boshen
031bbe6dc4
Release oxlint and vscode extension v0.4.2
2024-05-28 23:06:30 +08:00