33397 Commits

Author SHA1 Message Date
Andrew Kushnir 321c8a3855 release: cut the v20.0.2 release 20.0.2 2025-06-06 09:25:58 -07:00
Jessica Janiuk bb6ec10cfd Revert "refactor(service-worker): make SwPush and SwUpdate tree-shakable (#61670)" (#61923)
This reverts commit f8c1b6e779.

PR Close #61923
2025-06-06 07:48:45 -07:00
Taygan Caldwell 6ae07ad9a1 refactor(core): Delete createSignalTuple (#61907)
Delete createSignalTuple because it is no longer needed. creatSignal has the same behavior.

PR Close #61907
2025-06-06 13:46:16 +02:00
Abhideep 0d198f2d9d docs: update first-app tutorial to signal inputs (#61876)
PR Close #61876
2025-06-06 13:20:57 +02:00
Paul Gschwendtner a6a193fcf9 docs: fix broken reveal answer button (#61925)
The reveal answer button accidentally loads files into the embedded
editor that aren't properly relativized. This ends up switching the
currently open file to a different file, unexpectedly.

In addition, due to the incorrect paths, files like `favicon.ico` end up
being loaded in the embedded editor; resulting in a bad experience as
the images are shown as plain text.

PR Close #61925
2025-06-06 11:26:45 +02:00
Matthieu Riegler 617874a2aa docs(docs-infra): fix deps for first-app tutorial (#61927)
patch backport of #61926

PR Close #61927
2025-06-06 11:20:29 +02:00
Matthieu Riegler 72510c1a82 docs(docs-infra): fix padding issue with tutorial editor. (#61924)
This allow the console to be entirly visible without scrolling to the bottom of the page.

PR Close #61924
2025-06-06 11:19:40 +02:00
Angular Robot 9ae8027d9b build: update cross-repo angular dependencies (#61912)
See associated pull request for more information.

PR Close #61912
2025-06-06 10:29:43 +02:00
sEver 71017f2a32 fix(docs-infra): fix wrong visibleLines numbers in docs-code blocks (#61909)
Many of these were shifted by one line
Also fixing one minor typo

PR Close #61909
2025-06-05 18:50:30 -07:00
Andrew Scott 33bd215440 fix(docs-infra): Fix import name for house location (#61914)
This fixes the import name for the HouseLocation component

PR Close #61914
2025-06-05 17:46:58 -07:00
Joey Perrott 8ccd496014 build: remove unnecessary zone.js dep from various build targets (#61903)
Remove unnecessary zone.js dep from various build targets

PR Close #61903
2025-06-05 09:13:01 -07:00
kristilw 1e8158baee fix(core): components marked for traversal resets reactive context (#61663)
when marked for traversal the reactive context has to be set to null to avoid inheriting the reactive context of the parent component

PR Closes #61662

PR Close #61663
2025-06-05 14:49:02 +02:00
kristilw 1e4ce31da4 refactor(core): update tests to use standalone (#61663)
update tests to use standalone components for easier test setup

PR Close #61663
2025-06-05 14:49:02 +02:00
Alan Agius fdcb14dd6c ci: atomatically add target labels based on base branch (#61894)
This commit configures Renovate to automatically apply 'target' labels to pull requests based on their base branch.

- `main` branch will get `target: minor` label.
- Other branches will get `target: patch` label.

PR Close #61894
2025-06-05 13:34:37 +02:00
Paul Gschwendtner 8fc96a7065 build: migrate partial compliance tests to rules_js (#61895)
Migrates the partial compliance tests to `rules_js`. Also as part of
this, we re-enable RBE to see if that fixed the issues, or in case
they are already resolved from the RBE side.

PR Close #61895
2025-06-05 13:33:52 +02:00
Paul Gschwendtner 23e3c6a7c9 build: introduce NodeJS loader for rules_js Node execution (#61895)
For the `rules_js` migration, we are facing the problem where
our current Angular code is shipped as ESM, but we aren't fully
there yet with fully compliant strict ESM during development.

That is because we lack explicit import extensions, and it's also a
different story how this would work in Google3, if we were to add them.

In addition, we cross-import from our packages using npm module names.
This works well for TS, for ESBuild because those can respect path
mappings— but at runtime, when executing native `jasmine_test`'s— such
mappings aren't respected. The options here are:

- avoid module imports in the repo (impossible; undesired)
- use pre-bundling of all NodeJS execution involving npm package code
  (slower, extra build action cost)
- wire up a simple NodeJS loader (supported via official APIs) to simply
  account for our cases (preferred and similar to what we experimented
  with for the last year(s); and worked well)

This commit implements the last option and allows for an easy migration
to `rules_js`, and also is pretty reasonable. Long-term we can resolve
the extension problem if we e.g. migrate to real explicit extensions + a
proper TS module resolution like e.g. `nodenext`.

PR Close #61895
2025-06-05 13:33:52 +02:00
Taygan Caldwell f562fd4298 refactor(core): export signal setter and updater types for wiz (#61714)
Export signal setter and updater types for Wiz to use

PR Close #61714
2025-06-05 12:57:23 +02:00
Angular Robot ccdbdf7533 build: update rules_angular digest to 845ffcd (#61890)
See associated pull request for more information.

PR Close #61890
2025-06-05 12:07:17 +02:00
Matthieu Riegler ea29d0df00 ci: disable updates with patch-package (#61893)
Patch package has a long standing bug that prevents us from updating to v8 https://github.com/ds300/patch-package/issues/300

PR Close #61893
2025-06-05 12:06:06 +02:00
Angular Robot 32ce1496ab build: update scorecard action dependencies (#61891)
See associated pull request for more information.

PR Close #61891
2025-06-05 11:20:37 +02:00
arturovt 1cd23be57e fix(core): unregister onDestroy in outputToObservable (#61882)
We should remove the `onDestroy` listener once subscription is unsubscribed because components might not be destroyed yet, but they still would capture subscribers.

PR Close #61882
2025-06-05 11:16:57 +02:00
Matthieu Riegler 59eb7207ef docs(docs-infra): use application builder for adev karma tests (#58291)
Co-authored-by: Jan Martin <jankrems@google.com>

PR Close #58291
2025-06-05 10:51:46 +02:00
Angular Robot f6841ea089 build: update cross-repo angular dependencies (#61881)
See associated pull request for more information.

PR Close #61881
2025-06-05 10:17:01 +02:00
Hakeem 50c6c70996 docs(docs-infra): fix callouts icon collision with the content (#61664)
PR Close #61664
2025-06-05 10:00:31 +02:00
Shuaib Hasan Akib d61b95f2bc docs(docs-infra): add tooltip for code editor buttons to improve accessibility (#61669)
PR Close #61669
2025-06-05 09:58:28 +02:00
Joey Perrott e98ef808aa build: correct the query for discovering all releasable packages (#61879) (#61862)
Update the bazel query for finding all releasable packages to look for all targets with the name
`npm_package` that contain the expected tag.

PR Close #61879

PR Close #61862
2025-06-05 07:34:50 +00:00
Paul Gschwendtner 24693ce1ff build: improve package diff script to show new untracked files (#61862)
Fixes that the package diff script did not show newly untracked
files in the npm package.

PR Close #61862
2025-06-05 07:34:50 +00:00
Paul Gschwendtner 426eca50f6 build: migrate packages/localize/schematics to ts_project (#61862)
Migrates `packages/localize/schematics` to `ts_project`.

PR Close #61862
2025-06-05 07:34:50 +00:00
Paul Gschwendtner 8564cf48d8 build: replace all ng_package with new rule from rules_angular (#61862)
Replaces all `ng_package` rule with the new rule from `rules_angular`.

PR Close #61862
2025-06-05 07:34:50 +00:00
Paul Gschwendtner a24fb53a73 build: remove packages/bazel (#61862)
Removes the `@angular/bazel` package as we no longer need it. Yay!

It's replaced by `rules_angular`.

PR Close #61862
2025-06-05 07:34:50 +00:00
Paul Gschwendtner b03a7356a4 build: migrate private/testing to ng_project (#61862)
Migrates `private/testing` to `ng_project`.

PR Close #61862
2025-06-05 07:34:49 +00:00
Paul Gschwendtner f98dfc2842 build: migrate integration and primitives/defer to ts_project (#61862)
Migrates remaining `ts_project` targets (excluding zone.js) to
`ts_project`.

PR Close #61862
2025-06-05 07:34:49 +00:00
Paul Gschwendtner d462051521 build: remove npm_package rule for packages/bazel (#61862)
The bazel npm package is no longer needed and currently breaks
as we started using a 1P pnpm linked package that would otherwise
end up being pulled into this legacy rule.

PR Close #61862
2025-06-05 07:34:49 +00:00
Paul Gschwendtner a9a7654cbf build: migrate packages/compiler-cli to ts_project (#61862)
This commit migrates the remaining pieces of `compiler-cli` to
`ts_project`. This involves a few more things during migration:

- the `ng_module` ngc_wrapped rule broke as part of this change, so we
  switched it to `ts_project` too. This logic is soon gone anyway.

- we needed an extra pnpm "package.json" for the linker babel test. This test is
  loading from the real compiler-cli npm package. Babel needs a real
  node module for this, so this solution seems reasonable. It may be
  worth exploring in the future to move this test into an integration
  test though.

- the older integrationtest in compiler-cli is removed as the coverage
  is much better with the compliance test suite and this test.

PR Close #61862
2025-06-05 07:34:49 +00:00
Angular Robot 49e273a5f9 build: update all non-major dependencies (#61701)
See associated pull request for more information.

PR Close #61701
2025-06-04 17:23:54 -04:00
kirjs 66e9924eb2 release: cut the v20.0.1 release 20.0.1 2025-06-04 15:19:00 -04:00
arturovt ddd22bea48 fix(core): unregister onDestroy in ResourceImpl when destroy() is called (#61870)
This commit unregisters the `onDestroy` listener when `destroy()` is called on the `ResourceImpl`. This prevents memory leaks and ensures that the resource reference is not captured in the destroy callback after it has already been destroyed.

PR Close #61870
2025-06-04 14:23:13 -04:00
arturovt 41b10396d2 refactor(service-worker): make SwPush and SwUpdate tree-shakable (#61670)
In this commit, we mark the `SwPush` and `SwUpdate` classes as root providers. As a result, they are no longer statically referenced in the `provideServiceWorker` providers list, which previously forced them to be explicitly bundled into the main file. These classes might never be used—some consumers may use the service worker only for prefetching and caching assets.

Practically speaking, even if a user injects the `SwPush` class without calling `provideServiceWorker()`, it would result in a DI error because the communication channel dependency is not available. There is no practical reason to keep these classes as non-root providers or to reference them explicitly.

Currently, some users work around this by using `patch-package` to modify the service worker code and remove these classes from the providers list.

PR Close #61670
2025-06-04 14:15:33 -04:00
arturovt 3f7b77dcd6 refactor(common): use ngServerMode in HttpInterceptorHandler (#61605)
Drops `isPlatformServer(platformId)` in favor of `ngServerMode` in the `HttpInterceptorHandler`.

PR Close #61605
2025-06-04 14:13:16 -04:00
Nikita Sologub b75094dc42 docs: replace undefined 'heroId' with defined 'id' (#61798)
PR Close #61798
2025-06-04 14:09:23 -04:00
Abhideep d7b2733cf9 docs: update home.ts (#61873)
updating HousingLocationInfo(interface) with HousingLocation(component), which is required to be imported into the Home Component

PR Close #61873
2025-06-04 14:04:40 -04:00
Angular Robot bdf882ccd4 build: update dependency google-closure-compiler to v20250601 (#61869)
See associated pull request for more information.

PR Close #61869
2025-06-04 12:20:47 -04:00
Nikita Sologub 07adef841e docs: complete a truncated sentence in define-routes.md (#61871)
PR Close #61871
2025-06-04 12:18:06 -04:00
AleksanderBodurri b4ed62ddf6 fix(core): properly handle the case where getSignalGraph is called on a componentless NodeInjector (#60772)
Previously this would throw an error on the assertLView when we try to discover the templateLView.

Now this properly returns null for the template consumer and continues discovering other effects on the injector.

PR Close #60772
2025-06-04 12:16:47 -04:00
Andrew Scott 8c60cbfd1c fix(core): takeUntilDestroyed completes immediately if DestroyRef already destroyed (#61847)
Adds fix directly for `takeUntilDestroyed` to unsubscribe when already
destroyed instead of putting
synchronous behavior on `DestroyRef.onDestroyed` callback as in #58008

fixes #54527

PR Close #61847
2025-06-04 12:14:15 -04:00
cexbrayat 3c644688eb refactor(core): use RefactorStreamItem type in rxResource (#59887)
The `ResourceStreamItem` was introduced in #59851 and can be used to simplify the `rxResource` code.

PR Close #59887
2025-06-04 11:45:05 -04:00
Hakeem a02717e429 docs(docs-infra): handle fractional sizes between max and min widths vals (#61600)
PR Close #61600
2025-06-04 11:41:51 -04:00
David 0bf8642372 docs(migrations): update the docs for the migration to control flow syntax (#61816)
Change the command to execute the migration, because the command stated in the previous version results in the error "Cannot find migration 'control-flow-migration' in '@angular/core'.". The new command is more in line with the docs of other migrations.

PR Close #61816
2025-06-04 11:28:49 -04:00
Taygan Caldwell 9e850c80f1 refactor(core): Refactor createSignal to return a tuple contain getter, setter, and updater (#61705)
Refactor createSignal to return a tuple instead of a signal getter. createSignalTuple will be removed in a follow up pr once createSignalTuple usages in google3 are migrated to createSignal.

PR Close #61705
2025-06-04 10:46:12 -04:00
Angular Robot 3710b124a1 build: update cross-repo angular dependencies (#61855)
See associated pull request for more information.

PR Close #61855
2025-06-04 10:24:51 -04:00