Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency ng-packagr to v19 #503

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 19, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ng-packagr 18.2.1 -> 19.0.0 age adoption passing confidence

Release Notes

ng-packagr/ng-packagr (ng-packagr)

v19.0.0

Compare Source

⚠ BREAKING CHANGES
  • Node.js support for versions <18.19.1 and <20.11.1 has been removed.
  • TypeScript versions before 5.2 are no longer supported.
  • Several changes to the Angular Package Format (APF)
  • Removal of FESM2015
  • Replacing ES2020 with ES2022
  • Replacing FESM2020 with FESM2022
    • TypeScript 4.8 is no longer supported.
  • Node.js v14 support has been removed

Node.js v14 is planned to be End-of-Life on 2023-04-30. Angular will stop supporting Node.js v14 in Angular v16. Angular v16 will continue to officially support Node.js versions v16 and v18.

  • NGCC integration has been removed and as a result Angular View Engine libraries will no longer work.
  • ng-packagr no longer supports Node.js versions 14.[15-19].x and 16.[10-12].x. Current supported versions of Node.js are 14.20.x, 16.13.x and 18.10.x.
  • TypeScript versions older than 4.8.2 are no longer supported.
  • Deprecated support for Stylus has been removed. The Stylus package has never reached a stable version and it's usage in the ng-packagr is minimal. It's recommended to migrate to another CSS preprocessor that the ng-packagr supports.
  • package.json is not longer a valid method to configure ng-packagr. Use ng-package.json instead.
  • entryFile can no longer be named index.ts as it will conflict with the generated index.d.ts. Please rename
  • Support for TypeScript 4.4 and 4.5 has been removed. Please update to TypeScript 4.6.
  • Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
  • Support for node-sass has been removed. sass will be used by default to compile SASS and SCSS files.
  • TypeScript versions prior to 4.4 are no longer supported.
  • Compilation of libraries using VIew Engine is no longer supported.
  • We no longer generate UMD bundles. The below options which were used for UMD bundle generation has also been removed;
  • umdModuleIds
  • amdId
  • umdId
  • Bundling of dependencies has been removed without replacement. In many cases this was used incorrectly which drastically increase in size. This was also mainly used for UMD bundles which will be removed in future.
  • Minified UMD bundles are no longer generated.
  • During watch mode we no longer generate UMD bundles.
  • Node.js version 10 will become EOL on 2021-04-30.
    Angular CLI 12 will require Node.js 12.13+ or 14.15+. Node.js 12.13 and 14.15 are the first LTS releases for their respective majors.
  • TypeScript 3.9 is no longer supported, please upgrade to TypeScript 4.0.
  • cssUrl option default value has been changed to inline
    More info about this option can be found: https://github.com/ng-packagr/ng-packagr/blob/master/docs/embed-assets-css.md
  • TypeScript 3.8 is no longer supported, please update to TypeScript 3.9
  • Deprecated jsx and languageLevel has been removed, Set these options in your tsconfig.json instead.
  • Remove usage of deprecated less-plugin-npm-import. In less v3 is supports node_modules resolutions by default.

Before

@&#8203;import '~module/less/linenumbers';

After

@&#8203;import 'module/less/linenumbers';
  • TypeScript versions prior to 3.6.4 are no longer supported.no longer supported.
  • tslib will be longer be added as a dependencies, but rather it will be added as a peerDependencies.

This is to be inline with the Angular framework as per

  • Users outside of Google don't usually need closure annotations hence annotateForClosureCompiler is turned off by default. In case users want to emit closure compatable code. they need to install tsickle and enable opt it this feature.
  • The following peerDependencies are now required
  • tslib: ^1.9.0
  • typescript: ^2.7.0

The default for lib.languageLevel is now es2018. In case this needs to be changed. This can to be done by overriding the tsconfig. More on how to override the tsconfig can be found here: https://github.com/dherges/ng-packagr/blob/master/docs/override-tsconfig.md

    • ng-packagr now requires a peerDependency of @angular/compiler: ^6.0.0 and @angular/compiler-cli: ^6.0.0. Removes support for building packages with Angular compiler v5.
  • Consumers using a constum tsconfig via the programmatic API need to add enableResourceInlining under angularCompilerOptions
  • UMD module ids for rxjs v5 are now longer provided out-ot-the-box. Users whishing to a build library for rxjs@5 (potentially relying on rxjs-compat), must provide the UMD module IDs in the ngPackage.lib.umdModuleIds section. Please take a look at the changeset of PR #​840 to see what the UMD module IDs used to be for v5.
  • baseUrl in tsconfig is not overridden anymore, thus non-relative module paths will be resolved relative to the baseUrl in tsconfig.json
  • Removes several deprecated code items.
  • option sassIncludePaths is removed, please use styleIncludePaths instead
  • option workingDirectory is removed, removed corresponding getter from NgPackage class
  • method createNgPackage removed from programmatic API
  • removed NgArtefacts class from API
  • removed BuildStep interface from API
  • There were some important changes, mainly related to rollup, most of the options and functionality provided by rollup plugins (comments & license) have been removed, due to the fact this is not inline with APF V6 as one will end up with different outputs in different modules.
  • comments option has been removed
  • licensePath option has been removed

