All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
9.1.0 (2020-03-25)
- update @angular/common to version ~9.1.0 (fd8c0a9)
- update fs-extra to version ^9.0.0 (eb2cd7f)
- update rollup to version 2.2.0 (1de8443)
- add support for TypeScript 3.8 (4a388af)
9.0.3 (2020-03-09)
- update rollup to version 1.32.0 (0e414ce)
- update rollup to version 1.32.1 (9611545)
- wrong UMD ID's of Angular packages with a dash in name (c996a61)
9.0.2 (2020-02-25)
- handle union type with a nullable argument (c9f697f)
- show schema errors (cdf0e9c)
- throw error on circular dependencies (af1d2f3), closes #1551
- update rollup to version 1.31.1 (36830f4)
9.0.1 (2020-02-18)
- update rollup to version 1.31.1 (36830f4)
9.0.0 (2020-02-06)
- Remove usage of deprecated
less-plugin-npm-import. In less v3 is supports node_modules resolutions by default.
Before
@import '~module/less/linenumbers';After
@import 'module/less/linenumbers';- TypeScript versions prior to 3.6.4 are no longer supported.no longer supported.
tslibwill 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
- downlevel constructor parameters transformer with tsickle (51d5498), closes #1517
- add
assetsoption to schema (a5efd1c), closes #1092 - add link to Angular guide when showing ivy publish warning (6bee029), closes #1453
- add more package json sections to remove (57cc4d1)
- analyse only non done entry points (e8db885)
- analyse should cater for module name being the primary entry point (7b8e491)
- circular dependency on itself error (702c3f2), closes #1508
- ignore
.gitkeep,Thumbs.dband.DS_Storewhen copying files (a5b10e2) - ignore JSON files in tsickle processing (#1489) (ec44059), closes #325
- incorrect detection of potential dependent entry-points (932bf48), closes #1510
- lock rollup version (75ac180), closes #1431
- remove redundant section in package.json (5efad3a)
- reset glob cache on file add (0306d59)
- skip NGCC when file system is read only (0e44793)
- switch to a more accurate module analyse (92ca053), closes #1523
- update commander to version ^4.0.0 (ee41977)
- update rollup to version 1.31.0 (f8704fd)
- update update-notifier to version ^4.0.0 (f05cbbf)
- add support for TypeScript 3.7 (9e05fb3)
- add support for TypeScript 3.6 (342b799)
- add tslib as peerDepedency (5077f87)
- update peerDependencies (7ff60f5)
9.0.0-rc.9 (2020-02-05)
9.0.0-rc.8 (2020-02-04)
- downlevel constructor parameters transformer with tsickle (51d5498), closes #1517
- analyse only non done entry points (e8db885)
- analyse should cater for module name being the primary entry point (7b8e491)
- circular dependency on itself error (702c3f2), closes #1508
- ignore
.gitkeep,Thumbs.dband.DS_Storewhen copying files (a5b10e2) - incorrect detection of potential dependent entry-points (932bf48), closes #1510
- reset glob cache on file add (0306d59)
- switch to a more accurate module analyse (92ca053), closes #1523
- update rollup to version 1.31.0 (f8704fd)
- update update-notifier to version ^4.0.0 (f05cbbf)
- add support for typescript 3.7 (9e05fb3)
- re-populate glob cache (3323b2a)
9.0.0-rc.7 (2020-01-09)
9.0.0-rc.6 (2020-01-09)
- re-populate glob cache (3323b2a)
9.0.0-rc.5 (2020-01-08)
- update rollup to version 1.29.0 (04fa486)
- use TypeScript scanner to build dependency tree (1cdc8c8)
9.0.0-rc.4 (2020-01-07)
- ignore
.gitkeep,Thumbs.dband.DS_Storewhen copying files (a5b10e2) - update rollup to version 1.28.0 (624f31f)
- update update-notifier to version ^4.0.0 (f05cbbf)
9.0.0-rc.3 (2019-12-04)
- add
assetsoption to schema (a5efd1c), closes #1092 - add link to Angular guide when showing ivy publish warning (6bee029), closes #1453
9.0.0-rc.2 (2019-11-14)
- add more package json sections to remove (57cc4d1)
- remove redundant section in package.json (5efad3a)
- skip NGCC when file system is read only (0e44793)
- update commander to version ^4.0.0 (ee41977)
- update rollup to version 1.26.2 (8e91477)
- update rollup to version 1.26.3 (1a67c7c)
- update rollup to version 1.26.4 (844f7d3)
- update rollup to version 1.26.5 (cb5bda7)
9.0.0-rc.1 (2019-10-29)
- Remove usage of deprecated
less-plugin-npm-import. In less v3 is supports node_modules resolutions by default.
Before
@import '~module/less/linenumbers';After
@import 'module/less/linenumbers';9.0.0-rc.0 (2019-10-22)
- TypeScript versions prior to 3.6.4 are no longer supported.
tslibwill be longer be added as adependencies, but rather it will be added as apeerDependencies. This is to be inline with the Angular framework.
- add support to TypeScript 3.6 (342b799)
- add tslib as peerDepedency (5077f87)
- update peerDependencies (7ff60f5)
5.7.0 (2019-10-15)
- re prioritize ngcc
propertiesToConsiderproperties based (ea89fb3), closes /github.com/angular/angular-cli/blob/0d70565f9d80f1d765622eb8c8b2c3c701723599/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/browser.ts#L68
- deprecate inlining of
bundledDependencies(0c52486)
5.6.1 (2019-10-09)
- tsickle references to non imported values when using Angular 8 (de5894b)
5.6.0 (2019-10-08)
- disable internal
emitDecoratorMetadata(d0bf507) - support the ng-package.json in secondary entry points (#1406) (8b97bfa)
- update @angular/cdk to version ~8.2.0 (0007fef)
- update @angular-devkit/build-angular to version ~0.803.0 (194c6bb)
- update cross-env to version ^6.0.0 (120331a)
- update jasmine-core to version ~3.5.0 (#1404) (aeabd95)
- update ts-node to version ~8.4.0 (9a4dddc)
- update tslint to version ~5.20.0 (4e4b1d5)
- update zone.js to version ^0.10.0 (88f8cb4)
- copies
CHANGELOG.mdto package destination (db5ad68)
- update angular cli dev packages (3e26f7b)
5.5.1 (2019-09-14)
- add downlevelConstructorParameters transformer (b959010), closes #1400
- remove terser warnings as these as not actionable (9c80f62), closes #1394
- update rimraf to version ^3.0.0 (9236102)
5.5.0 (2019-08-14)
5.4.3 (2019-07-29)
- handle svg templates same as html files (2156f5f)
5.4.2 (2019-07-29)
5.4.1 (2019-07-29)
- remove defaults from
languageLevel(7650c65)
5.4.0 (2019-07-29)
- add support for Ivy libraries (b6dfcf6)
- add support for typescript 3.5 and Angular 8.X pre-releases (798de61)
- use
ajvto validate schema (e5e9864)
5.3.0 (2019-06-05)
- add quotes to less include-path (af6816b)
- don't write stacktraces when there are errors (42692b0)
- remove opencollective postinstall scripts (123f39a)
- update terser to version ^4.0.0 (dd28818)
5.2.0 (2019-05-17)
- copy+dereference LICENSE and README.md (6ace017)
- fix resolution for less binary (6bc789c), closes #1276
- logger print errors and warnings to stderr (9534d19)
- update chokidar to version ^3.0.0 (2f0e75f)
- update fs-extra to version ^8.0.0 (de09a1a)
- update update-notifier to version ^3.0.0 (d5b136f)
- update several rollup dependencies (0772371)
5.1.0 (2019-04-15)
- emit ts option diagnostic (ed960b6)
- error out gracefully when
package.jsonis not found (902dea2), closes #1255
- add support for TypeScript 3.4 (828065c)
5.0.1 (2019-03-27)
- version command should not require tsickle (6ac0dcf)
5.0.0 (2019-03-27)
- update core-js to version ^3.0.0 (b985c49)
- update read-pkg-up to version ^5.0.0 (cb172fa)
- update rollup-plugin-json to version ^4.0.0 (8d4d4a7)
- add node-sass support with sass as default (43a0be6)
- add support for Angular 8 and TypeScript 3.3 (dfe5a27)
- remove tsickle from direct peerDepedencies (1555cf6), closes #1202
- replace
uglify-jswithterser(a18d7ad) - update rollup to version 1.6+ (82f97e4), closes #1227
- generate umd bundle directly from fesm5 instead of esm5 (b25731b)
- reduce the amount of dependees that are removed (408541e)
-
Users outside of Google don't usually need closure annotations hence
annotateForClosureCompileris turned off by default. In case users want to emit closure compatible code, they need to installtsickleand enable opt it this feature. -
We no longer use node-sass by default, instead we use sass (dart-sass).
While in most cases this should not have an impact the generated code, dart sass has some differences from Ruby Sass. See https://github.com/sass/dart-sass#behavioral-differences-from-ruby-sass for more details
If you wish to use node-sass instead of sass you need to install node-sass as a dev dependency.
npm users
npm install node-sass --save-dev
yarn users
yarn add node-sass --dev
4.7.1 (2019-02-15)
- don't use classic module resolution during analyse (f0a1c38), closes #1210
- emit complete diagnostics (82e1fd0)
- replace opencollective-cli with opencollective-postinstall (#1203) (44776da), closes #1178
4.7.0 (2019-01-26)
- read error when having files with spaces in less (22cfdcc), closes #1197
- use old TypeScript API to support users which are still on 2.7.x+ (eec8b84), closes #1186
- use ts.compilerHost as moduleResolutionHost for tsickle.emitWithTsickle to support tsickle 0.33.1 (30d3720), closes #1189
- add support for tsickle to 0.34.0 (3b67d90)
- simplify Node
dependsOnlogic (4a0585d)
4.6.0 (2019-01-15)
- add opencollective postinstall hook (c3dbaeb)
- analyses of secondary entrypoints doesn't work with deep imports (3f56df2), closes #1183
4.5.0 (2019-01-11)
- update rollup-plugin-node-resolve to version ^4.0.0 (ab2a55a)
- add support for TypeScript 3.2 (9e6ee67)
4.4.5 (2018-12-01)
4.4.4 (2018-12-01)
4.4.3 (2018-12-01)
4.4.2 (2018-12-01)
- add opencollective postinstall hook (c3dbaeb)
4.4.1 (2018-11-07)
- ignore git folder on watch (c61cbfc)
- UMD sourceMappingURL should point to file (ab02f0f)
- update rollup to version ^0.67.0 (4422aa1)
4.4.0 (2018-10-21)
4.3.1 (2018-10-14)
- update templates and styles in watch mode (bfc019f)
4.3.0 (2018-10-09)
JavaScript heap out of memorywhen having a lot of secondary entrypoints (ca3d1d3), closes #1099- tsconfig path mapping (4421e6f)
- add support for TypeScript 3.1 (c354261)
4.2.0 (2018-09-18)
- add and version as peerDependencies (97c5fec)
- add
TypeScriptversion 3 as apeerDependency(5f0b761) - add a option to pass a custom
tsconfiginCLI(cb6a980)
4.1.1 (2018-08-26)
4.1.0 (2018-08-12)
- add fallback for
sourceswhen re-wiring sourcemaps (#1033) (9521281) - no elements in sequence error (#1029) (e80cc22)
- update node-sass to v4.9.3 (#1046) (befb3da), closes #1045
- update postcss-url to version ^8.0.0 (#1042) (6b4ba96)
- update rollup to version ^0.64.0 (#1039) (5d1ab49)
- update rollup to version ^0.64.0 (#1047) (8cb4780)
4.0.1 (2018-07-26)
4.0.0 (2018-07-22)
- copy nested triple slash referenced typings to correct path (#1009) (9b7b701), closes #1007
- update autoprefixer to ^9.0.0, browserslist to ^4.0.0 (#1010) (2171398)
- update fs-extra to version ^7.0.0 (#1003) (0fb2138)
- update postcss to version ^7.0.0 (#1004) (e2a3905)
- update rollup to version ^0.63.0 (#1005) (5764f38)
4.0.0-rc.4 (2018-07-17)
- browserlist configuration is not being picked up (#994) (72b2a00), closes angular/angular-cli#11480
- don't exclude
node_modulesfrom watch (#995) (3863d79)
4.0.0-rc.3 (2018-06-29)
- add
watchandbuildAsObservablemethods (#982) (6975192) - update
libcompiler option toes2018(#956) (6bbedee)
- The following
peerDependenciesare now required
tslib: ^1.9.0typescript: ^2.7.0
4.0.0-rc.2 (2018-06-23)
4.0.0-rc.1 (2018-06-12)
4.0.0-rc.0 (2018-05-25)
- unable to use an arbitrarily named config file (#886) (a50bf7d), closes #878
- update rxjs to version ~6.2.0 (#898) (9e3de7c)
- ng-packagr now requires a
peerDependencyof@angular/compiler: ^6.0.0and@angular/compiler-cli: ^6.0.0. Removes support for building packages with Angular compiler v5. - Consumers using a custom tsconfig via the programmatic API need to add
enableResourceInliningunderangularCompilerOptions
3.0.0 (2018-05-25)
- allow sideEffects to be set as an array (#866) (04bb2ad)
- analyse exported imports (#873) (c03d6f8)
- auto-wire paths for transitive dependencies of entry points (#875) (e9da0cf), closes #852
- embed tslib helpers in umd bundle (#868) (0fc30e5)
- internal method
dependsOnappends instead of replacing (#867) (207f2ac) - remove duplicate declarations under
dist(#864) (46fd858) - throw an error when a circular dependency is detected (#888) (ada4081), closes #855
- update rollup to version ^0.59.0 (#876) (57f5ed9)
- 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.
3.0.0-rc.5 (2018-05-11)
- do not disable fullTemplateTypeCheck when ES5 downleveling (#860) (dfa83f9), closes #826 #812 #822 #826
- don't override
baseUrl(#862) (769b091)
baseUrlintsconfigis not overridden anymore, thus non-relative module paths will be resolved relative to thebaseUrlintsconfig.json
3.0.0-rc.4 (2018-05-10)
- add missing 'declaration' option in tsconfig (#790) (dbd8ce1)
- correct depth analysis of unordered dependencies for secondaries (#846) (f4beea9)
- create an array large enough to hold all buckets (#845) (353b0fa)
- handle nested entry points with same name (#850) (f911882), closes #851 #849
- inline sourcemaps as base64-encoded data URI in esm5/esm015 (#812) (095feb1), closes #785 #803
3.0.0-rc.3 (2018-05-06)
- let
ngcdetermine the typescriptemitFlags(#813) (9b47d72) - migrate code base to compiler-cli@6 (927e581)
- migrate dependencies to angular 6 (13917eb)
- remove nested
distfolder (#829) (f9af7ca) - unpin rollup-plugin-commonjs to version ^9.1.3 (#823) (17f791f)
- update fs-extra to version ^6.0.0 (#825) (2aabd33)
- update rollup to version ^0.58.0 (#772) (cfcf3f9)
- update rollup-plugin-commonjs to version ^9.1.2 (#819) (1731968)
- update rxjs to version ~6.0.0 (b171a28)
- update rxjs to version ~6.1.0 (#832) (365c759)
3.0.0-rc.2 (2018-04-21)
- add moduleResolution to downleveling options (#787) (d7b4094), closes #784
- generate correct UMD module id for
[@angular](https://github.com/angular)/common/http/testing(#782) (a0451d8) - missing options when setting custom tsconfig (#786) (d687853)
- update rollup-plugin-commonjs to version 9.1.0 (#659) (5204b0c)
3.0.0-rc.1 (2018-04-17)
3.0.0-rc.0 (2018-04-16)
- update autoprefixer to version ^8.0.0 (#615) (a60bd88)
- update browserslist to version ^3.0.0 (#610) (2f50354)
- update less to version ^3.0.0 (#611) (f45d89d)
- build libaries in Angular Package Format (APF) v6.0 (#738) (4e6c4f4), closes #738 #705
- drop support for node v6 and v7 (no longer supported by devkit) (ee7e65d)
- remove deprecated code (#773) (866a4b5)
- update tsickle to =>0.27.3, rollup to ^0.57.1 (#769) (3bcf233), closes #679
Removes several deprecated code items.
- option
sassIncludePathsis removed, please usestyleIncludePathsinstead - option
workingDirectoryis removed, removed corresponding getter fromNgPackageclass - method
createNgPackageremoved from programmatic API - removed
NgArtefactsclass from API - removed
BuildStepinterface from API - removed tarball generation (#721)
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.
commentsoption has been removedlicensePathoption 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.
embeddedoption 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
As we don't generate a tarball by default anymore, you should manually, after the build, create it by running npm pack in the dist folder of your library. See #802 and #738 (comment) for more information.
2.4.2 (2018-04-08)
2.4.1 (2018-03-25)
2.4.0 (2018-03-25)
2.3.0 (2018-03-25)
- cannot read property 'text' of undefined (#669) (b91eb66), closes #668
- move
keepLifecycleScriptsto ngPackage conf (#688) (8eb6667) - validate non-peerDependencies at build time (#687) (ec9779c)
- add support for AMD module id in umd bundles (#675) (59713b8)
- allow Angular 6 as a peer dependency (#714) (530d54e)
- allow to override umd module identifier (#683) (b6e099f)
- remove scripts section in dist-ready package.json (#686) (810e58a)
- support intra-package dependencies (re. entry points, experimental) (#685) (988968e)
2.2.0 (2018-03-06)
- add
chalkto dependencies (#647) (e8aa93f) - lock rollup-plugin-commonjs dependency at 8.3.0 (#658) (59d0c3b), closes #657
- update rollup-plugin-license to version ^0.6.0 (#664) (2a21d7e)
- add
deleteDestPathoption (#655) (61922c1), closes #632 - add Graph and Node API for angular transforms (#644) (92e6082)
- add update notifier to cli (#649) (f5c4afc)
- analyse typescript dependencies of an entry point (#648) (749d48b)
- reduce library bundle size by clean-css (#563) (65386c2), closes #614
2.1.0 (2018-02-21)
- pass 'setParentNodes' when calling 'createCompilerHost' (#625) (9baa0bc)
- prune multiple import statements for
tslib(#588) (2b6dac4), closes #587 - recognize aliased and namespace decorator imports (#585) (8f88c5a)
- return redirect target of typescript source file (#637) (c1fced0), closes #473
styleIncludePathsfor feature parity with Angular CLI (#603) (ab973f4), closes #282- comments cleanup and license header file (#574) (0237f24), closes #362
- export and test public api surface (#584) (6858e2e)
2.0.0 (2018-02-05)
Version 2 of ng-packagr is targeting Angular 5 (and beyond). Update your projects by:
$ yarn add --dev ng-packagr@^2.0.0 @angular/compiler@^5.0.0 @angular/compiler-cli@^5.0.0 tsickle- Users now need to install
@angular/compiler,@angular/compiler-cli,typescript, andtsickleto thedevDependencysection of their project (if not already installed). ng-packagr uses both the TypeScript and the Angular compiler version provided by the user workspace. - The setting for external dependencies (
lib.externals) has been removed in favour oflib.umdModuleIdswhich 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 tolib.embedded. Please consult the updated README on migrating your package confguration fromlib.externalstolib.umdModuleIdsandlib.embedded. - Discovery of primary and secondary entry points is changed to read from the following file sources. File locations are tried in this order:
package.jsonwithngPackagepropertyng-package.json(requires apackage.jsonas sibling)ng-package.js(with a default export, requires apackage.jsonas sibling)
- Setting
ngPackage.srchas no effect any more. The source directory (base path) is equivalent to the location of the (primary)ng-package.json,package.json, orng-package.js. - UMD Module IDs of packages have been changed: when you published a scoped npm package, e.g.
@sample/core, the UMD module ID used to becoreincluding only the second part of the npm package name. With this change, the UMD module ID is nowsample.core. For secondary entrypoints, e.g.@sample/core/testing, the UMD module ID now also includes every part of the npm package name, e.g.sample.core.testing. Publishing your npm packages built with this version of ng-packagr causes a new UMD module ID to be generated. Users of your library need to update their configuration, e.g. when using SystemJS!
An excerpt of each bug fix and feature is listed below for the respective release candidate version!
- comments cleanup and license header file (#574) (0237f24), closes #362
- export and test public api surface (#584) (6858e2e)
2.0.0-rc.13 (2018-02-03)
- add
postcss-discard-commentsas a dependency (#544) (bce5705), closes #543 - css comments should be discarded irrespective of
cssUrl(#562) (d6eb971) - embed
tslibhelpers in UMD bundles only (#573) (7a996ef), closes #371 - map
rxjs/util/*to its UMD module ID by default (#580) (7c452fb), closes #579 - pin rollup dependency to 0.53.0 (13a79d4)
- report build errors (d136422)
- strip bom from templates and stylesheet files (#571) (5830e6a), closes #487
- update rollup to version
^0.55.0(#534) (0cb0cce), closes #488 #523 - write type definition files (via triple-slash reference) to npm package (#443) (9dad573)
- expand api to
.withTsConfig(string|TsConfig),.forProject()(#561) (48f3569), closes #557 - le jardin, a broccoli-inspired rewrite (#572) (6efc2d2)
2.0.0-rc.12 (2018-01-25)
- dispose the previous TransformationResult after inlining (#533) (b4c7e89)
- strip comments from processed styles (#512) (542aed2), closes #503
2.0.0-rc.11 (2018-01-17)
- add language level support for library authors (#486) (b33e0bc)
- enable custom
sassIncludePathsfor resolving scss imports (#494) (f8e8dc5)
2.0.0-rc.10 (2018-01-10)
- exclude ng-package.json from entry point discovery (#471) (38103ac), closes #463
- relax version constraints, enable TypeScript 2.6 (w/ tsickle ^0.26.0) (3c3c6a7)
- update dependendy tsickle to >=0.25.5 <0.26.0 (#456) (136867a), closes #452
- stabilize command API, move towards customizing through DI (#470) (f992283)
- turn on
downlevelIterationflag for ES5 bundles (#475) (616888a), closes #418
2.0.0-rc.9 (2017-12-30)
2.0.0-rc.8 (2017-12-26)
- remove
umdModuleIdsfor esm2015 flattening (rollupesformat) (#429) (b103b74) - remove moduleId from rollup bundle options (#444) (da332d2)
- update rollup to version ^0.53.0 (#438) (8918809)
- dynamic rollup configuration for esm flattening (#395) (5712429)
- expose
buildandversioncommands from public API (#447) (286819c) - expose a public API surface for programmatic usage (ec2b29f)
- remove
srcproperty from package schema (#431) (960484c)
- Setting
ngPackage.srchas no effect any more. The source directory (base path) is equivalent to the location of the (primary)ng-package.json,package.json, orng-package.js. lib.externalshas been removed in favour oflib.umdModuleIdswhich 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 tolib.embedded. Please consult the updated README on migrating your package confguration fromlib.externalstolib.umdModuleIdsandlib.embedded.
2.0.0-rc.7 (2017-12-15)
- log error message only on build failure (51643e1)
- print
@angular/compiler-cliversion (b0e362e) - print rollup warnings to
log.warn()(356a01b) - relax on non-call-expression decorators in typescript parsing (7135c42)
- set
peerDependenciestotsickle: ^0.24.0andtypescript: >=2.4.2 <2.6(#387) (001f63f) - set peerDependency
tsickle: >=0.24.0 <0.26(d682cd2) - update fs-extra to version ^5.0.0 (#400) (9e6d081)
- discover entry points from user packages (#383) (4a7e96e), closes #190
- do not prune working directory on build failure (6445316)
- provide version info with
ng-packagr --versioncli option (#393) (758c403)
- Discovery of primary and secondary entry points is changed to read from the following file sources. File locations are tried in this order:
package.jsonwithngPackagepropertyng-package.json(requires apackage.jsonas sibling)ng-package.js(with a default export, requires apackage.jsonas sibling)
2.0.0-rc.6 (2017-12-09)
Bug fixes for the previous release candidate.
Contains a fix addressing typescript build errors due to synthesized nodes, see #369.
Peer Dependencies on ngc and tsc changed to caret version ranges:
"@angular/compiler: "^5.0.0""typescript: ">= 2.4.2 < 2.6
Make sure to use an appropriate combination of Angular and TypeScript!
- peer depend on angular >=5.0.0 <6.0.0, typescript >= 2.4.2 < 2.6 (3674f0e)
- register ngc emit callback for
tsickleprocessing (#384) (15bd7c1) - show proper path of failure on sass inline (#380) (8c380aa)
2.0.0-rc.5 (2017-12-06)
- consistent
flatModuleFilenaming for bundles (#361) (17b4e0f) - enable tslib
importHelpers, reducing bundle sizes (#338) (f1e4cf6) - expose programmatic API and typings (#342) (61c7b50)
- implement
transformSources()w/ domain model (#356) (89ce2ce) - relocate source map file paths to
ng://<(at)org>/<package>/<sub>(#332) (c9b8d73) - resolve "~" scss import statements to nearest
node_modules(#352) (ee9800b), closes #346 - resource inlining w/ TypeScript transformations (#279) (4753066)
- Introduces a domain model for Package and Entry Point (as defined in Angular Package Format Specification Glossary). Refactors the source code transformation pipeline. Albeit the refactoring was undertaken with care and integration tests were not changed, it may cause undesired behaviour.
2.0.0-rc.4 (2017-11-28)
2.0.0-rc.3 (2017-11-24)
- support new cdk modules 'accordion' and 'layout'
@angular/cdk@5.0.0-rc0(#297) (3016585) - support rxjs lettable operators (#307) (5de8045), closes #247
2.0.0-rc.2 (2017-11-17)
2.0.0-rc.1 (2017-11-17)
2.0.0-rc.0 (2017-11-14)
Migrating towards Angular v5, a series of v2.0.0 release candidates will be published.
These releases will be published using the next tag on npm.
Please install the versions with "ng-packagr: "^2.0.0-rc.0" or yarn add --dev ng-packagr@next.
The v2.0.0 release candidates collect several breaking changes compared to the last v1.x.
- invoke ngc thru
@angular/compiler-cliversion 5.0.x (c5c32c5), closes #219 - update typescript to ~2.4.2 for Angular v5 support (#270) (2c6db4f)
- when you published a scoped npm package, e.g.
@sample/core, the UMD module ID used to becoreincluding only the second part of the npm package name. With this change, the UMD module ID is nowsample.core. For secondary entrypoints, e.g.@sample/core/testing, the UMD module ID now also includes every part of the npm package name, e.g.sample.core.testing. Publishing your npm packages built with this version of ng-packagr causes a new UMD module ID to be generated. Users of your library need to update their configuration, e.g. when using SystemJS! - Users now need to install
@angular/compilerand@angular/compiler-clito thedevDependencysection of their project (if not already installed). ng-packagr uses both the TypeScript and the Angular compiler version provided by the user workspace.
1.6.0 (2017-11-14)
This release rolls back premature Angular v5 support in v1.6.0-rc.0.
It is recommended to use this version of ng-packagr for building Angular v4 libraries,
as typescript in 2.3.x and @angular/tsc-wrapped in 4.4.x are used.
Libraries generated with this version of ng-packagr will ship with AoT metadata in version 3, which is intended for Angular v4.
1.5.2 (2017-11-14)
This release reverts a regression introduced in v1.5.1.
See pull request #268.
Previously, a user of ng-packagr could install an incompatible typescript version for ng-packagr. Prevent inadvertent typescript installs by depending on a user's typescript installation (peerDependencies). This should be (is a) non-breaking change as any Angular project requires typescript as devDependency.
- depend on user's typescript (8f5bb9c)
1.6.0-rc.0 (2017-11-10)
- add tsx/jsx support (#228) (4068664)
- invoke ngc thru
@angular/compiler-cliversion 5.0.x (#271) (c5c32c5), closes #219 - update typescript to ~2.4.2 for Angular v5 support (#270) (2c6db4f)
1.5.1 (2017-11-10)
1.5.0 (2017-11-05)
Secondary entrypoints – such as @angular/core/testing, @angular/common/http, @angular/cdk/a11y, et al. – can now be bundled with ng-packagr. Angular's tsc-wrapped is now version ^4.4.5 and typescript is ^2.3.4 – whether these work well with Angular 5 needs to be verified.
- add description for
ngPackageproperty inpackage.json(3f8e25c) - copy
README.mdandLICENSEjust for primary entry (#215)(38776d8) - validate
ngPackageproperty for secondary entry resolution (#229) (ee5949b) - resolve node_modules folder dynamically from typescript (#211) (9a7008d)
- produce correct secondary package paths (#197) (4ca213e)
- respect secondary entry file customizations (#198) (9de7524)
- regression in cli defaults (18515af)
- bump
@angular/tsc-wrappedto ^4.4.5 andtypescriptto ^2.3.4 (#200) (b2b369a) - minify UMD bundles (#205) (c58689b)
- dynamic secondary entry points (5922cb1)
- allow empty package.json for secondary entries (c0af605)
- help command on cli (c68a190)
- provide more frequent console feedback (#212) (2801db9)
- for auto-discovery of secondary entries,
package.jsonfiles are now validated whether angPackageproperty exists; the value can be an empty object. This is a breaking change for a feature introduced in release candidate versions 1.5.0-rc.0/1.5.0-rc.1. When upgrading from 1.4.x to 1.5.0, it is not-breaking.
1.5.0-rc.1 (2017-10-23)
- produce correct secondary package paths (#197) (4ca213e)
- respect secondary entry file customizations (#198) (9de7524)
- bump angular/@tsc-wrapped to ^4.4.5 and @typescript to ^2.3.4 (#200) (b2b369a)
- minify UMD bundles (#205) (c58689b)
1.5.0-rc.0 (2017-10-18)
- regression in cli defaults (18515af)
- allow empty package.json for 2ndary entries (c0af605)
- dynamic secondary entry points (5922cb1)
- help command on cli (c68a190)
1.4.1 (2017-10-11)
- include
package.schema.jsonin dist artefacts and npm package (e660545)
1.4.0 (2017-10-10)
- add json schema for
package.jsonwith customngPackageproperty (#173) (dd85fd2) - resolve ng-package config from multiple sources (c193b68)
1.3.0 (2017-10-04)
- external dependencies from
[@angular](https://github.com/angular)/cdkare supported by default (4b20e29)
1.2.1 (2017-09-29)
1.2.0 (2017-09-20)
- add rollup commonjs plugin to support all library types (#121) (3f87f5e)
- update rollup to version 0.50.0 (#124) (fb9f529)
1.1.0 (2017-09-12)
1.0.1 (2017-08-31)
- make a dummy release for 1.0.1 (a6d6893)
1.0.0 (2017-08-31)
- ng-packagr is released 1.0.0 final (665a249)
1.0.0-pre.17 (2017-08-28)
- package: update rollup to version 0.49.0 (b5b920c)
1.0.0-pre.16 (2017-08-22)
- update rollup to version ^0.48.0 (9110899)
1.0.0-pre.15 (2017-08-16)
- move ng-package.schema.json to dist root directory (ad6325b)
- read json config values thru
schema.$$get()(0c3130c)
- the
ng-package.schema.jsonwas accidentally moved tolibfolder in a previous release. Restore it in its original location!
1.0.0-pre.14 (2017-08-07)
- add 'let' to known rxjs operators (9927f93), closes #85
- move less from devDependencies to dependencies (09ef8ce), closes #88
- strip utf-8 bom when reading files (cb34889), closes #87
1.0.0-pre.13 (2017-07-28)
- support rxjs operators with different import syntaxes (#82) (d64aa40)
1.0.0-pre.12 (2017-07-27)
- Added less support (06d7f84)
1.0.0-pre.11 (2017-07-22)
- pass file pathes to
postcss.process()(#77) (1051831)
1.0.0-pre.10 (2017-07-14)
- correct explanation of
lib.flatModuleFile(d95afb0)
- remove node 4.x support (7a857d4)
1.0.0-pre.9 (2017-07-11)
- use pkg name for es modules folder name when
@<scope>is undefined (#70) (cf24b1b)
1.0.0-pre.8 (2017-07-11)
- import scss files with "~" syntax from node_modules (#67) (205bbc0)
- update rollup to version ^0.45.0 (#69) (d124cb3), closes #68
1.0.0-pre.7 (2017-07-04)
- exclude node_modules from being copied to working dir (#60) (6bfe713), closes #51
- version bump rollup to ^0.43.0 (227e3b7)
1.0.0-pre.6 (2017-06-24)
- lib.externals support. (c226972)
1.0.0-pre.5 (2017-06-23)
- autoprefixer / postcss support (4115ad1), closes #54
- version bump to @angular/tsc-wrapped 4.2.0 (7091f2a)
1.0.0-pre.4 (2017-06-08)
- correct paths in generated sourcemaps (#50) (c389160), closes #46
- temporarily disable es5 source maps (804dd8c)
1.0.0-pre.3 (2017-06-06)
1.0.0-pre.2 (2017-06-06)
- package: update rollup to version 0.42.0 (#37) (75f1811)
- add
rxjs/ReplaySubjectto rollup defaults (#44) (237b24e)
1.0.0-pre.1 (2017-06-02)
- report Errors with stack traces, fail builds on promise rejection (#36) (6076074)
1.0.0-pre.0 (2017-06-02)
- use '1.0.0-pre.n' version number for any upcoming prerelease (a31c824)
1.0.0-alpha.7 (2017-06-02)
- correctly locate
typingsfile (3d5c266) - set flatModuleId to the name from package.json (#24) (1e2c33f)
- remove deprecated
ng-package.json properties(9b988b0)
1.0.0-alpha.6 (2017-06-02)
1.0.0-alpha.5 (2017-06-02)
- correctly locate
typingsfile (3d5c266) - set flatModuleId to the name from package.json (#24) (1e2c33f)
1.0.0-alpha.4 (2017-06-02)
- correctly locate
typingsfile (3d5c266) - set flatModuleId to the name from package.json (#24) (1e2c33f)
1.0.0-alpha.3 (2017-05-31)
- implement build steps with updated
ng-package.json(259a9fc) - include
[@angular](https://github.com/angular)/routerin default rollup opts (3d576ee) - JSON schema for
ng-package.json(76dd2ff)
1.0.0-alpha.2 (2017-05-27)
- default config file
ng-package.json(#10) (00fa15c)
- the default config file is renamed from
.ng-packagr.jsontong-package.json. Use oneng-package.jsonper each Angular library project.
1.0.0-alpha.1 (2017-05-27)
- resolve pathes relative to
ng-package.json(852ce43)