32764 Commits

Author SHA1 Message Date
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
Milo dbd66ec46b refactor(devtools): switch default font to material symbols (#61281)
update from Material Icons to Material Symbols, and use the local
font copy instead of Google fonts to avoid version mismatches

PR Close #61281
2025-05-20 08:53:52 +00:00
Joey Perrott 71989056d8 build: use an unstamped version of compiler-cli for running the angular compiler in ng_project (#61479)
Use an unstamped version of the compiler when it runs in `ng_project` as it will get stamped appropriately
whenever the generated code gets stamped after its usage."

PR Close #61479
2025-05-20 08:46:35 +00:00
Joey Perrott 7f26df1608 build: migrate animations to use rules_js based toolchain (#61479)
Migrate animations to use `ts_project` and `ng_project`

PR Close #61479
2025-05-20 08:46:35 +00:00
Joey Perrott 40534d7de1 build: migrate benchpress to use rules_js (#61486)
Use ts_project to build targets in benchpress package

PR Close #61486
2025-05-20 08:44:55 +00:00
Miles Malerba 1360e4b584 docs: point cdk drag-drop doc links to adev api pages (#61437)
Now that the drag and drop API pages are on adev we can link to those
instead of external linking to material.angular.io

PR Close #61437
2025-05-19 16:04:08 +00:00
Paul Gschwendtner 0a25abaa90 build: --config=debug should not disable sandbox for all actions (#61468)
Instead of disabling sandbox/workers for every action; which also could
slow-down development turnaround significantly, the flag should only
disable sandboxing for the test actions; allowing for e.g. DevTools to
connect to them, even if they are inside the sandbox.

Arguably, this strategy isn't seemingly necessary in all environments,
but given that we enable network sandboxing in this repo, it seems
reasonable. Ideally we'd also expose `_debug` targets for e.g. Node
tests that have the proper no-sandbox, or requires-network tag.

PR Close #61468
2025-05-19 12:36:45 +00:00
Paul Gschwendtner bd2b454faf refactor(migrations): gracefully proceed if reference cannot be resolved (#61426)
A runtime error can surface when TypeScript internally fails to resolve
a reference that is named similar to an input, but no `.d.ts` is
available for it.

See example error:
https://github.com/microsoft/TypeScript/issues/61473#issuecomment-2746537781.

PR Close #61426
2025-05-19 11:04:54 +00:00
arturovt 9aedd30983 refactor(animations): mark non-default new expressions as pure (#61452)
Adds `__PURE__` annotations to non-default `new` expressions to enable tree-shaking, even if they are not referenced. These variables are not dropped when Angular is imported from a module that has `sideEffects` set to `true`.

PR Close #61452
2025-05-19 08:26:57 +00:00
Pawel Kozlowski c856f43b5f refactor(core): move the data store operation out of instructions (#61425)
The view data store operation is not an instruction and shouldn't be
located in the instructions folder.

PR Close #61425
2025-05-19 08:24:47 +00:00
Pawel Kozlowski 1a3351c4f5 refactor(core): move i18n logic into its dedicated package (#61425)
Move the i18n-related logic out of the instructions folder into
the i18n-dedicated folder / package.

PR Close #61425
2025-05-19 08:24:47 +00:00
Matthieu Riegler 7d0db3d247 docs(docs-infra): only show clear button of textfield when there is a text (#61427)
PR Close #61427
2025-05-16 15:57:36 +00:00
Paul Gschwendtner 185b7801ee build: migrate packages/core/schematics to ts_project (#61420)
Migrates `packages/core/schematics` to `ts_project`. As part of this,
this commit cleans up some of the mixed module types and tsconfigs in
the folder. A single tsconfig (and it's test variant) are now used.

For the shipped schematics, we explicitly use the `.cjs` extension, so
that the bundles are properly recognized as CommonJS; even if they are
part of the `type: module` `@angular/core` package.

The `package.json` with `type: commonjs` is removed from
`packages/core/schematics` as it's no longer needed given the explicit
extension & caused issues as schematics are compiled with ESM but are
only later bundled for shipping & some tests as ESM.

PR Close #61420
2025-05-16 15:53:27 +00:00
Paul Gschwendtner f07ef545a7 build: update legacy ESM interop rules to support explicit .js entrypoints (#61420)
As we migrate more and more code to `ts_project`, we are ending up with
`.js` file extensions (ts_library did generate `.mjs` magically).

Since we don't want to get into the business of migrating
`nodejs_binary` targets at this point (in some cases we might)— we
should support pointing to such files.

PR Close #61420
2025-05-16 15:53:27 +00:00