renovate[bot]
dcf61911e9
chore(deps): update vscode npm packages ( #3864 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node )
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ))
| [`20.14.2` ->
`20.14.8`](https://renovatebot.com/diffs/npm/@types%2fnode/20.14.2/20.14.8 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [@vscode/vsce](https://code.visualstudio.com )
([source](https://togithub.com/Microsoft/vsce )) | [`2.27.0` ->
`2.29.0`](https://renovatebot.com/diffs/npm/@vscode%2fvsce/2.27.0/2.29.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/ )
|
| [typescript](https://www.typescriptlang.org/ )
([source](https://togithub.com/Microsoft/TypeScript )) | [`5.4.5` ->
`5.5.2`](https://renovatebot.com/diffs/npm/typescript/5.4.5/5.5.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/ )
|
---
### Release Notes
<details>
<summary>Microsoft/vsce (@​vscode/vsce)</summary>
###
[`v2.29.0`](https://togithub.com/microsoft/vscode-vsce/releases/tag/v2.29.0 )
[Compare
Source](https://togithub.com/Microsoft/vsce/compare/v2.28.0...v2.29.0 )
#### Changes:
##### Feature Requests:
- [#​1006](https://togithub.com/Microsoft/vsce/issues/1006 ):
Expose enabledApiProposals as a property
##### Others:
- [#​1007](https://togithub.com/Microsoft/vsce/issues/1007 ): fix
[#​1006](https://togithub.com/Microsoft/vsce/issues/1006 )
This list of changes was [auto
generated](https://dev.azure.com/monacotools/Monaco/\_build/results?buildId=279516\&view=logs ).
###
[`v2.28.0`](https://togithub.com/microsoft/vscode-vsce/releases/tag/v2.28.0 )
[Compare
Source](https://togithub.com/Microsoft/vsce/compare/v2.27.0...v2.28.0 )
#### Changes:
##### Feature Requests:
- [#​993](https://togithub.com/Microsoft/vsce/issues/993 ): Support
signing related features
##### Others:
- [#​1003](https://togithub.com/Microsoft/vsce/issues/1003 ):
Update Dockerfile to use node:18-alpine
- [#​997](https://togithub.com/Microsoft/vsce/issues/997 ):
Dockerfile is out of date with respect to system requirements
- [#​1002](https://togithub.com/Microsoft/vsce/issues/1002 ): fix
generate-manifest
- [#​1001](https://togithub.com/Microsoft/vsce/issues/1001 ): Bump
braces from 3.0.2 to 3.0.3
- [#​998](https://togithub.com/Microsoft/vsce/issues/998 ): Bump
[@​azure/identity](https://togithub.com/azure/identity ) from 4.1.0
to 4.2.1
- [#​994](https://togithub.com/Microsoft/vsce/issues/994 ): Support
signing related features
This list of changes was [auto
generated](https://dev.azure.com/monacotools/Monaco/\_build/results?buildId=279200\&view=logs ).
</details>
<details>
<summary>Microsoft/TypeScript (typescript)</summary>
###
[`v5.5.2`](https://togithub.com/Microsoft/TypeScript/compare/v5.4.5...ce2e60e4ea15a65992e54a9e8877d16be9d42abb )
[Compare
Source](https://togithub.com/Microsoft/TypeScript/compare/v5.4.5...v5.5.2 )
</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.
👻 **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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 00:06:06 +00:00
overlookmotel
9e148e97a9
refactor(ast): add line breaks ( #3860 )
...
Code style nit. Add line breaks between some `impl`s.
2024-06-23 20:22:11 +00:00
renovate[bot]
bef7f2b836
chore(deps): update github-actions ( #3857 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [crate-ci/typos](https://togithub.com/crate-ci/typos ) | action | patch
| `v1.22.7` -> `v1.22.9` |
|
[mozilla-actions/sccache-action](https://togithub.com/mozilla-actions/sccache-action )
| action | patch | `v0.0.4` -> `v0.0.5` |
---
### Release Notes
<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>
###
[`v1.22.9`](https://togithub.com/crate-ci/typos/releases/tag/v1.22.9 )
[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.22.8...v1.22.9 )
#### \[1.22.9] - 2024-06-22
##### Fixes
- Stop correcting `reoccurrence`
###
[`v1.22.8`](https://togithub.com/crate-ci/typos/compare/v1.22.7...v1.22.8 )
[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.22.7...v1.22.8 )
</details>
<details>
<summary>mozilla-actions/sccache-action
(mozilla-actions/sccache-action)</summary>
###
[`v0.0.5`](https://togithub.com/Mozilla-Actions/sccache-action/releases/tag/v0.0.5 )
[Compare
Source](https://togithub.com/mozilla-actions/sccache-action/compare/v0.0.4...v0.0.5 )
##### What's Changed
- add missing quotes to `configure` example in readme by
[@​altendky](https://togithub.com/altendky ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/103 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/103 )
- chore: fix a typo in a comment by
[@​Alphare](https://togithub.com/Alphare ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/109 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/109 )
- Bump outdated CI workflows and packages by
[@​orf](https://togithub.com/orf ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/114 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/114 )
- Output sccache stats as a notice and a summary table by
[@​orf](https://togithub.com/orf ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/113 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/113 )
##### Dependencies
- Bump [@​types/node](https://togithub.com/types/node ) from
20.12.11 to 20.13.0 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/115 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/115 )
- Bump
[@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser )
from 7.8.0 to 7.11.0 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/117 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/117 )
- Bump braces from 3.0.2 to 3.0.3 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/120 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/120 )
- Bump ts-jest from 29.1.2 to 29.1.4 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/118 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/118 )
- Bump prettier from 3.2.5 to 3.3.2 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/121 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/121 )
- Bump [@​actions/core](https://togithub.com/actions/core ) from
1.10.0 to 1.10.1 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/95 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/95 )
- Bump eslint-config-prettier from 9.0.0 to 9.1.0 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/96 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/96 )
- Bump [@​actions/github](https://togithub.com/actions/github )
from 5.1.1 to 6.0.0 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/97 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/97 )
- Bump [@​types/node](https://togithub.com/types/node ) from
20.10.6 to 20.11.24 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/102 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/102 )
- Bump eslint-plugin-jest from 27.6.0 to 27.9.0 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/101 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/101 )
- Bump undici from 5.28.2 to 5.28.3 by
[@​dependabot](https://togithub.com/dependabot ) in
[https://github.com/Mozilla-Actions/sccache-action/pull/99 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/99 )
##### New Contributors
- [@​altendky](https://togithub.com/altendky ) made their first
contribution in
[https://github.com/Mozilla-Actions/sccache-action/pull/103 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/103 )
- [@​Alphare](https://togithub.com/Alphare ) made their first
contribution in
[https://github.com/Mozilla-Actions/sccache-action/pull/109 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/109 )
- [@​orf](https://togithub.com/orf ) made their first contribution
in
[https://github.com/Mozilla-Actions/sccache-action/pull/114 ](https://togithub.com/Mozilla-Actions/sccache-action/pull/114 )
**Full Changelog**:
https://github.com/Mozilla-Actions/sccache-action/compare/v0.0.4...v0.0.5
</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.
👻 **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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-23 18:54:00 +00:00
Boshen
777f12b6fd
chore(isolated-declarations): run integration tests only once
2024-06-24 00:24:16 +08:00
Boshen
f3a21a28d7
chore: do not compile test crates that have no tests
2024-06-24 00:20:04 +08:00
rzvxa
363d3d57d7
refactor(ast): add span field to the BindingPattern type. ( #3855 )
...
So we don't have to introduce a special case while generating `GetSpan` implementations for all of our Ast types.
2024-06-23 16:00:40 +00:00
Boshen
d6437fec0b
refactor: clean up some usages of with_labels ( #3854 )
2024-06-23 15:24:37 +00:00
Boshen
13754cbd3d
fix(parser): change diagnostic to "modifier cannot be used here" ( #3853 )
2024-06-23 15:14:27 +00:00
Boshen
97d59fc2f3
refactor(parser): move code around for parsing Modifiers ( #3849 )
2024-06-23 12:46:42 +00:00
Boshen
2f5d50e710
refactor(isolated-declarations): remove Modifiers ( #3847 )
2024-06-23 12:46:36 +00:00
Boshen
ae09a97a09
refactor(ast)!: remove Modifiers from ts nodes ( #3846 )
2024-06-23 19:44:35 +08:00
Boshen
1af5ed3d89
refactor(ast)!: replace Modifiers with declare and const on EnumDeclaration ( #3845 )
2024-06-23 10:34:55 +00:00
Boshen
0673677317
refactor(ast)!: replace Modifiers with declare on Function ( #3844 )
2024-06-23 10:34:54 +00:00
Boshen
ee6ec4ee57
refactor(ast)!: replace Modifiers with declare and abstract on Class ( #3841 )
2024-06-23 10:34:53 +00:00
Boshen
9b38119ec9
refactor(ast)!: replace Modifiers with declare on VariableDeclaration ( #3839 )
...
part of #2958
2024-06-23 10:34:52 +00:00
rzvxa
f029273b04
chore(ast): move the rest of ast implementations to ast_impl ( #3840 )
2024-06-23 09:56:35 +00:00
overlookmotel
d76f34b130
fix(transformer): TODO comments for missing scopes ( #3837 )
...
Where we create new block statements, need to generate scopes for them. Just adding TODO comments for this at present - we need an API to make this easy.
2024-06-23 08:45:28 +00:00
overlookmotel
d9f268dd55
refactor(transformer): shorten TS transform code ( #3836 )
...
Shorten code in TS transform. Remove a pointless reallocation of a `Box` in `transform_simple_assignment_target`.
2024-06-23 08:45:27 +00:00
overlookmotel
e4707315c0
fix(transformer): TS transform handle when type exports first ( #3833 )
...
Fix 2 bugs in TS transform:
1. Handle where export declaration precedes its import/definition. e.g. `export { X }; import { type X } from "x";`
2. Don't insert `export {}` statement if any other `export` statements remain.
Also refactor to simplify logic for removing imports/exports.
2024-06-23 08:45:25 +00:00
overlookmotel
d774e54f8e
fix(transformer): TS transform generate do not copy statements ( #3832 )
...
Remove an unsound usage of `ast.copy` from TS transform. Previously the same statements were inserted into the AST multiple times. Instead generate these statements on demand.
Also use a `std::vec::Vec` for temporary values, rather than allocating them into arena, where they take up space to no purpose.
2024-06-23 08:45:24 +00:00
Don Isaac
d5f6aeb1ca
feat(semantic): check for illegal symbol modifiers ( #3838 )
2024-06-23 12:36:09 +08:00
overlookmotel
a6487482bc
refactor(ast): shorten code in AST builder ( #3835 )
...
Shorten code in AST builder. `MemberExpression` can be converted
directly to `AssignmentTarget`.
2024-06-23 10:47:15 +08:00
overlookmotel
120696741c
refactor(ast): reduce allocations in AST builder ( #3834 )
...
No need to unbox and then box again.
2024-06-23 10:46:54 +08:00
overlookmotel
ff1da27278
fix(transformer): correct comment in example ( #3831 )
...
Correct instructions for transformer example.
2024-06-22 19:08:01 +00:00
Boshen
cfcef241db
feat(ast)!: add directives field to TSModuleBlock ( #3830 )
...
closes #3564
2024-06-22 18:14:08 +00:00
Boshen
445603444f
feat(ast)!: add IdentifierReference to ExportSpecifier ( #3820 )
...
closes #3795
closes #3796
2024-06-22 11:43:41 +00:00
Boshen
99a40ce6ac
fix(semantic): export default foo should have ExportLocalName::Default(NameSpan) entry ( #3823 )
2024-06-22 11:09:23 +00:00
Boshen
7302429b2b
refactor(linter/prefer_number_properties): remove the unused IdentifierName check ( #3822 )
2024-06-22 09:40:02 +00:00
Boshen
a1b2d83ea9
chore(ast): move ast implementations to ast_impl ( #3821 )
...
Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
2024-06-22 16:58:24 +08:00
rzvxa
567334834b
chore(ci): now we mark both ts alias and eslint rules. ( #3813 )
...
Fixes the unmarked implemented rules in #479 .
2024-06-22 04:55:34 +00:00
overlookmotel
4f7ff7e3ad
perf: do not pass &Atom to functions ( #3818 )
...
`Atom` is just a wrapper around `&str`, so better not to pass `&Atom` to functions, as that's a double-reference. Prefer `Atom` or `&str` instead to avoid indirection.
2024-06-22 04:48:00 +00:00
overlookmotel
aaa944d66b
improve(transformer): avoid reallocating strings ( #3817 )
...
Re-use existing `Atom`s rather than allocating duplicate strings in TS transforms.
2024-06-22 04:47:58 +00:00
overlookmotel
6dcc3f4002
fix(transformer): fix TS annotation transform scopes ( #3816 )
...
Create symbol references for `IdentifierReferences` created in TS annotations transform.
2024-06-22 04:47:57 +00:00
Dunqing
2cdb34f6df
feat(isolated-declarations): support for class function overloads ( #3811 )
2024-06-21 14:37:10 +00:00
Boshen
dd540c8f0f
feat(minifier): add skeleton for ReplaceGlobalDefines ast pass ( #3803 )
2024-06-21 13:53:59 +00:00
Dunqing
58e54f4aea
fix(isolated-declarations): report an error for parameters if they are ObjectPattern or ArrayPattern without an explicit type ( #3810 )
2024-06-21 10:20:28 +00:00
Dunqing
231b8f0946
feat(isolated-declarations): support for export default function overloads ( #3809 )
2024-06-21 10:20:25 +00:00
Dunqing
eadf495e85
chore(isolated-declarations): add tests from Deno ( #3808 )
2024-06-21 10:20:21 +00:00
Dunqing
cb8a272392
fix(isolated-declarations): cannot infer nested as const ( #3807 )
2024-06-21 10:20:17 +00:00
Dunqing
d8ecce5b3c
fix(isolated-declarations): infer BigInt number as bigint type ( #3806 )
2024-06-21 10:20:13 +00:00
Dunqing
4e241fcda8
fix(isolated-declarations): missing const after transformed const enum ( #3805 )
2024-06-21 10:20:10 +00:00
Dunqing
683c7b0dd1
fix(isolated-declarations): shouldn’t add declare in declaration with export default ( #3804 )
...
Added tests in #3808
2024-06-21 10:20:06 +00:00
Boshen
f3c3970131
feat(minifier): add skeleton for RemoveDeadCode ast pass ( #3802 )
2024-06-21 07:18:14 +00:00
Boshen
8027b1e894
refactor(minifier): change prepass to ast_passes::remove_parens ( #3801 )
2024-06-21 07:18:08 +00:00
Boshen
49fab9d6be
Release npm/oxc-transform v0.15.1
2024-06-20 23:41:31 +08:00
Boshen
f8fe583a0b
ci: run cargo check first
2024-06-20 23:38:21 +08:00
Boshen
0511a1b014
chore(justfile): run cargo shear in just ready
2024-06-20 23:27:46 +08:00
Boshen
4f2f96e716
chore(napi/transform): remove unused dependencies
2024-06-20 23:26:57 +08:00
Boshen
05e97b615d
chore: fix clippy warning
2024-06-20 23:22:01 +08:00
Boshen
25b607cde1
ci: fix
2024-06-20 23:18:42 +08:00