163 Commits

Author SHA1 Message Date
Joey Perrott
003854257c build: migrate all file header to use Google LLC rather than Google Inc 2021-04-27 08:35:22 +02:00
Renovate Bot
222b2e72e0 build: update webpack to version 5.35.1 2021-04-24 14:25:31 +02:00
Renovate Bot
f96914f0d3 build: update webpack to version 5.35.0 2021-04-21 12:44:50 -07:00
Renovate Bot
072f3a7009 build: update webpack to version 5.34.0 2021-04-19 20:33:01 +02:00
Charles Lyding
36dd4cc772 refactor(@angular-devkit/build-optimizer): remove redundant loader-utils dependency
Webpack 5 now provides the `getOptions` loader utility directly on the `LoaderContext` object.
2021-04-13 15:34:54 -04:00
Charles Lyding
8b5449dbc0 refactor(@angular-devkit/build-optimizer): remove redundant webpack-sources dependency
The `webpack` package now exports the `Source` based classes directly.
2021-04-13 15:34:54 -04:00
Renovate Bot
871f9eee77 build: update webpack to version 5.32.0 2021-04-13 10:43:33 -04:00
Charles Lyding
440f57943d build: update webpack to version 5.31.2 2021-04-12 14:08:43 -04:00
Alan Agius
dee6b79489 refactor: remove @types/webpack 2021-04-12 10:02:07 -04:00
Charles Lyding
43e22ae24a build: update webpack to version 5.30.0 2021-04-08 09:42:47 -04:00
Renovate Bot
a3ab2de647 build: update typescript to version 4.2.4 2021-04-08 08:35:25 -04:00
Renovate Bot
44c991d787 build: update tslib to version 2.2.0 2021-04-06 14:20:18 +02:00
Alan Agius
0e04a4c843 refactor(@angular-devkit/build-optimizer): remove ngfactories checks 2021-03-30 14:37:09 -06:00
Alan Agius
79856644b4 feat(@angular/cli): support TypeScript 4.2
BREAKING CHANGE

Drop support for TypeScript versions prior to 4.2.3
2021-03-17 19:32:01 +01:00
Charles Lyding
d720d3db73 refactor(@angular-devkit/build-optimizer): improve transitional Webpack 5 compatibility
This change provides both Webpack 4 and 5 compatible types for the the build optimizer Webpack plugin.
2021-02-18 13:01:16 +01:00
Charles Lyding
1f83f305db feat(@angular-devkit/build-optimizer): support Webpack 5
The `@angular-devkit/build-optimizer` package now officially supports Webpack 5.
Webpack 4 support is temporarily maintained while the remainder of the tooling is transitioned.
2021-02-15 14:47:00 -06:00
Renovate Bot
635c61507f build: update typescript to version 4.1.5 2021-02-11 12:34:17 -05:00
Renovate Bot
6306872968 build: update typescript to version 4.1.4 2021-02-10 11:18:01 -05:00
Alan Agius
4453bb1ab9 refactor(@angular-devkit/build-optimizer): replace deprecated TypeScript methods 2021-01-25 09:21:53 -06:00
Renovate Bot
d56179af1b build: update tslib to version 2.1.0 2021-01-06 12:01:26 +00:00
Renovate Bot
0f06d11fb6 build: update typescript to version 4.1.3 2020-12-16 13:54:07 +00:00
Charles Lyding
6e15005fca build: use TypeScript 4.1 2020-12-03 16:43:39 -05:00
Renovate Bot
d024cea655 build: update webpack-sources to version 2.2.0 2020-11-12 15:25:28 -05:00
Charles Lyding
bb370f0086 fix(@angular-devkit/build-optimizer): mark rxjs add imports as having side effects
This change prevents the build optimizer from removing the operator add imports from the rxjs package (for example, `import 'rxjs/add/operator/filter';`).  The entire rxjs package is currently marked as side effect free from within the rxjs `package.json` but the files in the add directory intentionally contain side effects.
2020-11-02 13:36:27 -06:00
Charles Lyding
1f5861c937 fix(@angular-devkit/build-optimizer): set rxjs as having safe side effects
The rxjs package contains module level side effects that are not marked with a pure annotation.  However, these side effects are safe to remove if the values are unused.
2020-10-27 12:05:11 -04:00
Renovate Bot
74783b919b build: update typescript to version 4.0.5 2020-10-27 09:52:42 -04:00
Charles Lyding
2f456778c7 fix(@angular-devkit/build-optimizer): support jit mode guarded class metadata removal
This adds support for the alternate emit form of `ɵsetClassMetadata` that is guarded by `ngJitMode` instead of a pure annotation.
2020-10-15 13:53:25 +02:00
Charles Lyding
4b4822f2c5 fix(@angular-devkit/build-optimizer): increase safety of code removal
This change lowers the potential for code to be errantly removed by the prefix functions and scrub file transformers.  Only known safe modules are used with the prefix functions transformer as it can easily remove required module level side effects (as opposed to global level side effects) such as `__decorate` calls.
The scrub file transformer will now keep metadata if non-Angular decorators are present. This allows libraries that use that information to continue to function.

