# What changed in @yao-pkg/pkg

> 12 changes in @yao-pkg/pkg 6 from its official release notes, upgrade guides and advisories: 3 new APIs and options. Each one cited. Sources checked 2026-10-23. HTML: https://unstale.sh/npm/@yao-pkg/pkg/

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

## @yao-pkg/pkg 6

### New APIs and options

- Adds a per-file transform build hook. (6.21.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.21.0)
- Adds the postBuild build hook. (6.21.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.21.0)
- Adds the preBuild build hook. (6.21.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.21.0)

### Fixes and other changes

- Updates the Node.js runtimes to 24.20.0 and 26.8.1. (6.23.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.23.0)
- Patches process.dlopen in worker threads for SEA. (6.23.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.23.0)
- Treats private class methods as function boundaries when detecting top-level await. (6.23.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.23.0)
- Throws instead of crashing when Intl.Segmenter is used with small-icu. (6.22.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.22.0)
- Updates the available Node.js runtimes to 22.23.2, 24.18.1, and 26.5.1. (6.22.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.22.0)
- Picks up six additional silent-drop shapes, including re-exports, new URL, multi-argument path.join, path.resolve(__dirname,…), createRequire aliases, and import.meta.resolve. (6.21.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.21.0)
- Updates the fetched Node.js runtimes to include 22.22.3, 24.15.0, and 26.2.0. (6.21.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.21.0)
- Updates the fetched Node.js runtimes to include 22.23.1, 24.18.0, and 26.4.0. (6.21.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.21.0)
- Sets process.pkg in worker threads. (6.21.0) — [release notes](https://github.com/yao-pkg/pkg/releases/tag/v6.21.0)
