8906 Commits

Author SHA1 Message Date
Alan Agius
789ddfaeb0 perf(@angular-devkit/build-angular): disable webpack backwards compatible APIs
See https://github.com/webpack/webpack/releases/tag/v5.62.0 and https://github.com/webpack/webpack/issues/14580 for more context.
2021-11-17 15:03:48 -08:00
Alan Agius
c7b2870188 refactor(@angular-devkit/build-angular): replace usage of webpack-dev-server deprecated https option
See: https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#450-2021-11-13
2021-11-17 15:03:17 -08:00
Charles Lyding
bc85637603 feat(@angular-devkit/build-angular): add estimated transfer size to build output report
When optimizations are enabled (either scripts or styles), an additional column will now be present in the output report shown in the console for an application build. This additonal column will display the estimated transfer size for each file as well as the total initial estimated transfer size for the initial files. The estimated transfer size is determined by calculating the compressed size of the file using brotli's default settings. In a development configuration (a configuration with optimizations disabled), the calculations are not performed to avoid any potential increase in rebuild speed due to the large size of unoptimized files.

Closes: #21394
2021-11-17 15:02:56 -08:00
Renovate Bot
3aa3bfc02b build: update dependency license-webpack-plugin to v4 2021-11-17 13:52:35 -08:00
Renovate Bot
22f8e8a83a build: update all non-major dependencies 2021-11-17 09:32:28 +00:00
Krzysztof Platis
25e761b16e docs: add breaking change note about calling scheduleBuilder with @angular-devkit/build-angular
closes #22152
2021-11-17 09:31:13 +00:00
Charles Lyding
ecd9fb5c77 feat(@angular/cli): provide more detailed error for not found builder
When a builder-based command is executed (build, serve, test, etc.) and the builder's node package cannot be found a more user-friendly error message is now displayed. In addition, when the builder's node package cannot be found, a check is performed to determine if the node packages for the workspace may have not been installed. Previously, a potentially long stacktrace was shown which did not provide much information regarding how to correct the issue.

Closes: #10536
2021-11-17 09:30:54 +00:00
Renovate Bot
1e81b8d472 build: update angular 2021-11-16 10:52:12 +00:00
Alan Agius
21809e14cd feat(@schematics/angular): loosen project name validation
With this change we update the validation of the libraries and application projects names to fully allow characters that make a valid NPM package name. http://json.schemastore.org/package has been used as reference.

We also remove validators that are no longer needed.

Closes #11051
2021-11-16 10:51:10 +00:00
Charles Lyding
6d0f99a2de feat(@angular-devkit/build-angular): support JSON comments in dev-server proxy configuration file
The `proxyConfig` option for the `dev-server` builder now supports JSON files containing comments and trailing commas.
Several additional tests regarding the use of ESM and CommonJS JavaScript configuration files were also added to reduce the likelihood of future regressions.

Closes: #21862
2021-11-16 10:50:39 +00:00
Joey Perrott
7d642fe90c ci: remove cla: yes from required labels
Remove `cla: yes` from the require labels for merging as the CLACheck
tool no longer relies on labels.

Enforcement of the CLA being signed is still enforced by the status check
which is visible both in Github as well as checked by merge tooling.
2021-11-16 10:49:41 +00:00
Joey Perrott
ff3bbf9ff3 build: update to yarn v1.22.17
Update to the latest version of yarn, 1.22.17.
2021-11-12 10:59:11 +00:00
Joey Perrott
5c40cd7d10 release: cut the v13.1.0-next.1 release 13.1.0-next.1 2021-11-10 17:10:12 -08:00
Joey Perrott
9417c9417a docs: release notes for the v13.0.2 release 2021-11-10 16:26:51 -08:00
Joey Perrott
27bf8ce400 build: update to latest @angular/dev-infra-private to address issues related to verifying environment
Update to the latest package which properly checks if the running version of ng-dev is the version
described in yarn lock.
2021-11-10 15:24:15 -08:00
Renovate Bot
c20153db81 build: update all non-major dependencies 2021-11-10 14:24:25 -05:00
Alan Agius
e9d2d98e89 fix(@schematics/angular): migrate ng-packagr configurations in package.json
Currently ng-packagr, can be configured used in package.json. Previously, the migration didn't handle this case.

Closes #22129
2021-11-10 10:24:24 -05:00
Paul Gschwendtner
b230d35deb refactor: fix ng-new template pointing to Angular animations with Material logo
Fixes that the `new new` generated app component template currently
provides a link to Angular Animations with the Angular Material logo,
according to: https://angular.io/presskit.

This commit switches the link to Angular Material with the assumption
that this was intended to point to Angular Material from the
beginning.
2021-11-10 09:50:06 -05:00
Renovate Bot
f049feeace build: update all non-major dependencies 2021-11-09 13:04:00 -05:00
Alan Agius
f5b2d7e031 refactor: remove no longer needed caniuse-lite dependency 2021-11-09 13:03:34 -05:00
Alan Agius
5990ed91cd fix(@angular-devkit/build-angular): improve sourcemap fidelity during code-coverage
We now pass the input sourcemap to istanbul babel plugin, since this is used directly by the instrumenter d58c92a7de/src/index.js (L126-L129) and is needed to remapped instrumented code back to the original source.

Previously, the lack of this caused incorrect reports of uncovered and coverage code and also incorrectly mappings in the HTML report.

Closes #22118
2021-11-09 11:08:03 -05:00
Alan Agius
b7b1325a67 fix(@angular/cli): favor ng-update packageGroupName in ng update output
With this change we favor the `packageGroupName` name when specified and only fallback to use the first item in in the `packageGroup` array when it is not specified.

