Post

🚨 PSA: Breaking Change in Oxc v0.98.0 We've updated exposed function names to have a uniform naming pattern and to always expose both, synchronous and asynchronous functions. Async: `<name>()` -> `minify()` Sync: `<name>Sync()` -> `minifySync()` More below and in github.com/oxc-project/...

github.comnapi: align API signature · Issue #15576 · oxc-project/oxcThe naming of the exposed functions are inconsistent. The current namings are: oxc-minify minify (sync) oxc-parser parseSync (sync) parseAsync (async) oxc-transform transform (sync) transformAsync ...

This applies to the minifier, parser, and transformer, when used programmatically. ➡️ Minifier • `minify` • Sync call changed from `minify` -> `minifySync` • `minify` is now an async fn ➡️ Parser • `parseSync` / `parseAsync` • Async fn renamed from `parseAsync` -> `parse`

➡️ Transformer • `transform` • Sync fn renamed form `transform` -> `transformSync` • Async fn renamed from `transformAsync` -> `transform` • `isolatedDeclaration` • Sync fn renamed from `isolatedDeclaration` -> `isolatedDeclarationSync` • `isolatedDeclaration` is now async

0 reposts7 likes

No replies yet.