# What changed in ng-packagr

> 19 changes in ng-packagr 21 to 22 from its official release notes, upgrade guides and advisories: 3 breaking. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/ng-packagr/

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

## ng-packagr 22

### Breaking changes

- The peer dependency is updated to support Angular v22. (22.0.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.0.0)
- Node.js 20 is no longer supported; the minimum supported versions are v22.22.0 and v24.13.1, and Node.js 26 is supported. (22.0.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.0.0)
- TypeScript versions older than 6.0 are no longer supported, while TypeScript 6 is supported as a peer dependency. (22.0.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.0.0)

### Behavior and default changes

- Reverts parallel entry point scheduling. (22.2.4) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.2.4)
- Legal and annotation comments are preserved while other comments are removed from JavaScript bundles. (22.2.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.2.0)
- Supported browsers are transformed to targets using the lowest version. (22.2.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.2.0)

### Tooling

- Spinners are disabled during parallel entry-point builds. (22.2.2) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.2.2)
- Rolldown replaces Rollup in ng-packagr. (22.2.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.2.0)

### Fixes and other changes

- TS6059 is ignored on Angular compiler generated shims. (22.2.3) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.2.3)
- A parallel index.ts is rejected only when it is imported. (22.2.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.2.0)
- Schema validation errors now name the unknown option. (22.2.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.2.0)
- Logs the correct diagnostics array for warnings. (22.0.2) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.1.0), [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.0.2)
- Prevents concurrent compilation and stale cache results. (22.0.1) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.1.0), [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.0.1)
- Generates specific .npmignore entries for secondary entry-point package.json files, fixing how those files are handled in the package. (22.0.1) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.0.1)
- The angularDiagnosticCache is invalidated when HTML files change. (21.2.5, 22.0.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.0.0), [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/21.2.5)
- DTS sourcemaps now point to the original TypeScript files. (21.2.1, 22.0.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.0.0), [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/21.2.1)
- Package.json files with export subpaths are now handled. (22.0.0) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/22.0.0)

## ng-packagr 21

### Behavior and default changes

- Generated package.json files now default type to module. (21.2.2) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/21.2.2)

### Fixes and other changes

- Rollup now resolves imports with TypeScript extensions. (21.2.3) — [release notes](https://github.com/ng-packagr/ng-packagr/releases/tag/21.2.3)
