master
Commits on Jul 19, 2021
-
build: remove unnecessary husky gitignore file
Since version 7 `.gitignore` file is no longer necessary. See: https://github.com/typicode/husky/releases/tag/v7.0.0
-
fix(@angular-devkit/build-angular): dasherize disable-host-check sugg…
…estion Camel case arguments have been deprecated and therefore shouldn't be suggested.
-
-
refactor(@ngtools/webpack): avoid exposing internal types in public API
The `AngularPluginSymbol` and `FileEmitterCollection` types are not intended to be exported for use within the public API of the package.
-
Commits on Jul 16, 2021
-
-
build: provide build artifact location directories instead of tar files
Provide the location of the directories rather than the tar files as the release tooling inspects the package.json fiels to confirm the correct version being published.
-
Commits on Jul 15, 2021
-
-
refactor(@schematics/angular): use a helper function for basic genera…
…tion schematics An internal schematics helper rule has been introduced for Angular schematics that only generate a set of project files from a set of templated files. Multiple current generation schematics contained essentially the same code which increased the sustainment burden and made refactoring and improvements more complicated.
-
-
Commits on Jul 14, 2021
-
-
-
ci: introduce configuration to fail fast for CI failures
When failures occur on CI, we should not continue to run the CI checks as a failing case has already been discovered. Instead we now cancel the workflow stopping the other jobs to prevent unnecessary resource usage.
-
fix(@angular-devkit/build-angular): exclude
outputPathfrom persist……ent build cache key With this change we exclude `outputPath` from cache key due to i18n extraction which causes it to change on every build https://github.com/angular/angular-cli/blob/736a5f89deaca85f487b78aec9ff66d4118ceb6a/packages/angular_devkit/build_angular/src/utils/i18n-options.ts#L264-L265 Closes #21275
Commits on Jul 13, 2021
-
-
fix(@angular-devkit/build-angular): limit advanced terser passes to two
Limiting the terser passes to two helps to workaround an issue with terser wherein terser will errantly inline a function argument containing a `yield` expression inside an inner arrow function. This results in a syntax error since the yield expression is no longer within the scope of a generator.
-
perf(@angular-devkit/build-angular): use
esbuildas a CSS optimizer…… for component styles The stylesheet optimization pipeline now uses `esbuild` for component stylesheets. The usage of `esbuild` provides noticeable build time improvements as well as, on average, smaller output sizes. `esbuild` currently does not support stylesheet sourcemaps. However, since the Angular CLI does not support component stylesheet sourcemaps when optimizing, this lack of support is problematic. Global stylesheets will continue to use `cssnano` as an optimizer due to sourcemaps being required for global stylesheets even when optimizing. When `esbuild` adds stylesheet sourcemap support, global stylesheets may be transitioned to `esbuild` as well.
Commits on Jul 12, 2021
-
-
fix(@angular-devkit/build-angular): display incompatibility errors
The logger API writes logs in an async fasion which previously caused messages not to be printed in the terminal when `process.exit` was invoked. Closes #21322
-
fix(@schematics/angular): use stricter semver for `karma-jasmine-html…
…-reporter` This is not the first time, that this package caused a breaking change in a minor version, were it drops support for older `jasmine-core` versions. Related to #21326
-
fix(@angular-devkit/build-angular):
extractLicensesdidn't have an ……effect when using server builder
-
test(@angular-devkit/build-angular): refactor server builder tests to…
… use test harness
Commits on Jul 9, 2021
-
fix(@angular-devkit/build-angular): fix issue were
@media allcausi……ng critical CSS inling to fail Workaround for Critters as it doesn't work when `@media all {}` is minified to `@media {}`. Closes #20804 -
-
fix(@angular-devkit/build-angular): fail browser build when index gen…
…eration fails Currently, when there is an error during index generation this is just been logged in the console.
-
fix(@ngtools/webpack): avoid non-actionable template type-checker syn…
…tax diagnostics The AOT compiler's internal template type-checking files are not intended to be directly analyzed for diagnostics by the emitting program and are instead analyzed during the template type-checking phase. Previously, only semantic diagnostics were ignored. Now both syntactic and semantic diagnostics are ignored. This change prevents non-actionable diagnostics from being shown during a build. Addresses: angular/angular#42667
-
fix(@ngtools/webpack): allow generated assets of Angular component re…
…sources The asset caching for Angular component resources previously required that all assets had an originating file. However, some Webpack plugins may generate assets that do not originate from on-disk files and are instead synthetic. These type of assets are now supported by generating a cache key based on the output name of the asset. These assets will persist within the cache due to the lack of knowledge on the dependencies of these assets which results in the inability to invalidate the assets. Updated assets of the same output name will, however, replace older versions of the asset on rebuilds. Fixes: #21290
Commits on Jul 8, 2021
-
fix(@schematics/angular): replace interactive
divwithbuttonin ……application component template A keyboard user who has a problem in using a mouse, will not be able to select the `div`, because he cannot initiate the click event, which is specific to the mouse. Interactive elements like button can initiate the click event on keyboard events. Instead of adding additional events, such as `keyup`, `keydown` or `keypress`, we replace these with a `button`.
-
Commits on Jul 7, 2021
-
refactor(@angular-devkit/build-angular): replace
raw-loaderwith We……bpack 5 asset modules With Webpack 5, the `raw-loader` is no longer needed and its functionality is provided via configuration options within the Webpack configuration via asset modules. Asset modules (https://webpack.js.org/guides/asset-modules/) provide a built-in way to provide `raw-loader`, `url-loader`, and `file-loader` functionality without additional dependencies.
-
-
fix(@schematics/angular): remove unsafe any usage in application spec…
… file The `nativeElement` property on a `TestBed` fixture is of type `any`. In one of the tests within a new application's spec file, the `nativeElement` is accessed but not cast to an appropriate type which results in potentially unsafe member access. The `nativeElement` is now cast as an `HTMLElement` and allows additional usage to be type checked.
-
feat(@schematics/angular): destroy test module after every test
In version 12.1, the framework added the `destroyAfterEach` an opt-in feature that improves tests performance and also addresses two long-standing issues. The idea, is to have this enabled by default in the future. Related PR: angular/angular#42566 Closes #21280