In APF V6, it is recommanded to not embed dependencies due to the fact that it will end up having multiple copies of the same library in a single application.

  • embedded option has been removed and the original functionality was dropped as it increased the chance of having 2 copies of the same library. The recommended migration is to switch to bundledDependencies

More info in the APF v6 spec: https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview

Documentation on npm bundled dependencies: http://npm.github.io/using-pkgs-docs/package-json/types/bundleddependencies.html

  • lib.externals has been removed in favour of lib.umdModuleIds which is now just used to provide the UMD module identifiers of external dependencies.
    By default, all dependencies are now treated as externals and thus are not embedded in the final bundle.
    If a dependency should be embedded in the distributables, it needs to be explicity added to lib.embedded.
    Please consult the updated README on migrating your package confguration from lib.externals to lib.umdModuleIds and lib.embedded.
  • the default config file is renamed from .ng-packagr.json to ng-package.json. Use one ng-package.json per each Angular library project.
Features
Bug Fixes
  • downlevel constructor parameters transformer with tsickle (51d5498), closes #​1517

  • update rollup to version ^0.51.0 (#​260) (c652f4e)

  • --version doesn't work (ba835bb), closes #​2157

  • JavaScript heap out of memory when having a lot of secondary entrypoints (ca3d1d3), closes #​1099

  • add 'let' to known rxjs operators (9927f93), closes #​85

  • add assets option to schema (a5efd1c), closes #​1092

  • add built at and time to console output (50639dc)

  • add chalk to dependencies (#​647) (e8aa93f)

  • add enableResourceInlining by default to tsconfig (#​1021) (d2e9678), closes #​976

  • add NgPackagrOptions to public api (ffc512e)

  • add postcss-discard-comments as a dependency (#​544) (bce5705), closes #​543

  • add rxjs/ReplaySubject to rollup defaults (#​44) (237b24e)

  • add basePath as sourceRoot (681fb1c)

  • add description for ngPackage property in package.json (3f8e25c)

  • add downlevelConstructorParameters transformer (b959010), closes #​1400

  • add fallback for sources when re-wiring sourcemaps (#​1033) (9521281)

  • add link to Angular guide when showing ivy publish warning (6bee029), closes #​1453

  • add missing 'declaration' option in tsconfig (#​790) (dbd8ce1)

  • add missing tailwind [@screen](https://redirect.github.com/screen) directive in matcher (ad1bd50)

  • add moduleResolution to downleveling options (#​787) (d7b4094), closes #​784

  • add more package json sections to remove (57cc4d1)

  • add opencollective postinstall hook (c3dbaeb)

  • add quotes to less include-path (af6816b)

  • add support for prerelease version of Angular (632217e)

  • add tsickle as optional peer dependency (52f3988), closes #​1801

  • add version stamping during watch builds (4e13041)

  • add workaround to terminate workers on destroy (7252f53), closes #​2688

  • address issue were dts were not emitted fully when using entrypoint name as filename (713d940), closes #​2369 #​2360

  • allow sass indexed syntax to be compiled (+ integration tests) (#​1053) (34a259d)

  • allow sideEffects to be set as an array (#​866) (04bb2ad)

  • allow usages of ECMAScript Decorators (9abe6a0), closes #​2625

  • always set destination directory (4e89bcf)

  • analyse exported imports (#​873) (c03d6f8)

  • analyse only non done entry points (e8db885)

  • analyse should cater for module name being the primary entry point (7b8e491)

  • analyses of secondary entrypoints doesn't work with deep imports (3f56df2), closes #​1183

  • auto add tslib as direct dependency (4145af5)

  • auto-wire paths for transitive dependencies of entry points (#​875) (e9da0cf), closes #​852

  • avoid a recursive export when entryfile is named index.ts (4c96acb)

  • await async process method (361e43b)

  • browserlist configuration is not being picked up (#​994) (72b2a00), closes angular/angular-cli#11480

  • bump commander to ^2.12.0, optimize typings for cpx and commander (#​323) (68d0c34)

  • cannot read property 'text' of undefined (#​669) (b91eb66), closes #​668

  • changed assets not being copied during watch mode (8d6664e), closes #​1826

  • circular dependency on itself error (702c3f2), closes #​1508

  • clear analysis cache to detect invalid imports in watch mode (d6a3920)

  • close rollup bundle after write (cf5de76)

  • copy README.md and LICENSE just for primary entry (#​215) (38776d8)

  • copy changed file during watch mode when using advanced asset pattern (0a11ca9), closes #​2479

  • copy


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.24%. Comparing base (2d8839d) to head (b44d512).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #503   +/-   ##
=======================================
  Coverage   97.24%   97.24%           
=======================================
  Files           8        8           
  Lines         109      109           
  Branches       26       26           
=======================================
  Hits          106      106           
  Misses          2        2           
  Partials        1        1           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2d8839d...b44d512. Read the comment docs.

---- 🚨 Try these New Features:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants