32777 Commits

Author SHA1 Message Date
Andrew Scott 517cde4e4f release: cut the v19.2.13 release 19.2.13 2025-05-23 10:22:48 -07:00
Andrew Scott 2c876b4fc5 fix(common): avoid injecting ApplicationRef in FetchBackend (#61649)
fixes a circular dependency caused by injecting applicationRef

fixes #61644

PR Close #61649
2025-05-23 10:04:10 -07:00
Joey Perrott a6d5479cc7 build: migrate platform-server to rules_js (#61619)
Migrate platform-server to use ts_project and ng_project.

PR Close #61619
2025-05-22 15:34:07 -07:00
Joey Perrott 2a26944974 build: migrate platform-browser and platform-browser-dynamic package to use rules_js (#61624)
Use ts_project and ng_project to build platform-browser and platform-browser-dynamic package

PR Close #61624
2025-05-22 15:32:58 -07:00
Andrew Scott e38cc41cc4 release: cut the zone.js-0.15.1 release (#61632)
PR Close #61632
2025-05-22 14:53:18 -07:00
Joey Perrott d4d4be80a5 build: migrate localize package to use rules_js (#61615)
Use ts_project to build localize package

PR Close #61615
2025-05-22 13:45:27 -07:00
Matthieu Riegler 2ae69f77e7 refactor: ensure tsurge migrations have clear ownership of files (#61612)
This is a patch port of #61421

PR Close #61612
2025-05-22 11:43:48 -07:00
Paul Gschwendtner c101a3aa7d refactor: clean-up deduplication workaround from migrations (#61421) (#61612)
Since the duplication root-cause was solved by the previous commit, we
can revert/drop the logic that was added back then to overcome this
problem with Tsurge.

PR Close #61421

PR Close #61612
2025-05-22 11:43:48 -07:00
Paul Gschwendtner 1a811c9f9d refactor: ensure tsurge migrations have clear ownership of files (#61421) (#61612)
Currently there can be cases, exlusively in 3P, where multiple tsconfig
projects have overlap of source files. This is the default setup of new
CLI applications as well.

When this is the case, Tsurge will treat each tsconfig as an isolated
compilation unit (given the concepts and mental model to support
scalable batching). This is wrong though, and the same `.ts` source file
can appear in two migration invocations; resulting in duplicate
replacements or analysis (depending on the migration).

We've worked around this problem in the past by deduplicating
replacements, or migrating to an ID-based approach with natural
deduplication. This worked, but it's just working around the root cause.

This commit attempts to fix the root cause by adjusting Tsurge to ensure
that no source file ever appears in two compilation units. This is
naively achieved by not adding a source file to a migration unit, if it
was part of a previous one. This is expected to be fine given the nature
of Tsurge migrations that are built to operate on isolated pieces
anyway— so it shouldn't be problematic if e.g. `app.component.ts` ends
up being part of the test tsconfig compilation unit (we avoid this order
though by visiting build targets first).

PR Close #61421

PR Close #61612
2025-05-22 11:43:48 -07:00
Doug Parker 0a51f36d8e release: bump Angular DevTools to version 1.0.32 (#61620)
PR Close #61620
2025-05-22 10:52:18 -07:00
arturovt b15bddfa04 fix(service-worker): do not register service worker if app is destroyed before it is ready to register (#61101)
In this commit, we check whether the application is destroyed before calling `serviceWorker.register(...)`. We should not register the worker because other resources will not be available.

PR Close #61101
2025-05-22 10:02:40 -07:00
Andrew Scott 5f1bd07296 fix(zone.js): classes that extend Error should retain cause property (#61599)
ZoneAwareError previously did not copy the cause property over to the
`this` object when an error extends the native error class.

PR Close #61599
2025-05-21 20:43:10 -07:00
Hakeem 2f5912e80a docs(docs-infra): fix nav items active status is shown for multiple items (#61597)
PR Close #61597
2025-05-21 16:04:27 -07:00
Andrew Scott ac76549d07 release: cut the v19.2.12 release 19.2.12 2025-05-21 12:49:04 -07:00
Joey Perrott b6d7b4bc7b build: remove the "restamping" substitutions from adev shared-docs package (#61585)
Remove the substitutions as they are not actually needed

PR Close #61585
2025-05-21 17:37:53 +00:00
Joey Perrott 6f6e91d52d build: add comment explaining path maps (#61584)
Add a commend explaning why the path mappings are in place.

PR Close #61584
2025-05-21 17:27:19 +00:00
Joey Perrott 3a8bbe990e build: migrate language service to use rules_js (#61578)
Migrate language service to build using ts_project

PR Close #61578
2025-05-21 17:06:33 +00:00
marktechson ec60501ede docs: add new ai setcion to adev (#61583)
This new sections outlines guides, code samples and best practices for building AI apps with Angular.

PR Close #61583
2025-05-21 17:04:16 +00:00
Paul Gschwendtner fc2483e7e9 refactor(compiler): avoid duplication between FactoryTarget type (#61571)
Avoids duplication of the `FactoryTarget` enums. This is necessary
now because we are exposing the previously deeply-imported JIT facade
now via the exports; and the typing integration tests surface a type
conflict due to the different duplicated enums.

PR Close #61571
2025-05-21 16:04:42 +00:00
Paul Gschwendtner 3fcd10912d build: migrate all ng_module in packages/core/test (#61571)
Migrates all `ng_module` to `ng_project` in `packages/core/test/`.

PR Close #61571
2025-05-21 16:04:42 +00:00
Paul Gschwendtner 2ccce30f9e build: migrate all ts_library in packages/core/test (#61571)
This commit migrates all `ts_library` in `package/core/test` to
`ts_project`, and fixes deep module, or relative imports inside.

PR Close #61571
2025-05-21 16:04:42 +00:00
Paul Gschwendtner 8e54b5773f build: move private testing helpers outside platform-browser/testing (#61571)
These helpers are often imported by various tests throughout the
repository, but the helpers aren't exported/exposed from the public
entry-point; even though they confusingly reside in there.

This commit fixes this, and moves the helpers into
`packages/private/testing`. This is a preparation for the `ts_project`
migration where we don't want to leverage deep imports between packages.

PR Close #61571
2025-05-21 16:04:42 +00:00
hirowf 21e5f0723d docs: include bun in packageManager value types (#60907)
PR Close #60907
2025-05-21 15:19:39 +00:00
arturovt 2b1b14f4d3 fix(core): cleanup rxResource abort listener (#58306)
The observable terminates immediately when `error` is called, and no further emissions or completion notifications occur. Thus, we have to remove the `abort` listener in both the `error` and `complete` notifications.

PR Close #58306
2025-05-21 15:17:24 +00:00
arturovt 126efc9972 fix(common): cancel reader when app is destroyed (#61528)
Streams left in a pending state (due to `break` without cancel) may continue consuming or holding onto data behind the scenes. Calling `reader.cancel()` allows the browser or the underlying system to release any network or memory resources associated with the stream.

PR Close #61528
2025-05-21 15:07:19 +00:00
Charles Lyding c78e75d117 docs: add a short redirect for HMR information (#61545) (#61569)
The `https://angular.dev/hmr` URL will now redirect
to the HMR information at the longer URL:
https://angular.dev/tools/cli/build-system-migration#hot-module-replacement
This shorter URL will be used within console messages within the Angular CLI.

(cherry picked from commit 7adbb9c693)

PR Close #61569
2025-05-21 13:43:31 +00:00
PandaByte 3983e5b3e1 docs: fix capitalization error (#61554)
PR Close #61554
2025-05-21 13:42:36 +00:00
Kristiyan Kostadinov 44bb328eae fix(compiler): avoid conflicts between HMR code and local symbols (#61550)
Currently we construct the HMR replacement URL inline by calling into the native `URL` constructor. This can cause conflicts with user code that defines a symbol called `URL`.

These changes resolve the issue by moving the URL construction into a separate function. This has a secondary benefit of making the generated code easier to follow and allowing us to update the URL without changing the compiled code.

Fixes #61517.

PR Close #61550
2025-05-21 12:25:27 +00:00
arturovt 8f9b05eaaa fix(core): cleanup testability subscriptions (#61261)
This commit prevents leaking memory when the application is destroyed and subscriptions are still alive.

PR Close #61261
2025-05-21 12:06:24 +00:00
Jessica Janiuk 0104a69cb8 ci: temporarily disable saucelabs for push jobs (#61559)
This also disables saucelabs for the CI (push) jobs.

PR Close #61559
2025-05-21 11:14:42 +00:00
Jessica Janiuk e4943c6b81 ci: temporarily disable saucelabs (#61556)
Saucelabs is having connection issues

PR Close #61556
2025-05-21 09:59:12 +00:00
Joey Perrott 72b80f9a87 build: migrate router to use rules_js (#61544)
Use ts_project and ng_project for building router

PR Close #61544
2025-05-21 09:55:22 +00:00
Ahmed Hakeem 27f8d3fa16 docs(docs-infra): modify bazel config to include shared docs global styles (#61384)
PR Close #61384
2025-05-21 09:51:48 +00:00
Hakeem 308892eeeb docs(docs-infra): fix docs pages overflow when specific example-viewer exists (#61384)
enforce content to be fluid until a specific max width, and rollback breakpoints to be applied when 1430px is the current win size
as widths between 1430px and 1431px will be broken

PR Close #61384
2025-05-21 09:51:48 +00:00
Joey Perrott 1007079aee build: update compiler-cli to not be stamped when used for the compiler in ng_project (#61539)
The compiler-cli package needs to be unstamped and will the resulting generated code will be stamped as expected.

PR Close #61539
2025-05-21 09:14:35 +00:00
Joey Perrott eac42293cf build: migrate forms to rules_js (#61539)
Migrate forms to use ng_project and ts_project

PR Close #61539
2025-05-21 09:14:35 +00:00
Andrew Scott 107180260f fix(compiler-cli): Always retain prior results for all files (#61487)
This change ensures that prior results for all files are retained even when
a request is made such that we only need a shim for a single file. Prior
to this change, any prior results that were not part of the request were discarded.

PR Close #61487
2025-05-21 08:56:54 +00:00
Charles Lyding 9ce79beb1d docs: update v17 as EOL for current documentation (#61532)
The versioning reference documentation now shows that
Angular v17 has reached EOL and is no longer supported.

PR Close #61532
2025-05-20 20:06:11 +00:00
Alan Agius e6173c3b55 ci: change action: review to action: merge in update docs (#61533)
Simplifies the workflow by reducing the number of required actions for the caretaker or reviewer, similar to Renovate PRs.

PR Close #61533
2025-05-20 20:04:21 +00:00
Matthieu Riegler bb31f6f211 docs(docs-infra): display CLI enum values for enums (#61521)
fixes #61516

PR Close #61521
2025-05-20 16:54:13 +00:00
Joey Perrott d65cfde3fa build: migrate angular-in-memory-web-api to use rules_js (#61524)
Use ts_project and ng_project for building angular-in-memory-web-api

PR Close #61524
2025-05-20 16:53:21 +00:00
arturovt efda872453 fix(common): prevent reading chunks if app is destroyed (#61354)
Prevents processing response chunks after the application has been destroyed.

PR Close #61354
2025-05-20 15:09:45 +00:00
Joey Perrott c43fd3a39c build: migrate common to use rules_js based toolchain (#61434)
Migrate packages/common to use ts_project and ng_project.

PR Close #61434
2025-05-20 15:08:43 +00:00
Matthieu Riegler c0c69a5abc fix(core): unregister onDestroy in toSignal. (#61514)
We cleanup if the observable completes before the onDestroy fires.

fixes #61511

PR Close #61514
2025-05-20 14:43:32 +00:00
Joey Perrott af19705876 docs(docs-infra): fix substitution regex (#61344)
It was replacing `rgba(0,0,0,0)` with `rgba(99.99.99, 0)`

PR Close #61344
2025-05-20 14:26:04 +00:00
Joey Perrott af19d98582 build: move ts_project and ng_project for adev into a macro (#61344)
Move ts_project and ng_project into a macro for adev/ instead of providing a custom
tsconfig on every target

PR Close #61344
2025-05-20 14:26:04 +00:00
Joey Perrott 88d6c43107 build: migrate adev to use ng_project (#61344)
Move all of adev to use ng_project instead of ng_module

PR Close #61344
2025-05-20 14:26:03 +00:00
Jens Kuehlers b641107cf0 docs: replace material.a.io with material.a.dev (#61513)
PR Close #61513
2025-05-20 13:40:44 +00:00
Matthieu Riegler f6b4f72518 Revert "test: replace platform-browser-dynamic with platform-browser (#61495)" (#61510)
This reverts commit 4430423f38.

PR Close #61510
2025-05-20 12:40:27 +00:00
Matthieu Riegler 4430423f38 test: replace platform-browser-dynamic with platform-browser (#61495)
The former isn't needed anymore and is now deprecated.

PR Close #61495
2025-05-20 10:01:35 +00:00