Commit Graph

36616 Commits

Author SHA1 Message Date
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
Angular Robot 73b6135bf5 build: update cross-repo angular dependencies to 9cc4778
See associated pull request for more information.
2026-02-27 09:10:48 -08:00
Angular Robot a8cba4f4fd build: update dependency bazel to v8.6.0
See associated pull request for more information.
2026-02-27 09:09:51 -08:00
Jessica Janiuk 88685cb3b6 fix(core): adds transfer cache to httpResource to fix hydration
This should prevent the microtask problem with hydration and httpResource.

fixes: #62897
2026-02-27 09:09:23 -08:00
Jessica Janiuk e1bc342856 refactor(core): Ensure idle scheduler batching accounts for change detection
This updates the deadline check in requestIdleCallback to ensure change detection properly dirties the views.
2026-02-27 09:08:59 -08:00
Matthieu Riegler 9bb4f02bef build: use different default port for dev-app
Same as ADEV, currently the CLI prompts for another port if 4200 is busy but the toolchain doesn't support prompts.

By defaulting to 4201 we avoid regular CLI apps from preventing to run the dev-app
2026-02-27 09:04:15 -08:00
Angular Robot cda3e8963a build: update cross-repo angular dependencies
See associated pull request for more information.
2026-02-26 14:33:24 -08:00
Matthieu Riegler 03db2aefaa fix(compiler): throw on duplicate input/outputs
inputs & outputs cannot be binded to 2 different directives/components properties

Eg
```
data = model();
dataChange = output(); // throws because model already emits on the `dataChange` output

userSomething = input({alias 'user'});
user = input(); // throws because userSomething already binds to the `user` input
````

fixes #65844

BREAKING CHANGE: The compiler will throw when there a when inputs, outputs or model are binding to the same input/outputs.
2026-02-26 13:47:37 -08:00
Matthieu Riegler 3bc095d508 feat(core): Add a schematics to migrate provideHttpClient to keep using the HttpXhrBackend implementation.
Exisiting applications will be migrated to keep using the XHR backend to prevent any breaking changes. `withXhr()` is to the `provideHttpClient` provider function.
2026-02-26 13:47:02 -08:00
Matthieu Riegler 5c432fb8bb feat(http): Use FetchBackend as default for the HttpBackend implementation
This commit replaces the `XhrHttpBackend` with the `FetchBackend` as the default implementation of the `HttpBackend`.
This introduces a breaking change a the `FetchBackend` does not support the report progress for uploads.

The previous behavior (`HttpXhrBackend`) can be restored by setting `withXhr()` in the `provideHttpClient()` provider function.

DEPRECATED: `withFetch` is now deprecated, it can be safely removed.
BREAKING CHANGE: Use the `HttpXhrBackend` with `provideHttpClient(withXhr)` if you want to keep supporting upload progress reports.
2026-02-26 13:47:02 -08:00
Angular Robot f022530df4 build: update cross-repo angular dependencies
See associated pull request for more information.
2026-02-26 13:42:06 -08:00
Joey Perrott d1ebbbe9bc build: update to latest sha of dev-infra repo
Update to the latest sha of the dev-infra repo
2026-02-26 12:42:14 -08:00
Joey Perrott 385b9485c4 build: update to latest sha of dev-infra repo
Update to the latest sha of the dev-infra repo
2026-02-26 12:22:21 -08:00
Joey Perrott 37b4d16357 ci: set up automated issue labeling
Sets up automated issue labeling action
2026-02-26 12:22:21 -08:00
Angular Robot 6585e4fc4c build: update cross-repo angular dependencies
See associated pull request for more information.
2026-02-26 10:33:01 -08:00
Joey Perrott 078da3cbda ci: set up linting for upcoming agent skills
Add validation/linting on CI for agent skills files
2026-02-26 10:04:26 -08:00
Joey Perrott b4f68acaa1 build: update repository locations for bazel rules
The repositories for `rules_sass`, `rules_angular`, and `rules_browsers`
were recently transferred from devversion to the angular organization.
This commit updates the internal bazel module rules to rely on
the new repository locations.
2026-02-26 09:57:12 -08:00
Angular Robot d0afeba2cb build: update cross-repo angular dependencies
See associated pull request for more information.
2026-02-26 09:43:28 -08:00
Matthieu Riegler 95f12c87aa docs: add info around route level services
fixes #67313
2026-02-26 08:19:59 -08:00
Alan Agius 4c4a3db86a refactor: move several schematics from migrations to ng-generate directories
This are not true migrations
2026-02-26 07:54:04 -08:00
Alan Agius 1102ad74f8 refactor(migrations): remove old schematics migrations
These migrations are not needed for v22.
2026-02-26 07:54:04 -08:00
Matthieu Riegler 7d92d4454b docs: add mention of identity tracking for field iterations
related to #66711
2026-02-26 07:52:55 -08:00