Commit Graph

1048 Commits

Author SHA1 Message Date
renovate[bot] bed3f47d6f chore(deps): update github-actions (#10943) 2025-05-12 10:12:48 +08:00
Boshen 22ba60b6c4 feat(napi): add s390x-unknown-linux-gnu build (#10892) 2025-05-08 20:13:41 +08:00
Boshen 308fe732d9 feat(napi): add x86_64-unknown-freebsd and riscv64gc-unknown-linux-gnu builds (#10886)
closes #10822
2025-05-08 18:26:22 +08:00
Boshen 234abd4653 chore(ci): update concurrency group 2025-05-08 16:19:05 +08:00
renovate[bot] fec160476c chore(deps): update github-actions (#10801) 2025-05-05 11:22:35 +08:00
Boshen aece8891d2 chore(ci): rename ci vscode job names (#10805)
So I can identify them in status check settings
2025-05-05 11:22:21 +08:00
Boshen 56566c6927 chore(ci): only run macos on main (#10767)
We do not have macos specific code, only run it on main to reduce resources.
2025-05-04 00:32:48 +08:00
renovate[bot] 477ce48c8e chore(deps): update crate-ci/typos action to v1.32.0 (#10766)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [crate-ci/typos](https://redirect.github.com/crate-ci/typos) | action
| minor | `v1.31.2` -> `v1.32.0` |

---

### Release Notes

<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>

###
[`v1.32.0`](https://redirect.github.com/crate-ci/typos/compare/v1.31.2...v1.32.0)

[Compare
Source](https://redirect.github.com/crate-ci/typos/compare/v1.31.2...v1.32.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNjQuMCIsInVwZGF0ZWRJblZlciI6IjM5LjI2NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-02 15:29:17 +00:00
renovate[bot] ef4c47ca21 chore(deps): update crate-ci/typos action to v1.31.2 (#10679) 2025-04-29 00:43:46 +08:00
renovate[bot] 68497e6e8e chore(deps): update github-actions (#10642) 2025-04-28 09:58:55 +08:00
renovate[bot] d5a1ffa478 chore(deps): update github-actions (#10514) 2025-04-21 09:56:25 +08:00
renovate[bot] 62f35bc7d5 chore(deps): update github-actions (#10382) 2025-04-14 10:58:12 +08:00
renovate[bot] 30bbbb4c9c chore(deps): update github-actions (#10272) 2025-04-07 11:50:12 +08:00
Boshen 49324953f4 chore(oxlint): improve feature and build command (#10270)
Binary size reduced from `6.3M` to `5.8M` with this change.
2025-04-06 15:44:38 +00:00
sapphi-red 2fd2a3cd63 chore(tasks/e2e): separate e2e package from workspace (#10262)
Excluded the tasks/e2e package from the root workspace as suggested in https://github.com/oxc-project/oxc/pull/10190#issuecomment-2772534947.
2025-04-06 14:49:59 +00:00
Boshen 6a11328a0c ci: fix conformance job being skipped 2025-04-01 17:19:20 +08:00
renovate[bot] 5eb27b513b chore(deps): update crate-ci/typos action to v1.31.1 (#10151)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [crate-ci/typos](https://redirect.github.com/crate-ci/typos) | action
| patch | `v1.31.0` -> `v1.31.1` |

---

### Release Notes

<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>

###
[`v1.31.1`](https://redirect.github.com/crate-ci/typos/releases/tag/v1.31.1)

[Compare
Source](https://redirect.github.com/crate-ci/typos/compare/v1.31.0...v1.31.1)

#### \[1.31.1] - 2025-03-31

##### Fixes

-   *(dict)* Also correct `typ` to `type`

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-01 02:31:09 +00:00
renovate[bot] de8c6b22a0 chore(deps): update github-actions (#10136) 2025-03-31 14:52:55 +08:00
Alexander S. 3a154e2b19 fix(ci): paths-filter ignore list (#10142)
closes #10140

it works: https://github.com/oxc-project/oxc/pull/10143/checks

docs:
> Optional parameter to override the default behavior of file matching
algorithm.
By default files that match at least one pattern defined by the filters
will be included.
This parameter allows to override the "at least one pattern" behavior to
make it so that
   all of the patterns have to match or otherwise the file is excluded. 
An example scenario where this is useful if you would like to match all
   .ts files in a sub-directory but not .md files. 
The filters below will match markdown files despite the exclusion syntax
UNLESS
you specify 'every' as the predicate-quantifier parameter. When you do
that,
   it will only match the .ts files in the subdirectory as expected.
   backend:
    - 'pkg/a/b/c/**'
    - '!**/*.jpeg'
    - '!**/*.md'
   predicate-quantifier: 'some'

_https://github.com/dorny/paths-filter?tab=readme-ov-file#usage_
2025-03-31 14:13:02 +08:00
Boshen d82dff91c8 feat(formatter): new implementation based on biome formatter (#10108)
Part of #5068, suggested by @ematipico and @MichaReiser, where @leaysgur
and I explored using biome formatter as the base and made a success. All
credits to the old Rome and the new Biome team.

This PR is in a boilerplate state where some of the functions are marked
as `todo!()`.

I also made the following changes:

* changed the base to be less generic, removed the `Language` and
`Context` generics
* expanded the formatter lifetime to include an `'ast` lifetime
* added access to the source text and comments
* added a mechanism for tracking and accessing parent ast nodes (done by
our codegen)
* removed most of the unit tests because they no longer compile
* removed the `oxc_prettier` crate
2025-03-30 16:54:37 +08:00
renovate[bot] 3d2888eed2 chore(deps): update crate-ci/typos action to v1.31.0 (#10114) 2025-03-29 20:12:13 +08:00
Sysix 410b8d69b4 test(editor): use debug build of the language server (#10083)
closes #10064
2025-03-28 05:28:06 +00:00
renovate[bot] 435bfba27f chore(deps): update crate-ci/typos action to v1.30.3 (#10019) 2025-03-25 09:15:00 +08:00
renovate[bot] 6cc7bbab9e chore(deps): update github-actions (#9988) 2025-03-24 09:31:53 +08:00
Alexander S. 14d599c385 ci(vscode): combine jobs (#9985) 2025-03-24 09:31:22 +08:00
Sysix c3af9a4510 test(editor): add tests for listing all oxc commands (#9930) 2025-03-23 13:39:59 +00:00
Boshen d668be6a98 ci: cache napi job 2025-03-21 15:06:03 +08:00
Hiroshi Ogawa c6bc13aa0d ci(napi/parser): fix build-browser-bundle (#9940)
Fixes
https://github.com/oxc-project/oxc/actions/runs/13984833156/job/39156891248

CI is just trial and error 😭
2025-03-21 14:24:05 +08:00
Hiroshi Ogawa 8e3b20d8e2 feat(napi/parser): add portable wasm browser build (#9901)
- Required by https://github.com/sxzz/ast-explorer/pull/148

<details><summary>(old comment about my failed attempt with
esm.sh)</summary>


https://esm.sh/gh/oxc-project/oxc@03-20-fix_napi_parser_make_wasi_browser_usable_on_cdn/napi/parser/parser.wasi-browser.js

I think this is supposed to work, but redirected wasm ended up 404. It's
possible that this is only for `/gh/` mode and a published package might
work fine.

https://esm.sh/oxc-project/oxc@7d785c3/napi/parser/parser.wasm32-wasi.wasm

I asked it on https://github.com/esm-dev/esm.sh/issues/1109.

---

Testing https://esm.sh/@oxc-parser/wasm, it doesn't look like esm.sh
supports `new URL(.., import.meta.url)` for published packages anyways.

</details>

This PR added a extra script to bundle `wasm.js` into
`browser-bundle.mjs`, which is included in
`@oxc-parser/binding-wasm32-wasi` package. For example, this will allow
`oxc-parser` equivalent (though only sync API) to be consumed on browser
via CDN such as
https://cdn.jsdelivr.net/npm/@oxc-parser/binding-wasm32-wasi/browser-bundle.mjs.

I didn't test an actual package release, but I've tested jsdeliver's gh
prefix works by directlly commiting `browser-bundle.mjs` and wasm on
this branch (now it's removed from commits).

https://cdn.jsdelivr.net/gh/oxc-project/oxc@03-20-fix_napi_parser_make_wasi_browser_usable_on_cdn/napi/parser/browser-bundle.mjs
2025-03-21 11:48:06 +08:00
Boshen 22aec2d607 ci: build oxlint with CC = clang 2025-03-20 13:00:27 +08:00
overlookmotel 74e35677d7 ci(miri): run Miri on oxc_data_structures crate with all features enabled (#9882)
#9849 put all parts of `oxc_data_structures` behind features. I
neglected to make Miri run on the crate with all those features
activated, so it was skipping all the tests. Fix that.
2025-03-19 12:53:01 +08:00
Boshen c8979d9bff chore(wasm/parser): remove parser wasm32-unknown-unknown build (#9865)
In favor of napi wasm32-wasip1-threads build
2025-03-18 10:33:50 +00:00
Boshen 4aa7b3adc6 ci: make mimalloc compile with CC=clang 2025-03-18 16:31:06 +08:00
Boshen 56d44f56dd ci(dprint): install plugins 2025-03-18 13:43:14 +08:00
Boshen 71a86cf92a ci: install dprint in dprint.yml 2025-03-18 13:41:03 +08:00
Boshen bc58e27a20 ci: add workflow_dispatch to dprint.yml 2025-03-18 13:14:08 +08:00
Boshen a967dc26e7 ci: clean up dprint cache (#9845) 2025-03-18 13:09:20 +08:00
Boshen bdfe9b3514 ci: fix test-wasm32-wasip1-threads (#9842) 2025-03-18 13:03:18 +08:00
Boshen 07e24a8123 ci(wasm): clean up test-wasm32-wasip1-threads (#9840) 2025-03-18 04:18:21 +00:00
Hiroshi Ogawa 48bac9278a test(napi/parser): test wasi browser (#9793) 2025-03-18 12:04:09 +08:00
Boshen e893fbbd0e chore(oxc_wasm): remove the oxc_wasm crate in favor of napi/playground (#9833) 2025-03-17 16:17:35 +00:00
Boshen 7149c72e41 chore(renovate): remove renovate/** trigger 2025-03-17 23:48:45 +08:00
Hiroshi Ogawa 30a03a3348 refactor(napi/playground): use napi-rs wasm for playground (#9803)
playground side PR: https://github.com/oxc-project/playground/pull/71

I went ahead testing out this. Let me know if this is not the plan.

I think the benefit is that this allows rust-side playground code to
reuse some code from other napi crates, for example, `oxc_napi` and
`oxc_parser_napi`. For now, I started as mostly copying paste it and
replacing `#[wasm_bindgen]` with `#[napi]`, but I also used `oxc_napi`
for `OxcError` which replaced diagnostic serialization code from
playground.

---------

Co-authored-by: Boshen <boshenc@gmail.com>
2025-03-17 23:45:55 +08:00
renovate[bot] f406b91ecd chore(deps): update github-actions (#9811) 2025-03-17 12:23:01 +08:00
overlookmotel 835984f484 ci(benchmarks): remove NAPI parser benchmarks (#9688)
These benchmarks are slow to run, so I sharded them into multiple jobs.
But that's causing other jobs to get queued up on CI, and is slowing
everything down.

Remove them until can find a way to work around this problem.
2025-03-11 18:38:02 +05:30
renovate[bot] 8db94ff288 chore(deps): update crate-ci/typos action to v1.30.2 (#9657)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [crate-ci/typos](https://redirect.github.com/crate-ci/typos) | action
| patch | `v1.30.1` -> `v1.30.2` |

---

### Release Notes

<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>

###
[`v1.30.2`](https://redirect.github.com/crate-ci/typos/compare/v1.30.1...v1.30.2)

[Compare
Source](https://redirect.github.com/crate-ci/typos/compare/v1.30.1...v1.30.2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - "before 10pm on monday" in timezone Asia/Shanghai.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-11 07:45:06 +08:00
renovate[bot] f623ceeb3c chore(deps): update taiki-e/install-action action to v2.49.18 (#9637)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[taiki-e/install-action](https://redirect.github.com/taiki-e/install-action)
| action | patch | `v2.49.17` -> `v2.49.18` |

---

### Release Notes

<details>
<summary>taiki-e/install-action (taiki-e/install-action)</summary>

###
[`v2.49.18`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.18):
2.49.18

[Compare
Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.17...v2.49.18)

-   Update `just@latest` to 1.40.0.

-   Update `mdbook@latest` to 0.4.47.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
Asia/Shanghai, Automerge - "before 10pm on monday" in timezone
Asia/Shanghai.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-10 07:06:50 +00:00
renovate[bot] 490c1dde16 chore(deps): update github-actions (#9633)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github/codeql-action](https://redirect.github.com/github/codeql-action)
| action | patch | `v3.28.10` -> `v3.28.11` |
|
[peter-evans/create-pull-request](https://redirect.github.com/peter-evans/create-pull-request)
| action | patch | `v7.0.7` -> `v7.0.8` |
|
[taiki-e/install-action](https://redirect.github.com/taiki-e/install-action)
| action | patch | `v2.49.10` -> `v2.49.17` |

---

### Release Notes

<details>
<summary>github/codeql-action (github/codeql-action)</summary>

###
[`v3.28.11`](https://redirect.github.com/github/codeql-action/releases/tag/v3.28.11)

[Compare
Source](https://redirect.github.com/github/codeql-action/compare/v3.28.10...v3.28.11)

### CodeQL Action Changelog

See the [releases
page](https://redirect.github.com/github/codeql-action/releases) for the
relevant changes to the CodeQL CLI and language packs.

#### 3.28.11 - 07 Mar 2025

- Update default CodeQL bundle version to 2.20.6.
[#&#8203;2793](https://redirect.github.com/github/codeql-action/pull/2793)

See the full
[CHANGELOG.md](https://redirect.github.com/github/codeql-action/blob/v3.28.11/CHANGELOG.md)
for more information.

</details>

<details>
<summary>peter-evans/create-pull-request
(peter-evans/create-pull-request)</summary>

###
[`v7.0.8`](https://redirect.github.com/peter-evans/create-pull-request/releases/tag/v7.0.8):
Create Pull Request v7.0.8

[Compare
Source](https://redirect.github.com/peter-evans/create-pull-request/compare/v7.0.7...v7.0.8)

#### What's Changed

- build(deps-dev): bump ts-jest from 29.2.5 to 29.2.6 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/peter-evans/create-pull-request/pull/3751](https://redirect.github.com/peter-evans/create-pull-request/pull/3751)
- build(deps-dev): bump eslint-import-resolver-typescript from 3.8.1 to
3.8.3 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/peter-evans/create-pull-request/pull/3752](https://redirect.github.com/peter-evans/create-pull-request/pull/3752)
- build(deps): bump
[@&#8203;octokit/plugin-paginate-rest](https://redirect.github.com/octokit/plugin-paginate-rest)
from 11.4.2 to 11.4.3 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/peter-evans/create-pull-request/pull/3753](https://redirect.github.com/peter-evans/create-pull-request/pull/3753)
- build(deps-dev): bump prettier from 3.5.1 to 3.5.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/peter-evans/create-pull-request/pull/3754](https://redirect.github.com/peter-evans/create-pull-request/pull/3754)
- fix: suppress output for some git operations by
[@&#8203;peter-evans](https://redirect.github.com/peter-evans) in
[https://github.com/peter-evans/create-pull-request/pull/3776](https://redirect.github.com/peter-evans/create-pull-request/pull/3776)

**Full Changelog**:
https://github.com/peter-evans/create-pull-request/compare/v7.0.7...v7.0.8

</details>

<details>
<summary>taiki-e/install-action (taiki-e/install-action)</summary>

###
[`v2.49.17`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.17):
2.49.17

[Compare
Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.16...v2.49.17)

-   Update `mdbook@latest` to 0.4.46.

-   Update `knope@latest` to 0.18.4.

-   Update `cargo-semver-checks@latest` to 0.40.0.

-   Update `cargo-binstall@latest` to 1.12.0.

###
[`v2.49.16`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.16):
2.49.16

[Compare
Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.15...v2.49.16)

-   Update `shfmt@latest` to 3.11.0.

-   Update `cargo-lambda@latest` to 1.7.1.

###
[`v2.49.15`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.15):
2.49.15

[Compare
Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.14...v2.49.15)

-   Update `release-plz@latest` to 0.3.125.

-   Update `protoc@latest` to 3.30.0.

###
[`v2.49.14`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.14):
2.49.14

[Compare
Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.13...v2.49.14)

-   Update `espup@latest` to 0.14.1.

###
[`v2.49.13`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.13):
2.49.13

[Compare
Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.12...v2.49.13)

-   Update `trunk@latest` to 0.21.8.

###
[`v2.49.12`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.12):
2.49.12

[Compare
Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.11...v2.49.12)

-   Update `cargo-tarpaulin@latest` to 0.32.2.

-   Update `typos@latest` to 1.30.1.

###
[`v2.49.11`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.11):
2.49.11

[Compare
Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.10...v2.49.11)

-   Update `cargo-tarpaulin@latest` to 0.32.1.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
Asia/Shanghai, Automerge - "before 10pm on monday" in timezone
Asia/Shanghai.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-10 07:32:37 +08:00
Boshen c6edafe08d refactor(napi): remove npm/oxc-*/ npm packages (#9631)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-09 22:43:06 +08:00
Boshen e24bc6ab87 ci: napi use wasm32-wasip1-threads for stackblitz 2025-03-07 16:42:02 +08:00