sort by:
Revision Author Date Message Commit Date
78e4af0 release: bump DevTools to 1.0.14 (#55545) PR Close #55545 01 May 2024, 00:02:00 UTC
122478c refactor(core): Ensure animations are flushed before running render hooks (#55564) This commit ensures we flush animations by calling renderFactory begin/end in cases where the ApplicationRef._tick happens in a mode that skips straight to the render hooks. PR Close #55564 30 April 2024, 22:39:57 UTC
354cd9c docs: add README for adev site (#55578) PR Close #55578 30 April 2024, 21:04:56 UTC
43b604b build: lock file maintenance (#55575) See associated pull request for more information. PR Close #55575 30 April 2024, 21:04:00 UTC
e7225dd docs: Reference page anchor scroll consistency (#55566) The docs-viewer loads asynchronously and can happen after the scroll event has happened and the Router has attempted to scroll to the requested position/anchor. This commit saves the scroll event and handles it again if the cards are loaded after scrolling happens. PR Close #55566 30 April 2024, 21:03:08 UTC
76fd874 docs: fix formatting for signal inputs guide (#55275) PR Close #55275 30 April 2024, 21:02:14 UTC
0c82c10 docs(changelog): remove duplicate mutate removal entry in 17.0.0 (#53471) PR Close #53471 30 April 2024, 21:00:43 UTC
8226327 build: improve incremental rebuilds of compliance tests (#55594) Currently whenever a compliance test case TS file is modified, all compliance tests in repository are rebuilt in partial compilation mode. This is inefficient and also slows down local development where one may use a wildcard to run all test targets inside `/test/compliance/...`. This commit fixes this. PR Close #55594 30 April 2024, 16:22:46 UTC
8f99946 docs(core): add documentation for errors NG0955 and NG0956 (#55591) This commit adds detailed description for the errors NG0955 and NG0956. Those errors correspond to the check introduced in the built-in for loop. PR Close #55591 30 April 2024, 16:21:34 UTC
09613c1 build: update scorecard action dependencies (#55589) See associated pull request for more information. PR Close #55589 30 April 2024, 16:20:13 UTC
aefee87 fix(router): Scroller should scroll as soon as change detection completes (#55105) Using `setTimeout` to delay scrolling can result in scrolling in the next frame and cause noticeable flicker. This commit scrolls as soon as the next render happens (or in `setTimeout` if a render does not happen before then). fixes #53985 PR Close #55105 30 April 2024, 16:19:14 UTC
f7ba9d2 ci: complete migration to prettier formatting (#55580) Format the remaining unformatted files in the repository PR Close #55580 29 April 2024, 21:00:17 UTC
3113d84 docs(docs-infra): allow file renaming in code editor (#54989) Any filename but the main.ts is now editable. PR Close #54989 29 April 2024, 20:42:27 UTC
1595c9d docs: add mention of the HTTP client for interceptors (#55551) fixes #53911 PR Close #55551 29 April 2024, 20:41:12 UTC
3eadaf0 docs: fix broken link to error doc (#55547) PR Close #55547 29 April 2024, 20:40:03 UTC
3c46d3f docs: update NgClass example description to match the example's behavior (#55209) Co-authored-by: Sonu Kapoor <sonukapoor@users.noreply.github.com> PR Close #55209 29 April 2024, 20:39:19 UTC
d3dce32 docs: show the difference between pseudo classes angular uses and native ones in runtime (#53819) PR Close #53819 29 April 2024, 20:35:34 UTC
0dcae69 refactor(compiler): add `handler` attribute to XMB output (#54865) This allows tracking of which tools generated which XMB files and helps attribute Angular usage. PR Close #54865 29 April 2024, 18:56:32 UTC
89dfb24 refactor: migrate compiler-cli to prettier formatting (#55485) Migrate formatting to prettier for compiler-cli from clang-format PR Close #55485 29 April 2024, 17:25:45 UTC
9d89898 refactor: migrate zone.js to prettier formatting (#55427) Migrate formatting to prettier for zone.js from clang-format PR Close #55427 29 April 2024, 16:52:07 UTC
26ad8dd refactor: migrate core to prettier formatting (#55488) Migrate formatting to prettier for core from clang-format PR Close #55488 29 April 2024, 16:49:21 UTC
b5ec30a refactor(core): Permit disabling autoDetect for zoneless fixture (#55494) The caveat here is that this needs to be done before creating the fixture. There are some technical issues to overcome with disabling it after it was already enabled, related to detaching from `ApplicationRef` without other side effects. PR Close #55494 26 April 2024, 16:42:16 UTC
f93e518 fix(migrations): resolve multiple structural issues with HttpClient migration (#55557) Fixes several issues with the `HttpClient` migration that showed up after I tried updating the Material docs site to the latest v18 release. Includes: * The migration was assuming that all Angular decorators have at least one argument. This led to a null pointer error that broke the v18 update process when I was testing it. * The migration incorrectly reimplemented the detection of classes with Angular decorators. This can cause code to be migrated incorrectly and doesn't handle cases like import aliases. I've switched it to use the existing tooling for detecting decorated classes. * The migration was trying to migrate directives, even though they don't support the `imports` field. * The migration was detecting `TestBed.configureTestingModule` calls using a raw string match which is very fragile and can be broken by the user's formatting. * There were syntax errors in the unit tests. * There were type checking errors in the unit tests, for example none of them were importing the Angular decorators that they were migrating. There's more room for improvement, but this should resolve the most glaring issues without having to rewrite too much. PR Close #55557 26 April 2024, 16:32:31 UTC
21532f8 docs: update ChangeDetectionStrategy links (#55553) fixes #54227 fixes #50943 PR Close #55553 26 April 2024, 16:31:48 UTC
1e87b7b docs: remove mention of style sanitization. (#55553) fixes #49566 PR Close #55553 26 April 2024, 16:31:47 UTC
0c7fd4a docs: remove image (#55553) The image was replaced by the following mermaid chart. PR Close #55553 26 April 2024, 16:31:47 UTC
890cccf docs: update app-shell to reflect actual content (#55550) fixes #55507 PR Close #55550 26 April 2024, 16:29:37 UTC
7a97678 refactor(platform-server): Update event_replay_spec to more match production code. (#55517) Notably, do evals where in SSR we evaluate a contract binary and evaluate scripts. PR Close #55517 25 April 2024, 21:58:12 UTC
a39f2ff refactor(devtools): hide hydration error when the component tree is collapsed (#54912) This commit improves the devtools UX. PR Close #54912 25 April 2024, 21:57:23 UTC
85feab2 refactor(devtools): prevent dblclick on the expand arrow to show the element panel (#54912) This will improve the UX PR Close #54912 25 April 2024, 21:57:23 UTC
c5c7ec9 refactor(devtools): improve signal support. (#54912) In some cases signals weren't unwraped thus not reading the value correctly. This commit fixes this issue. PR Close #54912 25 April 2024, 21:57:23 UTC
621f598 refactor(devtools): fix issue with virtual scroll viewport in the directive forest (#54912) In some cases the height of the viewport wasn't calculated correctly because of extension tabs quirks. This commit fixes this issue. Fixes #53704 PR Close #54912 25 April 2024, 21:57:23 UTC
9ec0136 refactor(core): Do not duplicate change detection with run coalescing (part 2) (#55403) This commit prevents doubling change detections when the zoneless scheduler is notified first, followed by the zone becomeing unstable (effectively "scheduling" zone-based change detection). When run coalescing is enabled, this would otherwise result in the zoneless scheduler running change detection first and then change detection running again because of the run coalescing since both scheduler use the same timing function (and then it would be FIFO). PR Close #55403 25 April 2024, 21:31:17 UTC
a80fa8d refactor(core): Omit listeners from out-of-zone scheduling when using ZoneJS (#55492) (#55525) In Angular today, a bound listener automatically marks the view for check. When using ZoneJS, these listeners are most often executed in the Angular Zone as well, so synchronization (`ApplicationRef.tick`) will eventually happen. _However_, developers can opt out of zone-patching for events in several ways, and often do this for very frequent listeners like `mousemove`, `resize`, and `scroll`. We do not want to break existing expectations that these are now "safe" events to have listeners for by automatically scheduling change detection regardless of whether the listener executed inside or outside the Angular zone. In contrast, in order for developers to more easily transition to zoneless, we need to be able to ensure that components which are using `OnPush` are, for the most part, compatible with zoneless as well. Because listeners automatically mark the component for check, developers using `OnPush` did not/do not need to also call `ChangeDetectorRef.markForCheck` or a similar API. Unfortunately, this means that we need to consider the listener callbacks as a notification to schedule a `tick` when Zoneless is enabled. In the future, we would like to have an opt-out for this (i.e. signal components) since it's not really how we _want_ things to work. Also includes the fix for #54919 that got reverted only because it was easier to revert the set of conflicting commits PR Close #55525 25 April 2024, 19:56:37 UTC
a20cf31 docs: Update di-in-action.md (#55489) PR Close #55489 25 April 2024, 19:55:17 UTC
83e9d68 refactor(core): set up framework injector profile exclusively in browser environment (#55530) This commit modifies the setup of the injector profiler to occur solely when the application is running in a browser context. This adjustment is made because the injector profile serves no purpose when the application is running on the server. PR Close #55530 25 April 2024, 19:53:25 UTC
c130f25 docs: Update what-is-angular.md (#55536) PR Close #55536 25 April 2024, 19:52:36 UTC
516e5b5 refactor(common): increment test coverage (#55532) Ahead of #55283 and with what we learned from it, let's improve our test coverage on the i18n subsystem. PR Close #55532 25 April 2024, 19:50:46 UTC
ce0a1cb docs: fix the file naming for the NG05000 error (#55519) PR Close #55519 25 April 2024, 19:49:56 UTC
e4b0989 docs: Add some zoneless documentation (#55500) Probably needs more work, but it's a start PR Close #55500 25 April 2024, 19:49:16 UTC
ae29f04 refactor(core): Remove A11Y_SUPPORT_IN_DISPATCHER behavior. (#55497) The only use case internally has been removed and this can be accomplished with A11Y_CLICK_SUPPORT_DEFERRED. PR Close #55497 25 April 2024, 17:57:59 UTC
a177abe fix(core): render hooks should not specifically run outside the Angular zone (#55399) The timing of render hook execution is almost entirely identical to `ngZone.onMicrotaskEmpty`. Developers working towards zoneless compatibility will need to migrate `onMicrotaskEmpty` calls to use `afterNextRender`/`afterRender` instead. This, however, would lead to confusing issues if there are promises in the callbacks because `onMicrotaskEmpty` emits inside the Angular zone while render hooks execute outside today. This is problematic because it's not documented and does not produce any notification or error message when async work is done inside the hooks that requires change detection. Instead, change detection simply does not run, and this behavior has proven to be surprising to developers who are used to ZoneJS change detection behavior. fixes #55299 PR Close #55399 25 April 2024, 16:06:39 UTC
a5c57c7 fix(core): resolve error for multiple component instances that use fallback content (#55478) Currently fallback content for `ng-content` gets declared and rendered out in one go. This breaks down if multiple instances of the same component are used where one doesn't render the fallback content while the other one does, because the `TNode` for the content has to be created during the first creation pass. These changes resolve the issue by always _declaring_ the template, but only rendering it if the slot is empty. Fixes #55466. PR Close #55478 25 April 2024, 16:04:01 UTC
5ad2f5f refactor(forms): replace errors with hasError() (#55379) Material documentation use hasError. For homogeneity reason, this commit will adopt material style. Fixes #55378 PR Close #55379 25 April 2024, 15:57:30 UTC
242fec8 docs: Update lightweight-injection-tokens.md (#55490) PR Close #55490 25 April 2024, 15:55:46 UTC
10040e9 docs: Correct code references in Tutorial 01. (#55506) PR Close #55506 25 April 2024, 15:55:08 UTC
1e58aa0 docs: update security guide link references (#55514) PR Close #55514 25 April 2024, 15:54:31 UTC
dcf737e fix(docs-infra): add cookie consent gtag event default state (#54574) This PR sets a default state for cookie consent of 'denied'. The other part of the PR exists in the angular/dev-infra repo which will grant permission when the user accepts the cookie banner. PR Close #54574 25 April 2024, 15:53:07 UTC
44c0ed8 fix(core): hide implementation details of ExperimentalPendingTasks (#55516) The ExperimentalPendingTasks service was accidently exposing one of its internal fields as a public one. This commit fixes this by marking the field in question as private. PR Close #55516 25 April 2024, 15:51:01 UTC
2a3db67 release: cut the v18.0.0-next.6 release 25 April 2024, 15:34:43 UTC
e478180 docs: release notes for the v17.3.6 release 25 April 2024, 15:28:37 UTC
e3d5607 Revert "refactor(core): Ensure DOM removal happens when no app views need refresh (#55132)" (#55524) This reverts commit a07ea069e5fa0ec7a693e60d11e4234910250c77. PR Close #55524 24 April 2024, 23:35:57 UTC
28905ab Revert "refactor(animations): Ensure async animations applies changes when loaded in zoneless (#55132)" (#55524) This reverts commit 9ab36cfe0af0b5481a1fb9588b0b9db6faaf21fd. PR Close #55524 24 April 2024, 23:35:57 UTC
70b478f Revert "refactor(core): Omit listeners from out-of-zone scheduling when using ZoneJS (#55492)" (#55524) This reverts commit 617bc3337d0278233ced821c76f04c75805bbad5. PR Close #55524 24 April 2024, 23:35:57 UTC
617bc33 refactor(core): Omit listeners from out-of-zone scheduling when using ZoneJS (#55492) In Angular today, a bound listener automatically marks the view for check. When using ZoneJS, these listeners are most often executed in the Angular Zone as well, so synchronization (`ApplicationRef.tick`) will eventually happen. _However_, developers can opt out of zone-patching for events in several ways, and often do this for very frequent listeners like `mousemove`, `resize`, and `scroll`. We do not want to break existing expectations that these are now "safe" events to have listeners for by automatically scheduling change detection regardless of whether the listener executed inside or outside the Angular zone. In contrast, in order for developers to more easily transition to zoneless, we need to be able to ensure that components which are using `OnPush` are, for the most part, compatible with zoneless as well. Because listeners automatically mark the component for check, developers using `OnPush` did not/do not need to also call `ChangeDetectorRef.markForCheck` or a similar API. Unfortunately, this means that we need to consider the listener callbacks as a notification to schedule a `tick` when Zoneless is enabled. In the future, we would like to have an opt-out for this (i.e. signal components) since it's not really how we _want_ things to work. PR Close #55492 24 April 2024, 19:25:08 UTC
ac863de feat(core): provide ExperimentalPendingTasks API (#55487) The new ExperimentalPendingTasks API lets developers to add and remove tasks that control applications stability: a pending task prevents application from being stable. This API is important for all the use-cases that depend on the concept of stability and SSR serialization is a notable example. Closes #53381 PR Close #55487 24 April 2024, 18:23:10 UTC
d0c2e1b docs: fix public API from primitives (#55515) PR Close #55515 24 April 2024, 18:22:05 UTC
cf2e1b3 refactor(platform-server): add link that explains nonce `application/json` (#55505) Add a link to the specs explaining why nonce is not needed for `application/json`. PR Close #55505 24 April 2024, 17:48:38 UTC
b28d0bf ci: update @angular/ng-dev (#55513) Update @angular/ng-dev to latest version PR Close #55513 24 April 2024, 17:46:01 UTC
9ab36cf refactor(animations): Ensure async animations applies changes when loaded in zoneless (#55132) Async animations currently works in Zones because the render factory promise resolve causes change detection to happen. fixes #54919 PR Close #55132 24 April 2024, 17:33:47 UTC
a07ea06 refactor(core): Ensure DOM removal happens when no app views need refresh (#55132) This change ensures that `ApplicationRef.tick` flushes animations by calling `rendererFactory2.end`. This might not have happened before if there were no views that needed to be refreshed. This is also likely to fix a potential regression caused by #53718 even in zone apps where animations don't get flushed when no views attached to ApplicationRef are dirty. PR Close #55132 24 April 2024, 17:33:47 UTC
307bc1d refactor(platform-server): event contract script should follow event dispatch script (#55502) This commit fixes an issue where event contract init script was injected into the page before the inlined event dispatch script. That resulted in runtime exceptions, since event contract relies on some code being present on a page already. PR Close #55502 24 April 2024, 17:32:36 UTC
fc90549 refactor(core): event replay should account for pages with no events (#55502) This commit updates the logic to take into account a situation when Event Replay feature is enabled (using `withEventReplay()` method), but there were no events configured in an application. In this case, there is no need to setup an event dispatcher and trigger event replay. PR Close #55502 24 April 2024, 17:32:35 UTC
bbd0cbf refactor(core): disable property renaming for the event dispatch script (#55502) This commit updates Terser config to disable property renaming for the event delegation script (that we later inline into the HTML during SSR). The problem is that event dispatcher relies on some functions on the EventContract class to have original names after after minification, we loose an ability to call those functions. PR Close #55502 24 April 2024, 17:32:35 UTC
4bf3d89 refactor(core): Remove stop propagation beahavior. (#55435) This removes stop propagation behavior from `EventContract` and removes the associated stop propagation logic. PR Close #55435 24 April 2024, 16:12:34 UTC
98e8613 refactor(core): Split Dispatcher into base class. (#55372) This will enable refactoring existing usages of the Dispatcher that use APIs that we do not intend to support, like registerGlobalHandler and registerEventInfoHandlers to use the LegacyDispatcher. PR Close #55372 24 April 2024, 16:10:04 UTC
811fe00 refactor(core): Replay events from the event contract using the dispatcher. (#55467) This should accomplish event replay during full page hydration. PR Close #55467 23 April 2024, 23:08:36 UTC
2e2ca5e build: update scorecard action dependencies (#55473) See associated pull request for more information. PR Close #55473 23 April 2024, 22:17:40 UTC
c001b05 refactor(forms): added control name in console errors (#55397) When a formControlName is used without a parent formGroup, an error is logged in the console. Before this commit, there was no information about which control had the issue. Now, it's reported and the troubleshoot is much faster. PR Close #55397 23 April 2024, 22:16:57 UTC
c175bca fix(core): DeferBlockFixture.render should not wait for stability (#55271) The `DeferBlockFixture.render` function should not await the `whenStable` promise of the fixture. This does not allow developers to test any intermediate states that might occur between rendering the initial content and the full app stability. fixes #55235 PR Close #55271 23 April 2024, 22:12:39 UTC
86967af build: lock file maintenance (#55343) See associated pull request for more information. PR Close #55343 23 April 2024, 20:37:56 UTC
b1e6349 Update making-requests.md (#55390) docs(http): change "buffer.length" to "buffer.byteLength" property "length" does not exist on type "ArrayBuffer" but "byteLength" does PR Close #55390 23 April 2024, 20:34:33 UTC
5a10f40 fix(core): complete the removal of deprecation `async` function (#55491) Remove the `async` function in favor of using `waitForAsync` instead. BREAKING CHANGE: `async` has been removed, use `waitForAsync` instead. PR Close #55491 23 April 2024, 20:29:46 UTC
79a33e4 docs: Update dependency-injection.md (#55432) PR Close #55432 23 April 2024, 20:29:14 UTC
86ad37a docs: Update dependency-injection-context.md (#55455) PR Close #55455 23 April 2024, 20:27:15 UTC
62bbed8 docs: Update dependency-injection-providers.md (#55454) PR Close #55454 23 April 2024, 20:26:16 UTC
cd390c2 docs: Update creating-injectable-service.md (#55449) PR Close #55449 23 April 2024, 20:25:54 UTC
89a5c7e docs: Update creating-injectable-service.md (#55449) PR Close #55449 23 April 2024, 20:25:54 UTC
f4d894b docs: update Angular CLI help [main] (#55409) Updated Angular CLI help contents. PR Close #55409 23 April 2024, 20:24:22 UTC
bb673ff docs: improve grammar at tutorial steps (#55414) Fix the grammar issues at some of the tutorial pages making sure they sound correctly. PR Close #55414 23 April 2024, 20:22:58 UTC
900b5e7 docs(docs-infra): fix broken links (#55446) Add the missing folder's for links Fixes #55442 docs(docs-infra): fix template reference link Change the broken link PR Close #55446 23 April 2024, 20:21:48 UTC
c773238 docs: Fix typo in waitForAsync example (#55407) The previous example had an incomplete code snippet that would not work if copied and pasted as is. There were two missing closing parentheses, one for the `inject` function, and the other for the `waitForAsync` function. PR Close #55407 23 April 2024, 20:16:15 UTC
1f288b2 ci: reenable integration tests (#55463) Begin running integration tests again after they were unintentionally disabled PR Close #55463 23 April 2024, 20:13:20 UTC
5674c64 fix(platform-server): add `nonce` attribute to event record script (#55495) This commit fixes an issue where the nonce attribute was not added when `CSP_NONCE` token was provided. PR Close #55495 23 April 2024, 20:12:47 UTC
5948193 fix(core): skip defer timers on the server (#55480) Adds a check that disables the timer scheduling for `placeholder` and `loading` blocks on the server since the underlying timer will delay the server response. Fixes #55475. PR Close #55480 23 April 2024, 20:06:52 UTC
bcce85a refactor(animations): remove deprecated `matchesElement` from `AnimationDriver` (#55479) BREAKING CHANGE: Deprecated `matchesElement` method has been removed from `AnimationDriver` as it is unused. PR Close #55479 23 April 2024, 20:06:27 UTC
eecde2e build: remove no longer required bazel windows patch (#55477) This patch is no longer required. PR Close #55477 23 April 2024, 20:06:03 UTC
cba336d refactor(platform-browser): remove deprecated transfer state APIs (#55474) BREAKING CHANGE: Deprecated `StateKey`, `TransferState` and `makeStateKey` have been removed from `@angular/platform-browser`, use the same APIs from `@angular/core`. PR Close #55474 23 April 2024, 20:05:38 UTC
1e54956 build: update actions/checkout action to v4.1.3 (#55472) See associated pull request for more information. PR Close #55472 23 April 2024, 20:05:13 UTC
8f62aac docs(docs-infra): improve filtering performances on API page (#55470) Identity tracking was not a good choice here 🙃 PR Close #55470 23 April 2024, 20:04:51 UTC
7aff867 docs: fix links to packages. (#55469) fixes #55458 PR Close #55469 23 April 2024, 20:04:21 UTC
c4823df build: update actions/checkout digest to 1d96c77 (#55464) See associated pull request for more information. PR Close #55464 23 April 2024, 20:03:49 UTC
d2d275a docs(devtools): update README to be more clear for extension reviewers (#55406) Mozilla requires add-ons to have reproducible builds and this is managed directly by human reviewers and need to understand how to build Angular DevTools correctly. This commit defines a reproducible way of building Angular DevTools which is useful for reviewers and contributers. The actual changes I made include: 1. Moving local development content into `devtools/README` (deleting `devtools/DEVELOPING.md`) and explicitly stating the Node version as well as global Yarn install to be clear about the correct way to build the extension. This should make it easier for reviewers to understand and reproduce builds. 2. Moving release instructions to a separate doc to reduce noise as well as making some minor clean ups there. I briefly considered pointing reviewers at a new `devtools/docs/reviewers.md` doc, but decided against it because I want these instructions to be maintained in a single location where contributors and reviewers use the same content. This way any changes don't miss one of these sets of users. If reviewers have trouble with this format (dev builds isn't useful to reviewers and some content is repeated from other docs for contributors) then we can consider splitting out to a separate `reviewers.md` file. But until then, I'd like to try sharing this content and see how it works out in practice. PR Close #55406 23 April 2024, 20:02:49 UTC
8dab93f docs: adev tutorials use v17. (#55437) Partial revert of #54891. Webcontainers do not support node ^18.19.1 which is required by the v18 CLI. Until this is solved by the stackblitz team, we're stucked with v17 based tutorials PR Close #55437 23 April 2024, 20:00:45 UTC
d34c033 refactor(common): Deprecate Local Data API functions (#54483) Ahead of delegating the i18n subsystem to the `Intl` API, this commit introduce the intention to remove those functions from the public API. DEPRECATED: `getCurrencySymbol`, `getLocaleCurrencyCode`, `getLocaleCurrencyName`, `getLocaleCurrencySymbol`, `getLocaleDateFormat`, `getLocaleDateTimeFormat`, `getLocaleDayNames`, `getLocaleDayPeriods`, `getLocaleDirection`, `getLocaleEraNames`, `getLocaleExtraDayPeriodRules`, `getLocaleExtraDayPeriods`, `getLocaleFirstDayOfWeek`, `getLocaleId`, `getLocaleMonthNames`, `getLocaleNumberFormat`, `getLocaleNumberSymbol`, `getLocalePluralCase`, `getLocaleTimeFormat`, `getLocaleWeekEndRange`, `getNumberOfCurrencyDigits` PR Close #54483 23 April 2024, 19:22:43 UTC
f914f6a feat(migrations): Migration schematics for `HttpClientModule` (#54020) This migration will allow developers to migrate the deprecated `HttpClientModule`, `HttpClientJsonpModule` & `HttpClientXsrfModule` to their respective provider functions. PR Close #54020 23 April 2024, 19:12:31 UTC
ef665a4 refactor(http): Deprecate `HttpClientModule` & related modules (#54020) This commit deprecates the `HttpClientModule` and other related http modules. Those can be replaced by provider function only. Angular is an opinionated framework, feature guidance will help developer choose the recommended way to enable feature (like Http requests here). Note: This is not an indication of deprecation for `NgModule`. The deprecated module's only purpose here was to define providers. This can be done directly by the provide function pattern. DEPRECATED: `HttpClientModule`, `HttpClientXsrfModule` and `HttpClientJsonpModule` As mentionned, those modules can be replaced by provider function only. PR Close #54020 23 April 2024, 19:12:31 UTC
3d84c98 refactor(core): Make some minor changes to facilitate testing and usage of event-dispatch. (#55411) The change in the index is to allow the framework to add a type to the object that is passed from the contract to the dispatcher. ie registerDispatcher(contract, (eventInfo: EventInfoWrapper) => ...). The latter is to return the event contract so that tests can clean it up. PR Close #55411 23 April 2024, 18:05:44 UTC
f84d7dd test(core): Wait for zone stability before test completion (#55468) Need to wait for microtaskEmty to emit or test will leak into others. PR Close #55468 23 April 2024, 00:06:43 UTC
9894278 fix(core): make `ActivatedRoute` inject correct instance inside `@defer` blocks (#55374) `RouterOutlet` uses a unique injector logic that returns a value that correspond to the `ActivatedRoute` token dynamically. This logic breaks when a component/directive/pipe that injects the `ActivatedRoute` is located within a `@defer` block, because defer creates an `EnvironmentInjector` instance, which doesn't have that dynamic logic. We've added some special handling of the `OutletInjector` in one of the previous commits, but it was incomplete and it was not covering cases when different routes use the same component. This commit updates defer logic to re-establish this dynamic behavior for `ActivatedRoute` by creating an instance of the `OutletInjector` when a parent injector was also an instance of `OutletInjector`. This fix is a short-term solution and longer term we should find a way to achieve the dynamic behavior that Router relies on, but without adding a special case logic into defer. Resolves #54864. PR Close #55374 22 April 2024, 19:01:36 UTC
back to top