8390 Commits

Author SHA1 Message Date
Alan Agius
76d6d8826f fix(@angular-devkit/build-angular): set browserslist defaults
By default, browserslist defaults are too inclusive: 83764ea81f/index.js (L516-L522)

We change the default query to browsers that Angular support: https://angular.io/guide/browser-support
2021-08-27 15:57:57 +02:00
Alan Agius
732ef79852 fix(@schematics/angular): add browserslist configuration in library projects
Previously, browserslist configuration was not added in library projects. This in some cases caused a large number of CSS prefixes to be included in components stylesheets
2021-08-27 15:57:57 +02:00
Alan Agius
32dbf659ac feat(@angular-devkit/build-angular): update webpack-dev-server to version 4
BREAKING CHANGE:

The dev-server now uses WebSockets to communicate changes to the browser during HMR and live-reloaded. If during your development you are using a proxy you will need to enable proxying of WebSockets.
2021-08-27 15:40:10 +02:00
Alan Agius
a0b5897d50 feat(@angular-devkit/build-webpack): update webpack-dev-server to version 4
BREAKING CHANGE:

Support for `webpack-dev-server` version 3 has been removed. For more information about the migration please see: https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md

Note: this change only affects users depending on `@angular-devkit/build-webpack` directly.
2021-08-27 15:40:10 +02:00
Renovate Bot
6fa263e171 build: update angular 2021-08-27 09:20:11 +02:00
Renovate Bot
4b323b139e build: update dependency cacache to v15.3.0 2021-08-27 07:15:52 +02:00
Alan Agius
027a349527 build: rename typings.d.ts to typings.ts
Fixes
```
ERROR: /home/circleci/ng/packages/angular/cli/BUILD.bazel:289:11: Compiling TypeScript (devmode) //packages/angular/cli:angular-cli_test_lib failed: (Exit 1): tsc_wrapped.sh failed: error executing command
  (cd /home/circleci/.cache/bazel/_bazel_circleci/9ce5c2144ecf75d11717c0aa41e45a8d/execroot/angular_cli && \
  exec env - \
    NG_FORCE_TTY=false \
    PATH=/bin:/usr/bin:/usr/local/bin \
  bazel-out/host/bin/external/npm/@bazel/typescript/bin/tsc_wrapped.sh @@bazel-out/k8-fastbuild/bin/packages/angular/cli/angular-cli_test_lib_es5_tsconfig.json)
Execution platform: //tools:rbe_platform_with_network_access
error TS5055: Cannot write file '/home/circleci/.cache/bazel/_bazel_circleci/9ce5c2144ecf75d11717c0aa41e45a8d/execroot/angular_cli/bazel-out/k8-fastbuild/bin/packages/angular/cli/utilities/package-metadata.d.ts' because it would overwrite input file.
  Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
```
2021-08-27 07:15:30 +02:00
Doug Parker
4e90faa26e release: cut the v13.0.0-next.2 release 13.0.0-next.2 2021-08-26 12:15:57 -07:00
Doug Parker
6dbced7481 docs: release notes for the v12.2.3 release 2021-08-26 11:17:40 -07:00
Renovate Bot
c0dfbfecdc build: update all non-major dependencies 2021-08-26 07:31:06 +02:00
Charles Lyding
3df6fba4c1 refactor(@angular/cli): support bootstrapping with CommonJS startup code
To support the eventual migration of the CLI to ESM, the CLI commandline tool is now bootstrapped by dynamically importing the main initialization code. This is done to allow the main bin file (`ng`) to remain CommonJS so that older versions of Node.js can be checked and validated prior to the execution of the CLI. This separate bootstrap file is needed to allow the use of a dynamic import expression without crashing older versions of Node.js that do not support dynamic import expressions and would otherwise throw a syntax error. This bootstrap file is required from the main bin file only after the Node.js version is determined to be in the supported range. The use of the dynamic import expression allows CommonJS code to execute either CommonJS or ESM code.
2021-08-26 07:30:56 +02:00
Charles Lyding
a7de97e485 build: add Bazel ts_library rule package_name properties to all packages
rules_nodejs 4 requires that a package_name property be specified within a ts_library rule for the output to be linked into the package repository. Failing to add the property can cause test failures due to unresolved packages.
2021-08-26 07:30:44 +02:00
Renovate Bot
b3d5fa479e build: update bazel to v4 2021-08-26 07:30:44 +02:00
Alan Agius
9a46ba562a build: update dependency webpack-subresource-integrity to v5 2021-08-26 07:30:34 +02:00
Renovate Bot
db43fd4870 build: update angular 2021-08-25 11:41:19 +01:00
Renovate Bot
795941f831 build: lock file maintenance 2021-08-25 11:41:07 +01:00
Charles Lyding
64c9a0512e refactor(@angular/cli): convert VERSION property from require to file read
Much like the framework packages, the VERSION property will eventually be set via build-time stamping but the necessary build infrastructure is not yet in place. Until then, the global require usage has been replaced with a file read and JSON parse which provides the equivalent required behavior.
2021-08-25 11:40:51 +01:00
Charles Lyding
c7e39233b4 refactor(@angular/cli): convert pacote usage from require to import
The removal of require usage supports the eventual shift to an ESM output for the CLI package.
2021-08-25 11:40:51 +01:00
Charles Lyding
266233c66e refactor(@angular/cli): convert ini and @yarnpkg/lockfile usage from require to import
The removal of require usage supports the eventual shift to an ESM output for the CLI package.
2021-08-25 11:40:51 +01:00
Charles Lyding
6f4bf38e9c refactor(@angular/cli): convert npm-pick-manifest usage from require to import
The removal of require usage supports the eventual shift to an ESM output for the CLI package.
2021-08-25 11:40:51 +01:00
Charles Lyding
0ba837b2e4 refactor(@angular/cli): use custom scoped require instead of global
To support the eventual conversion of the `@angular/cli` package to ESM, the usage of the global require function must be removed as it is not supported in ESM code. Node.js does have the facility to create custom require functions that can be used when the need to synchronously load a file at runtime is required. Such cases have now been converted to use custom require functions where appropriate.
2021-08-25 11:40:51 +01:00
Renovate Bot
ab3db39472 build: update all non-major dependencies 2021-08-24 10:51:32 +01:00
Charles Lyding
51f89d633f test: enable no-useless-escape lint rule
The `no-useless-escape` eslint rule has now been enabled which removes unneeded characters and complexity from string literals and regular expressions. All files that were in violation of this rule have also been corrected.
2021-08-24 10:51:14 +01:00
Renovate Bot
9e71069610 build: update all non-major dependencies 2021-08-23 11:07:13 +01:00
Renovate Bot
8e5806a8df build: update angular 2021-08-23 11:06:59 +01:00
Trevor Karjanis
9c62ddcd69 docs: update the description of the lint command
Update the description of the lint command for when a project name is not provided.

