Commit Graph

36637 Commits

Author SHA1 Message Date
Jessica Janiuk 62676269d2 release: cut the v22.0.0-next.0 release v22.0.0-next.0 2026-03-04 11:47:39 -08:00
Jessica Janiuk 00a3928967 docs: release notes for the v21.2.1 release 2026-03-04 11:35:30 -08:00
Angular Robot 4422adeabf build: update cross-repo angular dependencies to c4344a4
See associated pull request for more information.
2026-03-04 10:24:21 -08:00
Jessica Janiuk fda08b7a89 refactor(core): account for shadow roots in animations
This adds a util function to get the proper target, properly accounting for shadow roots.
2026-03-04 10:16:40 -08:00
SkyZeroZx 9208421290 docs: add customization options for browser URL in routing guide 2026-03-04 10:10:26 -08:00
Jessica Janiuk 5338b5912c Revert "refactor(http): Improves base64 encoding/decoding with feature detection (#67002)"
This reverts commit aafeb1d2bd.
2026-03-04 09:19:10 -08:00
Jessica Janiuk 7eb33713b9 Revert "fix(http): correctly cache blob responses in transfer cache (#67002)"
This reverts commit 1f057afaac.
2026-03-04 09:19:10 -08:00
Jessica Janiuk 9e64147b73 fix(core): prevent child animation elements from being orphaned
When routing between two different routes, child animations were not finishing, causing elements to be left behind in the dom. The fix ensures the proper fallback is handled to avoid automatically cancelled custom events. This ensures the animation-fallback cancelling the animation actually completes, and ensures the element is removed.

fixes: #67400
2026-03-04 08:21:37 -08:00
Angular Robot 0c4021298b build: update pnpm to v10.30.3
See associated pull request for more information.
2026-03-04 08:03:20 -08:00
Angular Robot 2ffdebb292 build: update cross-repo angular dependencies
See associated pull request for more information.
2026-03-04 08:02:13 -08:00
SkyZeroZx 9fa36d1a71 docs: add documentation for dynamic validation schemas 2026-03-04 08:01:32 -08:00
Kristiyan Kostadinov 2c87f21abe fix(compiler-cli): always parenthesize object literals in TCB
This is a follow-up to #67381 which introduced a subtle bug where depending on the type checking configuration, we may put an object literal directly in the TCB body which the TS compiler ends up interpreting as a block. These changes resolve the issue by always wrapping the literal in parentheses.
2026-03-04 08:00:00 -08:00
Georgi Serev e8676b5412 docs(docs-infra): add Azerbaijani community translation
Add https://angular.az (Azerbaijani) to the community translations section.
2026-03-04 07:58:18 -08:00
SkyZeroZx c6f98c723c feat(language-service): Add support for idle timeout in defer blocks
Extends language service parsing and validation to support `@defer on idle(300)`
2026-03-04 07:57:30 -08:00
SkyZeroZx 98eb24cea0 feat(core): Support optional timeout for idle deferred triggers
Allows specifying a timeout parameter for idle-based deferred triggers, enabling more granular control over when deferred actions are executed.

