Commit graph

33487 commits

Author SHA1 Message Date
Milo
fd2fca8bce refactor(devtools): check if signal graph is supported (#61915)
add a new devtools field in SupportedApis to check if the
getSignalGraphApi exists

PR Close #61915
2025-06-09 09:43:51 -07:00
arturovt
ef10aa4005 feat(common): support decoding in NgOptimizedImage (#61905)
This commit adds the ability to set the decoding attribute in NgOptimizedImage. It proxies the binding onto the host image element. If no binding is provided, it defaults to "auto", which matches the browser's default behavior. This approach avoids any breaking changes resulting from the update.

PR Close #61905
2025-06-09 09:02:17 -07:00
aldillek
b7ab5fa256 fix(compiler-cli): add signal checks to handle negated calls (#59970)
By adding these checks, we can find scenarios where a signal was expected to be called but wasn't.

PR Close #59970
2025-06-09 09:01:06 -07:00
Joey Perrott
21fc93bf4b test: use zone from npm instead of the locally built package for modules testing (#61947)
Use zone from npm for modules testing

PR Close #61947
2025-06-06 15:20:11 -07:00
Joey Perrott
50c7e132b5 test: use zone from npm instead of the locally built package for integration tests (#61947)
Use zone from npm for integration tests

PR Close #61947
2025-06-06 15:20:11 -07:00
Joey Perrott
708e4f4f11 refactor(devtools): use zone.js from npm instead of from the local build (#61947)
Rely on zone.js from the npm managed version instead of the locally built copy

PR Close #61947
2025-06-06 15:20:11 -07:00
Joey Perrott
cd3bbdbad6 build: add zone.js as an npm based dependency (#61947)
Add zone.js as an npm based dependency

PR Close #61947
2025-06-06 15:20:11 -07:00
Andrew Scott
e557313438 docs: Add error handling doc to the menu (#61945)
PR Close #61945
2025-06-06 12:42:43 -07:00
Joey Perrott
458cdbd518 ci: use new pull-request-labeling action (#61938)
Use the pull-request-labeling action which replaced the commit-message-based-labeling action.

PR Close #61938
2025-06-06 12:38:20 -07:00
hawkgs
e678050794 docs(docs-infra): implement search history (#61866)
Add history of searches to the search dialog of A.dev.

PR Close #61866
2025-06-06 12:36:23 -07:00
Andrew Kushnir
bbd16f50bc docs: release notes for the v20.0.2 release 2025-06-06 09:28:36 -07:00
Jessica Janiuk
29e892a35e 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
6097184711 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
8ab0028857 docs: update first-app tutorial to signal inputs (#61876)
PR Close #61876
2025-06-06 13:20:56 +02:00
Matthieu Riegler
e01b4c23ba docs(docs-infra): fix deps for first-app tutorial (#61926)
PR Close #61926
2025-06-06 11:30:39 +02:00
Paul Gschwendtner
978b1aceeb 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:44 +02:00
Matthieu Riegler
ae1afc10dd 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
Milo
0576724225 feat(devtools): add getSignalNestedProperties (#61917)
this enables devtools to preview and expand signal values as trees

PR Close #61917
2025-06-06 10:57:09 +02:00
Milo
9bb04e5ac8 feat(devtools): update colors for signals pane (#61918)
add dynamic-green-02 and dynamic-blue-02

PR Close #61918
2025-06-06 10:55:05 +02:00
Angular Robot
78c417ace1 build: update cross-repo angular dependencies (#61910)
See associated pull request for more information.

PR Close #61910
2025-06-06 10:30:47 +02:00
sEver
8f9d13ef2b 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
cfb0dc2cbc 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:57 -07:00
Joey Perrott
9354efc86a build: remove unnecessary zone.js dep from various build targets (#61901)
Remove unnecessary zone.js dep from various build targets

PR Close #61901
2025-06-05 09:12:27 -07:00
arturovt
4f89f6ea90 refactor(platform-browser): drop isPlatformServer in SharedStylesHost (#61685)
Replaces `isPlatformServer` with `ngServerMode` in `SharedStylesHost`.

PR Close #61685
2025-06-05 14:53:35 +02:00
kristilw
3aa933acb7 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:01 +02:00
kristilw
ee6388d2a0 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:01 +02:00
Angular Robot
e90bfc509c build: update cross-repo angular dependencies to ^20.1.0-next (#61880)
See associated pull request for more information.

PR Close #61880
2025-06-05 14:08:33 +02:00
Alan Agius
ddfb94cd23 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:36 +02:00
Taygan Caldwell
935ce0e0d9 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
Matthieu Riegler
52aa3368e5 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:05 +02:00
Paul Gschwendtner
93c74ef492 build: migrate partial compliance tests to rules_js (#61865)
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 #61865
2025-06-05 12:04:51 +02:00
Paul Gschwendtner
d86d11d4c1 build: introduce NodeJS loader for rules_js Node execution (#61865)
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 #61865
2025-06-05 12:04:51 +02:00
arturovt
e81ea0c3dd 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
Angular Robot
eb20c1f710 build: update dependency google-closure-compiler to v20250601 (#61868)
See associated pull request for more information.

PR Close #61868
2025-06-05 11:11:38 +02:00
Matthieu Riegler
967c8fe430 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
fa2af076d2 docs: update Angular CDK apis (#61874)
Updated Angular CDK api files.

PR Close #61874
2025-06-05 10:50:57 +02:00
Angular Robot
ab5b7df073 build: update all non-major dependencies (#61700)
See associated pull request for more information.

PR Close #61700
2025-06-05 10:14:17 +02:00
Angular Robot
e49a0644e5 build: update rules_angular digest to 845ffcd (#61888)
See associated pull request for more information.

PR Close #61888
2025-06-05 10:10:40 +02:00
Milo
8e861eff1a feat(devtools): add button component (#61549)
enables flexible styling of button components with ng-button attribute

PR Close #61549
2025-06-05 10:09:51 +02:00
Hakeem
08eded75ff docs(docs-infra): fix callouts icon collision with the content (#61664)
PR Close #61664
2025-06-05 10:00:30 +02:00
Shuaib Hasan Akib
fe0abb7509 docs(docs-infra): add tooltip for code editor buttons to improve accessibility (#61669)
PR Close #61669
2025-06-05 09:58:27 +02:00
Doug Parker
c45afbc2a8 docs: streamline DevTools release docs (#61883)
This makes a few changes to try to smooth over the process:
1. Updates changelog commands to filter out `refactor` commits.
2. Tweaks the changelog command to generate a markdown list for easy copy-pasting.
3. Links directly to the store pages to cut down on clicks.
4. Moves the source code section a bove the reviewer note and changelog, to match the ordering of the Firefox Add Ons form.

PR Close #61883
2025-06-05 09:56:57 +02:00
kirjs
586be0e37f release: cut the v20.1.0-next.0 release 2025-06-04 17:20:39 -04:00
Joey Perrott
b839d08a75 build: correct the query for discovering all releasable packages (#61879)
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
2025-06-04 16:47:27 -04:00
kirjs
9a03000cdf docs: release notes for the v20.0.1 release 2025-06-04 15:20:37 -04:00
arturovt
080b3687d3 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
6e1df54799 feat(service-worker): support push subscription changes (#61856)
In this commit, support for `pushsubscriptionchange` events has been added to the service worker Driver.

When the push subscription changes, the Driver now captures the event and broadcasts a `PUSH_SUBSCRIPTION_CHANGE` message to clients. This ensures the application is aware of push events and can react accordingly.

Unfortunately, it's not possible to perform any end-to-end testing of this feature.

The push subscription change event exists in both Blink and Gecko. It is also supported in the latest version of Chrome, which means we can give users the ability to react to this event in order to gather feedback on whether other components might need updates.

PR Close #61856
2025-06-04 14:16:51 -04:00
arturovt
f8c1b6e779 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:32 -04:00
Andrew Scott
8163a8995e feat(core): Add destroyed property on DestroyRef (#61849)
Since `DestroyRef.onDestroy` throws if the `DestroyRef` is already
destroyed, there is a need to be able to tell if it is already destroyed
before attempting to register a callback.

PR Close #61849
2025-06-04 14:14:55 -04:00
arturovt
e947dfb84f 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:15 -04:00