루밀LuMir
e4cea255b7
docs(transform): use the node: namespace in the example ( #19998 )
...
Hi,
This PR simply updates the documentation example in
`napi/transform/README.md` to use the `node:` namespace when importing a
Node.js built-in module.
As far as I know, the `node:` namespace prefix for built-in modules was
introduced in Node.js `14.18.0` and `16.0.0`, so it should work with the
current Node.js supported version range.
https://github.com/oxc-project/oxc/blob/6245c5629f2ca3bbbfbaffd1400fad06cc23d659/napi/transform/package.json#L87-L89
Also, it appears that the other source files already use it when
importing Node.js built-in modules.
https://github.com/oxc-project/oxc/blob/6245c5629f2ca3bbbfbaffd1400fad06cc23d659/napi/transform/scripts/patch.js#L1-L2
https://github.com/oxc-project/oxc/blob/6245c5629f2ca3bbbfbaffd1400fad06cc23d659/napi/transform/webcontainer-fallback.cjs#L1-L2
Please let me know if there's anything wrong with this change!
2026-04-23 22:43:16 +01:00
Boshen
8ccd853d91
docs(npm): update package homepage URLs and add keywords ( #18509 )
...
## Summary
- Update homepage links to point to specific documentation pages (e.g., `https://oxc.rs/docs/guide/usage/linter `)
- Add usage instruction links to napi package READMEs
- Add relevant keywords for better npm discoverability
🤖 Generated with [Claude Code](https://claude.com/claude-code )
2026-01-25 07:02:08 +00:00
camc314
6c1f690fe8
chore(napi/transform): remove alpha note in readme ( #17828 )
...
I think it makes sense to remove this line so that AI doesn't pick this up, thinking it's still alpha software
2026-01-09 15:32:51 +00:00
renovate
5ac8a3e98a
chore(deps): update dependency oxfmt to ^0.22.0 ( #17679 )
...
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/ ) | [Adoption](https://docs.renovatebot.com/merge-confidence/ ) | [Passing](https://docs.renovatebot.com/merge-confidence/ ) | [Confidence](https://docs.renovatebot.com/merge-confidence/ ) |
|---|---|---|---|---|---|
| [oxfmt](https://oxc.rs ) ([source](https://redirect.github.com/oxc-project/oxc/tree/HEAD/npm/oxfmt )) | [`^0.21.0` → `^0.22.0`](https://renovatebot.com/diffs/npm/oxfmt/0.21.0/0.22.0 ) |  |  |  |  |
---
### Release Notes
<details>
<summary>oxc-project/oxc (oxfmt)</summary>
### [`v0.22.0`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxfmt/CHANGELOG.md#0220---2026-01-05 )
[Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxfmt_v0.21.0...oxfmt_v0.22.0 )
##### 💥 BREAKING CHANGES
- [`f7da875`](https://redirect.github.com/oxc-project/oxc/commit/f7da875 ) oxlint: \[**BREAKING**] Remove oxc\_language\_server binary ([#​17457](https://redirect.github.com/oxc-project/oxc/issues/17457 )) (Boshen)
##### 🚀 Features
- [`8fd4ea9`](https://redirect.github.com/oxc-project/oxc/commit/8fd4ea9 ) oxfmt: `options.embeddedLanguageFormatting` is now `"auto"` by default ([#​17649](https://redirect.github.com/oxc-project/oxc/issues/17649 )) (leaysgur)
</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://mend.io/renovate/ ). View the [repository job log](https://developer.mend.io/github/oxc-project/oxc ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi42OS4xIiwidXBkYXRlZEluVmVyIjoiNDIuNjkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
2026-01-06 01:39:42 +00:00
Boshen
ea51b0b5c8
feat(napi)!: standardize function naming with sync suffixes ( #15661 )
...
closes #15576
## Summary
Standardizes function naming across all NAPI packages (parser, transform, minify) with a consistent pattern:
- Async functions: `verb` (no suffix)
- Sync functions: `verbSync` (with Sync suffix)
## Changes
### Breaking Changes
**napi/parser:**
- `parseAsync` → `parse` (async)
- `parseSync` remains unchanged (sync)
**napi/transform:**
- `transformAsync` → `transform` (async)
- `transform` → `transformSync` (sync)
- `isolatedDeclaration` → `isolatedDeclarationSync` (sync)
- Added new `isolatedDeclaration` function (async)
- `moduleRunnerTransform` → `moduleRunnerTransformSync` (sync)
- Added new `moduleRunnerTransform` function (async)
**napi/minify:**
- `minify` → `minifySync` (sync)
- Added new `minify` function (async)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
2025-11-13 12:28:23 +00:00
overlookmotel
7a50ad99be
docs(napi/parser, napi/transform): correct README examples ( #13934 )
...
Docs were out of date. `oxc-parser` and `oxc-transform` packages are now ESM-only, so the code examples would no longer run. Correct them.
2025-09-19 19:58:04 +00:00
Boshen
b5a6a6e78f
docs(napi): add stackblitz examples
2025-06-06 20:27:35 +08:00
ocavue
78cdb1c525
docs(transform): correct tsc's --isolatedDeclarations flag ( #10502 )
...
This PR fixes a typo about isolated declarations CLI option in the docs.
The correct option name is `--isolatedDeclarations` ([document
link](https://www.typescriptlang.org/docs/handbook/compiler-options.html#:~:text=%2D%2DisolatedDeclarations )).
I also add some other tiny improvements to the docs.
2025-04-19 13:46:21 +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