7294 Commits

Author SHA1 Message Date
Charles Lyding
86d69e22fb fix(@angular/cli): redirect Angular schematic dependency requests to known versions
This change adds logic to redirect module resolution requests for Angular schematics to ensure that the correct versions of core schematic related packages are used.  This also ensures that the runtime version of the schematics package matches the version used inside the schematic and that object instances passed into the schematic are compatible.
The current set of core schematic related packages are `@angular-devkit/*` and `@schematics/angular`.  Only first-party Angular schematics are currently affected by this change.
2021-01-28 12:44:34 +01:00
Charles Lyding
76915409df refactor(@angular-devkit/schematics): allow customization of node workflow engine host
This adds an option to the NodeWorkflow to allow a custom NodeModulesEngineHost to be used with the workflow.
2021-01-28 12:44:34 +01:00
Matt Lewis
42e439f6fd fix(@angular-devkit/build-angular): fix budgets for any script with differential loading enabled
Fixes #19849
2021-01-28 11:02:07 +01:00
Joey Perrott
b5c309ada1 build: update bazel to 4.0.0
Update to the latest version of bazel (4.0.0).
2021-01-28 09:37:19 +01:00
Renovate Bot
25e1460895 build: update angular packages 2021-01-28 09:36:29 +01:00
Alan Agius
1c48a24e92 docs: fix tests with Bazel link 2021-01-28 09:35:50 +01:00
Alan Agius
54f44bc49a test(@angular-devkit/build-angular): move output-hashing test to new test harness 2021-01-28 09:35:31 +01:00
Alan Agius
a86ea3f154 fix(@angular-devkit/build-angular): allow emitting multiple files with the same filename
Previously when hashing of media was disabled, if 2 files had the same name. Only one files used to be emitted. With this change we change the behaviour so that both files are emitted.

Closes #12186
2021-01-28 09:35:31 +01:00
Alan Agius
36a28e5226 fix(@angular-devkit/build-angular): styles that are not injected do count for initial bundle size
Closes #17672
2021-01-28 09:35:12 +01:00
Mike Brocchi
a179828be3 fix(@angular-devkit/schematics): Fix merge that causes an overwrite
This fixes #11337 to allow for merging of a tree with another when the the file already exists in the tree being merged into.
2021-01-28 09:34:43 +01:00
Charles Lyding
bd040bd4d6 feat(@angular/cli): provide additional status messaging for ng add
This adds a spinner as well as shows more information regarding what package version was selected to be installed.

Closes #17983
2021-01-28 07:36:15 +01:00
Alan Agius
9f595f7988 refactor(@ngtools/webpack): replace deprecated TypeScript methods
TypeScript provides a set of pure functions for producing syntax tree nodes. Since TypeScript 4.0 these methods have been deprecated in favor of the factory API.

See: https://github.com/microsoft/TypeScript/wiki/API-Breaking-Changes#typescript-40
2021-01-28 07:35:45 +01:00
Doug Parker
2afcf298e5 release: v11.2.0-next.0
No need to update root `package.json` as it is already version `11.2.0-next.0`.
v11.2.0-next.0
2021-01-27 12:56:51 -08:00
Joey Perrott
e7e01d213e build: update to yarn v1.22.10
Update to the latest version of yarn.
2021-01-26 09:27:20 -06:00
Charles Lyding
e2e8d57b38 feat(@angular-devkit/build-angular): support targeting ES2017 with Zone.js
This change causes native async functions to be downleveled when an application targets ES2017 within its TypeScript configuration.  Any source file that contains the async keyword will be processed including libraries.  Since Zone.js does not support native async, this processing allows Zone.js to function with an ES2017 target.
2021-01-26 09:26:23 -06:00
minijus
5cdf4ccd1d fix(@schematics/update): update line end normalization for CA file read from .npmrc
Before only first line end was being replaced.
Also, the replace value was incorrectly escaped.

The CA read from cafile being corrupt resulted in broken updates
when using registry with self-signed certificate.

The workaround till this is merged is to use `ca` or `ca[]` properties in `.npmrc`.
2021-01-26 09:25:29 -06:00
Renovate Bot
2f050fde34 build: update speed-measure-webpack-plugin to version 1.4.2 2021-01-26 09:20:17 -06:00
Alan Agius
c561e733ea test(@ngtools/webpack): update depedencies in webpack test-app 2021-01-25 09:21:53 -06:00
Alan Agius
cf978cdf5d refactor(@ngtools/webpack): replace deprecated TypeScript methods
TypeScript provides a set of  pure  functions for producing syntax tree nodes. Since TypeScript 4.0 these methods have been deprecated in favor of the `factory` API.

See: https://github.com/microsoft/TypeScript/wiki/API-Breaking-Changes#typescript-40
2021-01-25 09:21:53 -06:00
Alan Agius
4453bb1ab9 refactor(@angular-devkit/build-optimizer): replace deprecated TypeScript methods 2021-01-25 09:21:53 -06:00
Renovate Bot
74a1c2a2b9 build: update pacote to version 11.2.3 2021-01-25 09:20:00 -06:00
Renovate Bot
bf0c5b9e96 build: update rollup to version 2.38.0 2021-01-25 09:19:23 -06:00
Renovate Bot
d781851c31 build: update verdaccio to version 4.11.0 2021-01-25 09:18:46 -06:00
Renovate Bot
a45c3a5420 build: update to version 2021-01-25 09:18:29 -06:00
Alan Agius
f766fc1617 refactor(@angular-devkit/core): deprecate flatten schema method.
The flatten schema method has been deprecated without replacement.