Closes #21619
2021-08-23 11:06:33 +01:00
Charles Lyding
7928b18edf perf(@ngtools/webpack): reduce repeat path mapping analysis during resolution
The internal TypeScript path mapping Webpack resolver plugin is used to adjust module resolution during builds via the TypeScript configuration `paths` option. Prior to a build, the `paths` option is now preprocessed to limit the amount of analysis that is needed within each individual module resolution attempt during a build. Since module resolution attempts can occur frequently during a build, this change offers the potential to reduce the total cost of module resolution especially for applications with a large amount of configured path mappings.
2021-08-23 11:06:21 +01:00
Alan Agius
4f91816b29 feat(@schematics/angular): migrate libraries to be published from ViewEngine to Ivy Partial compilation
This migration updates libraries to be published in partial mode instead of view engine. Also, it removed deprecated options from ng-packagr configuration.
2021-08-23 11:06:07 +01:00
Alan Agius
961218aae7 refactor(@angular-devkit/build-angular): remove differential loading stats generation
This is no longer needed size differential loading was removed.
2021-08-23 11:05:53 +01:00
Renovate Bot
313a5a7089 build: update angular 2021-08-20 10:05:26 +01:00
Renovate Bot
a6f8d33637 build: update all non-major dependencies 2021-08-20 10:05:13 +01:00
Lukas Spirig
0565ed62eb feat(@angular-devkit/schematics): add UpdateBuffer2 based on magic-string
This PR adds UpdateBuffer2 which should eventually
replace UpdateBuffer. UpdateBuffer2 internally uses
the magic-string library.
UpdateBuffer and related symbols have been marked
as deprecated.

