https://github.com/angular/angular

sort by:
Revision Author Date Message Commit Date
a301b36 release: cut the v14.0.0-next.6 release (#45301) 09 March 2022, 17:04:59 UTC
51b67eb docs: release notes for the v13.2.6 release (#45300) 09 March 2022, 17:02:09 UTC
be220fa fix(language-service): Prioritize Angular-specific completions over DOM completions (#45293) When authoring Angular templates, developers are likely to be most interested in the current Directive/Component inputs and outputs, then potential attributes which would match other directives to the element, and lastly the plethora of DOM events and attributes. This change ensures that Angular-specific information appears above DOM information by prepending the first printable ASCII characters to the sort text. Fixes https://github.com/angular/vscode-ng-language-service/issues/1537 PR Close #45293 08 March 2022, 22:48:37 UTC
dc6094a ci: update payload size goldens to reflect zone.js update (#45289) ZoneJS has been updated as part of the lock file refresh by Renovate. The polyfills bundle reduced in size by around 4k which is due to some code simplication in ZoneJS being finally released. This is the commit responsible for the major reduction (also mentioning the reduction): https://github.com/angular/angular/commit/0f298a13dbd141e5440d1388b124d03384641efe PR Close #45289 08 March 2022, 21:15:14 UTC
6d240c4 build: lock file maintenance (#45289) Refreshes the lock file through Renovate. PR Close #45289 08 March 2022, 21:15:13 UTC
e78a928 refactor(migrations): update `isReferenceToImport` to not use `valueDeclaration` (#45292) valueDeclaration is only set when the Symbol type is a `Value`: * [setValueDeclaration](https://sourcegraph.com/github.com/microsoft/TypeScript@d8b21a8d6cef772fea5cf2a507b651c5d38194bd/-/blob/src/compiler/binder.ts?L321-322) * [Value union](https://sourcegraph.com/github.com/microsoft/TypeScript@d8b21a8d6cef772fea5cf2a507b651c5d38194bd/-/blob/src/compiler/types.ts?L4849:9#tab=references) This won't be the case if the symbol is an interface (notice that `Interface` is not in the union for `Value` above). For this reason, we can't rely on the `valueDeclaration` property of the symbol. Instead, it's more reliable to just compare the first items in the `declarations` list. PR Close #45292 08 March 2022, 21:13:24 UTC
ba0efd1 refactor: replace deprecated `HTMLDocument` with `Document` (#45282) `HTMLDocument` is deprecated in favor of `Document`. This change replaces the usages of `HTMLDocument`. See: https://github.com/microsoft/TypeScript/blob/20c93d3b1da44d8ee740b466a5cde7894e8b3260/lib/lib.dom.d.ts#L6370-L6376 PR Close #45282 08 March 2022, 21:12:14 UTC
6cec8aa refactor(core): Improve the efficiency of the Typed Forms migration. (#45288) Consider a file that imports `FormControl` and then never uses it. In that case, we don't need to add the import for `UntypedFormControl`. By examining constructor calls *first*, we can identify these cases and skip over them. This will reduce the memory footprint of the migration when run in tsunami, hopefully making OOM errors less likely. PR Close #45288 08 March 2022, 20:06:16 UTC
6eaaefd feat(core): drop support for Node.js 12 (#45286) Node.js v12 will become EOL on 2022-04-30. As a result, Angular CLI v14 will no longer support Node.js v12. BREAKING CHANGE: Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later. PR Close #45286 08 March 2022, 20:05:03 UTC
f58b8a9 build: update all non-major dependencies (#45250) PR Close #45250 08 March 2022, 18:35:17 UTC
f25c8be build: update scorecard action dependencies (#45249) PR Close #45249 08 March 2022, 18:31:16 UTC
2ca4ef7 build: update actions/checkout action to v3 (#45248) PR Close #45248 08 March 2022, 18:28:31 UTC
9e56e40 fix(docs-infra): remove anchor tags from heritage docs (#45287) Remove anchor tags from heritage docs and let `autoLinkCode` insert them properly. PR Close #45287 08 March 2022, 18:26:49 UTC
4478dff docs(service-worker): improve description of `NoNewVersionDetectedEvent` (#45266) The `NoNewVersionDetectedEvent` does not imply that the latest version on the server is the same as the version the client is on (because a client could be on an older version). Update the description of the event to better describe what it actually means (i.e. that the SW didn't find a version it didn't already know about, but without implying anything about the version the current client is using). PR Close #45266 08 March 2022, 18:26:05 UTC
3ecf930 fix(service-worker): file system hash in batch of 500 elements (#45262) Add file system concurrency hash test Fixes #45133 PR Close #45262 08 March 2022, 18:23:38 UTC
2b7553d fix(compiler): compute correct offsets when interpolations have HTML entities (#44811) When parsing interpolations, the input string is _decoded_ from what was in the orginal template. This means that we cannot soley rely on the input string to compute source spans because it does not necessarily reflect the exact content of the original template. Specifically, when there is an HTML entity (i.e. `&nbsp;`), this will show up in its decoded form when processing the interpolation (' '). We need to compute offsets using the original _encoded_ string. Note that this problem only surfaces in the splitting of interpolations. The spans to this point have already been tracked accurately. For example, given the template `&nbsp;<div></div>`, the source span for the `div` is already correctly determined to be 6. Only when we encounter interpolations with many parts do we run into situations where we need to compute new spans for the individual parts of the interpolation. PR Close #44811 08 March 2022, 18:23:07 UTC
9fa6f5a fix(core): incorrectly inserting elements inside <template> element (#43429) Currently whenever we insert element we do it directly on the node using `appendChild` or `insertBefore`, however this doesn't work with `<template>` elements where the `template.content` has to be used. These changes add a few checks to call `appendChild` and `insertBefore` on the `content` of the template. Fixes #15557. PR Close #43429 08 March 2022, 18:22:18 UTC
a659d15 docs: Change tag name to TD from TR in context of colspan usage (#45257) PR Close #45257 07 March 2022, 23:41:35 UTC
0b31c8e docs: update `flush` description to include microtasks (#45237) PR Close #45237 07 March 2022, 23:41:07 UTC
1a5cd06 build: update dependency google-closure-compiler to v20220301 (#45260) PR Close #45260 07 March 2022, 22:30:45 UTC
68eda48 build: update dependency magic-string to v0.26.1 (#45247) PR Close #45247 07 March 2022, 22:29:45 UTC
d336ba9 fix(forms): Update the typed forms migration. (#45281) The typed forms migration was previously designed to add `<any>` type parameters to existing forms classes. However, due to some design changes, the new opt-out strategy requires untyped versions of the classes, as introduced in #45205 and #45268. This PR updates the migration to import these new classes (in an idempotent manner), and replace constructor calls with the new classes. It respects qualified imports as well. Finally, the code has been refactored to move as much common code as possible into `util.ts`. PR Close #45281 07 March 2022, 20:24:59 UTC
d87f66c test(compiler): fix deprecation warning (#45285) Jasmine logs a warning when there's a `describe` with no tests. These changes fix one such case in the compiler that happens when the tests are run against Windows. PR Close #45285 07 March 2022, 19:36:47 UTC
886cfe8 ci: components CI test should use local zone.js build (#45277) CI components test install the angular package from the local version, but still use the zone.js from npm, so this commit let components also install zone.js from local too. PR Close #45277 07 March 2022, 19:34:58 UTC
0bb55f8 build(docs-infra): upgrade cli command docs sources to 9aa2eb03f (#45275) Updating [angular#master](https://github.com/angular/angular/tree/master) from [cli-builds#master](https://github.com/angular/cli-builds/tree/master). ## Relevant changes in [commit range](https://github.com/angular/cli-builds/compare/ac175ff10...9aa2eb03f): **Modified** - help/build.json - help/generate.json PR Close #45275 07 March 2022, 19:34:31 UTC
aa7b857 fix(forms): Property renaming safe code (#45271) This fixes property renaming related issues in advanced closure compiler optimizations. PR Close #45271 07 March 2022, 19:33:54 UTC
8c171da refactor(compiler): specify `@angular/core` as peer dependency (#45267) The compiler generates code for the Angular runtime in `@angular/core` which has to be the exact same version, as otherwise there may be version skew between what the compiler generates and what the runtime supports. This would result in hard to diagnose problems at runtime. By adding a peer dependency for `@angular/compiler` on `@angular/core` we can let the package manager report an error (NPM 7+) or warning (NPM 6, Yarn) during installation to signal that the set of packages is incompatible. PR Close #45267 07 March 2022, 19:32:21 UTC
94bba76 feat(core): support TypeScript 4.6 (#45190) Adds support for TypeScript 4.6. PR Close #45190 07 March 2022, 19:31:39 UTC
4332897 fix(forms): Add UntypedFormBuilder (#45268) This was intended to be part of #45205, but was left out. Adds a new class for use in migration. PR Close #45268 04 March 2022, 23:25:09 UTC
26ead25 refactor(router): Use helper function to throw NoMatch (#45244) This update matches the other locations where noMatch is thrown. PR Close #45244 04 March 2022, 23:24:13 UTC
bc89598 build: patch snapshot issue in dev-infra selecting the latest version tag (#45269) Local patch ahead of landing of https://github.com/angular/dev-infra/pull/449 PR Close #45269 04 March 2022, 23:23:39 UTC
9b1e9c0 release: cut the zone.js-0.11.5 release (#45256) PR Close #45256 03 March 2022, 23:49:46 UTC
bd04fbc feat(service-worker): emit a notification when the service worker is already up to date after check (#45216) When the service worker checks for an update and finds that the version on the server is the same as the version locally installed, it currently noops. This change introduces an event which it emits in this situation which notifies clients a check has occurred without error and no update was found. PR Close #45216 03 March 2022, 20:29:04 UTC
5e0e64f docs: change link for devtools to angular repo (#45207) PR Close #45207 03 March 2022, 20:28:25 UTC
2e105a1 docs: add Greek localization for Angular Docs (#45152) PR Close #45152 03 March 2022, 20:27:52 UTC
b437d12 fix(zone.js): defineProperties should also set symbol props (#45098) Close #44095 Fix `defineProperties` patch not set `symbol` props issue. Co-authored-by: varomodt<varomodt@users.noreply.github.com> Co-authored-by: AndrewKushnir<AndrewKushnir@users.noreply.github.com> PR Close #45098 03 March 2022, 20:22:05 UTC
5883e05 refactor(router): Remove special logic for hybrid apps (#45240) This commit removes special (undocumented) logic in the Router code that is meant to prevent duplicate navigations that result from location syncs in AngularJS/Angular hybrid applications. The duplicate navigations can occur when both the Router and the AngularJS sync code detect a location change via a popstate/hashchange event. When this happens, the Angular Router schedules a navigation to sync itself with the browser, but the hybrid listener may also schedule an additional navigation. There are a few reasons this logic should not be included in the Router: * This special logic is not tree shakeable so it introduces a bundle size cost for all applications, most of which don't need it. * There have been many updates to the routing pipeline to tolerate duplicate navigations. That is, duplicate navigations can happen and routing should still complete successfully. * https://github.com/angular/angular/commit/0e8548f667e5fdefa3ac7cdf1ba47e3e17011ffc * https://github.com/angular/angular/commit/9e039ca68bfae5328f3fc1f16fabd7673c466a25 * The logic is really in the wrong place: The hybrid sync code should be the location to handle this. If duplicate navigations are meant to be avoided, the hybrid sync code should have handling to _not_ trigger duplicate navs. * This logic _also_ used to exist because the mock location helper used for test incorrectly triggered popstate events during router navigations. In order to avoid unexpected behavior in tests, this logic needed to be added. This incorrect mocking may also have been put in place because the upgrade module _would_ see a location change event and trigger a duplicate navigation. The location mock has since been updated to match real browser behavior so this is no longer necessary. The upgrade module has also been updated to not trigger duplicate navigations. The following commits are related to this: * https://github.com/angular/angular/commit/202a1a56314af4ddb99c476f974536a10e390319 * https://github.com/angular/angular/commit/c6a93001eb74374b0fbc6aea1286fe1183d21382 Side note: The `setTimeout` in the location change listener is used to ensure the ordering of duplicate navigations was consistent. You can see that the logic being removed here expects the imperative navigation to precede the popstate/hashchange. With the removal of this code, the `setTimeout` no longer serves a purpose. However, it has been found that tests can rely on this behavior (incorrectly) because they expect the navigation to be complete but in reality, it hasn't even started because the test has not flushed the timeout. Removing the timeout would be a breaking change as a result. PR Close #45240 03 March 2022, 17:14:39 UTC
30c52ac build: add retry logic to postinstall script (#45252) Several people on the team (myself included) have had issues where the `webdriver-manager` step of the `postinstall` script fails on the first run, but work correctly on the second one. These changes attempt to simplify the workflow by retrying the script up to 3 times before giving up. PR Close #45252 03 March 2022, 17:13:25 UTC
6459b25 release: cut the v14.0.0-next.5 release (#45243) 02 March 2022, 18:51:46 UTC
3b85a12 docs: release notes for the v13.2.5 release (#45242) 02 March 2022, 18:27:13 UTC
69018c9 feat(core): allow for injector to be specified when creating an embedded view (#45156) Adds support for passing in an optional injector when creating an embedded view through `ViewContainerRef.createEmbeddedView` and `TemplateRef.createEmbeddedView`. The injector allows for the DI behavior to be customized within the specific template. This is a second stab at the changes in #44666. The difference this time is that the new injector acts as a node injector, rather than a module injector. Fixes #14935. PR Close #45156 02 March 2022, 16:38:00 UTC
05d50b8 perf(common): make `NgLocalization` token tree-shakable (#45118) This commit updates the `NgLocalization` token to become tree-shakable (vs using a direct reference to that token in the `providers` section of the `CommonModule`). The `NgLocalization` token is used for apps that use i18n and for other apps it would be excluded from the bundle. PR Close #45118 01 March 2022, 20:42:39 UTC
c8e4d62 refactor(forms): Split up `model.ts`. (#45217) model.ts is currently extremely large. This is the first step in an attempt to refactor it to be more easily navigable and reviewable. This commit breaks up `model.ts` into the following new files: * `model/abstract_model.ts`: The remainder of the model, including the `AbstractControl` base class and helper functions which are used throughout. * `model/form_control.ts`: `FormControl`, `FormControlOptions`, and helpers, plus the constructor and untyped friends. * `model/form_array.ts`: `FormArray` and untyped friends. * `model/form_group.ts`: `FormGroup` and untyped friends. This first phase is a purely mechanical code move. There is no new code at all, and no interfaces have been separated. PR Close #45217 01 March 2022, 19:49:31 UTC
c5df474 fix(core): remove individual commands for updating gold files (#45198) The documented command for updating the forms gold files was outdated and didn't work. Since this command list can easily become outdated, remove the individual commands in favor of the simpler global scripts. PR Close #45198 01 March 2022, 19:16:53 UTC
1b85811 refactor(zone.js): for legacy browser, still use hard coding eventNames (#40962) For legacy browsers, we still use the eventNames array to patch event instead of using `Object.getOwnPropertyNames()` to keep backward compatibility. PR Close #40962 01 March 2022, 18:41:15 UTC
0f298a1 refactor(zone.js): remove onProp eventNames array to reduce the bundle size (#40962) Zone.js supports the google closure compiler in the advance optimization mode, to prevent closure compiler modify the `onProperty` name such as `Element.prototype.onclick`, Zone.js implements the `onProperty` patch logic by declaring all the event names in the source code, this increases the bundle size and also require updating the event names array to keep the information updated. Now google closure compiler has the required event names defined in the built-in externs files, so zone.js can use more simple implementation and decrease the bundle size of zone.js (about 4k). PR Close #40962 01 March 2022, 18:41:15 UTC
c967976 refactor(router): take only the first emitted value of every resolver to make it consistent with guards (#44573) The router used to wait for the resolvers to complete and take the last value. The changes here take only the first emitted value of every resolver and proceed the navigation. This matches how other guards work in the `Router` code. Resolves https://github.com/angular/angular/issues/44643 BREAKING CHANGE: Previously, resolvers were waiting to be completed before proceeding with the navigation and the Router would take the last value emitted from the resolver. The router now takes only the first emitted value by the resolvers and then proceeds with navigation. This is now consistent with `Observables` returned by other guards: only the first value is used. PR Close #44573 01 March 2022, 17:12:37 UTC
bd12f9e refactor(forms): Move `getRawValue` into the `AbstractControl` hierarchy. (#45200) Currently, there is a freestanding `getRawValue` function which examines the type of the control. This is an issue for refactoring `model.ts` because it creates unnecessary dependencies between the `AbstractControl` classes. It is cleaner to simply add this method to the model hierarchy and call it directly, and will ease upcoming refactoring. PR Close #45200 01 March 2022, 01:07:12 UTC
4b936a1 Revert "feat(core): allow for injector to be specified when creating an embedded view (#45156)" (#45220) This reverts commit 94c949a60ad0de1f5385ec97f2c1933cb1d55f22. PR Close #45220 01 March 2022, 01:04:57 UTC
b817f3c Revert "refactor(forms): Move `getRawValue` into the `AbstractControl` hierarchy. (#45200)" (#45219) This reverts commit dfc4301b33c3e08456af59f77e7f3bb611bceb6b. PR Close #45219 01 March 2022, 00:07:39 UTC
dfc4301 refactor(forms): Move `getRawValue` into the `AbstractControl` hierarchy. (#45200) Currently, there is a freestanding `getRawValue` function which examines the type of the control. This is an issue for refactoring `model.ts` because it creates unnecessary dependencies between the `AbstractControl` classes. It is cleaner to simply add this method to the model hierarchy and call it directly, and will ease upcoming refactoring. PR Close #45200 28 February 2022, 19:44:07 UTC
7ee121f feat(forms): Add untyped versions of the model classes for use in migration. (#45205) We had previously introduced an `AnyForUntypedForms` type alias. However, given our updated migration plan, we actually want to use aliases for the model classes themselves. This commit introduces these aliases, and adds them to the public API. It must be merged before the types, in order to migrate google3. PR Close #45205 28 February 2022, 19:43:22 UTC
94c949a feat(core): allow for injector to be specified when creating an embedded view (#45156) Adds support for passing in an optional injector when creating an embedded view through `ViewContainerRef.createEmbeddedView` and `TemplateRef.createEmbeddedView`. The injector allows for the DI behavior to be customized within the specific template. This is a second stab at the changes in #44666. The difference this time is that the new injector acts as a node injector, rather than a module injector. Fixes #14935. PR Close #45156 28 February 2022, 19:42:26 UTC
9366a3c docs: improve structure of http example (#44986) improve the http aio example by: - adding a background color to the messages section so that it can be distinguished from the others - avoid using `hr` elements to divide the various sections, use css instead (so that the divisions can also be omitted when the sections are not being shown) - fix the erroneous presence of an input text element inside a button (see: https://github.com/angular/angular/pull/44557#discussion_r787239658) PR Close #44986 28 February 2022, 19:31:25 UTC
4d494d2 feat(zone.js): add Promise.any() implementation (#45064) Implements `Promise.any()` introduced in ES2021. Close #44393 PR Close #45064 28 February 2022, 17:39:28 UTC
f4fd488 build: update tooling to use new entry-point for dev-infra exports (#45206) Previously, dev-infra only bundled the CLI with all its dependencies, while we still also kept all bundled dependencies in the `dependencies`. This basically meant that the CLI bundling did not provide any value at all. We fixed this upstream and now dependencies are still bundled, but no longer also declared as `dependencies`. We also stopped shipping deep JS files, only shipping the bundles now. As part of this deep file removal, we introduced a runtime entry-point for exports/types. This one will also benefit from the bundling and it will be predictable what symbols dev-infra consumer projects rely on (allowing us to also have an API guard or something in the future). PR Close #45206 28 February 2022, 17:38:26 UTC
064cbed build: update angular (#45206) PR Close #45206 28 February 2022, 17:38:26 UTC
4c80ca3 refactor(forms): Clean up the find function. (#45199) Move `find` into the `AbstractControl` hierarchy, and clean up a longstanding implementation todo. PR Close #45199 28 February 2022, 17:26:31 UTC
cbbf13f docs(docs-infra): fix the stackblitz on page i18n-example (#45097) The previous configuration didn't allow to serve in any language. Fixes #45066 PR Close #45097 28 February 2022, 17:25:40 UTC
78a0ac0 ci: instruct renovate to not update/override merge ready PRs (#45204) Sometimes Renovate proposes an update and we need to add some manual fixups, like updating a size golden. For this we push to same upstream branch. Renovate will update the PR though when another new revision/version becomes available, overriding the fixup and discarding it. This happened quite often now and causes significantly more work required by the dev-infra time.. PR Close #45204 25 February 2022, 22:10:55 UTC
e56472d ci: fix stamping for builds performed in CI (#45147) Fixes the stamping for snapshot builds and the artifact deployment job. Currently the stamped versions will have the `.with-local-changes` version suffix given that we add a file to the Git repo that is just needed for the CircleCI cache key computation. PR Close #45147 25 February 2022, 19:14:05 UTC
e01820c build: update dependency @types/chrome to ^0.0.179 (#45201) PR Close #45201 25 February 2022, 19:07:27 UTC
63e9cc7 ci: update aio payload size golden to reflect Angular update (#45117) Updates the AIO payload size golden to reflect the Angular update as proposed by Renovate (see previous commit). The main bundle got reduced and exceeded the threshold, so we needed to update the golden. As part of this, all other bundle metrics are updated even though not exceeding the threshold yet. PR Close #45117 25 February 2022, 19:03:16 UTC
2f7fc3d build: switch to karma web test rule from shared dev-infra (#45117) Switches the Karma web test rule from `@bazel/concatjs` to our wrapped/extended variant from the shared dev-infra code. One benefit is that we now get a `_debug` target for web tests where no browser is being launched and the action is kept alive. Allowing developers to conveniently connect a browser manually for debugging. Also works with iBazel for the manually connected browser. PR Close #45117 25 February 2022, 19:03:16 UTC
1f4c92d build: update angular (#45117) PR Close #45117 25 February 2022, 19:03:16 UTC
aae07c3 build: lock file maintenance (#45071) PR Close #45071 24 February 2022, 23:56:13 UTC
88f1168 perf(core): only track LViews that are referenced in __ngContext__ (#45172) Follow-up to #45051 where every `LView` that was being created was tracked in the `TRACKED_LVIEWS` map. This isn't necessary, because we only need to track the view that have been referenced by an `__ngContext__`. PR Close #45172 24 February 2022, 23:51:38 UTC
0920104 refactor(router): Refactor errors in applyRedirects to use common throwError function (#45170) The implementation of `throwError` in `rxjs` is identical to what is done manually in the Router code. PR Close #45170 24 February 2022, 23:50:00 UTC
d8428ca refactor(router): Update match result to be more explicit (#45170) The `lastChild` property in the match result is only used to compute the remaining segments (i.e. the ones which were not consumed). The updated type here makes it easier to use and more clear. PR Close #45170 24 February 2022, 23:50:00 UTC
24e39a7 docs: fix style guide example app included as routing (#45148) in the aio example apps page the style guide for documentation contributions is included in the Routing section instead of being in its own section, add a documentation section and include the example in that one PR Close #45148 24 February 2022, 22:57:53 UTC
0465451 build: update all non-major dependencies (#45189) PR Close #45189 24 February 2022, 22:55:12 UTC
0debf84 ci: allow Babel to be updated by Renovate (#44931) Automatic updating of Babel was disabled because there were build failures when using the latest version of Babel, but these have been resolved in #44931. This commit removes Babel packages from Renovate's ignored list to allow automatic updates again. PR Close #44931 24 February 2022, 21:42:54 UTC
7bbddb5 refactor(localize): update version of Babel (#44931) The `@angular/localize` package depends on a version of Babel that is two years old, so this commit updates to the latest version. Some changes were made to the linker and compliance tests to account for slight changes in source maps, along with a few code updates because of changes to the typings of Babel. PR Close #44931 24 February 2022, 21:42:54 UTC
8d634ac ci: add permissions to current github action workflows (#45177) The currently recommended best practice for Github action workflows is to set top-level permissions to read only. And if the job uses the automatic `GITHUB_TOKEN`, fine-grained permissions for each job based on the job's requirements should also be added. All existing workflows in the repository now have top-level read only permission blocks. Only the `scorecard` workflow currently requires additional job level permissions and the minimum set of permissions were already present for the job. PR Close #45177 24 February 2022, 21:39:38 UTC
451bc27 test(animations): Fix flaky animations e2e test (#45196) This adds a 300ms wait to the animations tests to ensure they are fully done animating before asserting. PR Close #45196 24 February 2022, 21:15:31 UTC
7fd416d fix(router): Fix type of Route.pathMatch to be more accurate (#45176) Route.pathMatch only allows `'full'|'prefix'` in reality. This commit adjusts the type to be more strict and also adds a migration to adjust existing code. resolves #37469 BREAKING CHANGE: The type of `Route.pathMatch` is now more strict. Places that use `pathMatch` will likely need to be updated to have an explicit `Route`/`Routes` type so that TypeScript does not infer the type as `string`. PR Close #45176 24 February 2022, 18:44:07 UTC
66f3551 test(animations): add route animation delay to pages tests (#45144) PR #44550 introduced an animation for pages/tabs transitions in the animations example application, after such change intermittent e2e failures started to occur (see for example: #45083), add a delay to account for such animation to all the animations pages/tabs e2e tests so to fix the flakyness caused by the animation PR Close #45144 24 February 2022, 18:41:55 UTC
909b21a refactor(http): change <script>'s ownerDocument in jsonp teardown (#36807) handler Cancel pending json handler by adopting its <script> element into another document (https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block) This way the browser will prevent the script from being parsed and executed. Fixes #34818 PR Close #36807 24 February 2022, 17:24:33 UTC
7671a1e fix(common): canceled JSONP requests won't throw console error with missing callback function (#36807) This commit fixes a use-case where unsubscribing from a JSONP request will result in "Uncaught ReferenceError: ng_jsonp_callback_xy is not defined" thrown into console. Unsubscribing won't remove its associated callback function because the requested script will finish loading anyway and will try to call the handler. PR Close #34818 PR Close #36807 24 February 2022, 17:24:33 UTC
ca5603b fix(localize): avoid imports into `compiler-cli` package (#45180) The compiler-cli's declaration files are not necessarily compatible with web environments that use `@angular/localize`, and would inadvertently include `typescript` declaration files in any compilation unit that uses `@angular/localize` (which increases parsing time and memory usage during builds) using a default import that only type-checks when `allowSyntheticDefaultImports` is enabled. Fixes #45179 PR Close #45180 24 February 2022, 17:12:10 UTC
8eb8288 build: update github/codeql-action action to v1.1.3 (#45188) PR Close #45188 24 February 2022, 17:11:16 UTC
bad5096 docs: remove activatedRouteData backward accesses in aio guides (#45140) developers should not access the router-outlet directive in their template before defining a template variable for it, such implementation is present in a couple of aio guides, fix such guides so that they show the more correct way of accessing the outlet's data resolves #36173 PR Close #45140 24 February 2022, 00:55:18 UTC
2e7e46f ci: use renovate Github Action tag version pinning (#45178) Renovate supports using hashed version pinning for individual Github actions while still following SemVer-based tags. All workflow actions external to the Angular organization now leverage this support to ensure both that stable versions of the actions are used and that the actions are pinned to a hashed version of the tag. PR Close #45178 23 February 2022, 21:02:47 UTC
ded96ca release: cut the v14.0.0-next.4 release (#45184) 23 February 2022, 20:50:34 UTC
0c26c93 docs: release notes for the v13.2.4 release (#45183) 23 February 2022, 20:49:04 UTC
f58ad88 test(common): remove initial navigation since it may redirect to debug.html (#45171) The `should unregister a URL change listener` may fail in Firefox randomly because of the `initialNavigation` being set to `true`. This may navigate to `/debug.html` and the router throws an error `Cannot match any routes: 'debug.html'`. PR Close #45171 23 February 2022, 17:42:44 UTC
75f20d8 docs: fix test description to match code example (#45101) PR Close #45101 23 February 2022, 16:58:40 UTC
f8dc660 fix(animations): allow animations with unsupported CSS properties (#44729) currently animations with unsupported CSS properties cause a hard error and the crash of the animation itself, instead of this behaviour just ignore such properties and provide a warning for the developer in the console (only in dev mode) this change also introduces a general way to present warnings in the animations code resolves #23195 PR Close #44729 23 February 2022, 16:57:57 UTC
d65706a feat(zone.js): update electron patch to support electron/remote 14 (#45073) Close #43346 From electron 14, the `CallbacksRegistry` is moved to `@electron/remote` package, so all `remote` call between `main` process and `renderer` process is not being patched since the new version of electron released. Also `CallbacksRegistry` is not exported outside, so this commit make a `hack` patch to load `CallbacksRegistry` from `@electron/remote/dist/src/renderer/callbacks-registry` for patching. PR Close #45073 23 February 2022, 16:57:12 UTC
4fa5307 fix(docs-infra): removed duplicated style in aio examples (#45157) Removed duplicated style in aio example scss files. PR Close #45157 22 February 2022, 23:35:16 UTC
59559fd refactor(animations): make `AnimationDriver.getParentElement` required (#45114) This change is a follow up to #45057 to make `AnimationDriver.getParentElement` a required method, which allows removing the slow path for the animation namespace insertion logic. BREAKING CHANGE: The `AnimationDriver.getParentElement` method has become required, so any implementors of this interface are now required to provide an implementation for this method. This breakage is unlikely to affect application developers, as `AnimationDriver` is not expected to be implemented in user code. PR Close #45114 22 February 2022, 22:05:17 UTC
bd168fc build: update ossf/scorecard-action commit hash to 3662744 (#45162) PR Close #45162 22 February 2022, 20:48:11 UTC
ff6be32 refactor(compiler): remove usages of deprecated AST creation functions (#45134) Proactively replaces our usages of the deprecated `ts.create*` methods in favor of using `ts.factory.create*` so that we're not surprised when the TS removes them in the future. Also accounts for some cases where the signature had changed. PR Close #45134 22 February 2022, 18:22:47 UTC
c0778b4 fix(compiler-cli): Support resolve animation name from the DTS (#45107) Before this, the compiler resolves the value in the DTS as dynamic. If the `trigger` is imported from `@angular/animations`, this PR will use FFR to simulate the actual implementation in JS and extracts the animation name. PR Close #45107 22 February 2022, 18:21:39 UTC
f80c59e ci: update SHA for components-repo-unit-tests job to fix flakiness (#45166) This commit attemps to fix the flakiness that shows up sometimes in the `components-repo-unit-tests` job. See: https://app.circleci.com/pipelines/github/angular/angular/43024/workflows/fa9bc546-179a-4215-a7f1-db123efa0fa4/jobs/1126909 We updated Firefox/Chromium in dev-infra, hoping to fix this non-reproducable flakiness (also checked memory/CPU consumption in the test). So far it looks like the update helped in the COMP repo so we should try it here as well. PR Close #45166 22 February 2022, 18:20:32 UTC
5957ff4 build: update scorecard action dependencies to 040feef (#45135) PR Close #45135 18 February 2022, 21:57:03 UTC
f28276c docs: replace deprecated `SwUpdate#available/activated` with new API (#44858) Since `SwUpdate#available` and `SwUpdate#activated` are deprecated, the new way should be included in the docs instead of the deprecated one. docs: added missing imports added imports for VersionReadyEvent, filter, and map docs: updated service-worker-communications.md rewrite of SwUpdate service to describe the new versionUpdates property docs: Apply suggestions from code review Co-authored-by: George Kalpakas <kalpakas.g@gmail.com> docs: added events added VERSION_DETECTED and VERSION_INSTALLATION_FAILED docs: Apply suggestions from code review Co-authored-by: George Kalpakas <kalpakas.g@gmail.com> PR Close #44858 18 February 2022, 21:40:34 UTC
1e60fe0 perf(core): make `LOCALE_ID` and other tokens from `ApplicationModule` tree-shakable (#45102) The `ApplicationModule` module has a number of tokens declared as non-tree-shakable providers. This commit updates them to make tree-shakable. PR Close #45102 18 February 2022, 21:40:02 UTC
a96c482 perf(core): make `Compiler`, `ApplicationRef` and `ApplicationInitStatus` tree-shakable (#45102) The `Compiler`, `ApplicationRef` and `ApplicationInitStatus` classes are registered as non-tree-shakable providers in the `ApplicationModule`. This commit converts them to the tree-shakable providers instead. PR Close #45102 18 February 2022, 21:40:02 UTC
fcd0473 refactor(core): drop unused `SCHEDULER` provider (#45102) The `SCHEDULER` provider was used previously when both ViewEngine and Ivy code was present. After some prior refactoring, all references to the `SCHEDULER` token were removed, but the token itself remains present in the `ApplicationModule`, which makes it non-tree-shakable. This commit removes the `SCHEDULER` token as unused. PR Close #45102 18 February 2022, 21:40:02 UTC
back to top