33517 Commits

Author SHA1 Message Date
Jessica Janiuk c6f0f54cdd release: cut the v20.0.5 release 20.0.5 2025-06-25 18:45:56 +02:00
Matthieu Riegler a2e6f317a7 fix(core): allow to set a resource in an error state (#62253)
A resource is error state should still remain writable.

fixes #62241

PR Close #62253
2025-06-25 13:20:43 +00:00
Angular Robot 31a21253ed build: update cross-repo angular dependencies (#62263)
See associated pull request for more information.

PR Close #62263
2025-06-25 13:19:42 +00:00
Jessica Janiuk 17a8ca30ec ci: Update pullapprove ownership for compiler and zonejs (#62261)
This updates the zone.js owners and adds thePunderWoman to compiler approvers.

PR Close #62261
2025-06-25 12:46:41 +00:00
Matthieu Riegler c43f632dc0 docs: fix deprecation message on ngIf/ngSwitch (#62149)
fixes #62147

PR Close #62149
2025-06-25 11:22:16 +00:00
arturovt b40c9d0e59 refactor(common): move ngServerMode check outside tap() to enable tree-shaking (#62238)
In this commit, the `ngServerMode` check is moved outside the RxJS `pipe()` to ensure that server-only logic is excluded from client bundles. Previously, the `tap()` operator and its closure were always included in the output, even though `ngServerMode` was false on the client and the side effect was never triggered.

By guarding the observable chain earlier, this reduces the RxJS stack frame depth, which simplifies debugging by avoiding unnecessary operator noise in client-side stack traces.

The resulting logic is also easier to reason about and avoids evaluating `HttpResponse` instances where not needed.

PR Close #62238
2025-06-25 11:13:22 +00:00
Matthieu Riegler c63a2568f5 docs: add llms context files entries (#62224)
This commit adds copilot, vscode & windsuft

PR Close #62224
2025-06-25 09:13:54 +00:00
Angular Robot 9aff972e92 build: update dependency node to v22.17.0 (#62257)
See associated pull request for more information.

PR Close #62257
2025-06-25 09:12:56 +00:00
Angular Robot 767e1ddcf5 build: update cross-repo angular dependencies (#62248)
See associated pull request for more information.

PR Close #62248
2025-06-24 16:26:10 +00:00
Jessica Janiuk 9d20d6fbfc Revert "test(devtools): revive cypress tests (#61972)" (#62243)
This reverts commit 75d246e03c.

PR Close #62243
2025-06-24 15:03:46 +00:00
AleksanderBodurri a42169a7ab test(devtools): revive cypress tests (#61972)
Previously these tests would run automatically when Angular DevTools lived in another repo. These files have continued to live here but have not been running automatically on each PR.

Now, these test files have been revived to run properly with our changes since the repo merge. This is a first step to reviving our e2e testing.

Next steps include writing cypress tests for new features like Injector Graph, Router tree, signals visualizations, etc.

PR Close #61972
2025-06-24 14:22:22 +00:00
arturovt 4c00238a69 fix(core): avoid injecting ErrorHandler from a destroyed injector (#61886)
This commit prevents lazy injection of the internal `ErrorHandler` from a destroyed injector, as it would result in another "destroyed injector" error.

PR Close #61886
2025-06-24 14:13:34 +00:00
Gerome Grignon ef9ab80551 docs(core): migrate @Input examples to Signal inputs (#62070)
PR Close #62070
2025-06-24 14:11:56 +00:00
hawkgs 6a3396ae51 refactor(devtools): use Material Symbols without fill (#62028)
Substitute the local `woff2` file with a `FILL 0` version of Material Symbols.

PR Close #62028
2025-06-24 14:07:01 +00:00
arturovt 65c59dd796 fix(router): handle scrollRestoration error in restricted environments (#62186)
In this commit, setting `window.history.scrollRestoration` is wrapped in a try-catch block to prevent `SecurityError` exceptions in restricted contexts such as:

- sandboxed iframes
- partially navigated or inactive windows
- test runners, extensions, or content previews

If an error occurs, a runtime warning with error code [2400] is logged to the console. This avoids breaking app initialization and improves cross-browser safety.

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

PR Close #62186
2025-06-24 12:24:44 +00:00
arturovt e7d259b0dc refactor(core): drop injection context assertion in production (#62038)
Drops `assertInInjectionContext` call in production in `afterNextRender`.

PR Close #62038
2025-06-24 12:24:10 +00:00
Alan Agius 9b0177398f build: update jest monorepo to v30 (#62233)
See associated pull request for more information.

Closes #61980 as a pr takeover

PR Close #62233
2025-06-24 11:13:30 +00:00
Joey Perrott 4f1a5ab31f build: move dependencies on npm package of dev-infra to workspace dependency (#62083)
Move from relying on the @npm// dependencies to aspect node modules where possible

PR Close #62083
2025-06-24 10:46:14 +00:00
Walter Breakell 8135019a14 docs: update link to cache options (#62187)
PR Close #62187
2025-06-24 10:42:21 +00:00
Shuaib Hasan Akib 76dbd72044 docs(docs-infra): replace StarWars API endpoint (#62223)
PR Close #62223
2025-06-24 09:54:02 +00:00
Edison Augusthy b6bb2b8d74 docs: updated angular cli link to point to new website (#62059)
PR Close #62059
2025-06-24 09:53:28 +00:00
Angular Robot d46aa7c906 build: update rules_angular digest to 88ddcf8 (#62231)
See associated pull request for more information.

PR Close #62231
2025-06-24 09:52:21 +00:00
soongxian f9fe897587 docs: fixed grammar and spelling errors in contributing-docs folder (#62196)
PR Close #62196
2025-06-24 09:39:08 +00:00
Angular Robot 9c3157d327 build: lock file maintenance (#62204)
See associated pull request for more information.

PR Close #62204
2025-06-24 09:38:18 +00:00
Angular Robot 7a520ffff9 build: update cross-repo angular dependencies (#62200)
See associated pull request for more information.

PR Close #62200
2025-06-24 08:53:38 +00:00
Saujan Ghimire 0c2c74c83c docs: embeded best practices in page (#62173) (#62198)
PR Close #62198
2025-06-24 08:52:25 +00:00
Matthieu Riegler 23b2730e47 docs: add link to ai best practices in instalation guide (#62138)
PR Close #62138
2025-06-24 08:49:53 +00:00
Jens Kuehlers 4a4d845801 docs: add v21 dates (#62216)
PR Close #62216
2025-06-24 08:49:12 +00:00
Joey Perrott eddc296b94 build: migrate final non-zone.js jasmine tests (#62170)
Migrate the final remaining non-zone.js package jasmine tests to the new toolchain

PR Close #62170
2025-06-24 08:48:00 +00:00
Matthieu Riegler 1567fb9bdf docs: improve docs for withComponentInputBinding (#61689)
Add mention about inputs potentially becoming `undefined`.

PR Close #61689
2025-06-24 08:46:08 +00:00
Kristiyan Kostadinov 3eb5a79a83 fix(compiler-cli): handle initializer APIs wrapped in type casts (#62203)
Fixes that the logic recognizing initializer APIs didn't account for the expression being wrapped in an `as` expresion or in a parenthesized expression. This was already accounted for in the diagnostic so these changes align the behavior between them.

Fixes #62197.

PR Close #62203
2025-06-23 14:26:06 +02:00
Kristiyan Kostadinov 369f03ad7f fix(core): unable to retrieve defer blocks in tests when component injects ViewContainerRef (#62156)
Fixes that `getDeferBlocks` wasn't accounting for the case where a component might be injecting `ViewContainerRef`. When that happens, an additional wrapper is introduced that needs to be accounted for when traversing the tree.

Fixes #62047.

PR Close #62156
2025-06-23 14:24:47 +02:00
Matthieu Riegler 5a11a7946a docs(docs-infra): remove greek site. (#62201)
The site was not up-to-date and often wasn't accessible due to quota limits

PR Close #62201
2025-06-23 14:20:11 +02:00
Matthieu Riegler 773d7881a6 docs(docs-infra): fix & simplify scrolling for code blocks (#62179)
PR Close #62179
2025-06-23 14:19:35 +02:00
Matthieu Riegler 5899c7c8e2 docs: add css to the supported language for highligting in docs-code (#62178)
css usage was introduced by #60984

PR Close #62178
2025-06-23 14:18:55 +02:00
Ankita Sood e57115d4db docs(router): consitent usage of self-closing tags (#62165)
PR Close #62165
2025-06-23 14:17:44 +02:00
Kristiyan Kostadinov e909287e2b build: remove unused dependency (#62206) (#62210)
Removes the `google-closure-compiler` dependency that keeps getting updated by the bot, even though we don't actually use it.

PR Close #62206

PR Close #62210
2025-06-23 13:56:28 +02:00
Andrew Kushnir f8a65379ba Revert "docs: embeded best practices in page (#62173)" (#62193)
This reverts commit 286f9f573e.

PR Close #62193
2025-06-22 09:14:12 -07:00
Matthieu Riegler 35ce544fe8 docs: fix link to http-resource guide (#62180)
fixes #62177

PR Close #62180
2025-06-20 18:25:43 -07:00
Matthieu Riegler 2ae2076674 docs: embeded best practices in page (#62173)
PR Close #62173
2025-06-20 15:29:25 -07:00
Angular Robot 9c4144962f build: update cross-repo angular dependencies (#62163)
See associated pull request for more information.

PR Close #62163
2025-06-20 14:43:24 -07:00
Ben Hong 3116cf9b43 docs: add dedicated route guards guide (#62104)
docs: fix reference

Co-authored-by: Matthieu Riegler <kyro38@gmail.com>

docs: grammar fix

Co-authored-by: Jeremy Elbourn

docs: update docs reference

Co-authored-by: Andrew Scott <atscott01@gmail.com>

docs: update docs reference

Co-authored-by: Andrew Scott <atscott01@gmail.com>

docs: update docs reference

Co-authored-by: Andrew Scott <atscott01@gmail.com>

docs: update docs reference

Co-authored-by: Andrew Scott <atscott01@gmail.com>

docs: update route guard title

docs: update route guard types to table

docs: improve phrasing on activated route snapshot description

docs: improve comments to explain how route guard child works

docs: enhance route guards with more explainers and examples

PR Close #62104
2025-06-20 14:42:12 -07:00
Angular Robot 2020005b49 docs: update Angular CLI help (#62167)
Updated Angular CLI help contents.

PR Close #62167
2025-06-20 13:04:05 -07:00
Andrew Scott dff1417b73 build: revert incompatible build changes in patch branch (#62168)
incompatible build changes from ebaebb849f

PR Close #62168
2025-06-20 12:03:48 -07:00
Matthieu Riegler 72da3bf462 docs: rename prompt guide to "LLM prompts and IDE setup" (#62171)
PR Close #62171
2025-06-20 12:00:05 -07:00
Jan-Niklas Wortmann a666cfd92b docs: add JetBrains Junie guidelines (#62161)
PR Close #62161
2025-06-20 11:05:53 -07:00
Angular Robot 3aeee1dd56 build: update dependency rollup to v4.44.0 (#62145)
See associated pull request for more information.

PR Close #62145
2025-06-20 10:31:07 +02:00
Kristiyan Kostadinov de0d525ad7 fix(compiler-cli): add suggestion when pipe is missing (#62146)
Adds some suggestions for potential pipes to be imported when raising the missing pipe diagnostic.

Fixes #62136.

PR Close #62146
2025-06-20 10:30:04 +02:00
Shuaib Hasan Akib c86311b6d2 docs(docs-infra): fix spelling mistake (#62154)
PR Close #62154
2025-06-20 10:29:19 +02:00
Andrew Scott ebaebb849f refactor(core): update FakeNavigation to the latest spec (#62017)
Spec updates are in https://github.com/whatwg/html/pull/10919

For the most part, the updates revolve around the deferred commit
handling (with precommitHandler). Updates to redirect allow more
options. A committed promise now exists on the transition since commits
can be delayed. Tests were made zoneless for easier debugging and
timeouts were reduced.

PR Close #62017
2025-06-19 15:10:42 +02:00