Dunqing
cf1854be7c
feat(semantic): remove ReferenceFlags::Value from non-type-only exports that referenced type binding ( #4511 )
...
```ts
type T = 0;
export { T }
^ ReferenceFlags::Type | ReferenceFlags::Read
```
The export `T` only referenced type binding. We should remove `ReferenceFlags::Read` for it.
2024-07-29 03:39:18 +00:00
camc314
43f2df8416
feat(linter) eslint-plugin-unicorn no length as slice end ( #4514 )
2024-07-29 03:36:13 +00:00
renovate[bot]
6f42c55fbe
chore(deps): update rust crate trybuild to v1.0.98 ( #4524 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [trybuild](https://togithub.com/dtolnay/trybuild ) |
workspace.dependencies | patch | `1.0.97` -> `1.0.98` |
---
### Release Notes
<details>
<summary>dtolnay/trybuild (trybuild)</summary>
###
[`v1.0.98`](https://togithub.com/dtolnay/trybuild/releases/tag/1.0.98 )
[Compare
Source](https://togithub.com/dtolnay/trybuild/compare/1.0.97...1.0.98 )
- Fix enabling of default features for workspace dependencies
([#​282](https://togithub.com/dtolnay/trybuild/issues/282 ), thanks
[@​gui1117](https://togithub.com/gui1117 ))
</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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 01:48:51 +00:00
renovate[bot]
e73d0e82e8
chore(deps): update dependency @types/node to v22 ( #4523 )
...
[](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` ->
`^22.0.0`](https://renovatebot.com/diffs/npm/@types%2fnode/20.14.13/22.0.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/ )
|
---
### 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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 01:21:43 +00:00
renovate[bot]
cada16c81b
chore(deps): update codspeedhq/action action to v3 ( #4522 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [CodSpeedHQ/action](https://togithub.com/CodSpeedHQ/action ) | action |
major | `v2` -> `v3` |
---
### Release Notes
<details>
<summary>CodSpeedHQ/action (CodSpeedHQ/action)</summary>
### [`v3`](https://togithub.com/CodSpeedHQ/action/compare/v2...v3 )
[Compare Source](https://togithub.com/CodSpeedHQ/action/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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 00:08:54 +00:00
renovate[bot]
1f54f3619a
chore(deps): update website npm packages ( #4521 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@codemirror/view](https://togithub.com/codemirror/view ) | [`6.28.6`
->
`6.29.0`](https://renovatebot.com/diffs/npm/@codemirror%2fview/6.28.6/6.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/ )
|
| [pnpm](https://pnpm.io ) ([source](https://togithub.com/pnpm/pnpm )) |
[`9.5.0` -> `9.6.0`](https://renovatebot.com/diffs/npm/pnpm/9.5.0/9.6.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/ )
|
| [vite](https://vitejs.dev )
([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite )) |
[`5.3.4` -> `5.3.5`](https://renovatebot.com/diffs/npm/vite/5.3.4/5.3.5 )
|
[](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>codemirror/view (@​codemirror/view)</summary>
###
[`v6.29.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6290-2024-07-25 )
[Compare
Source](https://togithub.com/codemirror/view/compare/6.28.6...6.29.0 )
##### Bug fixes
Fix an issue that caused typing into an editor marked read-only to cause
document changes when using `EditContext`.
Associate a cursor created by clicking above the end of the text on a
wrap point with the line before it.
##### New features
The package now exports the type of hover tooltip sources as
`HoverTooltipSource`.
</details>
<details>
<summary>pnpm/pnpm (pnpm)</summary>
### [`v9.6.0`](https://togithub.com/pnpm/pnpm/releases/tag/v9.6.0 ): pnpm
9.6
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v9.5.0...v9.6.0 )
#### Minor Changes
- Support specifying node version (via `pnpm.executionEnv.nodeVersion`
in `package.json`) for running lifecycle scripts per each package in a
workspace [#​6720](https://togithub.com/pnpm/pnpm/issues/6720 ).
- Overrides now support the [`catalogs:`
protocol](https://pnpm.io/catalogs )
[#​8303](https://togithub.com/pnpm/pnpm/issues/8303 ).
#### Patch Changes
- The `pnpm deploy` command now supports the [`catalog:`
protocol](https://pnpm.io/catalogs )
[#​8298](https://togithub.com/pnpm/pnpm/pull/8298 ).
- The `pnpm outdated` command now supports the [`catalog:`
protocol](https://pnpm.io/catalogs )
[#​8304](https://togithub.com/pnpm/pnpm/pull/8304 ).
- Correct the error message when trying to run `pnpm patch` without
`node_modules/.modules.yaml`
[#​8257](https://togithub.com/pnpm/pnpm/issues/8257 ).
- Silent reporting fixed with the `pnpm exec` command
[#​7608](https://togithub.com/pnpm/pnpm/issues/7608 ).
- Add registries information to the calculation of dlx cache hash
[#​8299](https://togithub.com/pnpm/pnpm/pull/8299 ).
#### Platinum Sponsors
<table>
<tbody>
<tr>
<td align="center" valign="middle">
<a href="https://bit.dev/?utm_source=pnpm&utm_medium=release_notes "
target="_blank"><img src="https://pnpm.io/img/users/bit.svg "
width="80"></a>
</td>
<td align="center" valign="middle">
<a href="https://figma.com/?utm_source=pnpm&utm_medium=release_notes "
target="_blank"><img src="https://pnpm.io/img/users/figma.svg "
width="80"></a>
</td>
</tr>
</tbody>
</table>
#### Gold Sponsors
<table>
<tbody>
<tr>
<td align="center" valign="middle">
<a href="https://discord.com/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/discord.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/discord_light.svg " />
<img src="https://pnpm.io/img/users/discord.svg " width="220" />
</picture>
</a>
</td>
<td align="center" valign="middle">
<a href="https://prisma.io/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/prisma.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/prisma_light.svg " />
<img src="https://pnpm.io/img/users/prisma.svg " width="180" />
</picture>
</a>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<a href="https://uscreen.de/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/uscreen.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/uscreen_light.svg " />
<img src="https://pnpm.io/img/users/uscreen.svg " width="180" />
</picture>
</a>
</td>
<td align="center" valign="middle">
<a
href="https://www.jetbrains.com/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/jetbrains.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/jetbrains.svg " />
<img src="https://pnpm.io/img/users/jetbrains.svg " width="180" />
</picture>
</a>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<a href="https://nx.dev/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/nx.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/nx_light.svg " />
<img src="https://pnpm.io/img/users/nx.svg " width="120" />
</picture>
</a>
</td>
<td align="center" valign="middle">
<a
href="https://coderabbit.ai/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/coderabbit.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/coderabbit_light.svg " />
<img src="https://pnpm.io/img/users/coderabbit.svg " width="220" />
</picture>
</a>
</td>
</tr>
</tbody>
</table>
#### Our Silver Sponsors
<table>
<tbody>
<tr>
<td align="center" valign="middle">
<a
href="https://leniolabs.com/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<img src="https://pnpm.io/img/users/leniolabs.jpg " width="80">
</a>
</td>
<td align="center" valign="middle">
<a href="https://vercel.com/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/vercel.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/vercel_light.svg " />
<img src="https://pnpm.io/img/users/vercel.svg " width="180" />
</picture>
</a>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<a href="https://depot.dev/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/depot.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/depot_light.svg " />
<img src="https://pnpm.io/img/users/depot.svg " width="200" />
</picture>
</a>
</td>
<td align="center" valign="middle">
<a href="https://moonrepo.dev/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/moonrepo.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/moonrepo_light.svg " />
<img src="https://pnpm.io/img/users/moonrepo.svg " width="200" />
</picture>
</a>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<a href="https://devowl.io/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/devowlio.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/devowlio.svg " />
<img src="https://pnpm.io/img/users/devowlio.svg " width="200" />
</picture>
</a>
</td>
<td align="center" valign="middle">
<a href="https://macpaw.com/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/macpaw.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/macpaw_light.svg " />
<img src="https://pnpm.io/img/users/macpaw.svg " width="200" />
</picture>
</a>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<a href="https://cerbos.dev/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<picture>
<source media="(prefers-color-scheme: light)"
srcset="https://pnpm.io/img/users/cerbos.svg " />
<source media="(prefers-color-scheme: dark)"
srcset="https://pnpm.io/img/users/cerbos_light.svg " />
<img src="https://pnpm.io/img/users/cerbos.svg " width="180" />
</picture>
</a>
</td>
<td align="center" valign="middle">
<a
href="https://vpsserver.com/en-us/?utm_source=pnpm&utm_medium=release_notes "
target="_blank">
<img src="https://pnpm.io/img/users/vpsserver.svg " width="180" />
</a>
</td>
</tr>
</tbody>
</table>
</details>
<details>
<summary>vitejs/vite (vite)</summary>
###
[`v5.3.5`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small535-2024-07-25-small )
[Compare
Source](https://togithub.com/vitejs/vite/compare/v5.3.4...v5.3.5 )
- refactor(asset): remove rollup 3 public file watch workaround
([#​16331](https://togithub.com/vitejs/vite/issues/16331 ))
([66bdb1d](66bdb1d7b4 )),
closes [#​16331](https://togithub.com/vitejs/vite/issues/16331 )
- fix: make `server` type less restrictive (fix
[#​17627](https://togithub.com/vitejs/vite/issues/17627 ))
([#​17628](https://togithub.com/vitejs/vite/issues/17628 ))
([b55c32f](b55c32f7e3 )),
closes [#​17627](https://togithub.com/vitejs/vite/issues/17627 )
[#​17628](https://togithub.com/vitejs/vite/issues/17628 )
- fix: show error if vite client cannot be loaded
([#​17419](https://togithub.com/vitejs/vite/issues/17419 ))
([db5ab1d](db5ab1dfc4 )),
closes [#​17419](https://togithub.com/vitejs/vite/issues/17419 )
- fix(build): env output is not stable
([#​17748](https://togithub.com/vitejs/vite/issues/17748 ))
([b240a83](b240a8347e )),
closes [#​17748](https://togithub.com/vitejs/vite/issues/17748 )
- fix(client): fix vite error path
([#​17744](https://togithub.com/vitejs/vite/issues/17744 ))
([3c1bde3](3c1bde3406 )),
closes [#​17744](https://togithub.com/vitejs/vite/issues/17744 )
- fix(css): resolve url aliases with fragments (fix:
[#​17690](https://togithub.com/vitejs/vite/issues/17690 ))
([#​17691](https://togithub.com/vitejs/vite/issues/17691 ))
([d906d3f](d906d3f8e1 ))
- fix(deps): update all non-major dependencies
([#​17629](https://togithub.com/vitejs/vite/issues/17629 ))
([93281b0](93281b0e09 )),
closes [#​17629](https://togithub.com/vitejs/vite/issues/17629 )
- fix(importMetaGlob): handle alias that starts with hash
([#​17743](https://togithub.com/vitejs/vite/issues/17743 ))
([b58b423](b58b423ba8 )),
closes [#​17743](https://togithub.com/vitejs/vite/issues/17743 )
- fix(ssrTransform): sourcemaps with multiple sources
([#​17677](https://togithub.com/vitejs/vite/issues/17677 ))
([f321fa8](f321fa8de2 )),
closes [#​17677](https://togithub.com/vitejs/vite/issues/17677 )
- chore: extend commit hash
([#​17709](https://togithub.com/vitejs/vite/issues/17709 ))
([4fc9b64](4fc9b6424c )),
closes [#​17709](https://togithub.com/vitejs/vite/issues/17709 )
- chore(deps): update all non-major dependencies
([#​17734](https://togithub.com/vitejs/vite/issues/17734 ))
([9983731](998373120c )),
closes [#​17734](https://togithub.com/vitejs/vite/issues/17734 )
- chore(deps): update typescript
([#​17699](https://togithub.com/vitejs/vite/issues/17699 ))
([df5ceb3](df5ceb35b7 )),
closes [#​17699](https://togithub.com/vitejs/vite/issues/17699 )
- revert: fix(logger): truncate log over 5000 characters long
([#​16581](https://togithub.com/vitejs/vite/issues/16581 ))
([#​17729](https://togithub.com/vitejs/vite/issues/17729 ))
([f4f488f](f4f488fe83 )),
closes [#​16581](https://togithub.com/vitejs/vite/issues/16581 )
[#​17729](https://togithub.com/vitejs/vite/issues/17729 )
</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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 00:05:23 +00:00
renovate[bot]
bb6b7bc593
chore(deps): update rust crate serde_json to v1.0.121 ( #4520 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [serde_json](https://togithub.com/serde-rs/json ) |
workspace.dependencies | patch | `1.0.120` -> `1.0.121` |
---
### Release Notes
<details>
<summary>serde-rs/json (serde_json)</summary>
###
[`v1.0.121`](https://togithub.com/serde-rs/json/releases/tag/v1.0.121 )
[Compare
Source](https://togithub.com/serde-rs/json/compare/v1.0.120...v1.0.121 )
- Optimize position search in error path
([#​1160](https://togithub.com/serde-rs/json/issues/1160 ), thanks
[@​purplesyringa](https://togithub.com/purplesyringa ))
</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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-28 23:10:24 +00:00
renovate[bot]
cb820fb9ad
chore(deps): update github-actions ( #4519 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
|
[cargo-bins/cargo-binstall](https://togithub.com/cargo-bins/cargo-binstall )
| action | minor | `v1.7.4` -> `v1.8.0` |
| [crate-ci/typos](https://togithub.com/crate-ci/typos ) | action | patch
| `v1.23.2` -> `v1.23.5` |
---
### Release Notes
<details>
<summary>cargo-bins/cargo-binstall (cargo-bins/cargo-binstall)</summary>
###
[`v1.8.0`](https://togithub.com/cargo-bins/cargo-binstall/releases/tag/v1.8.0 )
[Compare
Source](https://togithub.com/cargo-bins/cargo-binstall/compare/v1.7.4...v1.8.0 )
*Binstall is a tool to fetch and install Rust-based executables as
binaries. It aims to be a drop-in replacement for `cargo install` in
most cases. Install it today with `cargo install cargo-binstall`, from
the binaries below, or if you already have it, upgrade with `cargo
binstall cargo-binstall`.*
##### In this release:
- Fix: Ignore invalid Github Token (token length < 10)
([#​1836](https://togithub.com/cargo-bins/cargo-binstall/issues/1836 )
[#​1839](https://togithub.com/cargo-bins/cargo-binstall/issues/1839 ))
- Add environment variable `BINSTALL_DISABLE_STRATEGIES` for
`--disable-strategies`
([#​1833](https://togithub.com/cargo-bins/cargo-binstall/issues/1833 )
[#​1838](https://togithub.com/cargo-bins/cargo-binstall/issues/1838 ))
- Add new option `--disable-telemetry` to disable quickinstall
statistics collection
([#​1822](https://togithub.com/cargo-bins/cargo-binstall/issues/1822 )
[#​1831](https://togithub.com/cargo-bins/cargo-binstall/issues/1831 ))
- Feature: Enable maintainers of crate to disable strategies for the
crate using `package.binstall` (can be overriden by CLI users)
([#​1721](https://togithub.com/cargo-bins/cargo-binstall/issues/1721 )
[#​1828](https://togithub.com/cargo-bins/cargo-binstall/issues/1828 ))
- Fix v1 manifest format for git and local path
([#​1815](https://togithub.com/cargo-bins/cargo-binstall/issues/1815 )
[#​1821](https://togithub.com/cargo-bins/cargo-binstall/issues/1821 ))
- Fix: normalize GitHub URLs ending in .git to not ending in .git
([#​1801](https://togithub.com/cargo-bins/cargo-binstall/issues/1801 )
[#​1803](https://togithub.com/cargo-bins/cargo-binstall/issues/1803 )
[#​1804](https://togithub.com/cargo-bins/cargo-binstall/issues/1804 ))
##### Other changes:
- Fixed `install-from-binstall-release.sh` on raspberry pi
([#​1814](https://togithub.com/cargo-bins/cargo-binstall/issues/1814 ))
- Enable feature `native-tls/vendored` if both feature `native-tls` and
`static` is enabled
([#​1694](https://togithub.com/cargo-bins/cargo-binstall/issues/1694 )
[#​1832](https://togithub.com/cargo-bins/cargo-binstall/issues/1832 ))
</details>
<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>
###
[`v1.23.5`](https://togithub.com/crate-ci/typos/releases/tag/v1.23.5 )
[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.23.4...v1.23.5 )
#### \[1.23.5] - 2024-07-25
##### Features
- *(config)* Store config in `Cargo.toml`
###
[`v1.23.4`](https://togithub.com/crate-ci/typos/releases/tag/v1.23.4 )
[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.23.3...v1.23.4 )
#### \[1.23.4] - 2024-07-25
##### Fixes
- Don't correct `countr_one` in C++
###
[`v1.23.3`](https://togithub.com/crate-ci/typos/releases/tag/v1.23.3 )
[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.23.2...v1.23.3 )
#### \[1.23.3] - 2024-07-22
##### Fixes
- Fix `Dockerfile`
</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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-28 21:46:07 +00:00
renovate[bot]
dd6e442235
chore(deps): update vscode npm packages ( #4518 )
...
[](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.11` ->
`20.14.13`](https://renovatebot.com/diffs/npm/@types%2fnode/20.14.11/20.14.13 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [ovsx](https://open-vsx.org )
([source](https://togithub.com/eclipse/openvsx/tree/HEAD/cli )) |
[`0.9.1` -> `0.9.2`](https://renovatebot.com/diffs/npm/ovsx/0.9.1/0.9.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/ )
|
| [typescript](https://www.typescriptlang.org/ )
([source](https://togithub.com/Microsoft/TypeScript )) | [`5.5.3` ->
`5.5.4`](https://renovatebot.com/diffs/npm/typescript/5.5.3/5.5.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/ )
|
---
### Release Notes
<details>
<summary>eclipse/openvsx (ovsx)</summary>
###
[`v0.9.2`](https://togithub.com/eclipse/openvsx/blob/HEAD/cli/CHANGELOG.md#v092-July-2024 )
##### Bug Fixes
- Remove default universal for get operation
([#​944](https://togithub.com/eclipse/openvsx/pull/944 ))
##### Dependencies
- Upgrade `braces` from `3.0.2` to `3.0.3`
([#​953](https://togithub.com/eclipse/openvsx/pull/953 ))
***
</details>
<details>
<summary>Microsoft/TypeScript (typescript)</summary>
###
[`v5.5.4`](https://togithub.com/Microsoft/TypeScript/compare/v5.5.3...c8a7d589e647e19c94150d9892909f3aa93e48eb )
[Compare
Source](https://togithub.com/Microsoft/TypeScript/compare/v5.5.3...v5.5.4 )
</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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-28 18:02:06 +00:00
renovate[bot]
ee94daee42
chore(deps): update rust crates ( #4517 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [env_logger](https://togithub.com/rust-cli/env_logger ) |
workspace.dependencies | patch | `0.11.3` -> `0.11.5` |
|
[json-strip-comments](https://togithub.com/oxc-project/json-strip-comments )
| workspace.dependencies | patch | `1.0.2` -> `1.0.4` |
| [oxc_resolver](https://togithub.com/oxc-project/oxc-resolver ) |
workspace.dependencies | patch | `1.10.0` -> `1.10.2` |
| [similar](https://togithub.com/mitsuhiko/similar ) |
workspace.dependencies | minor | `2.5.0` -> `2.6.0` |
| [tokio](https://tokio.rs )
([source](https://togithub.com/tokio-rs/tokio )) | workspace.dependencies
| minor | `1.38.0` -> `1.39.2` |
---
### Release Notes
<details>
<summary>rust-cli/env_logger (env_logger)</summary>
###
[`v0.11.5`](https://togithub.com/rust-cli/env_logger/blob/HEAD/CHANGELOG.md#0115---2024-07-25 )
[Compare
Source](https://togithub.com/rust-cli/env_logger/compare/v0.11.4...v0.11.5 )
###
[`v0.11.4`](https://togithub.com/rust-cli/env_logger/blob/HEAD/CHANGELOG.md#0114---2024-07-23 )
[Compare
Source](https://togithub.com/rust-cli/env_logger/compare/v0.11.3...v0.11.4 )
</details>
<details>
<summary>oxc-project/oxc-resolver (oxc_resolver)</summary>
###
[`v1.10.2`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#1102---2024-07-16 )
[Compare
Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.10.1...oxc_resolver-v1.10.2 )
##### Chore
- Release FreeBSD
###
[`v1.10.1`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#1101---2024-07-15 )
[Compare
Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.10.0...oxc_resolver-v1.10.1 )
##### Fixed
- resolve module `ipaddr.js` correctly when `extensionAlias` is provided
([#​228](https://togithub.com/oxc-project/oxc_resolver/pull/228 ))
</details>
<details>
<summary>mitsuhiko/similar (similar)</summary>
###
[`v2.6.0`](https://togithub.com/mitsuhiko/similar/blob/HEAD/CHANGELOG.md#260 )
[Compare
Source](https://togithub.com/mitsuhiko/similar/compare/2.5.0...2.6.0 )
- Bump bstr dependency to 1.5.
[#​69](https://togithub.com/mitsuhiko/similar/issues/69 )
</details>
<details>
<summary>tokio-rs/tokio (tokio)</summary>
###
[`v1.39.2`](https://togithub.com/tokio-rs/tokio/releases/tag/tokio-1.39.2 ):
Tokio v1.39.2
[Compare
Source](https://togithub.com/tokio-rs/tokio/compare/tokio-1.39.1...tokio-1.39.2 )
### 1.39.2 (July 27th, 2024)
This release fixes a regression where the `select!` macro stopped
accepting expressions that make use of temporary lifetime extension.
([#​6722])
[#​6722]: https://togithub.com/tokio-rs/tokio/pull/6722
###
[`v1.39.1`](https://togithub.com/tokio-rs/tokio/releases/tag/tokio-1.39.1 ):
Tokio v1.39.1
[Compare
Source](https://togithub.com/tokio-rs/tokio/compare/tokio-1.39.0...tokio-1.39.1 )
##### 1.39.1 (July 23rd, 2024)
This release reverts "time: avoid traversing entries in the time wheel
twice" because it contains a bug. ([#​6715])
[#​6715]: https://togithub.com/tokio-rs/tokio/pull/6715
###
[`v1.39.0`](https://togithub.com/tokio-rs/tokio/releases/tag/tokio-1.39.0 ):
Tokio v1.39.0
[Compare
Source](https://togithub.com/tokio-rs/tokio/compare/tokio-1.38.1...tokio-1.39.0 )
### 1.39.0 (July 23rd, 2024)
- This release bumps the MSRV to 1.70. ([#​6645])
- This release upgrades to mio v1. ([#​6635])
- This release upgrades to windows-sys v0.52 ([#​6154])
##### Added
- io: implement `AsyncSeek` for `Empty` ([#​6663])
- metrics: stabilize `num_alive_tasks` ([#​6619], [#​6667])
- process: add `Command::as_std_mut` ([#​6608])
- sync: add `watch::Sender::same_channel` ([#​6637])
- sync: add
`{Receiver,UnboundedReceiver}::{sender_strong_count,sender_weak_count}`
([#​6661])
- sync: implement `Default` for `watch::Sender` ([#​6626])
- task: implement `Clone` for `AbortHandle` ([#​6621])
- task: stabilize `consume_budget` ([#​6622])
##### Changed
- io: improve panic message of `ReadBuf::put_slice()` ([#​6629])
- io: read during write in `copy_bidirectional` and `copy`
([#​6532])
- runtime: replace `num_cpus` with `available_parallelism`
([#​6709])
- task: avoid stack overflow when passing large future to `block_on`
([#​6692])
- time: avoid traversing entries in the time wheel twice
([#​6584])
- time: support `IntoFuture` with `timeout` ([#​6666])
- macros: support `IntoFuture` with `join!` and `select!`
([#​6710])
##### Fixed
- docs: fix docsrs builds with the fs feature enabled ([#​6585])
- io: only use short-read optimization on known-to-be-compatible
platforms ([#​6668])
- time: fix overflow panic when using large durations with `Interval`
([#​6612])
##### Added (unstable)
- macros: allow `unhandled_panic` behavior for `#[tokio::main]` and
`#[tokio::test]` ([#​6593])
- metrics: add `spawned_tasks_count` ([#​6114])
- metrics: add `worker_park_unpark_count` ([#​6696])
- metrics: add worker thread id ([#​6695])
##### Documented
- io: update `tokio::io::stdout` documentation ([#​6674])
- macros: typo fix in `join.rs` and `try_join.rs` ([#​6641])
- runtime: fix typo in `unhandled_panic` ([#​6660])
- task: document behavior of `JoinSet::try_join_next` when all tasks are
running ([#​6671])
[#​6114]: https://togithub.com/tokio-rs/tokio/pull/6114
[#​6154]: https://togithub.com/tokio-rs/tokio/pull/6154
[#​6532]: https://togithub.com/tokio-rs/tokio/pull/6532
[#​6584]: https://togithub.com/tokio-rs/tokio/pull/6584
[#​6585]: https://togithub.com/tokio-rs/tokio/pull/6585
[#​6593]: https://togithub.com/tokio-rs/tokio/pull/6593
[#​6608]: https://togithub.com/tokio-rs/tokio/pull/6608
[#​6612]: https://togithub.com/tokio-rs/tokio/pull/6612
[#​6619]: https://togithub.com/tokio-rs/tokio/pull/6619
[#​6621]: https://togithub.com/tokio-rs/tokio/pull/6621
[#​6622]: https://togithub.com/tokio-rs/tokio/pull/6622
[#​6626]: https://togithub.com/tokio-rs/tokio/pull/6626
[#​6629]: https://togithub.com/tokio-rs/tokio/pull/6629
[#​6635]: https://togithub.com/tokio-rs/tokio/pull/6635
[#​6637]: https://togithub.com/tokio-rs/tokio/pull/6637
[#​6641]: https://togithub.com/tokio-rs/tokio/pull/6641
[#​6645]: https://togithub.com/tokio-rs/tokio/pull/6645
[#​6660]: https://togithub.com/tokio-rs/tokio/pull/6660
[#​6661]: https://togithub.com/tokio-rs/tokio/pull/6661
[#​6663]: https://togithub.com/tokio-rs/tokio/pull/6663
[#​6666]: https://togithub.com/tokio-rs/tokio/pull/6666
[#​6667]: https://togithub.com/tokio-rs/tokio/pull/6667
[#​6668]: https://togithub.com/tokio-rs/tokio/pull/6668
[#​6671]: https://togithub.com/tokio-rs/tokio/pull/6671
[#​6674]: https://togithub.com/tokio-rs/tokio/pull/6674
[#​6692]: https://togithub.com/tokio-rs/tokio/pull/6692
[#​6695]: https://togithub.com/tokio-rs/tokio/pull/6695
[#​6696]: https://togithub.com/tokio-rs/tokio/pull/6696
[#​6709]: https://togithub.com/tokio-rs/tokio/pull/6709
[#​6710]: https://togithub.com/tokio-rs/tokio/pull/6710
###
[`v1.38.1`](https://togithub.com/tokio-rs/tokio/releases/tag/tokio-1.38.1 ):
Tokio v1.38.1
[Compare
Source](https://togithub.com/tokio-rs/tokio/compare/tokio-1.38.0...tokio-1.38.1 )
### 1.38.1 (July 16th, 2024)
This release fixes the bug identified as ([#​6682]), which caused
timers not
to fire when they should.
##### Fixed
- time: update `wake_up` while holding all the locks of sharded time
wheels ([#​6683])
[#​6682]: https://togithub.com/tokio-rs/tokio/pull/6682
[#​6683]: https://togithub.com/tokio-rs/tokio/pull/6683
</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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-28 17:17:46 +00:00
renovate[bot]
10b92dda1f
chore(deps): update dependency tar to v7.4.3 ( #4516 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tar](https://togithub.com/isaacs/node-tar ) | [`7.4.0` ->
`7.4.3`](https://renovatebot.com/diffs/npm/tar/7.4.0/7.4.3 ) |
[](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>isaacs/node-tar (tar)</summary>
###
[`v7.4.3`](https://togithub.com/isaacs/node-tar/compare/v7.4.2...v7.4.3 )
[Compare
Source](https://togithub.com/isaacs/node-tar/compare/v7.4.2...v7.4.3 )
###
[`v7.4.2`](https://togithub.com/isaacs/node-tar/compare/v7.4.1...v7.4.2 )
[Compare
Source](https://togithub.com/isaacs/node-tar/compare/v7.4.1...v7.4.2 )
###
[`v7.4.1`](https://togithub.com/isaacs/node-tar/compare/v7.4.0...v7.4.1 )
[Compare
Source](https://togithub.com/isaacs/node-tar/compare/v7.4.0...v7.4.1 )
</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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-28 17:04:31 +00:00
Boshen
7446e986c3
feat(codegen): align more esbuild implementations ( #4510 )
2024-07-28 13:35:37 +00:00
Boshen
35654e665c
feat(codegen): align operator precedence with esbuild ( #4509 )
...
closes #4339
2024-07-28 11:48:51 +00:00
Boshen
6a94e3f573
fix(codegen): fixes for esbuild test cases ( #4503 )
2024-07-28 08:57:15 +00:00
Dunqing
b1b66e2a28
Revert "fix(website): incorrect reference displayed" ( #4506 )
...
Reverts oxc-project/oxc#4453
https://github.com/oxc-project/oxc/issues/4467 changes reference_id to zero-based index 😅
2024-07-28 01:58:50 +00:00
oxc-bot
80118cbf3b
Release crates v0.22.1 ( #4508 )
...
## [0.22.1] - 2024-07-27
### Features
- 2477330 ast: Add `AstKind::TSExportAssignment` (#4501 ) (Dunqing)
- aaee07e ast: Add `AstKind::AssignmentTargetPattern`,
`AstKind::ArrayAssignmentTarget` and `AstKind::ObjectAssignmentTarget`
(#4456 ) (Dunqing)
- fd363d1 ast: Add AstKind::get_container_scope_id (#4450 ) (DonIsaac)
- e2735ca span: Add `contains_inclusive` method (#4491 ) (DonIsaac)
### Bug Fixes
- 368112c ast: Remove `#[visit(ignore)]` from
`ExportDefaultDeclarationKind`'s `TSInterfaceDeclaration` (#4497 )
(Dunqing)
- 36bb680 semantic: `TSExportAssignment` cannot reference type binding
(#4502 ) (Dunqing)
- cb2fa49 semantic: `typeof` operator cannot reference type-only import
(#4500 ) (Dunqing)
- ef0e953 semantic: Generic passed to typeof not counted as a reference
(#4499 ) (Dunqing)
- 40cafb8 semantic: Params in `export default (function() {})` flagged
as `SymbolFlags::Export` (#4480 ) (Dunqing)
- 2e01a45 semantic: Non-exported namespace member symbols flagged as
exported (#4493 ) (Don Isaac)
- e4ca06a semantic: Incorrect symbol’s scope_id after var hoisting
(#4458 ) (Dunqing)
- 77bd5f1 semantic: Use correct span for namespace symbols (#4448 ) (Don
Isaac)
- 5db7bed sourcemap: Fix pre-calculation of required segments for
building JSON (#4490 ) (overlookmotel)
- 1667491 syntax: Correct `is_reserved_keyword_or_global_object`'s
incorrect function calling. (#4484 ) (Ethan Goh)
- 82ba2a0 syntax: Fix unsound use of `NonZeroU32` (#4466 )
(overlookmotel)
- c04b9aa transformer: Add to `SymbolTable::declarations` for all
symbols (#4460 ) (overlookmotel)
- ecdee88 transformer/typescript: Incorrect eliminate exports when the
referenced symbol is both value and type (#4507 ) (Dunqing)
### Performance
- 963a2d1 mangler: Reduce unnecessary allocation (#4498 ) (Dunqing)
- 868fc87 parser: Optimize conditional advance on ASCII values (#4298 )
(lucab)
- 24beaeb semantic: Give `AstNodeId` a niche (#4469 ) (overlookmotel)
- 348c1ad semantic: Remove `span` field from `Reference` (#4464 )
(overlookmotel)
- 6a9f4db semantic: Reduce storage size for symbol redeclarations
(#4463 ) (overlookmotel)
- 705e19f sourcemap: Reduce memory copies encoding JSON (#4489 )
(overlookmotel)
- 4d10c6c sourcemap: Pre allocate String buf while encoding (#4476 )
(Brooooooklyn)
### Documentation
- f5f0ba8 ast: Add doc comments to more AST nodes (#4413 ) (Don Isaac)
- 871b3d6 semantic: Add doc comments for SymbolTester and SemanticTester
(#4433 ) (DonIsaac)
### Refactor
- 9c5d2f9 ast/builder: Use `Box::new_in` over `.into_in` (#4428 )
(overlookmotel)
- ccb1835 semantic: Methods take `Span` as param, not `&Span` (#4470 )
(overlookmotel)
- f17254a semantic: Populate `declarations` field in
`SymbolTable::create_symbol` (#4461 ) (overlookmotel)
- a49f491 semantic: Re-order `SymbolTable` fields (#4459 )
(overlookmotel)
- 7cd53f3 semantic: Var hoisting (#4379 ) (Dunqing)
- 4f5a7cb semantic: Mark SemanticTester and SymbolTester as must_use
(#4430 ) (DonIsaac)
- c958a55 sourcemap: `push_list` method for building JSON (#4486 )
(overlookmotel)
- c99b3eb syntax: Give `ScopeId` a niche (#4468 ) (overlookmotel)
- 96fc94f syntax: Use `NonMaxU32` for IDs (#4467 ) (overlookmotel)
### Testing
- 4b274a8 semantic: Add more test cases for symbol references (#4429 )
(DonIsaac)
Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
2024-07-28 09:58:29 +08:00
Dunqing
ecdee88cfb
fix(transformer/typescript): incorrect eliminate exports when the referenced symbol is both value and type ( #4507 )
2024-07-27 12:11:29 -04:00
Dunqing
963a2d1b85
perf(mangler): reduce unnecessary allocation ( #4498 )
...
There seems to be no noticeable change in performance.
2024-07-27 10:55:49 +00:00
overlookmotel
5db7bed4f5
fix(sourcemap): fix pre-calculation of required segments for building JSON ( #4490 )
...
Fix the maths for calculating max number of segments required when building JSON source map.
2024-07-27 10:25:42 +00:00
overlookmotel
705e19f794
perf(sourcemap): reduce memory copies encoding JSON ( #4489 )
...
Reduce memory copies when encoding source map as JSON, extending approach taken in #4476 to also avoid memory copies for source texts.
I believe reason this shows no benefit on benchmarks is because our benchmarks only create a source map from a single source file, but it should result in a speed-up when there are multiple sources.
2024-07-27 10:25:40 +00:00
overlookmotel
c958a557fe
refactor(sourcemap): push_list method for building JSON ( #4486 )
...
Follow up after #4476 . Refactor to remove repeated code.
2024-07-27 10:25:38 +00:00
Dunqing
36bb6805c6
fix(semantic): TSExportAssignment cannot reference type binding ( #4502 )
...
close : #4488
2024-07-27 04:55:03 +00:00
Dunqing
2477330440
feat(ast): add AstKind::TSExportAssignment ( #4501 )
...
part of #4488
2024-07-27 04:55:02 +00:00
Dunqing
cb2fa4924e
fix(semantic): typeof operator cannot reference type-only import ( #4500 )
2024-07-27 00:21:06 -04:00
Dunqing
ef0e953702
fix(semantic): generic passed to typeof not counted as a reference ( #4499 )
2024-07-27 00:16:25 -04:00
Dunqing
40cafb8c61
fix(semantic): params in export default (function() {}) flagged as SymbolFlags::Export ( #4480 )
...
The code changes in `builder.rs` optimize the export flag check in the `SemanticBuilder` implementation. Instead of setting the export flag to `true` for all cases except `ExportDefaultDeclarationKind::ClassDeclaration(ref class)`, the flag is now set to `true` only for `ExportDefaultDeclarationKind::ClassDeclaration` and `false` for all other cases. This change improves the efficiency of the export flag check.
2024-07-27 02:42:24 +00:00
Dunqing
368112c9ac
fix(ast): remove #[visit(ignore)] from ExportDefaultDeclarationKind's TSInterfaceDeclaration ( #4497 )
...
I can't find any reason to add `#[visit(ignore)]` there
2024-07-27 02:11:54 +00:00
Don Isaac
f5f0ba8c33
docs(ast): add doc comments to more AST nodes ( #4413 )
2024-07-26 21:21:35 -04:00
lucab
868fc87885
perf(parser): optimize conditional advance on ASCII values ( #4298 )
...
Part of https://github.com/oxc-project/oxc/issues/3291 .
2024-07-27 01:17:25 +00:00
DonIsaac
e2735ca2c5
feat(span): add contains_inclusive method ( #4491 )
...
Part of #4445 , broken into a separate PR.
2024-07-27 01:05:08 +00:00
Don Isaac
2e01a45b2b
fix(semantic): non-exported namespace member symbols flagged as exported ( #4493 )
...
> Part of #4445
Fixes a bug where non-exported functions and variables inside of
exported TS namespaces were being flagged with `SymbolFlags::Export`
```ts
export namespace Foo {
// incorrectly flagged as exported
function foo() { }
}
```
2024-07-27 08:46:21 +08:00
overlookmotel
f3aedf6501
chore: remove .idea from .gitignore ( #4496 )
...
`.idea` snuck its way into `.gitignore` in #4484 . Remove it again.
See #4355 for reason why it shouldn't be there.
2024-07-26 23:59:24 +00:00
Ethan Goh
1667491868
fix(syntax): correct is_reserved_keyword_or_global_object's incorrect function calling. ( #4484 )
...
It may be a problem, but doesn't matter previously.
Formerly, the `is_reserved_keyword_or_global_object` is
`is_reserved_keyword(s) || is_reserved_keyword(s)`. I think it should be
`is_reserved_keyword(s) || is_global_object(s)` according to its name.
Also, the `.idea` may be because I am using RustRover, which may
automatically create `.idea` folder. So I ignore it in `.gitignore`.
I think I can contribute to `oxc` more when I am free.
2024-07-26 17:20:10 -04:00
overlookmotel
5c40dadb14
chore: order dependencies in Cargo.toml ( #4482 )
...
Order dependencies in `Cargo.toml` in alphabetical order.
2024-07-26 14:20:28 +00:00
Brooooooklyn
4d10c6c9be
perf(sourcemap): pre allocate String buf while encoding ( #4476 )
...
I'm trying llama3.1:70b following [local-ai-copilot](https://developer.ibm.com/tutorials/awb-local-ai-copilot-ibm-granite-code-ollama-continue/ ) to find some potential performance improvement.
The code was not completed by AI; it only identified potential optimizations, which I am testing for effectiveness.
2024-07-26 13:58:09 +00:00
overlookmotel
42a2519b40
ci: run benchmarks on rust-toolchain.toml changes ( #4479 )
...
Upgrading to Rust 1.80.0 (#4474 ) regressed some benchmarks (#4478 ). We
didn't notice because benchmarks didn't run on the PR. Make benchmarks
run on changes to `rust-toolchain.toml` so we'll be alerted if this
happens again on any future updates.
2024-07-26 11:33:41 +01:00
renovate
0c134422ba
chore(deps): update dependency rust to v1.80.0 ( #4474 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [rust](https://togithub.com/rust-lang/rust ) | minor | `1.79.0` -> `1.80.0` |
---
### Release Notes
<details>
<summary>rust-lang/rust (rust)</summary>
### [`v1.80.0`](https://togithub.com/rust-lang/rust/compare/1.79.0...1.80.0 )
[Compare Source](https://togithub.com/rust-lang/rust/compare/1.79.0...1.80.0 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), 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 was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the [repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
2024-07-26 01:26:44 +00:00
overlookmotel
b60bdf1ff7
perf(linter): no_shadow_restricted_names only look up name in hashmap once ( #4472 )
...
`eslint(no_shadow_restricted_names)` lint rule emits a diagnostic for every declaration of a symbol with a restricted name.
Currently for a var which has redeclarations, the var name is looked up in hash map of restricted names repeatedly for each redeclaration. This PR changes that to only do a single hashmap lookup.
Also, if the var name is `undefined`, skip looking it up in hash map, because we already know it's a restricted name.
2024-07-26 01:30:06 +01:00
overlookmotel
ccb1835a45
refactor(semantic): methods take Span as param, not &Span ( #4470 )
...
`Span` is `Copy` and 8 bytes. So better to pass `Span` to functions, rather than `&Span` (which is also 8 bytes, but involves the indirection of a reference).
2024-07-26 00:14:56 +00:00
overlookmotel
24beaeb4ee
perf(semantic): give AstNodeId a niche ( #4469 )
...
Make `AstNodeId` a type with a niche, using `NonMaxU32` as its internal storage. This makes `Option<AstNodeId>` 4 bytes instead of 8. That halves the size of the `Vec` for parent IDs in `AstNodes` (which gets pretty big).
2024-07-26 00:14:53 +00:00
overlookmotel
c99b3eb464
refactor(syntax): give ScopeId a niche ( #4468 )
...
Make `ScopeId` a type with a niche, like `SymbolId` and `ReferenceId`. This makes `Option<ScopeId>` 4 bytes instead of 8, and shrinks various AST types e.g. `ArrowFunctionExpression` by 8 bytes, and halves the size of the `Vec` in `ScopeTree::parent_ids`.
The snapshot change on `prefer-hooks-in-order` lint rule appears incidental - it doesn't alter what errors are reported, only the order they're reported in. This appears to be because it changes the order of keys in a hashmap keyed by `ScopeId` that [the rule uses](a49f4915de/crates/oxc_linter/src/rules/jest/prefer_hooks_in_order.rs (L143) ).
2024-07-26 00:14:50 +00:00
overlookmotel
96fc94f61e
refactor(syntax): use NonMaxU32 for IDs ( #4467 )
...
`SymbolId` and `ReferenceId` are stored as `NonZeroU32`, but with a wrapper to make `u32::MAX` the illegal value, instead of `0`.
Use the existing `nonmax` crate for this. Our current implementation uses `idx + 1` to avoid the zero value, whereas `nonmax` crate uses XOR `idx ^ u32::MAX`, which is a cheaper operation.
Initially I made this change manually instead of pulling in a dependency, but it's a pain because it requires implementing `Debug` and `PartialOrd` by hand to handle the difference between the "actual" value and its stored representation. So I thought better to use a crate which does this for us.
2024-07-26 00:14:47 +00:00
overlookmotel
82ba2a073f
fix(syntax): fix unsound use of NonZeroU32 ( #4466 )
...
`NonZeroU32::new_unchecked(idx as u32 + 1)` is unsound because if `idx == u32::MAX`, `idx + 1` wraps around back to zero. So unfortunately we need to use the checked version `NonZeroU32::new(idx as u32 + 1).unwrap()` to avoid UB in this edge case.
2024-07-26 00:14:44 +00:00
overlookmotel
81384f5059
perf(linter): avoid unnecessary work in nextjs:no_duplicate_head rule ( #4465 )
...
In `nextjs:no_duplicate_head` rule, avoid allocating a `Vec` unless more than one `<Head>` is found (uncommon case).
Also, #4464 made getting span of a `Reference` a little more expensive. Avoid this work unless it's needed (which it generally won't be).
2024-07-26 00:14:41 +00:00
overlookmotel
348c1ade96
perf(semantic): remove span field from Reference ( #4464 )
...
Remove `span` field from `Reference`. Span can instead be got via looking up span on `AstKind` via `reference.node_id`.
This shrinks `Reference` from 20 bytes to 12 bytes.
It does make getting span of a `Reference` a bit slower, as there's an extra table lookup involved, but the only places this is needed is in linter, and almost always when generating a diagnostic (i.e. cold path).
2024-07-26 00:14:38 +00:00
overlookmotel
6a9f4db609
perf(semantic): reduce storage size for symbol redeclarations ( #4463 )
...
Most symbols don't have redeclarations.
So instead of storing `Vec<Span>` directly in `redeclare_variables` (24 bytes per symbol), store `Option<RedeclarationId>` (4 bytes).
`RedeclarationId` indexes into `redeclarations` where the actual `Vec<Span>` is stored. But for symbols with no redeclarations (the vast majority), it takes 4 bytes per symbol only.
2024-07-26 00:14:35 +00:00
overlookmotel
f17254ae2a
refactor(semantic): populate declarations field in SymbolTable::create_symbol ( #4461 )
...
`declarations` field of `SymbolTable` is part of SoA group, where all `Vec`s in the group are indexed by `SymbolId`. Populate `declarations` field along with the rest in `create_symbol`, to prevent them getting out of sync. This will prevent bugs like the one fixed in #4460 .
2024-07-26 00:14:32 +00:00
overlookmotel
c04b9aa5db
fix(transformer): add to SymbolTable::declarations for all symbols ( #4460 )
...
`declarations` field of `SymbolTable` is part of the SoA group field. For it to be valid to index into with `SymbolId`, an entry must be added for every new symbol which is created.
2024-07-26 00:14:29 +00:00
overlookmotel
a49f4915de
refactor(semantic): re-order SymbolTable fields ( #4459 )
...
Group the fields which are SoA indexed by `ScopeId` together.
2024-07-25 14:38:36 +00:00
Dunqing
e4ca06ae8c
fix(semantic): incorrect symbol’s scope_id after var hoisting ( #4458 )
...
Bug found in https://github.com/rolldown/rolldown/pull/1726
2024-07-25 21:12:26 +08:00