unstale

npm / ng-packagr

ng-packagr

What changed in ng-packagr 9 to 22, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

49 breaking1 deprecations7 new APIs and options7 performance22 behavior and defaults24 tooling34 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

ng-packagr 2221 changes

Breaking changes 3

  • The peer dependency is updated to support Angular v22.

    22.0.0release notes

  • 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.0release notes

  • TypeScript versions older than 6.0 are no longer supported, while TypeScript 6 is supported as a peer dependency.

    22.0.0release notes

Performance 1

  • Declaration-file tree-shaking is enabled and dts bundling is optimized.

    22.2.5release notes

Behavior and default changes 4

  • Watch invalidation is deferred until the running build completes.

    22.2.6release notes

  • Reverts parallel entry point scheduling.

    22.2.4release notes

  • Legal and annotation comments are preserved while other comments are removed from JavaScript bundles.

    22.2.0release notes

  • Supported browsers are transformed to targets using the lowest version.

    22.2.0release notes

Tooling 2

  • Spinners are disabled during parallel entry-point builds.

    22.2.2release notes

  • Rolldown replaces Rollup in ng-packagr.

    22.2.0release notes

Fixes and other changes 11

ng-packagr 218 changes

Breaking changes 2

  • The Less javascriptEnabled option is no longer supported; projects using inline JavaScript in Less files need to refactor their stylesheets.

    21.0.0release notes

  • TypeScript versions older than 5.9 are no longer supported.

    21.0.0release notes

New APIs and options 1

  • Adds importAttributesKey: 'with' to Rollup output options.

    21.1.0release notes

Behavior and default changes 1

  • Generated package.json files now default type to module.

    21.2.2release notes

Tooling 2

Fixes and other changes 2

ng-packagr 2014 changes

Breaking changes 4

  • The TypeScript composite option is disabled with the Angular compiler.

    20.0.0release notes

  • Nested CSS in components is prevented.

    20.0.0release notes

  • Node.js v18 and versions 22.0 through 22.10 are no longer supported; minimum supported versions are 20.19, 22.12, and 24.0.

    20.0.0release notes

  • TypeScript versions less than 5.8 are no longer supported.

    20.0.0release notes

Performance 2

  • Reduces memory usage when building multiple entry-points in non-watch mode.

    20.3.1release notes

  • Redundant entry-point builds are prevented in watch mode.

    20.0.0release notes

Behavior and default changes 2

Tooling 3

Fixes and other changes 3

  • The exports field is now ordered deterministically.

    20.3.2release notes

  • The .browserslistrc in a package is now correctly resolved.

    20.0.0release notes

  • SCSS resources from nested paths are now correctly resolved.

    20.0.0release notes

ng-packagr 196 changes

Breaking changes 1

New APIs and options 1

Behavior and default changes 1

  • Disables Rollup's hoistTransitiveImports option.

    19.0.0release notes

Tooling 1

Fixes and other changes 2

ng-packagr 186 changes

Breaking changes 2

New APIs and options 2

Tooling 1

Fixes and other changes 1

  • Fixes incorrect path resolution for entry-points when generating FESM.

    18.0.0release notes

ng-packagr 174 changes

Breaking changes 1

  • TypeScript versions before 5.2 are no longer supported; TypeScript 5.2 is supported.

    17.0.0release notes

Behavior and default changes 1

  • Emits .tsbuildinfo when cache mode is enabled.

    17.0.0release notes

Fixes and other changes 2

  • Fixes esbuild's inability to resolve a secondary entry point from a library.

    17.0.0release notes

  • Adds a workaround to terminate workers when ng-packagr is destroyed.

    17.0.0release notes

ng-packagr 169 changes

Breaking changes 8

  • ES2020 is replaced with ES2022 in the Angular Package Format.

    16.0.0release notes

  • ES2022 replaces ES2020 in the Angular Package Format.

    16.0.0release notes

  • FESM2015 is removed from the Angular Package Format.

    16.0.0release notes

  • FESM2020 is replaced with FESM2022 in the Angular Package Format.

    16.0.0release notes

  • FESM2022 replaces FESM2020 in the Angular Package Format.

    16.0.0release notes

  • NGCC integration is removed, so Angular View Engine libraries will no longer work.

    16.0.0release notes

  • Node.js v14 support is removed; Node.js v16 and v18 continue to be officially supported.

    16.0.0release notes

  • TypeScript 4.8 is no longer supported.

    16.0.0release notes

Fixes and other changes 1

ng-packagr 158 changes

Breaking changes 5

  • A missing component resource now produces an actionable error.

    15.0.0release notes

  • Support now includes Node.js 18.10.x; versions 14.[15-19].x and 16.[10-12].x are no longer supported.

    15.0.0release notes

  • Support for Stylus has been removed; migrate to another supported CSS preprocessor.

    15.0.0release notes

  • TypeScript declaration diagnostics are now emitted.

    15.0.0release notes

  • TypeScript versions older than 4.8.2 are no longer supported.

    15.0.0release notes

Behavior and default changes 1

  • README.md lookup no longer scans node_modules, including nested node_modules.

    15.0.0release notes

Tooling 2

ng-packagr 1412 changes

Breaking changes 4

  • Node.js v12 support was removed; use Node.js v14.15 or later.

    14.0.0release notes

  • package.json is no longer a valid way to configure ng-packagr; use ng-package.json instead.

    14.0.0release notes

  • Paths are joined instead of resolved.

    14.0.0release notes

  • Support for TypeScript 4.7 and 4.6.2 was added; support for TypeScript 4.4 and 4.5 was removed.

    14.0.0release notes

