# What changed in quickjs-emscripten

> 9 changes in quickjs-emscripten 0.32 from its official release notes, upgrade guides and advisories: 1 breaking, 5 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/quickjs-emscripten/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## quickjs-emscripten 0.32

### Breaking changes

- The BigNum extension is removed. (0.32.0) — [release notes](https://github.com/justjake/quickjs-emscripten/blob/94b2acb5d4d02d0fbaf4589efa8ca9747bc81733/CHANGELOG.md#v0320)

### New APIs and options

- HostRef is exposed for use from QuickJSContext to track references to host values from guest handles. (0.32.0) — [release notes](https://github.com/justjake/quickjs-emscripten/blob/94b2acb5d4d02d0fbaf4589efa8ca9747bc81733/CHANGELOG.md#v0320)
- QuickJSContext adds newConstructorFunction; its functions set this to the newly constructed object and may also return a new object. (0.32.0) — [release notes](https://github.com/justjake/quickjs-emscripten/blob/94b2acb5d4d02d0fbaf4589efa8ca9747bc81733/CHANGELOG.md#v0320)
- QuickJSContext exposes newHostRef for working with HostRef. (0.32.0) — [release notes](https://github.com/justjake/quickjs-emscripten/blob/94b2acb5d4d02d0fbaf4589efa8ca9747bc81733/CHANGELOG.md#v0320)
- QuickJSContext exposes toHostRef for working with HostRef. (0.32.0) — [release notes](https://github.com/justjake/quickjs-emscripten/blob/94b2acb5d4d02d0fbaf4589efa8ca9747bc81733/CHANGELOG.md#v0320)
- QuickJSContext exposes unwrapHostRef for working with HostRef. (0.32.0) — [release notes](https://github.com/justjake/quickjs-emscripten/blob/94b2acb5d4d02d0fbaf4589efa8ca9747bc81733/CHANGELOG.md#v0320)

### Behavior and default changes

- BigInt is now always enabled among the runtime intrinsics. (0.32.0) — [release notes](https://github.com/justjake/quickjs-emscripten/blob/94b2acb5d4d02d0fbaf4589efa8ca9747bc81733/CHANGELOG.md#v0320)
- Function binding uses HostRef tracking so host values become garbage collectable after all host and guest references are disposed. (0.32.0) — [release notes](https://github.com/justjake/quickjs-emscripten/blob/94b2acb5d4d02d0fbaf4589efa8ca9747bc81733/CHANGELOG.md#v0320)
- QuickJSIterator now supports generator return values. (0.32.0) — [release notes](https://github.com/justjake/quickjs-emscripten/blob/94b2acb5d4d02d0fbaf4589efa8ca9747bc81733/CHANGELOG.md#v0320)