Closes #14033
Closes #18621
2020-10-12 11:04:14 -04:00
Renovate Bot
795847c9e0 build: update tslib to version 2.0.3 2020-10-12 11:02:46 -04:00
Alan Agius
ee9e4dd0a7 refactor(@angular-devkit/build-optimizer): remove old checks
- @angular/core package no longer contain ESM5 and FESM5 entrypoints
- ngfactory/ngstyle file extension is always .js
2020-10-09 13:12:58 -04:00
Renovate Bot
6d7f038de5 build: update tslib to version 2.0.2 2020-10-07 09:24:28 -04:00
Renovate Bot
aaa7c82cfb build: update webpack-sources to version 2.0.1 2020-09-28 19:38:42 +02:00
Joey Perrott
25aa2d5929 refactor: remove usages of the term whitelist 2020-09-24 00:07:10 +03:00
Renovate Bot
f6538bd5a6 build: update typescript to version 4.0.3 2020-09-22 10:28:42 -05:00
Alan Agius
2586a0e9a2 fix(@angular-devkit/build-optimizer): remove decorators calls when tslib helpers are inlined
Closes #18682
2020-09-08 20:56:19 +02:00
Alan Agius
f665c466c2 refactor(@angular-devkit/build-optimizer): use type guards in scrub file 2020-09-03 00:21:26 +03:00
Alan Agius
50d559d73d refactor(@angular-devkit/build-optimizer): remove tsickle code from wrap-enums transformer
Angular packages are no longer annotated for Closure Compiler using Tsickle, therefore these checks are now redundant.
2020-09-03 00:21:26 +03:00
Alan Agius
ab62c7a5e8 refactor(@angular-devkit/build-optimizer): refactor tests and logic to use non legacy tslib imports syntax
Tslib is no longer imported using namespace imports, with this change we update the logic to use named imports.
2020-08-26 13:12:45 -04:00
Alan Agius
e49c92660f refactor(@angular-devkit/build-optimizer): refactor scrub file to use typeguards 2020-08-26 13:12:45 -04:00
Alan Agius
425b160b52 build: update to TypeScript 4 2020-08-25 04:27:40 -04:00
Alan Agius
c8859810c4 build: remove vendored typescript from build optimizer 2020-08-25 04:27:40 -04:00
Alan Agius
d1adba1347 build: update build_bazel_rules_nodejs to 2.0.2 2020-08-19 16:00:07 +02:00
Charles Lyding
fa9a648cae fix(@angular-devkit/build-optimizer): handle undefined factoryMeta in Webpack plugin
A Webpack module's `factoryMeta` property is not guaranteed to be defined.  This change ensures that the build optimizer skip property is added even in the case of no `factoryMeta` currently defined.
2020-08-12 19:27:00 +01:00
Charles Lyding
76b1b53a4b refactor(@angular-devkit/build-optimizer): verify Program for type-checking passes 2020-08-12 19:26:53 +01:00
Renovate Bot
282dd66cfb build: update tslib to version 2.0.1 2020-08-10 09:44:20 +01:00
Keen Yee Liau
fa9136a971 build: minor fixes for google3 sync
This commit makes a few minor changes to enable syncing the CLI repository
into google3.

1. mark pkg_tar and pkg_npm as external
2. remove dependencies (marked as comment) which are stale in google3
3. remove TS files generated from JSON schema in BUILD files since these
   files are compiled and added to the g3 codebase at sync time
4. Some minor typing changes
5. Remove duplicate licenses
6. mark dependencies which are not available in g3 as external
7. Immediately type the result of JSON.parse() as required by g3 linter.
   Otherwise, the type defaults to `any`.
2020-07-24 22:52:22 +02:00
Renovate Bot
f59fba5ebb build: update tslib to version 2.0.0 2020-05-19 10:56:01 +01:00
Renovate Bot
63455d2e86 build: update tslib to version 1.12.0 2020-05-13 10:12:02 -04:00
Alan Agius
56ffa1c7b2 build: vendor typescript 3.6 in build optimizer
With this change we "vendor" TypeScript 3.6 in build optimizer instead of using directly the npm package.

Reasons:
- We cannot update to a more recent version of TypeScript due to https://github.com/microsoft/TypeScript/issues/38412
- Yarn workspace are not supported under Bazel. This means currently we are running unit testswhich uses a different TypeScript version at runtime.
- In TypeScript 3.9, the shape of ES2015 classes changed https://github.com/microsoft/TypeScript/pull/32011, this requires some changes in the UT expects, but this again will not be correct to change now.
2020-05-11 07:45:58 -04:00
Renovate Bot
b8f4edaabb build: update tslib to version 1.11.2 2020-05-08 13:06:32 -07:00