Producing a flatten schema document does not in all cases produce a schema with identical behavior to the original.

See: https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.appendix.B.2
2021-01-25 09:17:45 -06:00
Alan Agius
9af0942e69 fix(@angular-devkit/build-angular): inlining fonts behind proxy
With this change users can now their proxy server via the `HTTPS_PROXY` environment variable. The specified proxy will be used when making requests to inline fonts.

Closes #19401
2021-01-25 09:17:03 -06:00
Alan Agius
d0cc0cbda3 fix(@angular-devkit/build-angular): correctly handle scripts when using subresource-integrity option
Fixes #19829
2021-01-25 09:16:32 -06:00
Alan Agius
3db8c6e464 test(@angular-devkit/build-angular): change sri tests to use new test harness 2021-01-25 09:16:32 -06:00
Alan Agius
cc51432661 fix(@angular-devkit/build-angular): resolve less from build-angular package 2021-01-22 10:36:20 -08:00
Alan Agius
5711e691b9 fix(@angular-devkit/build-angular): resolve postcss from build-angular package
`postcss-loader` version 4.2.0 added an `implementation` option. Using the using will ensure that the correct postcss version is used.

More info: deac9787ee

Fixes #19839
2021-01-22 10:36:20 -08:00
Charles Lyding
c2a449b685 fix(@ngtools/webpack): perform import eliding before TypeScript transforms
Due to the method used by TypeScript to emit decorator metadata via the `emitDecoratorMetadata` function, the import eliding algorithm within the Angular compiler plugin may errantly remove imports to type metadata included in the emitted decorator calls. By moving the eliding before TypeScript, the eliding can use the Type nodes to analyze for used imports when `emitDecoratorMetadata` is enabled. This fix also reworks the previous fix to prevent the eliding to errantly remove certain factory functions that TypeScript may use in emitted code but are not yet referenced in the input code. The previous fix was to move the eliding after the TypeScript transformations.  The new fix is therefore not as comprehensive as the original but covers the usecase within the originating issue (#13297).
2021-01-22 10:34:48 -08:00
Charles Lyding
776a6ece58 fix(@angular/cli): avoid analytics cli object check if not present
The `cli` workspace configuration property was previously checked to determine if it was an object even if the property did not yet exist.
2021-01-20 14:44:12 -05:00
Renovate Bot
b669a0a680 build: update ng-packagr to version ~11.1.0 2021-01-20 14:15:55 -05:00
Renovate Bot
0b3b7ebcc0 build: update pacote to version 11.2.2 2021-01-20 14:15:32 -05:00
Alan Agius
64aa5703fa docs(@angular-devkit/build-angular): update vendorChunk and commonChunk descriptions 2021-01-20 10:30:28 -05:00
Alan Agius
8ec493e7cc docs(@angular/cli): update vendorChunk and commonChunk descriptions 2021-01-20 10:30:28 -05:00
minijus
8047f3be3a fix(@angular/cli): add @angular-devkit/architect to ng-update packageGroup 2021-01-20 10:29:38 -05:00
Charles Lyding
6b2a8e175e refactor(@angular-devkit/build-angular): remove virtualfs host usage from browser/dev-server
The virtualfs Host was only used for exist and directory checks during asset and file replacement option normalization within the browser and dev-server builders.
2021-01-20 10:27:43 -05:00
Renovate Bot
2d7f268baf build: update sass to version 1.32.5 2021-01-20 10:06:35 -05:00
Renovate Bot
6d81f65694 build: update autoprefixer to version 10.2.3 2021-01-20 10:02:02 -05:00
Renovate Bot
650e1dc868 build: update angular packages 2021-01-20 10:01:48 -05:00
Renovate Bot
62865f7710 build: update ora to version 5.3.0 2021-01-20 10:00:36 -05:00
Charles Lyding
7b106dd963 refactor(@angular-devkit/build-angular): remove unneeded no-implicit-dependencies tslint comments 2021-01-19 15:06:29 -05:00
Charles Lyding
1d2908ad86 fix(@angular-devkit/build-angular): add service-worker as optional peer dependency
The `@angular/service-worker` package is used by the browser and app-shell builders.
By adding the package as an optional peer dependency, package managers can ensure that the package is available to import.
2021-01-19 15:06:29 -05:00
Renovate Bot
b3ccec1a26 build: update rollup to version 2.37.0 2021-01-19 10:28:43 -05:00
Renovate Bot
c8267d0e76 build: update core-js to version 3.8.3 2021-01-19 10:28:26 -05:00
Renovate Bot
2d84827017 build: update stylus to version 0.54.8 2021-01-18 20:10:05 -05:00
Renovate Bot
b33bd06acd build: update rollup to version 2.36.2 2021-01-18 20:09:55 -05:00
Renovate Bot
e3a2d7cd71 build: update to version 2021-01-18 14:31:42 -05:00
Renovate Bot
f02ad948c1 build: update angular packages 2021-01-18 14:30:50 -05:00