Boshen
aaac2d8775
fix(codegen): preserve parentheses from AST instead calculating from operator precedence ( #4055 )
...
…operator precedence
Calculating from operator precedence is currently unsafe and will result
incorrect semantics.
2024-07-05 14:01:17 +08:00
jordan boyer
6876490baa
feat(linter): add rule no-undefined ( #4041 )
...
Implementing rule https://eslint.org/docs/latest/rules/no-undefined
This is my first time contributing here, I wanted to started with a
simple rule before contributing more.
related to #479
2024-07-04 23:50:46 -04:00
Nissim Chekroun
bf04dee861
feat(linter): implement unicorn/no-negation-in-equality-check ( #4034 )
...
Fixes https://github.com/oxc-project/oxc/issues/3869
Hey there, thought I'd give this a try as it's tagged "good first issue"
:) Let me know if there's anything that needs to change, I wasn't sure
about the rule category so left as TODO.
2024-07-04 23:05:47 +08:00
burlinchen
38e7351a91
chore(napi): Refactor async parsing functions to remove tokio dependency ( #4049 )
...
Resolves #4044
- Added `use napi::{bindgen_prelude::AsyncTask, Task}` to handle async
tasks without tokio.
- Introduced `ResolveTask` struct implementing `Task` for asynchronous
parsing.
- Replaced `parse_sync` function implementation with `parse_with_return`
to reuse code.
- Refactored `parse_async` to use `AsyncTask` and `ResolveTask` for
async parsing.
- Removed tokio dependency by avoiding `tokio::spawn` and using
`AsyncTask` for async operations.
This refactor enhances code readability and removes the dependency on
tokio, streamlining the async task handling within the napi framework.
2024-07-04 20:31:19 +08:00
Luca Bruno
e32b4bc57c
refactor(ast)!: store trivia comments in a sorted slice ( #4045 )
...
This gets rid of `TriviasMap`, introducing `SortedComments` in order to
store trivia comments in a sorted slice.
Closes: https://github.com/oxc-project/backlog/issues/38
2024-07-04 01:57:36 +08:00
Boshen
09cc760475
chore(tasks/benchmark): turn on jsdoc parsing in semantic benchmark
2024-07-04 00:00:52 +08:00
Dunqing
3d29e9cb75
fix(isolated-declarations): eliminate imports incorrectly when they are used in TSInferType ( #4043 )
...
close : #4018
2024-07-03 15:32:27 +00:00
Egor Blinov
5e5b1b14a1
fix(codegen): correct accessibility emit for class formal-parameters/methods/properties ( #4042 )
2024-07-03 17:27:41 +08:00
Egor Blinov
7768d233c6
feat(isolated-declarations): support optional class methods ( #4035 )
...
Example class
```
export class A {
m1?(): void;
m2(): void {}
}
```
Before the fix:
```
export declare class A {
m1(): void;
}
```
with the fix:
```
export declare class A {
m1?(): void;
m2(): void;
}
```
2024-07-03 09:46:59 +08:00
Egor Blinov
c043bec674
fix(isolated_declarations): add mapped-type constraint to the scope ( #4037 )
...
Fixes https://github.com/oxc-project/oxc/issues/4020
Example:
```ts
import {K} from 'foo'
import {T} from 'bar'
export interface I {
prop: {[key in K]: T}
}
```
Before:
```ts
import {T} from 'bar'
export interface I {
prop: {[key in K]: T}
}
```
After:
```ts
import {K} from 'foo'
import {T} from 'bar'
export interface I {
prop: {[key in K]: T}
}
```
TSC:
```ts
import { K } from 'foo';
import { T } from 'bar';
export interface I {
prop: {
[key in K]: T;
};
}
```
2024-07-03 09:45:03 +08:00
Egor Blinov
b007553ebe
fix(isolated_declarations): Fix readonly specifier on class constructor params ( #4030 )
2024-07-02 23:26:19 +08:00
Egor Blinov
da628399fa
fix(isolated_declarations): inferring literal types for readonly class fileds ( #4027 )
2024-07-02 23:00:37 +08:00
github-actions[bot]
b66ad0b675
Release oxlint v0.6.0 ( #4029 )
...
## [0.6.0] - 2024-07-02
- c98d8aa ast: [**BREAKING**] Rename `visit_arrow_expression` to
`visit_arrow_function_expression`. (#3995 ) (rzvxa)
### Features
- dc6d45e ast,codegen: Add `TSParenthesizedType` and print type
parentheses correctly (#3979 ) (Boshen)
- b257d53 linter: Support report
`@typescript-eslint/consistent-type-imports` (#3895 ) (mysteryven)
- 2114475 linter: Implement @typescript-eslint/no-dynamic-delete (#3971 )
(kaykdm)
- 10a3c9a linter/eslint-plugin-react: Implement no-set-state (#3975 )
(Jelle van der Waa)
### Bug Fixes
- 432d6d9 linter: Find disabled directives using the message's `Span`.
(#4010 ) (rzvxa)
- dbbb6fc linter: Global variable check should always check builtin
variables (#3973 ) (Boshen)
### Performance
- 1eac3d2 semantic: Use `Atom<'a>` for `Reference`s (#3972 ) (Don Isaac)
### Refactor
Co-authored-by: Boshen <Boshen@users.noreply.github.com>
2024-07-02 22:07:52 +08:00
Dunqing
02ea19a3b7
fix(isolated-declarations): should emit export {} when only having ImportDeclaration ( #4026 )
...
close : #4023
2024-07-02 13:47:30 +00:00
Dunqing
7c915f4665
fix(isolated-declarations): binding elements with export should report an error ( #4025 )
...
close : #3976
2024-07-02 13:47:28 +00:00
Dunqing
05a047c17d
fix(isolated-declarations): method following an abstract method gets dropped ( #4024 )
...
close : #4019
2024-07-02 13:47:26 +00:00
Dunqing
7844734856
fix(codegen): missing const keyword in TSTypeParamter ( #4022 )
...
close : #4017
2024-07-02 13:47:24 +00:00
Boshen
243c9f35b0
refactor(parser): use function instead of trait to parse list with rest element ( #4028 )
...
closes #3887
2024-07-02 13:43:14 +00:00
Dunqing
6254a4106f
fix(codegen): missing TypeParamters in TSCallSignature ( #4021 )
...
close : #4015
2024-07-02 11:10:15 +00:00
rzvxa
432d6d93c9
fix(linter): find disabled directives using the message's Span. ( #4010 )
...
fixes #4005
2024-07-02 10:49:05 +00:00
rzvxa
1854a52bd7
feat(ast_codegen): introduce the #[span] hint. ( #4012 )
...
closes #3904
2024-07-02 10:18:58 +00:00
rzvxa
71e9286fa6
improvement(ast_codegen): use visit_as attribute to create aliased AstKinds. ( #4011 )
2024-07-02 10:18:56 +00:00
rzvxa
352c0b4103
pref(ast): inline visit walks with small bodies. ( #4009 )
...
~~Attempt to improve the performance of visitors, It is mostly for experiments. I'm not sure how much performance is there to gain back.~~
- [x] inline plural visits (eg: visit_statements)
- [x] inline enums when there are 5 or fewer match cases
- [x] inline structs when there are 5 or less fields
- [x] inline `Visit::alloc`
2024-07-02 10:18:55 +00:00
rzvxa
b51f75baf8
refactor(ast_codegen): no longer outputs discard variable for empty visitors. ( #4008 )
2024-07-02 10:18:53 +00:00
rzvxa
cd1e9bde7f
improvement(ast): generate visit_mut.rs. ( #4007 )
2024-07-02 10:18:51 +00:00
rzvxa
272df6ee90
feat(ast_codegen): support for generating VisitMut. ( #4006 )
2024-07-02 10:18:49 +00:00
rzvxa
7a3cb830b4
improvement(ast): generate the visit.rs file. ( #4001 )
...
Performance degression is expected since now we are doing more work by visiting things that we wouldn't enter before.
2024-07-02 10:18:47 +00:00
rzvxa
7538af12d8
feat(ast_codegen): add visit generator ( #3954 )
...
~~The generated code is only here for the sake of my own comparison (instead of manually keeping a backup of the old generated file). I would clean this up as soon as it is ready, submit some parts of it as the down stack, and stack the actual generated code on top of this. So please don't let the huge diff distract you, It won't have many conflicts since almost all of these are the generated visit code, which is completely contained to its own module(other than some minor renaming refactors).~~
The order of function definitions is a bit different, I've used a depth-first search, We can switch to a breadth-first one to align functions more closely to the original.
2024-07-02 10:18:45 +00:00
rzvxa
1df6ac0427
refactor(ast)!: rename visit_enum_memeber to visit_ts_enum_member. ( #4000 )
2024-07-02 10:05:42 +00:00
rzvxa
4a0eaa02da
refactor(ast)!: rename visit_enum to visit_ts_enum_declaration. ( #3998 )
2024-07-02 09:56:15 +00:00
rzvxa
c98d8aa000
refactor(ast)!: rename visit_arrow_expression to visit_arrow_function_expression. ( #3995 )
2024-07-02 09:19:25 +00:00
Boshen
1dacb1fc5b
refactor(parser): use function instead of trait to parse delimited lists ( #4014 )
...
relates #3887
The rest of the list parsing trait implementations involves ... parsing
`rest`, which I'll refactor in another PR.
2024-07-02 14:47:56 +08:00
github-actions[bot]
e2c9015ef6
Release crates v0.16.3 ( #4013 )
...
## [0.16.3] - 2024-07-02
### Features
- b257d53 linter: Support report
`@typescript-eslint/consistent-type-imports` (#3895 ) (mysteryven)
### Bug Fixes
- 23038ad codegen: Print `TSFunctionType` inside `TSTypeAssertion`
(#3999 ) (Boshen)
- d995f94 semantic: Resolve reference incorrectly when a parameter
references a parameter that hasn't been defined yet (#4004 ) (Dunqing)
- bdee156 transformer/typescript: `declare class` incorrectly preserved
as runtime class (#3997 ) (Dunqing)
- a50ce3d transformer/typescript: Missing initializer for class
constructor arguments with `private` and `protected` modifier (#3996 )
(Dunqing)
### Refactor
- 0fe22a8 ast: Reorder fields to reflect their visit order. (#3994 )
(rzvxa)
- d0eac46 parser: Use function instead of trait to parse normal lists
(#4003 ) (Boshen)
Co-authored-by: Boshen <Boshen@users.noreply.github.com>
2024-07-02 12:47:29 +08:00
Dunqing
d995f94280
fix(semantic): resolve reference incorrectly when a parameter references a parameter that hasn't been defined yet ( #4004 )
...
close : #3682
The TypeScript code that handles this is [here](d8086f14b6/src/compiler/utilities.ts (L11515-L11577) ). It looks complicated.
2024-07-02 02:12:15 +00:00
rzvxa
0fe22a8225
refactor(ast): reorder fields to reflect their visit order. ( #3994 )
2024-07-01 16:10:19 +00:00
Dunqing
bdee156c5d
fix(transformer/typescript): declare class incorrectly preserved as runtime class ( #3997 )
...
fix : #3993
2024-07-01 16:04:40 +00:00
Boshen
d0eac46fc8
refactor(parser): use function instead of trait to parse normal lists ( #4003 )
...
To reduce boilerplate and code noise.
relates #3887
2024-07-01 15:57:36 +00:00
Dunqing
0b147062c6
ci: ignore fixtures in link-check ( #4002 )
2024-07-01 23:56:01 +08:00
Dunqing
a50ce3d299
fix(transformer/typescript): missing initializer for class constructor arguments with private and protected modifier ( #3996 )
...
close : #3992
2024-07-01 15:10:32 +00:00
Boshen
23038ad8f8
fix(codegen): print TSFunctionType inside TSTypeAssertion ( #3999 )
2024-07-01 14:44:35 +00:00
Boshen
34e8cfc9e5
ci: trigger eslint-plugin-oxlint after release
2024-07-01 17:29:58 +08:00
Boshen
e388758f8b
ci: split job in prepare_release_oxlint.yml
2024-07-01 17:24:33 +08:00
underfin
0b56d50899
chore(napi): make transformer options optional ( #3989 )
2024-07-01 16:45:00 +08:00
Boshen
253eea1938
ci: trigger eslint-plugin-oxlint when release oxlint
2024-07-01 16:43:52 +08:00
renovate[bot]
765f6cc1c7
chore(deps): update rust crate dashmap to v6 ( #3987 )
2024-07-01 11:25:09 +08:00
renovate[bot]
c53d981e45
chore(deps): update rust crates ( #3988 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [bitflags](https://togithub.com/bitflags/bitflags ) |
workspace.dependencies | minor | `2.5.0` -> `2.6.0` |
| [log](https://togithub.com/rust-lang/log ) | workspace.dependencies |
patch | `0.4.21` -> `0.4.22` |
| [mime_guess](https://togithub.com/abonander/mime_guess ) |
workspace.dependencies | patch | `2.0.4` -> `2.0.5` |
| [num-bigint](https://togithub.com/rust-num/num-bigint ) |
workspace.dependencies | patch | `0.4.5` -> `0.4.6` |
| [oxc_resolver](https://togithub.com/oxc-project/oxc-resolver ) |
workspace.dependencies | minor | `1.8.2` -> `1.9.2` |
| [serde_json](https://togithub.com/serde-rs/json ) |
workspace.dependencies | patch | `1.0.117` -> `1.0.119` |
---
### Release Notes
<details>
<summary>bitflags/bitflags (bitflags)</summary>
###
[`v2.6.0`](https://togithub.com/bitflags/bitflags/blob/HEAD/CHANGELOG.md#260 )
[Compare
Source](https://togithub.com/bitflags/bitflags/compare/2.5.0...2.6.0 )
#### What's Changed
- Sync CHANGELOG.md with github release notes by
[@​dextero](https://togithub.com/dextero ) in
[https://github.com/bitflags/bitflags/pull/402 ](https://togithub.com/bitflags/bitflags/pull/402 )
- Update error messages and zerocopy by
[@​KodrAus](https://togithub.com/KodrAus ) in
[https://github.com/bitflags/bitflags/pull/403 ](https://togithub.com/bitflags/bitflags/pull/403 )
- Bump minimum declared versions of dependencies by
[@​dextero](https://togithub.com/dextero ) in
[https://github.com/bitflags/bitflags/pull/404 ](https://togithub.com/bitflags/bitflags/pull/404 )
- chore(deps): bump serde_derive and bytemuck versions by
[@​joshka](https://togithub.com/joshka ) in
[https://github.com/bitflags/bitflags/pull/405 ](https://togithub.com/bitflags/bitflags/pull/405 )
- add OSFF Scorecard workflow by
[@​KodrAus](https://togithub.com/KodrAus ) in
[https://github.com/bitflags/bitflags/pull/396 ](https://togithub.com/bitflags/bitflags/pull/396 )
- Update stderr messages by
[@​KodrAus](https://togithub.com/KodrAus ) in
[https://github.com/bitflags/bitflags/pull/408 ](https://togithub.com/bitflags/bitflags/pull/408 )
- Fix typo by
[@​waywardmonkeys](https://togithub.com/waywardmonkeys ) in
[https://github.com/bitflags/bitflags/pull/410 ](https://togithub.com/bitflags/bitflags/pull/410 )
- Allow specifying outer attributes in impl mode by
[@​KodrAus](https://togithub.com/KodrAus ) in
[https://github.com/bitflags/bitflags/pull/411 ](https://togithub.com/bitflags/bitflags/pull/411 )
#### New Contributors
- [@​dextero](https://togithub.com/dextero ) made their first
contribution in
[https://github.com/bitflags/bitflags/pull/402 ](https://togithub.com/bitflags/bitflags/pull/402 )
- [@​joshka](https://togithub.com/joshka ) made their first
contribution in
[https://github.com/bitflags/bitflags/pull/405 ](https://togithub.com/bitflags/bitflags/pull/405 )
- [@​waywardmonkeys](https://togithub.com/waywardmonkeys ) made
their first contribution in
[https://github.com/bitflags/bitflags/pull/410 ](https://togithub.com/bitflags/bitflags/pull/410 )
**Full Changelog**:
https://github.com/bitflags/bitflags/compare/2.5.0...2.6.0
</details>
<details>
<summary>rust-lang/log (log)</summary>
###
[`v0.4.22`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0422---2024-06-27 )
[Compare
Source](https://togithub.com/rust-lang/log/compare/0.4.21...0.4.22 )
</details>
<details>
<summary>rust-num/num-bigint (num-bigint)</summary>
###
[`v0.4.6`](https://togithub.com/rust-num/num-bigint/blob/HEAD/RELEASES.md#Release-046-2024-06-27 )
[Compare
Source](https://togithub.com/rust-num/num-bigint/compare/num-bigint-0.4.5...num-bigint-0.4.6 )
- [Fixed compilation on `x86_64-unknown-linux-gnux32`.][312]
**Contributors**: [@​cuviper](https://togithub.com/cuviper ),
[@​ralphtandetzky](https://togithub.com/ralphtandetzky ),
[@​yhx-12243](https://togithub.com/yhx-12243 )
[312]: https://togithub.com/rust-num/num-bigint/pull/312
</details>
<details>
<summary>oxc-project/oxc-resolver (oxc_resolver)</summary>
###
[`v1.9.2`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#192---2024-06-30 )
[Compare
Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.9.1...oxc_resolver-v1.9.2 )
##### Added
- *(napi)* add tracing via `OXC_LOG:DEBUG`
([#​202](https://togithub.com/oxc-project/oxc_resolver/pull/202 ))
##### Other
- document directory is an absolute path for `resolve(directory,
specifier)`
([#​206](https://togithub.com/oxc-project/oxc_resolver/pull/206 ))
- add a broken tsconfig test
([#​205](https://togithub.com/oxc-project/oxc_resolver/pull/205 ))
- improve code coverage for src/error.rs
([#​204](https://togithub.com/oxc-project/oxc_resolver/pull/204 ))
- skip resolving extension alias when `options.extension_alias` is empty
([#​203](https://togithub.com/oxc-project/oxc_resolver/pull/203 ))
- add npm badge to crates.io
###
[`v1.9.1`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#191---2024-06-29 )
[Compare
Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.9.0...oxc_resolver-v1.9.1 )
##### Added
- strip symbols and enable LTO
([#​197](https://togithub.com/oxc-project/oxc_resolver/pull/197 ))
##### Other
- improve call to `Path::ends_with`
([#​199](https://togithub.com/oxc-project/oxc_resolver/pull/199 ))
- list \[profile.release] explicitly
([#​198](https://togithub.com/oxc-project/oxc_resolver/pull/198 ))
###
[`v1.9.0`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#190---2024-06-28 )
[Compare
Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.8.4...oxc_resolver-v1.9.0 )
##### Added
- export package.json `type` and `sideEffects` field by default for
bundlers
([#​196](https://togithub.com/oxc-project/oxc-resolver/pull/196 ))
###
[`v1.8.4`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#184---2024-06-27 )
[Compare
Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.8.3...oxc_resolver-v1.8.4 )
##### Other
- skip searching for package.json when `alias_fields` is not provided
([#​194](https://togithub.com/oxc-project/oxc_resolver/pull/194 ))
###
[`v1.8.3`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#183---2024-06-26 )
[Compare
Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.8.2...oxc_resolver-v1.8.3 )
- *(napi*) release wasi build
</details>
<details>
<summary>serde-rs/json (serde_json)</summary>
###
[`v1.0.119`](https://togithub.com/serde-rs/json/releases/tag/v1.0.119 )
[Compare
Source](https://togithub.com/serde-rs/json/compare/v1.0.118...v1.0.119 )
- Add `serde_json::Map::shift_insert`
([#​1149](https://togithub.com/serde-rs/json/issues/1149 ), thanks
[@​joshka](https://togithub.com/joshka ))
###
[`v1.0.118`](https://togithub.com/serde-rs/json/releases/tag/v1.0.118 )
[Compare
Source](https://togithub.com/serde-rs/json/compare/v1.0.117...v1.0.118 )
- Implement Hash for serde_json::Value
([#​1127](https://togithub.com/serde-rs/json/issues/1127 ), thanks
[@​edwardycl](https://togithub.com/edwardycl ))
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-01 00:44:13 +00:00
renovate[bot]
f6f8c9dd63
chore(deps): update dependency vite to v5.3.2 ( #3986 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://vitejs.dev )
([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite )) |
[`5.3.1` -> `5.3.2`](https://renovatebot.com/diffs/npm/vite/5.3.1/5.3.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>vitejs/vite (vite)</summary>
###
[`v5.3.2`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small532-2024-06-27-small )
[Compare
Source](https://togithub.com/vitejs/vite/compare/v5.3.1...v5.3.2 )
- fix(client): uniform variable `location`
([#​17528](https://togithub.com/vitejs/vite/issues/17528 ))
([a8e2f6f](https://togithub.com/vitejs/vite/commit/a8e2f6f )), closes
[#​17528](https://togithub.com/vitejs/vite/issues/17528 )
- fix(deps): update all non-major dependencies
([#​17494](https://togithub.com/vitejs/vite/issues/17494 ))
([bf123f2](https://togithub.com/vitejs/vite/commit/bf123f2 )), closes
[#​17494](https://togithub.com/vitejs/vite/issues/17494 )
- fix(typescript): correctly expand ${configDir} in tsconfig.json
([#​17576](https://togithub.com/vitejs/vite/issues/17576 ))
([24c799b](https://togithub.com/vitejs/vite/commit/24c799b )), closes
[#​17576](https://togithub.com/vitejs/vite/issues/17576 )
- chore: fix some comments
([#​17495](https://togithub.com/vitejs/vite/issues/17495 ))
([ec16a5e](https://togithub.com/vitejs/vite/commit/ec16a5e )), closes
[#​17495](https://togithub.com/vitejs/vite/issues/17495 )
- chore(deps): update all non-major dependencies
([#​17553](https://togithub.com/vitejs/vite/issues/17553 ))
([a33a97f](https://togithub.com/vitejs/vite/commit/a33a97f )), closes
[#​17553](https://togithub.com/vitejs/vite/issues/17553 )
- chore(deps): update dependency eslint to v9
([#​16661](https://togithub.com/vitejs/vite/issues/16661 ))
([6c10662](https://togithub.com/vitejs/vite/commit/6c10662 )), closes
[#​16661](https://togithub.com/vitejs/vite/issues/16661 )
- chore(deps): update es-module-lexer to 1.5.4
([#​17555](https://togithub.com/vitejs/vite/issues/17555 ))
([2d6672f](https://togithub.com/vitejs/vite/commit/2d6672f )), closes
[#​17555](https://togithub.com/vitejs/vite/issues/17555 )
- refactor(optimizer): use early continues
([#​17551](https://togithub.com/vitejs/vite/issues/17551 ))
([7c06ef0](https://togithub.com/vitejs/vite/commit/7c06ef0 )), closes
[#​17551](https://togithub.com/vitejs/vite/issues/17551 )
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-30 21:00:20 +00:00
Boshen
e44963acda
Revert "chore(napi/transform): support wasm build ( #3933 )"
...
This reverts commit 3e9e4c9912 .
2024-06-30 22:04:36 +08:00
mysteryven
b257d53151
feat(linter): support report @typescript-eslint/consistent-type-imports ( #3895 )
...
This PR only contains the part about report error, adding the fixer part will make the whole PR difficult to review at one time.
There are also some commented cases. One kind of them is `decorator`, as it blocked by #3645 , another kind of them is type reference, need to solve #3799 first. I added TODO flags for them.
2024-06-30 13:48:08 +00:00
github-actions[bot]
3870ed5a24
Release crates v0.16.2 ( #3983 )
...
## [0.16.2] - 2024-06-30
### Features
- dc6d45e ast,codegen: Add `TSParenthesizedType` and print type
parentheses correctly (#3979 ) (Boshen)
- 63f36da parser: Parse modifiers with `parse_modifiers` (take 2)
(#3977 ) (DonIsaac)
### Bug Fixes
- dac617d codegen: Print some missing typescript attributes (#3980 )
(Boshen)
- bd1141d isolated-declarations: If declarations is referenced in
`declare global` then keep it (#3982 ) (Dunqing)
### Performance
- b234ddd semantic: Only check for jsdoc if jsdoc building is enabled
(Boshen)
- 1eac3d2 semantic: Use `Atom<'a>` for `Reference`s (#3972 ) (Don Isaac)
- 0c81fbe syntax: Use `NonZeroU32` for `SymbolId` and `ReferenceId`
(#3970 ) (Boshen)
### Refactor
- 5845057 transformer: Pass in symbols and scopes (#3978 ) (Boshen)
Co-authored-by: Boshen <Boshen@users.noreply.github.com>
2024-06-30 19:59:15 +08:00