Files
oxc-project__oxc/napi/minify/CHANGELOG.md
oxc-guard[bot] 4a4a1fb2e7 release(crates): oxc v0.145.0 (#25865)
### 💥 BREAKING CHANGES

- 365274e packages/codegen: [**BREAKING**] `printSync` return an object
(#25720) (overlookmotel)

### 🚀 Features

- 6a7eb60 packages/codegen: Alter capitalization of `sourceFilename`
option (#25854) (overlookmotel)
- 300763f packages/codegen: Add full source map support (#25585)
(camc314)
- a169e4a napi/minify: Expose property name mangling options (#24741)
(Dunqing)
- 2f5cdb1 minifier: Add property name mangling (#24740) (Dunqing)
- 4922141 mangler: Deduplicate private accessor names (#25601) (camc314)
- 1c4f519 napi: Add Relay transform plugin (#25503) (Boshen)
- a4478e9 codegen: Add `oxc-codegen` package (#25488) (overlookmotel)

### 🐛 Bug Fixes

- 0fbcf64 codegen: Validate sourcemap options (#25860) (camc314)
- 345f981 react_compiler: Skip node_modules by default (#25859) (Boshen)
- ab81f3f minifier: Drop side-effect-free additions (#25639) (Dunqing)
- 241c559 napi/minify: Accept RegExp for property filters (#25827)
(Dunqing)
- 4cc7ea4 codegen: Reject invalid indent options (#25807) (camc314)
- 53f9295 isolated-declarations: Preserve undefined for defaulted any
(#25292) (camc314)
- 8ab883a codegen: Preserve property key annotations (#25766) (Dunqing)
- b13fd48 minifier: Model uninitialized module vars as undefined
(#25497) (Dunqing)
- f6000ac ecmascript: Fold `**` with `Number::exponentiate`, not IEEE
`pow` (#25644) (Kotaro Chikuba)
- b846abc isolated-declarations: Handle ambient expando properties
(#25655) (camc314)
- dec0a86 react-compiler: Standardize diagnostics (#25702) (Boshen)
- fca2e0c parser: Reject initialized lexical declarations in for-in
(#25700) (Boshen)
- ae9be8f parser: Forbid type parameters on quoted constructors (#25696)
(Boshen)
- c5f188a react-compiler: Use Babel v1 validation defaults (#25676)
(Boshen)
- db44651 napi: Disable reuseWorker in browser bindings (#25640)
(leaysgur)
- ce35d47 react_compiler: Preserve JSX import source pragmas (#25592)
(Boshen)
- 059784d semantic: Respect shadowed `Infinity` and `NaN` in enum
evaluation (#25604) (camc314)
- bb5a232 minifier: Keep variable declaration initilized with class when
keepNames is enabled (#25584) (sapphi-red)
- f49229d minifier: Keep side effects when rotating bitwise operands
(#25596) (Kotaro Chikuba)
- e82495b ecmascript: Derive `ToNumber` of `!x` from `ToBoolean`
(#25595) (Kotaro Chikuba)
- 509931b semantic: Classify global references per identifier (#25608)
(camc314)
- 80484ce mangler: Correct base54 safety comment (#25606) (camc314)
- c1369a7 codegen: Resolve private names in class heritage (#25588)
(camc314)
- c002f29 codegen: Escape sources for empty import specifiers (#25586)
(camc314)
- 0c68b7f estree: Emit `decorators` on `FormalParameterRest` (#25582)
(camc314)
- cdf1846 semantic: Allow legacy escapes in JSX attributes (#25576)
(Boshen)
- e75e102 minifier: Preserve block statement in labeled iteration
statements (#25162) (Armano)
- 771d79a mangler: Exclude non-manglable symbols from slot assignment
(#25539) (sapphi-red)
- 76b19f5 minifier: Avoid duplicating large folded strings (#25532)
(Dunqing)
- 59e8895 codegen: Validate starting indent level (#25550) (camc314)
- 88b34f2 clippy: Remove unneeded `unsafe` (#25551) (camc314)
- 23a7ad0 parser: Stop delimited lists at end of file (#25542) (Boshen)
- 73acba9 parser: Preserve fatal errors during await reparse (#25541)
(Boshen)
- c3e99d1 minifier: Avoid invalid octal escapes in template folds
(#25495) (Dunqing)
- b4e6a9e codegen: Output newline after `export default interface`
(#25487) (overlookmotel)
- 5fcf683 minifier: Correct issue with try finally termination (#25185)
(Armano)
- 1645d93 react_compiler: Preserve source spans (#25462) (Boshen)
- 8d7f9cf react_compiler: Honor eslint suppressions (#25394) (Boshen)

### ⚡ Performance

- 568203e ecmascript: Use binary search for known globals (#25817)
(Boshen)
- c84ede3 estree_tokens: Share JS token update entry point (#25826)
(Boshen)
- 9a6e862 minifier: Move owned statements directly (#25835) (Dunqing)
- 61b2aef minifier: Move owned AST nodes directly (#25837) (Dunqing)
- 673b04b minifier: Replace expressions without take_in dummies (#25836)
(Dunqing)
- 63ff8ef linter: Outline diagnostic construction (#25762) (Boshen)
- 621808e diagnostics: Measure graphemes lazily (#25723) (Boshen)
- f62ed0e diagnostics: Optimize graphical number rendering (#25715)
(Boshen)
- 7152834 diagnostics: Reduce graphical formatting overhead (#25714)
(Boshen)
- 10fc4b7 diagnostics: Reduce graphical rendering allocations (#25711)
(Boshen)
- 9c8abab diagnostics: Batch graphical reports (#25710) (Boshen)
- 757f3d4 mangler: Share allocated names across reused slots (#25605)
(camc314)
- 5444cbf codegen: Skip escaping harmless `<` tokens (#25564) (camc314)

### 📚 Documentation

- 58f7ab9 packages/codegen: Reformat docs and comments (#25848)
(overlookmotel)
- 627466e transform-react: Document all options (#25800) (Boshen)
- ce03ac1 packages/codegen: Fix JSDoc comments for `printSync` (#25722)
(overlookmotel)
- 386a699 packages/codegen: Correct JSDoc comment (#25716)
(overlookmotel)
- 31e571d mangler: Update code example (#25599) (camc314)
- fd62354 codegen: Revamp package readme (#25560) (camc314)
- ffa3153 codegen: Clarify raw transfer Node requirement (#25565)
(camc314)
- c5d4063 codegen: Clarify binary walk allocations (#25562) (camc314)
- 5703d7a codegen: Correct stale printer comments (#25561) (camc314)

Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
2026-08-18 22:26:40 +08:00

11 KiB

Changelog

All notable changes to this package will be documented in this file.

The format is based on Keep a Changelog.

[0.145.0] - 2026-08-18

🚀 Features

  • a169e4a napi/minify: Expose property name mangling options (#24741) (Dunqing)
  • 2f5cdb1 minifier: Add property name mangling (#24740) (Dunqing)

🐛 Bug Fixes

  • 241c559 napi/minify: Accept RegExp for property filters (#25827) (Dunqing)
  • db44651 napi: Disable reuseWorker in browser bindings (#25640) (leaysgur)

[0.139.0] - 2026-07-06

🚀 Features

  • 4eb074e mangler: Add reserved option for names that must not be mangled (#24041) (Dunqing)

[0.135.0] - 2026-06-08

📚 Documentation

  • 275d318 napi/minifier: Point target to oxc docs (#23102) (camc314)

[0.133.0] - 2026-05-26

🚀 Features

  • e857b0c napi/minify: Expose legalComments option and result (#20370) (Boshen)

[0.128.0] - 2026-04-27

🛡️ Security

  • d8076c9 deps: Update rolldown (#21639) (renovate)

[0.125.0] - 2026-04-13

🚀 Features

  • f134e24 minifier: Support property_write_side_effects option to drop unused property assignments (#20773) (Dunqing)

[0.119.0] - 2026-03-14

🚀 Features

  • e7163b6 ecmascript: Add known-globals to side-effect-free property reads (#20212) (Dunqing)

[0.117.0] - 2026-03-09

🐛 Bug Fixes

  • ee0491e apps,napi: Explicitly specify libs in tsconfigs (#20071) (camc314)

⚡ Performance

  • 2baa5fb napi: Unify build-test profile to coverage for cache sharing (#20090) (Boshen)

[0.113.0] - 2026-02-10

💥 BREAKING CHANGES

  • 2bf7293 mangler: [BREAKING] Enable top_level by default for modules and commonjs (#18278) (sapphi-red)

🐛 Bug Fixes

  • 487601b napi: Disable mimalloc on Windows to fix worker_threads crash (#18923) (Boshen)

[0.111.0] - 2026-01-26

💥 BREAKING CHANGES

  • af0ca46 span: [BREAKING] Use ModuleKind::CommonJS for SourceType::cjs() (#18276) (sapphi-red)

📚 Documentation

  • 8ccd853 npm: Update package homepage URLs and add keywords (#18509) (Boshen)

[0.106.0] - 2025-12-29

🚀 Features

  • e031056 codegen: Add sourcemap feature flag (#17305) (Boshen)
  • 8e4409a minifier: Add invalid_import_side_effects option (#17300) (sapphi-red)

[0.102.0] - 2025-12-08

💥 BREAKING CHANGES

  • 083fea9 napi/parser: [BREAKING] Represent empty optional fields on JS side as null (#16411) (overlookmotel)

[0.100.0] - 2025-12-01

💥 BREAKING CHANGES

  • 934d873 napi: [BREAKING] Drop armv7-unknown-linux-musleabihf support (#16105) (Boshen)

[0.98.0] - 2025-11-17

💥 BREAKING CHANGES

  • ea51b0b napi: [BREAKING] Standardize function naming with sync suffixes (#15661) (Boshen)

🚀 Features

  • f5ce55a napi: Export all options using wildcard exports (Boshen)

[0.97.0] - 2025-11-11

🚀 Features

  • 1c31cb1 napi/minify: Expose treeshake options (#15109) (copilot-swe-agent)

📚 Documentation

  • 3dc24b5 linter,minifier: Always refer as "ES Modules" instead of "ES6 Modules" (#15409) (sapphi-red)

[0.96.0] - 2025-10-30

🚀 Features

  • 9e36186 napi/minify: Expose drop_labels option (#14635) (sapphi-red)
  • d09c7ee minifier: Add drop_labels feature (#14634) (sapphi-red)

[0.95.0] - 2025-10-15

🚀 Features

  • c19c9ec napi/minify: Expose join_vars, sequences, and max_iterations options (#14545) (IWANABETHATGUY)

🐛 Bug Fixes

  • 32a41cf napi/minify: S/passes/max_iterations to avoid confusion (#14608) (Boshen)
  • 14686a4 napi/minify: Handle boolean values for compress.unused option (#14513) (Kentaro Suzuki)

[0.92.0] - 2025-09-24

🐛 Bug Fixes

  • 2f9e16d napi/minifier, napi/transformer: Rename CommonJS file to .cjs (#14047) (overlookmotel)

🚜 Refactor

  • cc0019f napi: Move scripts into scripts directory (#14048) (overlookmotel)

[0.92.0] - 2025-09-24

🐛 Bug Fixes

  • 2f9e16d napi/minifier, napi/transformer: Rename CommonJS file to .cjs (#14047) (overlookmotel)

🚜 Refactor

  • cc0019f napi: Move scripts into scripts directory (#14048) (overlookmotel)

[0.91.0] - 2025-09-22

💥 BREAKING CHANGES

  • 6fcb0d0 minifier: [BREAKING] Receive supported engines instead of ecmascript versions (#13933) (sapphi-red)

🐛 Bug Fixes

  • 21bbf95 napi: Rebuild bindings file for NAPI packages (#13889) (overlookmotel)

💼 Other

  • fb347da crates: V0.91.0 (#13961) (Boshen)

[0.91.0] - 2025-09-22

💥 BREAKING CHANGES

  • 6fcb0d0 minifier: [BREAKING] Receive supported engines instead of ecmascript versions (#13933) (sapphi-red)

🐛 Bug Fixes

  • 21bbf95 napi: Rebuild bindings file for NAPI packages (#13889) (overlookmotel)

💼 Other

  • fb347da crates: V0.91.0 (#13961) (Boshen)

[0.91.0] - 2025-09-21

💥 BREAKING CHANGES

  • 6fcb0d0 minifier: [BREAKING] Receive supported engines instead of ecmascript versions (#13933) (sapphi-red)

🐛 Bug Fixes

  • 21bbf95 napi: Rebuild bindings file for NAPI packages (#13889) (overlookmotel)

[0.91.0] - 2025-09-21

💥 BREAKING CHANGES

  • 6fcb0d0 minifier: [BREAKING] Receive supported engines instead of ecmascript versions (#13933) (sapphi-red)

🐛 Bug Fixes

  • 21bbf95 napi: Rebuild bindings file for NAPI packages (#13889) (overlookmotel)

[0.90.0] - 2025-09-18

🚀 Features

  • b52389a node: Bump engines field to require Node.js 20.19.0+ for ESM support (#13879) (Copilot)

🐛 Bug Fixes

  • 9796ec1 napi: Fix binding files (Boshen)

[0.90.0] - 2025-09-18

🚀 Features

  • b52389a node: Bump engines field to require Node.js 20.19.0+ for ESM support (#13879) (Copilot)

🐛 Bug Fixes

  • 9796ec1 napi: Fix binding files (Boshen)

[0.83.0] - 2025-08-29

💥 BREAKING CHANGES

  • 34d0a01 napi/minify,transform: [BREAKING] Change module type to ESM (#13349) (Boshen)

🚀 Features

  • 593f54c minifier: Add --max-iterations for debugging (#13291) (sapphi-red)
  • a0e0a91 oxc_minify_napi: Expose CodeGenOptions (#13288) (sapphi-red)

[0.83.0] - 2025-08-29

💥 BREAKING CHANGES

  • 34d0a01 napi/minify,transform: [BREAKING] Change module type to ESM (#13349) (Boshen)

🚀 Features

  • 593f54c minifier: Add --max-iterations for debugging (#13291) (sapphi-red)
  • a0e0a91 oxc_minify_napi: Expose CodeGenOptions (#13288) (sapphi-red)

[0.82.3] - 2025-08-20

🐛 Bug Fixes

  • f10ac33 codegen: Remove end sourcemaps for }, ], ) (#13180) (Boshen)

[0.82.3] - 2025-08-20

🐛 Bug Fixes

  • f10ac33 codegen: Remove end sourcemaps for }, ], ) (#13180) (Boshen)

[0.82.2] - 2025-08-17

🚜 Refactor

  • 5223562 codegen: Adjust some source mappings (#13084) (Boshen)

[0.82.2] - 2025-08-17

🚜 Refactor

  • 5223562 codegen: Adjust some source mappings (#13084) (Boshen)

[0.82.1] - 2025-08-13

🚀 Features

  • 993db89 minifier: .minify and .dce methods; run dce in loop (#13026) (Boshen)

[0.82.1] - 2025-08-13

🚀 Features

  • 993db89 minifier: .minify and .dce methods; run dce in loop (#13026) (Boshen)

[0.80.0] - 2025-08-03

🚀 Features

  • 2093f65 napi/minify: Make MinifyOptions pub (#12753) (Boshen)

🧪 Testing

  • 0ec214b napi: Compile tests in debug mode (#12750) (overlookmotel)

[0.80.0] - 2025-08-03

🚀 Features

  • 2093f65 napi/minify: Make MinifyOptions pub (#12753) (Boshen)

🧪 Testing

  • 0ec214b napi: Compile tests in debug mode (#12750) (overlookmotel)

[0.79.1] - 2025-07-31

🚀 Features

  • a286dd4 minifier: Remove unnecessary 'use strict' directive (#12642) (Boshen)
  • 75cf797 napi/minify: Publish crate (#12611) (Boshen)

[0.79.1] - 2025-07-31

🚀 Features

  • a286dd4 minifier: Remove unnecessary 'use strict' directive (#12642) (Boshen)
  • 75cf797 napi/minify: Publish crate (#12611) (Boshen)

[0.78.0] - 2025-07-24

🚜 Refactor

  • 1cf08c0 minifier: Make DCE remove more code to align with rollup (#12427) (Boshen)

[0.77.3] - 2025-07-20

⚡ Performance

  • 8bae417 codegen: Remove the useless tokens generated by some expressions (#12394) (Boshen)

[0.77.1] - 2025-07-16

🚀 Features

  • 1b80633 minifier: Remove unused function declaration (#12318) (Boshen)
  • 3f33e8c minifier: Remove unused assignment expression (#12314) (Boshen)
  • fb8289c minifier: Remove unused variable declaration (#11796) (Boshen)

🐛 Bug Fixes

  • cd98426 semantic: Handle var hoisting in catch block with same catch parameter name (#12313) (Dunqing)

[0.77.0] - 2025-07-12

🚜 Refactor

  • baa3726 tests/napi: Add build-test script for tests (#12132) (camc314)

[0.76.0] - 2025-07-08

🚀 Features

  • 395aa5e napi/minify: Return parse errors (#12112) (Boshen)

[0.74.0] - 2025-06-23

💥 BREAKING CHANGES

  • 7a05e71 minifier: [BREAKING] Add Treeshake options (#11786) (Boshen)

[0.73.1] - 2025-06-17

🚀 Features

  • 81ef443 napi: Add aarch64-linux-android target (#11769) (LongYinan)

[0.73.0] - 2025-06-13

📚 Documentation

  • b5a6a6e napi: Add stackblitz examples (Boshen)

Changelog

All notable changes to this package will be documented in this file.

The format is based on Keep a Changelog, and this project does not adhere to Semantic Versioning until v1.0.0.

[0.72.3] - 2025-06-06

Features

  • 1401839 napi: Add webcontainer fallback to transform and minify packages (#11471) (Boshen)

Bug Fixes

  • ab0dd29 napi: Napi build cache problem (#11479) (LongYinan)

[0.71.0] - 2025-05-20

Features

  • d67c9e5 napi: Bump napi to beta (#11159) (Boshen)

Bug Fixes

  • 963167d napi: Fix cfg feature on global_allocator (Boshen)

[0.70.0] - 2025-05-15

Features

  • 647b6f3 napi: Add arm musl (#10958) (Bernd Storath)

Bug Fixes

  • 584d8b9 napi: Enable mimalloc no_opt_arch feature on linux aarch64 (#11053) (Boshen)

[0.69.0] - 2025-05-09

Features

  • 22ba60b napi: Add s390x-unknown-linux-gnu build (#10892) (Boshen)
  • 308fe73 napi: Add x86_64-unknown-freebsd and riscv64gc-unknown-linux-gnu builds (#10886) (Boshen)

[0.68.1] - 2025-05-04

Bug Fixes

  • bd953fc napi/minify: Need to remove all comments (#10785) (Boshen)

[0.68.0] - 2025-05-03

Features

  • b01cb45 codegen: A way to keep legal comments after minification (#10689) (Boshen)

[0.61.2] - 2025-03-23

Features

  • ea3de06 mangler: Support keep_names option (#9898) (sapphi-red)

[0.61.0] - 2025-03-20

Features

  • dcd356e minifier: Support keep_names option (#9867) (sapphi-red)
  • 6565fc4 napi: Feature gate allocator (#9921) (Boshen)

Testing

  • e637e2e napi/parser: Tweak vitest config (#9878) (Hiroshi Ogawa)

[0.60.0] - 2025-03-18

Features

  • aa3dff8 napi: Add mimalloc to parser and transformr (#9859) (Boshen)

Refactor

  • 7106e5d napi: Disable unused browser fs (#9848) (hi-ogawa)

[0.59.0] - 2025-03-18

Performance

  • 84fa538 minify: Use mimalloc-safe to replace mimalloc (#9810) (LongYinan)

[0.58.0] - 2025-03-13

Documentation

  • a6c9b09 napi/minifier: Improve documentation (#9736) (Boshen)

[0.57.0] - 2025-03-11

  • ef6e0cc semantic: [BREAKING] Combine SymbolTable and ScopeTree into Scoping (#9615) (Boshen)

Refactor

  • c6edafe napi: Remove npm/oxc-*/ npm packages (#9631) (Boshen)