Commit graph

34681 commits

Author SHA1 Message Date
Kristiyan Kostadinov
77bc6eebee release: cut the v20.3.8 release 2025-10-29 18:12:56 +01:00
Kristiyan Kostadinov
9123e3d445 fix(docs-infra): fix broken adev tests (#64761)
Fixes some adev tests that are broken on main.

PR Close #64761
2025-10-29 14:11:54 +01:00
Lukas Matta
2edc82abe0 fix(migrations): Do not remove a template if it is referenced even with a trailing semilocon
This commit fixes a behavior where under certain conditions, the migration script ignored
a template reference with a trailing semicolon and incorrectly removed the definition
of a referenced template.

Fixes #64741

(cherry picked from commit 64cb08529d)
2025-10-29 10:51:00 +01:00
Matthieu Riegler
adae565cbf docs(docs-infra): allow cors for json files
fixes #64710

(cherry picked from commit f2de963bf3)
2025-10-28 16:55:56 +01:00
Shuaib Hasan Akib
766559e08c fix(docs-infra): update guide navigation to remain active with query params
The navigation list component was using `routerLinkActive` with
`{ exact: true }`, which required an exact URL match including query
parameters. When visiting `/update-guide?v=19.0-20.0&l=1`, the link
`/update-guide` didn't match, so the active class wasn't applied.

Updated `routerLinkActiveOptions` to ignore query parameters while
maintaining exact path matching so the navigation item stays highlighted
when interacting with the update guide form.

(cherry picked from commit 33a872d90a)
2025-10-28 15:58:28 +01:00
tjshiu
92d189770b docs: align adev best practices with llm-eval
(cherry picked from commit 763db3a70b)
2025-10-28 15:08:16 +01:00
Shuaib Hasan Akib
f96df920f9 docs: remove shell language from terminal output block
Changed terminal output code block in installation.md from shell
language to plain text to prevent rendering of shell prompt ($).
The block displays read-only log output that users should not
execute as commands.

(cherry picked from commit e9b29c359d)
2025-10-28 10:26:52 +01:00
Matthieu Riegler
b03182075e docs: callout for provide function order
(cherry picked from commit be731deb7c)
2025-10-28 10:24:59 +01:00
Shuaib Hasan Akib
385bcbc2c0 refactor(router): remove redundant default value from routerOutletData input
Since `input()` defaults to `undefined`, the explicit initializer was unnecessary.
This improves clarity and reduces boilerplate.

(cherry picked from commit 8291760f9b)
2025-10-28 10:24:26 +01:00
Matt Lewis
ca3fd7847f fix(core): Clear lView from IcuIteratorState when stack is empty to prevent memory leak
If a component template contains an icu expression it is being retained until the next change detection cycle for that template. This results in a net retention of only ever a single copy of the given lView but that creates an opportunity for compounding leaks.

Change the icu i18n_icu_container_visitor to free the IcuIteratorState retained lView when the stack is empty so that garbage collection can occur when the view is discarded.

(cherry picked from commit 59e648913c)
2025-10-27 19:42:21 +01:00
Shuaib Hasan Akib
14b5590f80 fix(docs-infra): preserve shell class for multifile code blocks
The ExampleViewer component was extracting only innerHTML from code
blocks in multifile examples, which lost the shell class applied by
the formatCode function. This caused the $ prompt to not appear for
shell commands in multifile blocks even when language="shell" was set.

Modified the Snippet interface to track shell language state and
updated getCodeSnippetsFromMultifileWrapper and getStandaloneCodeSnippet
methods to preserve the shell class. Updated example-viewer template
to conditionally apply the shell class to the code wrapper element.

Fixes inconsistency between standalone and multifile shell code blocks.

(cherry picked from commit 27e183330e)
2025-10-27 09:29:40 +01:00
idembele70
9b3574b9b9 docs: fix accessibility of @empty block message
(cherry picked from commit 202fceed73)
2025-10-27 09:29:14 +01:00
SkyZeroZx
5ce9d881e3 docs: Adds guide links to HTTP API docs for better discoverability
(cherry picked from commit c5e6b8bdc8)
2025-10-27 09:25:59 +01:00
aparziale
1fd8592d9c refactor: inject an instance of typescript-vfs.worker
Modified tsVfsWorker worker initialization logic

(cherry picked from commit e155a1e9d7)
2025-10-27 09:24:59 +01:00
Alan Agius
6daabb08e6 Revert "build: refactor location of best-practices.md"
This reverts commit 07a51872d5.

(cherry picked from commit 620e2c4926)
2025-10-24 19:02:41 +02:00
Matthieu Riegler
07d91d76de docs(docs-infra): Support linking to individual playground templates
(cherry picked from commit 6e7b3c2aa6)
2025-10-24 18:47:13 +02:00
SkyZeroZx
020f17694b feat(common): Blocks IPv6 localhost from preconnect checks
Prevents unnecessary preconnect warnings by adding IPv6 loopback ('[::1]') to the blocklist.

(cherry picked from commit a3639e2258)
2025-10-24 18:46:47 +02:00
SkyZeroZx
752986bfc2 refactor(common): Add missing OnDestroy interface in PreconnectLinkChecker
The OnDestroy interface was implemented but not declared; this adds the missing interface declaration

(cherry picked from commit 207baad322)
2025-10-24 18:46:47 +02:00
Andrew Scott
4b318d0cc0 fix(zone.js): Support jasmine v6
This fixes the jasmine patch to ensure we are patching the private APIs
off of the right location, which changed in v6.

see 168ff0a751

(cherry picked from commit 48abe007d9)
2025-10-24 18:46:08 +02:00
Alan Agius
18c70315d7 build: refactor location of best-practices.md
This commit moves the best-practices.md file from adev/src/context to packages/core/resources. The BUILD.bazel files and other configuration files have been updated to reflect this change.

(cherry picked from commit 07a51872d5)
2025-10-24 18:45:35 +02:00
jase88
b97a677730 docs: update workspace configuration link in security documentation
(cherry picked from commit cdfd073448)
2025-10-24 15:25:14 +02:00
Matthieu Riegler
b3f2ff1e07 docs(docs-infra): enable strict templates
(cherry picked from commit 57af0d7e1b)
2025-10-24 15:23:30 +02:00
SkyZeroZx
50d2670495 docs: Add router config options (#64529)
PR Close #64529
2025-10-23 12:34:57 +02:00
Andrew Scott
bfa53cdd3f fix(router): handle parenthesized outlets without a name in DefaultUrlSerializer (#64507)
Previously, the `DefaultUrlSerializer` would incorrectly parse URLs with a parenthesized outlet that did not have a name, such as `/(left)`. This would result in an `undefined` outlet name in the serialized URL.

This commit fixes the issue by ensuring that parenthesized outlets without a name are treated as primary outlets.

fixes #58516. Based on the description, either the URL was constructed
manually or by custom serializer.

PR Close #64507
2025-10-23 12:33:58 +02:00
Andrew Scott
2a249b742c refactor(zone.js): Improve missing proxy zone error for jest imported (#64497)
test functions

This improves the fakeAsync error message when importing it, describe,
etc from jest

We will not be further expanding the ZoneJS patches to support
additional use-cases.

fixes #47603

PR Close #64497
2025-10-22 23:26:24 +00:00
Jessica Janiuk
fbb0056563 release: cut the v20.3.7 release 2025-10-22 14:06:13 -07:00
Jessica Janiuk
2fad4d4ab6 fix(core): prevent duplicate nodes from being retained with fast animate.leave` calls (#64592)
We were clearing duplicate nodes when `animate.enter` fired fast, but not when solely `animate.leave` is fired and rapid toggles occur. This ensures that the `cancelLeavingNodes` function is called in all cases instead of just enter animations.

fixes: #64581

PR Close #64592
2025-10-22 19:07:35 +00:00
Angular Robot
c85be3b2de build: update cross-repo angular dependencies to v20.2.10 (#64591)
See associated pull request for more information.

PR Close #64591
2025-10-22 18:14:52 +00:00
Angular Robot
b05d8d9f09 build: update cross-repo angular dependencies (#64588)
See associated pull request for more information.

PR Close #64588
2025-10-22 15:53:41 +00:00
Angular Robot
4bc69159ca build: update cross-repo angular dependencies (#64586)
See associated pull request for more information.

PR Close #64586
2025-10-22 15:20:59 +00:00
Matthieu Riegler
00842026c4 docs(docs-infra): fix example viewer (#64580)
It was a regression introduced by #63915

PR Close #64580
2025-10-22 14:35:04 +00:00
SkyZeroZx
8244f187de docs(docs-infra): Add OnPush change detection for components (#64570)
Improves Angular's OnPush change detection strategy for main and search history components

PR Close #64570
2025-10-22 14:34:27 +00:00
Jessica Janiuk
acadefbba9 docs: update animation guide with compatibility details (#64567)
This adds a section about using legacy animations alongside animate.enter and leave.

PR Close #64567
2025-10-22 14:30:45 +00:00
Angular Robot
24cc18686a build: update cross-repo angular dependencies (#64577)
See associated pull request for more information.

PR Close #64577
2025-10-22 14:28:14 +00:00
Angular Robot
e0fb49c75f build: update dependency rules_nodejs to v6.6.0 (#64573)
See associated pull request for more information.

PR Close #64573
2025-10-22 14:26:48 +00:00
Jessica Janiuk
4c89a267c3 fix(core): pass element removal property through in all locations (#64565)
The `requireSynchronousElementRemoval` property was not being passed in all the locations it was needed. This was preventing leave animation timing from behaving properly in some cases.

fixes: #64525

PR Close #64565
2025-10-21 18:08:34 +00:00
Angular Robot
e3f1c529f5 build: update cross-repo angular dependencies (#64564)
See associated pull request for more information.

PR Close #64564
2025-10-21 17:37:21 +00:00
JoostK
bd38cd45a5 fix(animations): account for Element.animate exceptions (#64506)
In certain scenarios `Element.animate` fails, manifesting in an exception (Firefox)
or a null return value (Chromium). The null value is not conform WebIDL but handled
gracefully in this commit regardless.

Closes #64486

PR Close #64506
2025-10-21 16:49:43 +00:00
Angular Robot
50e2c54a14 build: update rules_browsers digest to 6a699bf (#64559)
See associated pull request for more information.

PR Close #64559
2025-10-21 16:43:34 +00:00
Angular Robot
67e25f6010 build: update dependency node to v22.21.0 (#64560)
See associated pull request for more information.

PR Close #64560
2025-10-21 16:42:17 +00:00
SkyZeroZx
e568ddb2d2 docs: Standardizes code example formatting in Angular Tools and fixed highlight (#64554)
PR Close #64554
2025-10-21 15:19:28 +00:00
Jessica Janiuk
139b622957 refactor(core): clarify comments on enter animation queuing (#64550)
This just updates the comments and adds some tests to verify some of the queuing behavior for enter animations.

PR Close #64550
2025-10-21 15:17:14 +00:00
SkyZeroZx
b0551419cd refactor(core): Removes unused trigger parameter from scheduleDelayedPrefetching (#64517)
Simplifies delayed prefetching calls by eliminating an unnecessary trigger argument

PR Close #64517
2025-10-21 15:16:40 +00:00
SkyZeroZx
b11617dbab docs(docs-infra): Improves navigation list readability by balancing text wrapping (#64512)
Balances text wrapping for navigation items to enhance readability

PR Close #64512
2025-10-21 15:14:36 +00:00
SkyZeroZx
9b494c7de5 docs: Add DestroyRef.destroyed and usage in lifecycle guide (#64422)
PR Close #64422
2025-10-21 15:12:50 +00:00
SkyZeroZx
ed99bc96f1 docs: add references to SSR guide for caching options (#64347)
PR Close #64347
2025-10-21 15:12:15 +00:00
Andrew Scott
cfd8ed3fff fix(router): Fix outlet serialization and parsing with no primary children (#64505)
this fixes tree creation, serialization, and parsing of trees created with
children outlets and no primary path

fixes #62384

PR Close #64505
2025-10-20 21:18:47 +00:00
Matthieu Riegler
de8af17951 docs(docs-infra): Extract multiple extends statements for interfaces (#64539)
fixes #64528

PR Close #64539
2025-10-20 21:18:14 +00:00
Angular Robot
b645b64067 build: update cross-repo angular dependencies (#64548)
See associated pull request for more information.

PR Close #64548
2025-10-20 21:17:01 +00:00
Andrew Scott
182fe78f91 fix(router): Surface parse errors in Router.parseUrl (#64503)
logs error in addition to fallback parse

fixes #54937

PR Close #64503
2025-10-20 17:51:30 +00:00