Closes #22087
2021-11-09 11:06:08 -05:00
Renovate Bot
b15472a075 build: lock file maintenance 2021-11-08 11:22:44 -05:00
Alan Agius
950b430c01 fix(@schematics/angular): show warning when migrating ng-packagr JS configurations
Our migrations only handle JSON configs.

Closes #22107
2021-11-08 10:25:51 -05:00
Renovate Bot
721d5c6801 build: update angular 2021-11-08 10:20:33 -05:00
Renovate Bot
1a2467560c build: update all non-major dependencies 2021-11-08 10:20:09 -05:00
Alan Agius
b3e588801d fix(@angular-devkit/build-angular): suppress "@charset" must be the first rule in the file warning
esbuild will issue a warning when `@charset` is in the middle of the file. This is caused by css-loader will concats the file and doesn't hoist `@charset`, (https://github.com/webpack-contrib/css-loader/issues/1212).

While, esbuild will issue a warning regarding the above, it will hoist to the very top.

In many cases, this warning is not actionable by the users as the `@charset` would be likely specified in 3rd party libs.

Closes #22097
2021-11-08 10:17:44 -05:00
Charles Lyding
4a5ca162c3 fix(@angular/cli): avoid redirecting @angular/core in Angular migrations
Files should not redirect `@angular/core` and instead use the direct dependency of the `@schematics/angular` package. This allows old major version migrations to continue to function even though the latest major version may have breaking changes in `@angular/core`.
2021-11-08 09:30:22 -05:00
Alan Agius
3a89358d33 fix(@angular-devkit/build-angular): don't show [NG HMR] Unknown input type when restoring file type input 2021-11-04 16:35:09 -04:00
Renovate Bot
37b9493ed3 build: update all non-major dependencies 2021-11-04 12:58:51 -04:00
Renovate Bot
0d864a4239 build: update angular 2021-11-04 12:16:49 -04:00
Charles Lyding
e1bac5bbb3 fix(@angular-devkit/build-angular): update Angular peer dependencies to v13.1 prerelease
This change allows framework v13.1 prelease versions to be used with the Angular CLI 13.1 preleases without peer dependency warnings.
2021-11-04 12:15:13 -04:00
Alan Agius
47fd128a06 fix(@angular-devkit/build-angular): don't restore input of type file during HMR
```
Uncaught DOMException: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.
```

Closes #22084
2021-11-04 12:14:03 -04:00
Doug Parker
47aa411c48 docs: release notes for the v13.0.1 release 2021-11-03 23:15:39 -07:00
Joey Perrott
cf67f2629d fix(@schematics/angular): updated Angular new project version to v13.0.0 2021-11-03 18:03:27 -07:00
Charles Lyding
f5959364fc docs(@ngtools/webpack): add Ivy linker setup documentation to readme
When not using the Angular CLI, the Babel-based Ivy linker is also required to successfully build an application. A section describing the setup of the linker in addition to the Angular compiler plugin has now been included with links to the AIO documentation and the babel-loader for additional information.
2021-11-03 20:54:53 -04:00
Doug Parker
d3074b6ace release: cut the v13.1.0-next.0 release 13.1.0-next.0 2021-11-03 15:10:16 -07:00
Doug Parker
86b890016b docs: release notes for the v12.2.13 release 2021-11-03 14:29:38 -07:00
Joey Perrott
5d338233ad docs: release notes for the v13.0.0 release 2021-11-03 12:35:02 -07:00
Alan Agius
97624f3e84 build: update ng-packagr to stable version 2021-11-03 17:37:15 +01:00
Renovate Bot
01ac7d8686 build: update dependency puppeteer to v11 2021-11-03 13:07:11 +01:00
Renovate Bot
73a2a28291 build: update dependency core-js to v3.19.1 2021-11-03 08:24:26 +01:00
Alan Agius
5402f99f8a fix(@ngtools/webpack): add cjs and mjs to passthrough files
With this change we add `.mjs` and `.cjs` JS files passthough when `allowedJs` is not enabled.
2021-11-03 08:23:34 +01:00
Alan Agius
d526e87506 refactor(@angular-devkit/build-angular): clean up webpack configurations
With this change we remove the worker and typescript configuration.
2021-11-03 08:23:34 +01:00
Doug Parker
18d3b21c2e docs: release notes for the v13.0.0-rc.3 release 2021-11-02 12:15:45 -07:00
Renovate Bot
5b186c15b7 build: update all non-major dependencies 2021-11-02 16:58:48 +01:00
Charles Lyding
d9e819313a fix(@angular-devkit/build-angular): remove potential race condition in i18n worker execution
There was previously the potential for two workers to complete quickly at the same time which could result in one of the results not being propagated to the remainder of the system. This situation has now been corrected by removing the worker execution at a later point in the process.

(cherry picked from commit 802b1b0378c1816dbfd8f4320b5d69e82f0c7aa6)
2021-11-02 16:58:32 +01:00
Renovate Bot
082b08f4f4 build: update angular 2021-11-02 08:08:24 +01:00
Alan Agius
cec0ef0855 fix(@angular-devkit/build-angular): use es2015 when generating server bundles
ES2020 can contain JS syntax which are not compatible with all supported Node.js versions such as optional chaining.
2021-11-01 21:10:00 +01:00
Alan Agius
d90e8a7746 build: update @types/sass to ^1.43.0 2021-11-01 19:39:09 +01:00