Closes angular#67187
2026-03-04 07:57:30 -08:00
SkyZeroZx 17d3ea44e2 feat(core): add IdleRequestOptions support to IdleService
IdleService now accepts IdleRequestOptions,
enabling configuration of requestIdleCallback behavior in compatible environments.
2026-03-04 07:57:30 -08:00
SkyZeroZx 1f057afaac fix(http): correctly cache blob responses in transfer cache (#67002)
Previously, Blob values were passed to `Uint8Array` this resulted in silently producing an empty array (length = 0) without throwing an error, leading to empty cached data

PR Close #67002
2026-03-04 15:56:59 +00:00
SkyZeroZx aafeb1d2bd refactor(http): Improves base64 encoding/decoding with feature detection (#67002)
Use feature detection for `Uint8Array.prototype.toBase64` and
`Uint8Array.fromBase64`, falling back to the existing implementation
when native support is not available

PR Close #67002
2026-03-04 15:56:59 +00:00
Angular Robot d9e40cb456 build: update dependency jasmine to v6
See associated pull request for more information.
2026-03-03 14:47:00 -08:00
Angular Robot 000100f480 build: update dependency aspect_rules_jasmine to v2.0.4
See associated pull request for more information.
2026-03-03 14:45:41 -08:00
Angular Robot 779f02a5a9 build: update cross-repo angular dependencies to 7ed27f5
See associated pull request for more information.
2026-03-03 14:45:21 -08:00
Krueger01 0e9d58ef09 refactor(compiler-cli): update old angular.io references to angular.dev
Update comment references from the old site angular.io to the new site
angular.dev.
2026-03-03 14:22:20 -08:00
Angular Robot d305a5ec2c build: update cross-repo angular dependencies
See associated pull request for more information.
2026-03-03 14:21:32 -08:00
Andrew Scott 778b748694 refactor(router): Permit deferring commit of traversal navigations
This updates the state manager to allow intercepting and deferring commits of traversal navigations.
The issues that were encountered in the past appear to be resolved in Chrome.
The behavior of redirect is still undefined in this case, so there is an added TODO.
2026-03-03 14:09:11 -08:00
Kristiyan Kostadinov f28b8f621d refactor(compiler-cli): resolve presubmit issues
Resolves issues caught during the presubmit.
2026-03-03 11:02:49 -08:00
Kristiyan Kostadinov f26308813b refactor(compiler-cli): escape quotes used in string expressions
TypeScript has functionality that automatically escapes quotes in string literals. These changes update the places where we may need to do the same ourselves.
2026-03-03 11:02:49 -08:00
Kristiyan Kostadinov b37fce6066 refactor(compiler-cli): delete unused utilities
Deletes utilities that we no longer use.
2026-03-03 11:02:49 -08:00
Kristiyan Kostadinov befbae0dcf refactor(compiler-cli): initial decoupling from TypeScript factory APIs
Initial pass to move usages of TS `factory` APIs to the new `TcbExpr`.
2026-03-03 11:02:49 -08:00
Kristiyan Kostadinov 3828ef1917 refactor(compiler-cli): introduce new primitive for generating TCB code
Introduces the `TcbExpr` class that will be used to generate TCB code without going through TypeScript's factory APIs.
2026-03-03 11:02:49 -08:00
Angular Robot db59e27e1d build: update cross-repo angular dependencies to b1b4bd0
See associated pull request for more information.
2026-03-03 10:36:25 -08:00
Angular Robot 2a11c69d52 build: update cross-repo angular dependencies
See associated pull request for more information.
2026-03-03 09:54:32 -08:00
Andrew Scott b8fb51c462 build(dev-infra): add release automation script for zone.js
This commit introduces a new release automation script for zone.js, located at
packages/zone.js/tools/release.mts.
2026-03-03 09:14:35 -08:00
Sai Kumar Kola 46c996a977 docs: fix side navigation bar foreground colors in both dark and light modes #67379 2026-03-03 09:13:08 -08:00
SkyZeroZx ead6bb1f52 test(http): refactors HTTP client tests to use TestBed and providers
Updates HTTP client, JSONP, and XSRF tests to utilize `TestBed` for setup.
2026-03-03 09:12:36 -08:00
Ben Hong 5955738bc4 docs: modernize testing service guide 2026-03-03 09:11:59 -08:00
Andrew Scott 54f5b32a13 test(core): Adds and uses a waitFor helper
This adds a waitFor utility inspired by tools like testing-library
and convers a zone-based test to the zoneless waitFor
2026-03-03 09:11:22 -08:00
Angular Robot f390e2d6a5 build: lock file maintenance
See associated pull request for more information.
2026-03-03 09:08:23 -08:00
Angular Robot dd7736345f build: update shiki monorepo to v4
See associated pull request for more information.

Closes #67375 as a pr takeover
2026-03-02 13:21:40 -08:00
Angular Robot c90c8a1c70 build: update cross-repo angular dependencies to 2648276
See associated pull request for more information.
2026-03-02 12:22:23 -08:00
Angular Robot fdd2c11406 docs: update cross-repo adev docs
Updated Angular adev cross repo docs files.
2026-03-02 12:19:49 -08:00
Jessica Janiuk 9758ea9ee9 refactor(core): ignore infinite animations in animate api
This ensures that when calculating longest animations, we completely ignore infinite animations. This will prevent mistakes with using the API and hopefully catch any unexpected bugs.

fixes: #67350
2026-03-02 11:40:16 -08:00
Matthieu Riegler a2d5048ff3 docs: update doc for provideZoneChangeDetection
fixes #67209
2026-03-02 11:02:30 -08:00
SkyZeroZx d793ee0bb7 docs: fixed note on event replay 2026-03-02 10:59:17 -08:00
Joey Perrott 787db90e08 ci: update the path to the labeling github actions
Update the paths to the labeling github actions after the refactor in dev-infra
2026-03-02 10:55:54 -08:00
Miles Malerba 2206efa55f feat(core): add special return statuses for resource params
Allows throwing from the resource's params function to transition the
resource to a status other than resolved.

In particular, the following values can be thrown from params:
- `ResourceParamsStatus.IDLE` causes the resource to become `idle`
  (equivalent to returning `undefined`)
- `ResourceParamsStatus.LOADING` causes the resource to become `loading`
- Any `Error` object causes the resource to become `error` and report
  the error that was thrown via `.error()`

To simplify chaining together resources, this PR also introduces a
context object passed into to the `params` functon. This context
contains a `chain` function that can be used to get the value of a
resource that the params want to depend on, while automatically
propagating the idle, loading, and erorr states of the resource forward.
2026-03-02 08:47:14 -08:00
kirjs d2e33e86b9 refactor(forms): address feedback
Refactor the normalizeFormArgs utility to include the internal FieldAdapter
2026-03-02 08:46:43 -08:00
kirjs 985d828f12 refactor(forms): hide adapter in public options
Moves adapter to internal options to prevent exposure but keep compatibility.
2026-03-02 08:46:43 -08:00
Jessica Janiuk 0b59cba85d fix(core): Prevent removal of elements during drag and drop
This addresses a reported issue where elements were being fully removed from the DOM during drag and drop operations.

fixes: #67257
2026-03-02 08:46:09 -08:00
Angular Robot ab1c13fa1e build: update cross-repo angular dependencies to 90e509f
See associated pull request for more information.
2026-03-02 08:42:36 -08:00
Angular Robot 35175b0a8a build: update pnpm to v10.30.3
See associated pull request for more information.
2026-03-02 08:38:47 -08:00