https://github.com/angular/angular

sort by:
Revision Author Date Message Commit Date
8a19bc6 release: cut the v15.0.0-rc.2 release 04 November 2022, 00:32:10 UTC
173dde7 Revert "fix(core): hardening rules related to the attribute order on iframe elements (#47935)" (#47961) This reverts commit d4b3c0b47c32a9a664d3073164d04c0385058008. PR Close #47961 04 November 2022, 00:03:43 UTC
d4b3c0b fix(core): hardening rules related to the attribute order on iframe elements (#47935) This commit updates the logic related to the attribute order on iframes and makes the rules more strict. There is a set of iframe attributes that may affect the behavior of an iframe, this change enforces that these attributes are applied before an `src` or `srcdoc` attributes are applied to an iframe, so that they are taken into account. If Angular detects that some of the attributes are set after the `src` or `srcdoc`, it throws an error message, which contains the name of ann attribute that is causing the problem and the name of a Component where an iframe is located. In most cases, it should be enough to change the order of attributes in a template to move the `src` or `srcdoc` ones to the very end. BREAKING CHANGE: Existing iframe usages may have `src` or `srcdoc` preceding other attributes. Such usages may need to be updated to ensure compliance with the new stricter rules around iframe bindings. PR Close #47935 02 November 2022, 14:23:42 UTC
e635747 docs: update roadmap as of q4 2022 (#47910) PR Close #47910 01 November 2022, 11:46:49 UTC
d5cd79f perf(platform-browser): resolve memory leak when using animations with shadow DOM (#47903) `AnimationRendererFactory` maintains a map between a renderer delegate and the animations renderer it corresponds to, but the renderers are never removed from the map. This leads to memory leaks when used with the `ShadowDom` view encapsulation, because the specific renderer keeps a references to its shadow root which in turn references all the elements in the view. These changes resolve the leak by clearing the reference when the animations renderer is destroyed. Fixes #47892. PR Close #47903 01 November 2022, 11:46:09 UTC
e683298 docs(core): update standalone docs for `provideRouter` (#47902) This commit updates the standalone components guide on AIO to showcase the new `provideRouter` API. Previously the guide demonstrated configuring the router via `importProvidersFrom(RouterModule.forRoot(...))`. A new section was added to ensure `importProvidersFrom` was still shown in an example. PR Close #47902 01 November 2022, 11:45:20 UTC
99597c8 refactor(bazel): enable typescript strictness flags for package (#47893) No longer maintains a separate tsconfig for the Bazel package. This seems to be a legacy artifact back when ngc-wrapped was put into GitHub. We now use the canonical repository Bazel tsconfig. This commit also fixes all strictness-related errors and makes ngc-wrapped compatible. PR Close #47893 01 November 2022, 11:44:29 UTC
f99cc40 refactor(compiler-cli): update `emit` signature to support for strongly typed `emitCallback` (#47893) Currently `ngc-wrapped` mostly relies on any casts/or disabled strictness checks to be able to use `tsickle`'s emit callback and emit result merging for ngtsc. We should change this so that supertypes of `ts.EmitResult` can be used in these optional callbacks- allowing us to enable strictness checks in `packages/bazel/...` too. PR Close #47893 01 November 2022, 11:44:29 UTC
623602f docs: Linting corrections. Restructuring or rewording sentences to be shorter and clearer. (#47897) PR Close #47897 28 October 2022, 09:37:47 UTC
b3ea67e docs: improve grammer in CLI command template (#47891) Before ``` This command has the following commands: ``` Now ``` This command has the following sub-commands: ``` PR Close #47891 28 October 2022, 09:29:08 UTC
31a7ce1 fix(platform-server): call `onSerialize` when state is empty (#47888) Commit https://github.com/angular/angular/commit/a0b2d364156eed0d33831c37b00ea5c58ff4bbec#diff-3975e0ee5aa3e06ecbcd76f5fa5134612f7fd2e6802ca7d370973bd410aab55cR25-R31 changed the serialization phase logic so that when the state is empty the script tag is not added to the document. As a side effect, this caused the `toJson` not called which caused the `onSerialize` callbacks also not to be called. These callbacks are used to provide the value for a key when `toJson` is called. Example: https://github.com/ngrx/platform/issues/101#issuecomment-351998548 Closes #47172 PR Close #47888 28 October 2022, 09:27:57 UTC
c7bc47c docs: update CLI related deprecation information (#47885) There are no new CLI related deprecations for v15. However, multiple features listed in the deprecation guide have since been removed and are now also removed from the relevant sections of the guide. PR Close #47885 27 October 2022, 16:03:16 UTC
96c0e42 fix(core): allow readonly arrays for standalone imports (#47851) Standalone components should support readonly arrays in the `@Component.imports`. Fixes #47643 PR Close #47851 27 October 2022, 07:29:24 UTC
f24da6b release: cut the v15.0.0-rc.1 release 26 October 2022, 18:34:19 UTC
ea7ff35 Revert "build: add atscott to unavailable list for pullapprove (#47658)" (#47877) This reverts commit cf88a3ce204c04cf2ff33352c67134f69c251247. PR Close #47877 26 October 2022, 17:00:55 UTC
603194e build(docs-infra): upgrade cli command docs sources to 50d813140 (#47870) Updating [angular#15.0.x](https://github.com/angular/angular/tree/15.0.x) from [cli-builds#15.0.x](https://github.com/angular/cli-builds/tree/15.0.x). ## Relevant changes in [commit range](https://github.com/angular/cli-builds/compare/46cb32b90...50d813140): **Modified** - help/analytics.json - help/config.json PR Close #47870 26 October 2022, 15:35:02 UTC
5dadec5 build: update cross-repo angular dependencies (#47874) See associated pull request for more information. PR Close #47874 26 October 2022, 14:33:21 UTC
d75e3da build: update bazel setup to v5.7.0 (#47436) See associated pull request for more information. PR Close #47436 26 October 2022, 13:43:20 UTC
ebd2ddb build: update cross-repo angular dependencies (#47846) See associated pull request for more information. PR Close #47846 26 October 2022, 12:12:24 UTC
df36537 build: update babel dependencies (#47765) See associated pull request for more information. PR Close #47765 25 October 2022, 19:57:13 UTC
ed48887 build: update cross-repo angular dependencies (#47871) See associated pull request for more information. PR Close #47871 25 October 2022, 13:33:43 UTC
2908eba fix(platform-server): align server renderer interface with base renderer (#47868) The `ServerRenderer` wasn't aligned with the `Renderer2` interface which meant that it was still referring to the old `debugInfo` parameters. It also wasn't implementing the `preserveContent` argument of `selectRootElement` which can lead to incosistencies between the server and the client. Fixes #47844. PR Close #47868 25 October 2022, 12:51:46 UTC
a8ce8f7 docs: update typescript configuration (#47842) This commits update the TypeScript configuration for the updated version 15 release. PR Close #47842 25 October 2022, 08:29:37 UTC
66eb142 docs: update configuring browser compatibility (#47842) This commits adds more information about why and how Browserslist is used in the Angular CLI. PR Close #47842 25 October 2022, 08:29:37 UTC
61f8522 docs: update projects file structure (#47841) With this change we update the file structure to reflect that of new projects in version 15. PR Close #47841 25 October 2022, 08:28:32 UTC
c0903ac Revert "fix(forms): don't mutate validators array (#47830)" (#47845) This reverts commit 0329c13e95127fd6f0044b6809b9bccb27f3cb91. PR Close #47845 25 October 2022, 08:05:18 UTC
588cd3e docs: removing http-server section in Service worker tour (#47613) - Based on issue #47583 - Updated docs for Service workers by removing the section which used http-server to use service workers with ng serve - By changelog of v14.2.0, service workers become compatible with ng serve using feature #23679 PR Close #47613 24 October 2022, 13:42:57 UTC
a99d9d6 fix(forms): don't mutate validators array (#47830) Fixes that the `AbstractControl` was mutating the validators arrays being passed into the constructor an helper methods like `setValidators`. Fixes #47827. PR Close #47830 24 October 2022, 12:12:56 UTC
6471eaf build: update recommended launch vscode config to use proper bazel dist path (#47831) As of Bazel v5, the `bazel-out` symlink no longer exists. This commit corrects the path in the VSCode recommended launch configuration. This helps speed up this launch configuration given less files having to be explored. PR Close #47831 24 October 2022, 08:42:22 UTC
d184041 docs: fixing copy inconsistencies in schematics description (#47453) I fixed inconsistent spelling and formatting and replaced a dead link to clarity design system starter. docs(schematics): revert a change in schematic usage pronoun docs: parentheses removal from schematic generation description Co-Authored-By: Bob Watson <104218420+bob-watson@users.noreply.github.com> PR Close #47453 24 October 2022, 08:41:48 UTC
a014ca1 docs: fix linter errors in user-input.md (#47832) PR Close #47832 21 October 2022, 17:14:01 UTC
fb273f6 docs: fix minor typo in hierarchical-dependency-injection.md (#47812) Small Typo change - renamed oh to or in https://angular.io/guide/hierarchical-dependency-injection#skipself-and-viewproviders PR Close #47812 21 October 2022, 15:33:12 UTC
3a18398 fix(common): Don't warn about image distortion is fill mode is enabled (#47824) The image distortion warning (when rendered aspect ratio is noticeably different than intrinsic) doesn't make sense with fill mode, where the user may want the image to stretch, crop or letterbox. PR Close #47824 20 October 2022, 23:50:02 UTC
44c1770 release: cut the v15.0.0-rc.0 release 19 October 2022, 21:53:31 UTC
79e9e8a fix(router): Delay router scroll event until navigated components have rendered (#47563) Currently, the scroll event is fired immediately after the `NavigationEnd`. However, this is problematic because a change detection has not been able to run, meaning that Angular will not yet have run the update block of the component templates being rendered as part of the navigation. This change delays the scroll event using a `setTimeout`, which will allow Angular's change detection to run before the scroll restoration is performed. fixes #24547 PR Close #47563 19 October 2022, 21:11:18 UTC
3d5df57 docs: exclude lifecycle hooks of the NgOptimizedImage from docs (#47814) This commit adds the `@nodoc` annotations to the lifecycle hooks of the `NgOptimizedImage` directive to exclude them from the docs. PR Close #47814 19 October 2022, 21:08:53 UTC
074b794 fix(docs-infra): display "developer preview" label on class members (#47814) This commit adds the "developer preview" label for class properties and methods. PR Close #47814 19 October 2022, 21:08:52 UTC
4f52d4e fix(common): don't generate srcset if noopImageLoader is used (#47804) Do not generate a srcset if the loader being used is the default noopImageLoader. This loader does not take width into account, so it does not make sense to use it with srcsets. PR Close #47804 19 October 2022, 21:08:02 UTC
716352c docs: fix linter errors for accessibility.md (#47725) PR Close #47725 19 October 2022, 18:13:54 UTC
6e19a12 docs: declare NgOptimizedImage APIs as stable (#47794) In v14.2, we've introduced a new directive to help developers to configure images for better performance. The directive was initially released in the "developer preview" mode. We've collected the feedback, made several improvements and we are happy to announce that the NgOptimizedImage APIs are promoted to stable! This commit updates vast majority of APIs to drop the `@developerPreview` label, which effectively documents them as stable. There are few APIs though that retained the `@developerPreview` annotations: - the `IMAGE_CONFIG` token - the `ImageConfig` type - the `fill` @Input of the directive We plan to collect some additional feedback for the mentioned APIs and drop the `@developerPreview` annotation after that. PR Close #47794 19 October 2022, 18:13:13 UTC
5d3bae2 docs(router): fix misleading description of `BaseRouteReuseStrategy` (#47786) The original description gave a false impression that only query params and fragment changes are ignored, while actually `routeParams` changes are ignored as well. PR Close #47786 19 October 2022, 18:12:24 UTC
6476f15 docs: Linting suggested corrections made. Restructuring or rewording sentences to be shorter and clearer. (#47790) PR Close #47790 19 October 2022, 18:10:56 UTC
420d6b3 docs(common): update image directive docs (#47796) This is a small commit to: - clarify that loaders aren't mandatory - remove outdated preconnect option from docs - clarify how width/height should be set for fixed size images - minor structural changes for clarity PR Close #47796 19 October 2022, 13:25:14 UTC
c2c9663 docs: Linting suggested corrections made. Restructuring or rewording sentences to be shorter and clearer. Inserted an introductory paragraph under level 1 heading. (#47788) PR Close #47788 19 October 2022, 13:24:12 UTC
fa47980 fix(common): update size error to mention 'fill' mode (#47797) The current error that is thrown when the "width" or "height" attributes is missing doesn't mention that "fill" mode is another option. This commit updates the error with that option. PR Close #47797 19 October 2022, 13:23:38 UTC
6f1a4b8 refactor(common): drop deprecated selector from the NgOptimizedImage directive (#47798) This commit updates the NgOptimizedImage directive to: - drop a deprecated selector (the `rawSrc` one) - drop corresponding input getter The `rawSrc` was replaced by the `ngSrc` one during the developer preview phase. PR Close #47798 19 October 2022, 13:23:04 UTC
23f210c fix(common): warn if using supported CDN but not built-in loader (#47330) This commit adds a missing warning if the image directive detects that you're hosting your image on one of our supported image CDNs but you're not using the built-in loader for it. This excludes applications that are using a custom loader. PR Close #47330 19 October 2022, 13:21:52 UTC
a2f4170 docs: declare Standalone APIs as stable (#47754) In v14, we've introduced core concepts to allow Components, Directives and Pipes to configure their dependencies without the need to use NgModules and without the need to be declared in an NgModule. The concepts and initial set of APIs were marked as "developer preview" to allow developers to use these APIs and share the feedback. Since v14, we've been reviewing the entire API surface of the framework and either updating existing APIs to support standalone or creating new APIs that allowed to use Router, HttpClient and other abstractions without NgMod ules. Based on the mentioned work to review and stabilize APIs and also based on the positive feedback from the commun ity, we are happy to announce that the Standalone APIs are promoted to stable! This commit updates vast majority of standalone-related APIs to drop the `@developerPreview` label, which effect ively documents then as stable. Two APIs that retained the `@developerPreview` annotations are: - withRequestsMadeViaParent (from `@angular/common/http`) - renderApplication (from `@angular/platform-server`) We plan to collect some additional feedback for the mentioned APIs and drop the `@developerPreview` annotation b efore the next major release. Co-Authored-By: Alex Rickabaugh <alx@alxandria.net> Co-Authored-By: Andrew Scott <atscott@google.com> Co-Authored-By: Dylan Hunn <dylhunn@gmail.com> Co-Authored-By: Jessica Janiuk <jessicajaniuk@google.com> Co-Authored-By: JoostK <joost.koehoorn@gmail.com> Co-Authored-By: Kristiyan Kostadinov <crisbeto@abv.bg> Co-Authored-By: Pawel Kozlowski <pkozlowski.opensource@gmail.com> PR Close #47754 17 October 2022, 10:15:21 UTC
4d61d89 docs: fix linter errors for zone.md (#47707) PR Close #47707 17 October 2022, 10:14:45 UTC
cf17a80 docs: fix linter errors for web-worker.md (#47766) PR Close #47766 17 October 2022, 10:13:41 UTC
309b2cd fix(compiler-cli): implement more host directive validations as diagnostics (#47768) Implements more of the runtime validations for host directives as compiler diagnostics so that they can be caught earlier. Also does some minor cleanup. PR Close #47768 17 October 2022, 10:12:22 UTC
d366664 docs: fix linter errors for view-encapsulation.md (#47772) PR Close #47772 17 October 2022, 10:11:54 UTC
b955388 test: update size golden for main bundle reduction (#47717) The `main` bundle size has been reduced with the Angular CLI update. This is not worth investigating as it's a positive side reduction likely due to further optimizations in the Angular CLI devkit. Also updates the other golden payload entries to capture all other CLI related payload changes- making future payload update easier to investigate. PR Close #47717 17 October 2022, 10:11:26 UTC
334a740 build: run ng update for Angular CLI next (#47717) Runs the Angular CLI v15 migrations for AIO. PR Close #47717 17 October 2022, 10:11:26 UTC
0a87176 build: update cross angular deps and lock dependencies (#47717) Renovate no longer updated the dependencies because they were expanded to a range. Ranges did not satisfy the `@next` tag anymore- so Renovate did was not able to update. This fixes the dependencies by locking them- and also updates the versions according to our Renovate config. PR Close #47717 17 October 2022, 10:11:26 UTC
b6fd814 fix(localize): update ng add schematic to support Angular CLI version 15 (#47763) Prior to this, the `@angular/localize/init` was added as a polyfill which caused the `@angular/localize` types not to be included in the TypeScript program which caused errors such as the below: ``` Error: src/app/app.component.ts:9:11 - error TS2304: Cannot find name '$localize'. ``` With the recent changes in the CLI (https://github.com/angular/angular-cli/pull/24032), adding `@angular/localize/init` as polyfil or in the `main.server.ts` is no longer necessary. Instead we add this as a TypeScript type. When users are running in JIT mode, we add `@angular/localize/init` as an additional entrypoint. This change also exposes the `$localize` method as a global when importing `@angular/localize`. Closes #47677 PR Close #47763 17 October 2022, 07:58:21 UTC
4c95484 docs(docs-infra): fix errors page hover styles (#47770) fix hover styles for error messages to be consistent for dark theme Fixes #47723 PR Close #47770 17 October 2022, 07:57:47 UTC
b6e9a50 build: update `ng-dev` to fix `caretaker check` and update label config (#47779) * Updates ng-dev to support the new g3sync canonical JSON configs * Updates the google-internal-tests option to support the g3 sync canonical JSON config * Moves the YAML sync config to a dedicated JSON file, used by the action and by `yarn ng-dev`. * Updates the ng-dev caretaker config to fix that the Merge assistance queue is always empty. PR Close #47779 17 October 2022, 07:57:17 UTC
874f3fc refactor(compiler-cli): use mkdirSync recursive option instead of custom implementation (#47678) The supported Node.js versions for the `@angular/compiler-cli` package (^14.15.0 || >=16.10.0) allow for the use of the `recursive` option of `mkdirSync`. Using the `recursive` option removes the need to manually create each subdirectory in a given path. PR Close #47678 13 October 2022, 20:51:04 UTC
0457b58 docs: Separated HTML elements with blank lines (#47331) Separated HTML elements with judicious use of space. It not only makes it easier to read the HTML; it also makes it consistent with the formatting of https://github.com/angular/angular/edit/main/aio/content/examples/what-is-angular/src/app/hello-world-bindings/hello-world-ngif.component.html. PR Close #47331 13 October 2022, 19:10:28 UTC
e13d97c refactor(common): make `provideHttpClient` return `EnvironmentProviders` (#47758) This commit updates the `provideHttpClient` function to return the `EnvironmentProviders` instead of a regular `Provider[]`, to make sure that the `provideHttpClient` can only be used where an environment is being setup. PR Close #47758 13 October 2022, 16:44:59 UTC
955edf2 docs: update of documentation contrib. guide (#47381) This update describes the content authoring and revision process in sufficient detail for technical and non-technical contributors to the angular.io documentation. PR Close #47381 13 October 2022, 16:37:26 UTC
1b48e65 build: wire up new github action for identifying g3-affecting PRs (#47735) Wire up new github action for identifying g3-affecting PRs. PR Close #47735 13 October 2022, 09:43:43 UTC
93cc5b2 release: cut the v15.0.0-next.6 release 12 October 2022, 18:38:19 UTC
7ab0a26 build: update comp labels to be area instead (#47750) Updates all of the comp: * labels to area: * instead PR Close #47750 12 October 2022, 18:10:35 UTC
59dfb54 docs: release notes for the v14.2.6 release 12 October 2022, 17:53:59 UTC
510a295 build: update to the latest version of the feature triage action Update to the latest version of the feature triage action 12 October 2022, 17:34:28 UTC
c36f500 build: update labels to match standardized labels (#47747) Update labels as part of standardization PR Close #47747 12 October 2022, 17:02:39 UTC
38078e7 fix(compiler-cli): add missing period to error message (#47744) With this change we add a missing period to the error message. PR Close #47744 12 October 2022, 15:57:25 UTC
9483343 feat(common): Add fill mode to NgOptimizedImage (#47738) Add a new boolean attribute to NgOptimizedImage called `fill` which does the following: * Removes the requirement for height and width * Adds inline styling to cause the image to fill its containing element * Adds a default `sizes` value of `100vw` which will cause the image to have a responsive srcset automatically generated PR Close #47738 12 October 2022, 15:56:56 UTC
3a9c452 docs: add Joshua Morony to GDE resources (#47704) PR Close #47704 11 October 2022, 23:42:46 UTC
4de3573 build: update io_bazel_rules_sass digest to f6ceac7 (#47376) See associated pull request for more information. PR Close #47376 11 October 2022, 23:16:21 UTC
8921c12 build: update all non-major dependencies (#47551) See associated pull request for more information. PR Close #47551 11 October 2022, 23:14:51 UTC
e3fbeab build: update dependency @rollup/plugin-commonjs to v23 (#47711) See associated pull request for more information. PR Close #47711 11 October 2022, 23:09:06 UTC
547b45a docs: fix linter errors for what-is-angular.md (#47708) PR Close #47708 11 October 2022, 23:07:09 UTC
a910c83 build(devtools): migrate to manifest v3 (#47575) Previously we built DevTools for all browsers with version 2 of the manifest file format. This commit includes a number of refactors and API additions that will enable us to build DevTools with version 3 of the manifest file format. The manifest v3 build of Angular DevTools has been tested on Chrome, Edge, and Safari. Notably, the Firefox version of Angular DevTools remains as a manifest v2 build. Firefox does not yet support manifest v3 in it's latest stable release. When Firefox makes this transition, a follow up PR will update the Firefox manifest file to version 3. Because Firefox still needs v2, we need to keep some old v2 APIs around in our background page (service worker in v3) that will execute conditionally based on if the extension was built for v2 or v3. This is determined with the chrome.runtime.getManifest().manifest_version API. PR Close #47575 11 October 2022, 22:47:22 UTC
bbbd4c3 docs: fix linter errors for security.md (#47688) PR Close #47688 11 October 2022, 22:05:43 UTC
23c06ee docs: fix linter errors for workspace-config.md (#47709) PR Close #47709 11 October 2022, 21:59:00 UTC
5fbe40c docs: fix linter errors for property-binding-best-practices.md (#47686) PR Close #47686 11 October 2022, 21:19:18 UTC
83f3d04 docs: fix linter errors for property-binding.md (#47687) PR Close #47687 11 October 2022, 21:18:45 UTC
39b72e2 fix(compiler): update element schema (#47552) Updates the DOM element schema to add the `hgroup` element and to include some properties that weren't supported the last time the schema was updated. Fixes #47545. PR Close #47552 11 October 2022, 17:21:47 UTC
1b9fd46 feat(core): add support for Node.js version 18 (#47730) This change aligns with the supported Node.js versions of the Angular CLI. See: https://github.com/angular/angular-cli/pull/24026 BREAKING CHANGE: Angular no longer supports Node.js versions `14.[15-19].x` and `16.[10-12].x`. Current supported versions of Node.js are `14.20.x`, `16.13.x` and `18.10.x`. PR Close #47730 11 October 2022, 17:21:19 UTC
b618b5a fix(zone.js): cancel tasks only when they are scheduled or running (#46435) Currently, there's no check if the task (that is being canceled) has the right state. Only `scheduled` and `running` tasks can be canceled. If the task has a non-appropriate state, then an error will be thrown. Cancelation should not throw an error on an already canceled task, e.g. `clearTimeout` does not throw errors when it's called multiple times on the same timer. PR Close #45711 PR Close #46435 11 October 2022, 17:20:54 UTC
96b7fe9 fix(forms): call `setDisabledState` on `ControlValueAcessor` when control is enabled (#47576) Previously, `setDisabledState` was never called when attached if the control is enabled. This PR fixes the bug, and creates a configuration option to opt-out of the fix. Fixes #35309. BREAKING CHANGE: setDisabledState will always be called when a `ControlValueAccessor` is attached. You can opt-out with `FormsModule.withConfig` or `ReactiveFormsModule.withConfig`. PR Close #47576 11 October 2022, 16:03:01 UTC
1818c54 docs: fix linter errors in prerendering.md (#47724) PR Close #47724 11 October 2022, 15:59:24 UTC
a41ff94 docs(core): Improved README.md (#47700) PR Close #47700 11 October 2022, 15:58:38 UTC
1b602fa Revert "fix(compiler): update element schema" (#47726) This reverts commit 3c45f6f33e7a20c460d95203a562e0c056d3dbf7. PR Close #47726 11 October 2022, 00:56:04 UTC
ca2fa7a docs: add 0 to filename of runtime error guides (#47722) PR Close #47722 10 October 2022, 22:30:43 UTC
40aad83 ci: adjust workflow permissions for OpenSSF Scorecard results publishing (#47721) Version 2 of the `openssf/scorecard-action` GitHub action requires the `id-token: write` permission to publish results. PR Close #47721 10 October 2022, 22:29:01 UTC
bc54687 fix(compiler-cli): exclude abstract classes from `strictInjectionParameters` requirement (#44615) In AOT compilations, the `strictInjectionParameters` compiler option can be enabled to report errors when an `@Injectable` annotated class has a constructor with parameters that do not provide an injection token, e.g. only a primitive type or interface. Since Ivy it's become required that any class with Angular behavior (e.g. the `ngOnDestroy` lifecycle hook) is decorated using an Angular decorator, which meant that `@Injectable()` may need to have been added to abstract base classes. Doing so would then report an error if `strictInjectionParameters` is enabled, if the abstract class has an incompatible constructor for DI purposes. This may be fine though, as a subclass may call the constructor explicitly without relying on Angular's DI mechanism. Therefore, this commit excludes abstract classes from the `strictInjectionParameters` check. This avoids an error from being reported at compile time. If the constructor ends up being used by Angular's DI system at runtime, then the factory function of the abstract class will throw an error by means of the `ɵɵinvalidFactory` instruction. In addition to the runtime error, this commit also analyzes the inheritance chain of an injectable without a constructor to verify that their inherited constructor is valid. BREAKING CHANGE: Invalid constructors for DI may now report compilation errors When a class inherits its constructor from a base class, the compiler may now report an error when that constructor cannot be used for DI purposes. This may either be because the base class is missing an Angular decorator such as `@Injectable()` or `@Directive()`, or because the constructor contains parameters which do not have an associated token (such as primitive types like `string`). These situations used to behave unexpectedly at runtime, where the class may be constructed without any of its constructor parameters, so this is now reported as an error during compilation. Any new errors that may be reported because of this change can be resolved either by decorating the base class from which the constructor is inherited, or by adding an explicit constructor to the class for which the error is reported. Closes #37914 PR Close #44615 10 October 2022, 21:46:25 UTC
48b354a fix(compiler): update element schema (#47552) Updates the DOM element schema to add the `hgroup` element and to include some properties that weren't supported the last time the schema was updated. Fixes #47545. PR Close #47552 10 October 2022, 21:33:45 UTC
bebef5f feat(language-service): Quick fix to import a component when its selector is used (#47088) The language service can now generate an import corresponding to a selector. This includes both the TypeScript module import and the decorator import. This applies to both standalone components and components declared in NgModules. PR Close #47088 10 October 2022, 21:32:43 UTC
75e6297 feat(common): add <link> preload tag on server for priority img (#47343) This commit adds a logic that generates preload tags for priority images, when rendering happens on the server (e.g. Angular Universal). PR Close #47343 10 October 2022, 20:48:10 UTC
f467c9e build: update scorecard action dependencies (#47385) See associated pull request for more information. PR Close #47385 10 October 2022, 20:05:23 UTC
6bcde0e build(docs-infra): upgrade cli command docs sources to 46cb32b90 (#47703) Updating [angular#main](https://github.com/angular/angular/tree/main) from [cli-builds#main](https://github.com/angular/cli-builds/tree/main). ## Relevant changes in [commit range](https://github.com/angular/cli-builds/compare/77c70052e...46cb32b90): **Modified** - help/generate.json PR Close #47703 10 October 2022, 20:04:56 UTC
a8569e3 feat(forms): export forms utility functions: isFormArray, isFormGroup… (#47718) This commit exports existing utility functions to check for control instances: isFormControl, isFormGroup, isFormRecord, isFormArray Those are useful when implementing validators that use the specifics of one of those control types. To narrow down the type to what it actually is, we can now use the util functions in validators: ``` export const myArrayValidator: ValidatorFn = (control) => { if (!isFormArray(control)) { return null; } // now you can use FormArray-specific members, e.g.: if (control.controls.every(c => !!c.value) { return { myerror: true } } else { return null; } } ``` PR Close #47718 10 October 2022, 19:43:26 UTC
c0c7efa feat(common): add `provideLocationMocks()` function to provide Location mocks (#47674) This commit adds the `provideLocationMocks()` function that returns mocks for the `Location` and `LocationStrategy` classes. This function can be used in tests to configure an environment where it's possible to fire simulated location events (helpful when testing Router configuration). PR Close #47674 10 October 2022, 19:42:11 UTC
4fde292 feat(common): Add automatic srcset generation to ngOptimizedImage (#47547) Add a feature to automatically generate the srcset attribute for images using the NgOptimizedImage directive. Uses the 'sizes' attribute to determine the appropriate srcset to generate. PR Close #47547 10 October 2022, 16:21:08 UTC
ed11a13 feat(core): drop support for TypeScript 4.6 and 4.7 (#47690) Updates the version range in the compiler to require at least TypeScript 4.8. Note that I'm keeping the backwards-compatibility layer for 4.7 around for now until internal projects have been migrated to 4.8. BREAKING CHANGE: TypeScript versions older than 4.8 are no longer supported. PR Close #47690 10 October 2022, 16:18:56 UTC
370aa34 build: update dependency google-closure-compiler to v20221004 (#47696) See associated pull request for more information. PR Close #47696 10 October 2022, 16:09:15 UTC
back to top