Behavior and default changes 3

  • More complex assets configurations are supported.

    14.0.0release notes

  • Circular dependency warnings are ignored.

    14.0.0release notes

  • The hardcoded moduleResolution setting was removed.

    14.0.0release notes

Tooling 1

Fixes and other changes 4

  • Invalid browsers version ranges were fixed.

    14.0.0release notes

  • An entry file named index.ts no longer causes a recursive export.

    14.0.0release notes

  • index.ts was allowed again as an entry file.

    14.0.0release notes

  • Watch mode was fixed when using the ng-packagr CLI directly.

    14.0.0release notes

ng-packagr 1327 changes

Breaking changes 11

  • The amdId option, used for UMD bundle generation, was removed.

    13.0.0release notes

  • es2015 was replaced with es2020.

    13.0.0release notes

  • Less version 3.5 math behavior is enforced.

    13.0.0release notes

  • Generated JavaScript files use the .mjs extension.

    13.0.0release notes

  • Support for node-sass was removed; sass is used by default to compile SASS and SCSS files.

    13.0.0release notes

  • Conflicting package exports now produce an error.

    13.0.0release notes

  • TypeScript versions prior to 4.4 are no longer supported.

    13.0.0release notes

  • UMD bundles are no longer generated.

    13.0.0release notes

  • The umdId option, used for UMD bundle generation, was removed.

    13.0.0release notes

  • The umdModuleIds option, used for UMD bundle generation, was removed.

    13.0.0release notes

  • Compilation of libraries using View Engine is no longer supported.

    13.0.0release notes

New APIs and options 2

  • Options now allow providing a cache directory and disabling caching.

    13.0.0release notes

  • A stylesheet language can now be specified for inline component styles.

    13.0.0release notes

Behavior and default changes 7

  • Browserslist defaults are set.

    13.0.0release notes

  • FESM generation state is stored on disk.

    13.0.0release notes

  • The es2020 bundle is downleveled to generate FESM2015.

    13.0.0release notes

  • FESMs are regenerated only when ESM has changed.

    13.0.0release notes

  • Ivy partial compilations are enabled by default.

    13.0.0release notes

  • Generated package exports are merged instead of overriding existing exports.

    13.0.0release notes

  • Watch mode now watches only dependent files.

    13.0.0release notes

Tooling 5

  • A WASM-based fallback is supported for the esbuild optimizer.

    13.0.0release notes

  • The node-sass-tilde-importer was replaced with a custom Sass importer.

    13.0.0release notes

  • Node.js version 16 is supported.

    13.0.0release notes

  • Support was added for package.json exports, including node, es2015, esm2020, and es2020 export conditions.

    13.0.0release notes

  • TypeScript configuration errors are reported.

    13.0.0release notes

Fixes and other changes 2

  • Safari browserslist conversion to the esbuild target was improved, and supported browsers are provided to esbuild.

    13.0.0release notes

  • Non-error compiler diagnostics no longer cause a non-zero exit code.

    13.0.0release notes

ng-packagr 1212 changes

Breaking changes 4

  • Bundling of dependencies is removed without replacement.

    12.0.0release notes

  • The project updates to use Node 12 APIs; the notes also state that Node.js 10 will become EOL.

    12.0.0release notes

  • Minified UMD bundles are no longer generated, and UMD bundles are no longer generated during watch mode.

    12.0.0release notes

  • The JSON schema no longer supplies a default value for whitelistedNonPeerDependencies.

    12.0.0release notes

Deprecations 1

  • whitelistedNonPeerDependencies is deprecated in favor of allowedNonPeerDependencies.

    12.0.0release notes

Performance 1

  • Stylesheets are cached and the stylesheet processor is reused to improve stylesheet processing performance.

    12.0.0release notes

Behavior and default changes 1

  • CSS declaration sorting optimizations are disabled.

    12.0.0release notes

Tooling 5

ng-packagr 119 changes

Breaking changes 1

  • TypeScript 3.9 is no longer supported; upgrade to TypeScript 4.0.

    11.0.0release notes

Performance 3

  • The AJV validator is initialized only once.

    11.0.0release notes

  • A module resolution cache is shared across all entry-points.

    11.0.0release notes

  • Processing is short-circuited across entry-points.

    11.0.0release notes

Tooling 2

  • Angular 11 is supported.

    11.0.0release notes

  • Progress reporting is improved, giving developers clearer feedback during builds.

    11.0.0release notes

Fixes and other changes 3

  • Set semantics are used when computing which entry-points to recompile.

    11.0.0release notes

  • The analysis cache is cleared in watch mode so invalid imports can be detected.

    11.0.0release notes

  • Fixes a Less spawn error on Windows.

    11.0.0release notes

ng-packagr 98 changes

Breaking changes 3

  • Less imports resolve packages in node_modules by default, so remove the deprecated less-plugin-npm-import and omit the leading tilde from import paths.

    9.0.0release notes

  • tslib is added as a peer dependency instead of a dependency, aligning with the Angular framework.

    9.0.0release notes

  • TypeScript versions prior to 3.6.4 are no longer supported; the release adds support for TypeScript 3.6 and 3.7.

    9.0.0release notes

New APIs and options 1

Behavior and default changes 1

  • File copying now ignores .gitkeep, Thumbs.db and .DS_Store.

    9.0.0release notes

Fixes and other changes 3

  • Fixes the downlevel constructor parameters transformer with tsickle.

    9.0.0release notes

  • Module analysis is more accurate, including handling a module name that is the primary entry point.

    9.0.0release notes

  • NGCC is skipped when the file system is read only.

    9.0.0release notes