https://github.com/angular/angular

sort by:
Revision Author Date Message Commit Date
35690fd release: cut the v15.2.8 release 19 April 2023, 19:13:35 UTC
3d7b8cd docs: add information on how to use index option in configuration (#49813) #49780 PR Close #49813 19 April 2023, 18:46:10 UTC
2fff8fa fix(core): handle invalid classes in class array bindings (#49924) When binding an array to `class` like `[class]="['foo', 'bar']"`, the runtime treats it the same as a literal binding with all the values being `true`, e.g. `{foo: true, bar: true}`. While object literals can only have string keys, arrays can have any value which can lead to errors if the array contains non-string values. These changes add some logic to stringify the keys and ignore invalid ones. Fixes #48473. PR Close #49924 19 April 2023, 16:28:26 UTC
0454158 docs(core): add version ranges for Angular 14.3 (#48753) PR Close #48753 19 April 2023, 14:07:31 UTC
1575f9d docs: change section heading (#48753) Co-authored-by: Daniel Scalzi <d_scalzi@yahoo.com> PR Close #48753 19 April 2023, 14:07:31 UTC
fc428f0 docs(core): add version ranges for Angular 15.2 (#48753) PR Close #48753 19 April 2023, 14:07:31 UTC
9fa0ab5 docs(core): split versions table into LTS and non-LTS tables (#48753) PR Close #48753 19 April 2023, 14:07:31 UTC
2a59e19 docs(docs-infra): add versions document to code owners (#48753) PR Close #48753 19 April 2023, 14:07:31 UTC
4d8b164 docs(docs-infra): add versions document to the navigation (#48753) PR Close #48753 19 April 2023, 14:07:31 UTC
b13587c docs(core): include introductory text about version compatibility (#48753) PR Close #48753 19 April 2023, 14:07:31 UTC
2f64981 docs(core): add Angular, Node.js, TypeScript, and RxJS version compatibility matrix (#48753) PR Close #48753 19 April 2023, 14:07:31 UTC
f02812d docs: update events (#49569) Generated `events.json` with the latest events retrieved from the Firebase DB. Closes #49545 PR Close #49569 19 April 2023, 14:05:45 UTC
f3907e1 build: update angular/dev-infra digest to 1564c4e patch (#49917) See associated pull request for more information. PR Close #49917 19 April 2023, 14:04:57 UTC
296459a docs: add Artur Androsovych to GDE resources (#48520) PR Close #48520 18 April 2023, 21:35:45 UTC
279e9e7 build: update dependency build_bazel_rules_nodejs to v5.8.2 (#49910) See associated pull request for more information. PR Close #49910 18 April 2023, 20:45:24 UTC
6a93956 build: update cross-repo angular dependencies (#49891) patch PR (#49913) See associated pull request for more information. Patch of #49891 PR Close #49913 18 April 2023, 20:15:42 UTC
b9e1e7e build: update actions/cache digest to 88522ab (#49437) See associated pull request for more information. PR Close #49437 18 April 2023, 19:46:16 UTC
77eb4d8 build: update dependency google-closure-compiler to v20230411 (#49892) (#49912) See associated pull request for more information. PR Close #49892 PR Close #49912 18 April 2023, 19:45:23 UTC
48c946f docs: type clearTimer function as VoidFunction or undefined (#48480) PR Close #48480 18 April 2023, 19:03:58 UTC
81ad3c6 docs: standardize examples using timers for SSR compatibility (#48480) PR Close #48480 18 April 2023, 19:03:57 UTC
cab701d docs: update README.md (#48423) PR Close #48423 18 April 2023, 16:59:38 UTC
70ef08f docs: typos and wording (#48597) PR Close #48597 18 April 2023, 16:58:31 UTC
5a13eb8 docs: add a dot (#49434) The first sentence misses a dot in the end, however other sentences have it PR Close #49434 18 April 2023, 16:22:51 UTC
3dc43e3 refactor: fix typo in windows-chromium-path.js (#49676) preceeding -> preceding PR Close #49676 18 April 2023, 16:22:10 UTC
9abe0d6 docs: fix errors in toh-pt6.md (#49129) Line 182 and line 185 - grammatical and typo errors. PR Close #49129 18 April 2023, 16:21:35 UTC
c75fe04 build: update io_bazel_rules_sass digest to 898e4dd (#49575) See associated pull request for more information. PR Close #49575 18 April 2023, 16:20:54 UTC
bce7f6b refactor(core): Remove ununsed Zone mock from testing internals. (#49873) The last time it was used in was on the v10 branch. PR Close #49873 18 April 2023, 14:00:16 UTC
edfc087 build: update scorecard action dependencies (#49897) See associated pull request for more information. PR Close #49897 18 April 2023, 13:58:54 UTC
1d4cf95 docs(docs-infra): add lara newsom to GDE resources (#49620) PR Close #49620 17 April 2023, 18:31:14 UTC
79a8b3c docs: Specify when an app is debuggable by the DevTools. (#48970) DevMode is when the ng debug object is available. `Optimization:true` is responsible for treeshaking everything behind `ngDevMode`. Fixes #48968 PR Close #48970 17 April 2023, 17:32:42 UTC
fe20496 fix(devtools): Specify when an app is considered in dev mode. (#48970) DevMode is when the ng debug object is available. `Optimization:true` is responsible for treeshaking everything behind `ngDevMode`. PR Close #48970 17 April 2023, 17:32:42 UTC
461503b refactor(compiler-cli): cleanup inferences (#49863) With the ts compiler updates these inferences have been fixed. PR Close #49863 17 April 2023, 17:23:30 UTC
628c520 build: update dependency eslint-plugin-jsdoc to v41 (#49885) See associated pull request for more information. PR Close #49885 17 April 2023, 15:48:24 UTC
0a9d106 refactor(router): Do not access browserPageId if not computed resolution (#49850) This commit avoids accessing the routerPageId if the canceldNavigationResolution is not computed. PR Close #49850 17 April 2023, 14:47:16 UTC
1017630 refactor(docs-infra): cleanup deprecated code (#49671) This commit replaces (non material-related) deprecated code present in the aio app. * `pageYOffset` can be replaced by `scrollY` * RxJs' `mapTo()` is just a `map()` * `createNgModuleRef` can be replaced by `createNgModule` * HttpEmits `ProgressEvent` not `ErrorEvent` (see #34748) * `SwUpdate.available` is replaced by `versionUpdates` with a `filter` * `SwUpdate.activated` is replaced by the returned promised of `SwUpdate.activateUpdate`. PR Close #49671 17 April 2023, 14:04:26 UTC
08ba492 refactor(core): improve styling coverage (#49868) The test was waiting for #34202 to be merged. PR Close #49868 17 April 2023, 14:02:41 UTC
aad9db2 docs: remove outdated/unsupported webworker doc (#49856) The webworker platform has been removed in v11 by #38846 PR Close #49856 17 April 2023, 14:01:41 UTC
b6f119e docs: fix typo in Hierarchical injectors doc (#49824) PR Close #49824 17 April 2023, 13:59:09 UTC
a6f2c03 docs: Fixed Typo (#49753) Fixed Typo PR Close #49753 17 April 2023, 13:58:16 UTC
a63d9a3 build: update actions/checkout digest to 8e5e7e5 (#49815) See associated pull request for more information. PR Close #49815 17 April 2023, 13:31:20 UTC
09a42d9 fix(router): canceledNavigationResolution: 'computed' with redirects to the current URL (#49793) The `canceledNavigationResolution: 'computed'` option does not correctly assign page IDs or restore them when redirects result in navigating to the current URL. This change ensures that the page IDs are still incremented and restored correctly in this scenario. PR Close #49793 14 April 2023, 14:55:06 UTC
8235bc9 ci: Remove environment files and EnableProdMode on integration tests (#49746) Since v15, prod mode is handled by the CLI with the `optimization` flag. We can remove the environement files and `enableProdMode` when the tests use the CLI. PR Close #49746 14 April 2023, 14:13:33 UTC
f266a05 refactor(core): drop IE workarounds (#49763) Angular doesn't support IE anymore. We can remove the workarounds related to IE. Some workarounds are keep because of the support of domino but the comments related to IE are removed. PR Close #49763 13 April 2023, 14:01:45 UTC
05a0225 fix(http): prevent headers from throwing an error when initializing numerical values (#49379) Some libraries could use numbers in headers. this fix prevents Angular from throwing an error by casting those numerical values into strings. Fixes #49353 PR Close #49379 13 April 2023, 14:00:17 UTC
1d761bd release: cut the v15.2.7 release 12 April 2023, 19:06:05 UTC
2c140f4 build: update github/codeql-action action to v2.2.11 (#49775) See associated pull request for more information. PR Close #49775 12 April 2023, 16:26:03 UTC
a3de0c3 docs: remove preboot reference from universal doc (#49808) This package is no longer actively maintained and in general is not needed. PR Close #49808 12 April 2023, 16:24:05 UTC
b0c1a90 fix(compiler): Produce diagnositc if directive used in host binding is not exported (#49792) The compiler currently does not check to make sure that directives in the host bindings are exported. These directives are part of the public API of the component so they do have to be. PR Close #49792 11 April 2023, 21:39:03 UTC
a40529a fix(compiler-cli): Catch FatalDiagnosticError during template type checking (#49792) This commit updates the type checking operation to catch `FatalDiagnosticError` and surface them as diagnostics rather than crashing. Fixes https://github.com/angular/vscode-ng-language-service/issues/1881 PR Close #49792 11 April 2023, 21:39:03 UTC
ebd14e7 build: update minimum supported Node version from 16.13.0 -> 16.14.0 for CI and AIO (#49790) This commit updates the minimum supported Node version for CI and AIO from 16.13.0 -> 16.14.0 to ensure compatibility with dependencies. PR Close #49790 11 April 2023, 20:03:11 UTC
d1c83cc ci: disable size tracking CI job in favor of integration tests size checks (#49788) Currently we have multiple integration apps which are instrumented with the payload size checks. In addition to that, there is a separate CI job that performs similar checks. The checks in CI job are redundant, thus this commit disables a separate CI job. PR Close #49788 11 April 2023, 17:48:01 UTC
1081450 docs: Typo (#49781) PR Close #49781 11 April 2023, 17:27:53 UTC
702ec90 fix(core): When using setInput, mark view dirty in same way as `markForCheck` (#49747) `ComponentRef.setInput` internally calls `markDirtyIfOnPush` which only marks the given view as dirty but does not mark parents dirty like `ChangeDetectorRef.markForCheck` would. https://github.com/angular/angular/blob/f071224720f8affb97fd32fb5aeaa13155b13693/packages/core/src/render3/instructions/shared.ts#L1018-L1024 `markDirtyIfOnPush` has an assumption that it’s being called from the parent’s template. That is, we don’t need to mark dirty to the root, because we’ve already traversed down to it. The function used to only be called during template execution for input bindings but was added to `setInput` later. It's not a good fit because it means that if you are responding to events such as an emit from an `Observable` and call `setInput`, the view of your `ComponentRef` won't necessarily get checked when change detection runs next. If this lives inside some `OnPush` component tree that's not already dirty, it only gets refreshed if you also call `ChangeDetectorRef.markForCheck` in the host component (because it will be "shielded" be a non-dirty parent). PR Close #49747 10 April 2023, 20:29:11 UTC
ffdfdc2 refactor(migrations): log a link to the standalone migration (#49752) Resolves an old TODO about adding a link to the standalone migration guide. PR Close #49752 10 April 2023, 16:04:03 UTC
e7dd72c docs: update docs about prodMode. (#49745) Following angular#49723, this commit updates the doc to reflect the actual message prompted in the console. PR Close #49745 10 April 2023, 16:02:30 UTC
9c07a42 docs: Improve previous version navigation (#49063) In archive mode the link to the current doc will now point to same page. If the page doesn't exist anymore, it will show a contextualized warning message. See #46850 PR Close #49063 06 April 2023, 18:07:01 UTC
9a37a77 release: cut the v15.2.6 release 06 April 2023, 02:44:18 UTC
da5f316 refactor(core): Use the nullish coalescing assignment in render3 functions (#49698) The usage of `??=` make the code more clear & concise. PR Close #49698 05 April 2023, 16:45:55 UTC
cad7274 fix(router): create correct URL relative to path with empty child (#49691) The previous fix for squashing empty children didn't quite work when the existing route had segments. The result would be that the segments from the existing route were dropped from the final URL. PR Close #49691 04 April 2023, 22:05:42 UTC
d9efa1b feat(core): change the URL sanitization to only block javascript: URLs (#49659) In modern browsers, the 'javascript:' URL scheme is the only scheme that can execute JavaScript when passed in a navigation URL context (e.g. `a.href` value). Validate URL shemes to only contain characters allowed in the URL specification ([a-zA-Z-+.]), and that are not javascript (case insensitive). This is not a breaking change. The URL sanitization is loosen. PR Close #49659 04 April 2023, 22:01:14 UTC
c26e4be docs: fix typo (#49704) PR Close #49704 04 April 2023, 22:00:39 UTC
bd82fbe docs: fix typo (#49669) PR Close #49669 04 April 2023, 02:18:41 UTC
1d32253 refactor(core): remove unnecessary `reflect-metadata` import. (#49673) The import is not needed for the tests to run. PR Close #49673 04 April 2023, 02:17:03 UTC
6e1b3ad docs: fix typo in quick reference (#49655) Change indicatedr5t to indicated PR Close #49655 04 April 2023, 02:13:16 UTC
a6def64 docs: fix typo (#49664) PR Close #49664 03 April 2023, 05:10:13 UTC
9b61379 fix(router): Ensure initial navigation clears current navigation when blocking (#49572) The navigation transition clears the current navigation in the finalize operator of the current navigation Observer. This commit both completes the `bootstrapDone` observable and updates the transition to only take 1 emit from the completed navigation. Either of these changes on their own would fix the issue. The latter is a preventative measure in case a mistake like the former is made again. fixes #49567 PR Close #49572 01 April 2023, 00:04:02 UTC
08979e4 docs: fix typo in toh-pg6.md (#49141) Line 425. Change burning to burn. PR Close #49141 31 March 2023, 19:00:44 UTC
233f33e build: update scorecard action dependencies (#49609) See associated pull request for more information. PR Close #49609 31 March 2023, 18:49:47 UTC
35f4918 docs(core): fix view hierarchy links (#49629) fixes incorrect links to view-hierarchy (currently view-tree) Fixes #49623 PR Close #49629 30 March 2023, 16:39:39 UTC
43e89bd docs: fixed typo error (#49637) PR Close #49637 30 March 2023, 16:38:43 UTC
07e78bb docs: Update Popup.service example to remove `ComponentFactoryResolver` (#49638) `ComponentFactoryResolver` has been deprecated and can be replaced by `createComponent()`. PR Close #49638 30 March 2023, 16:38:16 UTC
e78a2a4 release: cut the v15.2.5 release (#49635) 29 March 2023, 19:37:48 UTC
077f6b4 fix(compiler): do not unquote CSS values (#49460) Currently we are unsafely unquoting CSS values which in some cases causes valid values to become invalid and invalid values to become valid. Example: ```html <div style="width:&quot;1px;&quot;"></div> ``` In the above case, `width` has an invalid value of `"1px"`, however the compiler will transform it to `1px` which makes it valid. On the other hand, in the below case ```html <div style="content:&quot;foo&quot;"></div> ``` `content` has a valid value of `"foo"`, but since the compiler unwraps it to `foo` it becomes invalid. For correctness, we should not remove quotes. ```js const div = document.createElement('div'); div.style.width='"1px"'; div.style.content='foo'; div.style.width; // '' div.style.content; // '' div.style.width='1px'; div.style.content='"foo"'; div.style.width; // '1px' div.style.content; // '"foo"' ``` More information about values can be found https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier PR Close #49460 28 March 2023, 18:35:39 UTC
d201fc2 fix(core): set style property value to empty string instead of an invalid value (#49460) Currently when the value of a styling property that has a unit is empty string a invalid value is generated. Example: `[style.width.px] = ""` will generate a value of `"px"`, when instead it should be `""`. This causes browser to reset the value to an empty string. This is however not the case in Domino with changes in https://github.com/angular/domino/commit/bfc9114d1eb5b7591c43a7c6aef6ad50d24e369f. This commit fixes the issues and generate correct values. PR Close #49460 28 March 2023, 18:35:39 UTC
6d6fc12 refactor(core): Remove usage of deprecated `Injector.create()` (#49606) This commit removes all usages of the deprecated `Injector.create` method but does not remove the deprecated signature itself. PR Close #49606 28 March 2023, 17:15:36 UTC
8ed4083 docs: fixed grammar (#49560) PR Close #49560 28 March 2023, 17:14:45 UTC
4c89a24 refactor(common): add missing `override` to satisfy the linter (#49599) Linter was complaining of missing `override` despite being OK on the CI. this commits add them. PR Close #49599 28 March 2023, 17:12:36 UTC
0fecbab ci: update pullapprove config to reflect current availability (#49592) Updating PullApprove to reflect current availability. Looks like it cannot be set via UI anymore... PR Close #49592 27 March 2023, 15:43:06 UTC
ca5acad fix(common): invalid ImageKit transformation (#49201) q-auto is an invalid/unsupported transformation and should not be used PR Close #49201 27 March 2023, 15:33:22 UTC
978d37f fix(router): Ensure Router preloading works with lazy component and static children (#49571) The preloading strategy did not handle a `loadComponent` on a route with a static `children`. It only preloaded children if they were also `loadChildren` or both were not lazy loaded. fixes #49558 PR Close #49571 24 March 2023, 17:41:11 UTC
656a388 build: update actions/checkout digest to 8f4b7f8 (#49577) See associated pull request for more information. PR Close #49577 24 March 2023, 17:27:35 UTC
29c682c ci: update github.com known host given recent RSA update (#49580) See: https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/ PR Close #49580 24 March 2023, 12:54:11 UTC
3f8e4fb docs: add missing word (#49565) I have added a word to make the sentence more meaningful. PR Close #49565 23 March 2023, 18:44:04 UTC
c3cff35 fix(compiler): handle trailing comma in object literal (#49535) Fixes that the compiler wasn't parsing an object literal with a trailing comma correctly. Fixes #49534. PR Close #49535 23 March 2023, 18:35:45 UTC
a844435 fix(router): fix #49457 outlet activating with old info (#49459) Avoid activating outlet with old info if route was changed before outlet activated PR Close #49459 22 March 2023, 21:41:43 UTC
901353e release: cut the v15.2.4 release 22 March 2023, 20:15:53 UTC
288156b Revert "fix(migrations): preserve trailing commas in code generated by standalone migration (#49533)" (#49547) This reverts commit bf4d8568341a6ac432059903eb66c3c7509c1b9a. PR Close #49547 22 March 2023, 17:21:27 UTC
bf4d856 fix(migrations): preserve trailing commas in code generated by standalone migration (#49533) This is based on some internal feedback. Adds logic to the standalone migration that attempts to preserve trailing commas when updating existing AST nodes. When creating new ones, it tries to infer whether to generate the trailing comma based on the surrounding code. PR Close #49533 22 March 2023, 15:41:53 UTC
3bb7676 docs: remove ticks in code sample to generate components (#49525) These ticks appear in the actual documentation and when copied verbatim while following the tutorial, running this command in the terminal simply does nothing. PR Close #49525 22 March 2023, 15:02:48 UTC
be2db59 refactor(router): Remove deprecated loadChildren file (#49504) This file was used while migrations were happening internally. All code is now updated to the callback PR Close #49504 21 March 2023, 21:09:23 UTC
9c57b65 refactor(router): Update router export location for deprecated interfaces (#49504) Moving these exports to a separate file will allow easier local patches internally. PR Close #49504 21 March 2023, 21:09:22 UTC
b293c6a refactor(core): Remove VE/Render3 aliases from ViewRef code (#49499) These aliases were used while we needed to maintain compatibility with ViewEngine PR Close #49499 21 March 2023, 21:08:30 UTC
951a347 test: increase size tracking threshold to 5K / 5% (#49520) This commit increases the threshold of payload size tracking tests from 500 bytes to 5,000 bytes, and from 1% to 5%. This is done to minimize merge conflicts while still catching real regressions. PR Close #49520 21 March 2023, 19:30:05 UTC
b5e68e4 build: exclude draft PRs from triage queue (#49515) Excludes draft PRs from triage queue. Note that we cannot use `draft:false` as otherwise all issues would be filtered. Rather we need to negate `draft:true` which matches non-draft PRs and normal issues. PR Close #49515 21 March 2023, 15:40:48 UTC
a404587 build: update scorecard action dependencies (#49508) See associated pull request for more information. PR Close #49508 21 March 2023, 15:39:10 UTC
6c9886b build: update cross-repo angular dependencies (#49517) See associated pull request for more information. PR Close #49517 21 March 2023, 14:30:37 UTC
3c75f98 docs: remove pipe in exponential backoff (#49494) PR Close #49494 21 March 2023, 06:58:06 UTC
cd5d7b6 docs: update deprecated exponential backoff example (#49494) PR Close #49494 21 March 2023, 06:58:06 UTC
97d58ec docs: fix link ngFor documentation link (#49479) Fix the `ngFor` API link under the "Structural directive shorthand" section PR Close #49479 21 March 2023, 06:56:38 UTC
087f441 fix(core): more accurate matching of classes during content projection (#48888) Showing a minimum app to reproduce the bug. 1. Create the app and add angular material. ``` ng new project cd project ng add @angular/material ``` 1. Overwrite the src/app/app.component.html with minimal content. ``` <button mat-button *ngIf="true"><span *ngIf="true" class="{{'a'}}"></span></button> ``` 1. Run the app. The button is not shown because of an exception. ``` main.ts:6 ERROR TypeError: item.toLowerCase is not a function at isCssClassMatching (core.mjs:8726:35) at isNodeMatchingSelector (core.mjs:8814:22) at isNodeMatchingSelectorList (core.mjs:8931:13) at matchingProjectionSlotIndex (core.mjs:14179:13) at Module.ɵɵprojectionDef (core.mjs:14222:49) at MatButton_Template (button.mjs:113:99) at executeTemplate (core.mjs:10534:9) at renderView (core.mjs:10356:13) at renderComponent (core.mjs:11529:5) at renderChildComponents (core.mjs:10216:9) ``` Because isCssClassMatching() function does not take care if the value is not string, while attrs[] may contain AttributeMarker which is actually numbers, item.toLowerCase() throws the exception. Just inserted a check if the item is string. Created a testcase for the original fix. It causes an exception without the fix. fix(core): add a check code to avoid an exception inside isCssClassMatching Showing a minimum app to reproduce the bug. 1. Create the app and add angular material. ``` ng new project cd project ng add @angular/material ``` 1. Add `import { MatButtonModule } from '@angular/material/button'`, and also MatButtonModule inside @NgModule imports in src/app/app.module.ts to use MatButtonModule. 1. Overwrite the src/app/app.component.html with minimal content. ``` <button mat-button *ngIf="true"><span *ngIf="true" class="{{'a'}}"></span></button> ``` 1. Run the app. The button is not shown because of an exception. ``` main.ts:6 ERROR TypeError: item.toLowerCase is not a function at isCssClassMatching (core.mjs:8726:35) at isNodeMatchingSelector (core.mjs:8814:22) at isNodeMatchingSelectorList (core.mjs:8931:13) at matchingProjectionSlotIndex (core.mjs:14179:13) at Module.ɵɵprojectionDef (core.mjs:14222:49) at MatButton_Template (button.mjs:113:99) at executeTemplate (core.mjs:10534:9) at renderView (core.mjs:10356:13) at renderComponent (core.mjs:11529:5) at renderChildComponents (core.mjs:10216:9) ``` Because isCssClassMatching() function does not take care if the value is not string, while attrs[] may contain AttributeMarker which is actually numbers, item.toLowerCase() throws the exception. Just inserted a check if the item is string. PR Close #48888 20 March 2023, 15:07:14 UTC
back to top