Closes #21110
2021-08-20 10:04:33 +01:00
Joey Perrott
8a984f7977 release: cut the v13.0.0-next.1 release 13.0.0-next.1 2021-08-18 16:45:16 -07:00
Joey Perrott
f71f05ff6e docs: release notes for the v12.2.2 release 2021-08-18 15:53:15 -07:00
Renovate Bot
901c5aea4f build: update angular 2021-08-18 16:36:28 -04:00
Renovate Bot
6be902ac83 build: update dependency core-js to v3.16.2 2021-08-18 12:00:15 -04:00
Alan Agius
aba54ae783 fix(@angular-devkit/build-angular): provide supported browsers to esbuild
With this change we provide the list of supported browsers to Esbuild during CSS optimizations, so it can perform optimizations based on the browser support needed.

Closes #21594
2021-08-18 10:14:39 -04:00
Charles Lyding
e0a1a94e79 docs: update release documentation regarding prerelease semver ranges
When transitioning from prerelease to stable, several SemVer ranges for packages referenced in the `package.json` files need to be adjusted so that the unsupported prerelease versions are not mentioned in the final stable release.
2021-08-18 10:10:18 -04:00
Renovate Bot
6a8f1dd418 build: update angular 2021-08-17 12:36:24 -04:00
Alan Agius
be113ddea4 ci: add angular/dev-infra to Angular group 2021-08-17 10:10:42 -04:00
Renovate Bot
5326b49488 build: update all non-major dependencies 2021-08-17 10:09:45 -04:00
Renovate Bot
7f7d699c46 build: update dependency ajv-formats to v2.1.1 2021-08-16 12:22:47 -04:00
Renovate Bot
6fd7a3066e build: lock file maintenance 2021-08-16 12:22:08 -04:00
Alan Agius
2f540dc784 ci: configure renovate to manage GitHub workflow updates
Update renovate config to allow GitHub workflow updates
2021-08-16 12:21:35 -04:00
Alan Agius
69b972fe6d refactor(@angular-devkit/schematics): replace usage of deprecated JSON parser with jsonc-parser 2021-08-16 10:01:04 -04:00
Alan Agius
bb5760c0ab refactor(@angular-devkit/schematics-cli): remove usage of removed json parser 2021-08-16 10:01:04 -04:00
Alan Agius
d722fdf1f6 refactor(@angular-devkit/core): remove deprecated JSON parser
BREAKING CHANGE: The deprecated JSON parser has been removed from public API. [jsonc-parser](https://www.npmjs.com/package/jsonc-parser) should be used instead.
2021-08-16 10:01:04 -04:00
Simon Primetzhofer
9eb599da2b fix(@angular-devkit/build-angular): handle undefined entrypoints when marking async chunks
When using custom builders, it is possible to remove entries from the webpack-configuration
manually. This may eventually lead to undefined entryPoints in async-chunks.ts and aborts
the compilation.
2021-08-13 16:15:12 -04:00
Renovate Bot
f4874d5545 build: update all non-major dependencies 2021-08-13 16:13:31 -04:00
Joey Perrott
d8dbdba201 ci: add breaking changes auto labeling action
Automatically add/remove `breaking changes` label to PRs as needed based on whether
the PR contains a commit with a breaking change.
2021-08-13 16:12:49 -04:00