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
ac3e9e966a
refactor(napi/parser): move JS code into src-js directory ( #13899 )
...
Pure refactor. Root of `napi/parser` was getting really crowded with tons of files, and I'm about to add a load more for the ESTree walker.
Move JS source files into a `src-js` directory, like in `apps/oxlint`, so that the root of the package is just config files and scripts.
2025-09-19 08:46:42 +00:00