chore(deps): update dependency ng-packagr to v19 #503
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
18.2.1
->19.0.0
Release Notes
ng-packagr/ng-packagr (ng-packagr)
v19.0.0
Compare Source
⚠ BREAKING CHANGES
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.
14.[15-19].x
and16.[10-12].x
. Current supported versions of Node.js are14.20.x
,16.13.x
and18.10.x
.package.json
is not longer a valid method to configure ng-packagr. Useng-package.json
instead.entryFile
can no longer be namedindex.ts
as it will conflict with the generatedindex.d.ts
. Please renamenode-sass
has been removed. sass will be used by default to compile SASS and SCSS files.umdModuleIds
amdId
umdId
watch
mode we no longer generate UMD bundles.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.
cssUrl
option default value has been changed toinline
More info about this option can be found: https://github.com/ng-packagr/ng-packagr/blob/master/docs/embed-assets-css.md
jsx
andlanguageLevel
has been removed, Set these options in yourtsconfig.json
instead.less-plugin-npm-import
. In less v3 is supports node_modules resolutions by default.Before
After
tslib
will be longer be added as adependencies
, but rather it will be added as apeerDependencies
.This is to be inline with the Angular framework as per
annotateForClosureCompiler
is turned off by default. In case users want to emit closure compatable code. they need to installtsickle
and enable opt it this feature.peerDependencies
are now requiredtslib: ^1.9.0
typescript: ^2.7.0
The default for
lib.languageLevel
is nowes2018
. 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.mdpeerDependency
of@angular/compiler: ^6.0.0
and@angular/compiler-cli: ^6.0.0
. Removes support for building packages with Angular compiler v5.enableResourceInlining
underangularCompilerOptions
baseUrl
intsconfig
is not overridden anymore, thus non-relative module paths will be resolved relative to thebaseUrl
intsconfig.json
sassIncludePaths
is removed, please usestyleIncludePaths
insteadworkingDirectory
is removed, removed corresponding getter fromNgPackage
classcreateNgPackage
removed from programmatic APINgArtefacts
class from APIBuildStep
interface from APIrollup
, most of the options and functionality provided byrollup
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 removedlicensePath
option has been removedIn 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 tobundledDependencies
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 oflib.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
tolib.umdModuleIds
andlib.embedded
..ng-packagr.json
tong-package.json
. Use oneng-package.json
per each Angular library project.Features
styleIncludePaths
for feature parity with Angular CLI (#603) (ab973f4), closes #282"sideEffects": false
flag to dist-ready package.json (#776) (11535bb)deleteDestPath
option (#655) (61922c1), closes #632postcss-preset-env
with stage 3 features (0caf3db), closes /preset-env.cssdb.org/features#stage-3sass
option (c85df4f)TypeScript
version 3 as apeerDependency
(5f0b761)watch
andbuildAsObservable
methods (#982) (6975192)tsconfig
inCLI
(cb6a980)package.json
with customngPackage
property (#173) (dd85fd2), closes #169cssUrl
, inline cssurl:()
todata:
URIs (#345) (1c71f24), closes #263~
import syntax forless
(#1036) (bd7c529), closes #827 #227resolveJsonModule
(1bf8eaf), closes #1050Angular Package Format v5.0
(#322) (fff712a), closes #257 #319 #321ng-packagr
for npm script users (6d4a90e).ng-packagr.json
file (c1762b3)flatModuleFile
naming for bundles (#361) (17b4e0f)CHANGELOG.md
to package destination (db5ad68)ng-package.json
(#10) (00fa15c)bundledDependencies
(0c52486)ng-package.json
file (#8) (b8d0649)enableResourceInlining
(#872) (2655def), closes #770.mjs
extension (95166f3)fullTemplateTypeCheck
(#826) (83f2cb6)sassIncludePaths
for resolving scss imports (#494) (f8e8dc5)importHelpers
, reducing bundle sizes (#338) (f1e4cf6).withTsConfig(string|TsConfig)
,.forProject()
(#561) (48f3569), closes #557build
andversion
commands from public API (#447) (286819c)@angular/cdk
are supported by default (4b20e29)ng-packagr
(8474e36)transformSources()
w/ domain model (#356) (89ce2ce)ng-package.json
(259a9fc)@angular/router
in default rollup opts (3d576ee)@angular/compiler-cli
version 5.0.x (c5c32c5), closes #219ng-package.json
(76dd2ff)ng-packagr --version
cli option (#393) (758c403)ng://<(at)org>/<package>/<sub>
(#332) (c9b8d73)src
property from package schema (#431) (960484c)ng-package.json properties
(9b988b0), closes #4package.json
as configuration (a94bd14), closes #2176uglify-js
withterser
(a18d7ad)node_modules
(#352) (ee9800b), closes #346asset
configurations (6776e17), closes #1497downlevelIteration
flag for ES5 bundles (#475) (616888a), closes #418lib
compiler option toes2018
(#956) (6bbedee)tslib
peerDependencies to^2.3.0
(12dc21e)ajv
to validate schema (e5e9864)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 #2157JavaScript heap out of memory
when having a lot of secondary entrypoints (ca3d1d3), closes #1099add 'let' to known rxjs operators (9927f93), closes #85
add
assets
option to schema (a5efd1c), closes #1092add
built at
andtime
to console output (50639dc)add
chalk
to dependencies (#647) (e8aa93f)add
enableResourceInlining
by default to tsconfig (#1021) (d2e9678), closes #976add
NgPackagrOptions
to public api (ffc512e)add
postcss-discard-comments
as a dependency (#544) (bce5705), closes #543add
rxjs/ReplaySubject
to rollup defaults (#44) (237b24e)add basePath as sourceRoot (681fb1c)
add description for
ngPackage
property inpackage.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 forcpx
andcommander
(#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
andLICENSE
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.
This PR was generated by Mend Renovate. View the repository job log.