33988 Commits

Author SHA1 Message Date
Andrew Scott b16de050be release: cut the v20.1.7 release 20.1.7 2025-08-13 13:11:39 -07:00
Jeremy Elbourn 774b225212 docs: add rxjs-interop section for rxResource (#63125)
This commit adds brief documentation for `rxResource` to the "Using
Angular with RxJS" guide. The only available documentation for
`rxResource` today is the API reference, which lacks any code examples.

PR Close #63125
2025-08-13 09:29:34 -07:00
cexbrayat 2c12f2a8b0 docs: update best-practices (#63132)
This removes the common pitfall for if blocks in the best practices, as this is no longer true in Angular v20.2, see angular/angular@a409534

PR Close #63132
2025-08-13 09:20:31 -07:00
Jeremy Elbourn 538df44578 docs: add topic for takeUntilDestroyed (#63122)
This was missing from the RxJS interop guide. I came across it while
cleaning up some Google-internal docs and realized I had nothing on adev
to which I could link.

PR Close #63122
2025-08-12 18:41:19 -07:00
Paul Gschwendtner 5e9893daa0 refactor(compiler-cli): ensure JIT transforms with queries work with closure property renaming (#63123)
This map for the JIT transforms accidentally is property-renamed,
breaking the lookups below. This commit fixes this.

PR Close #63123
2025-08-12 13:24:09 -07:00
Jeremy Elbourn bb5a69c43c fix(docs-infra): put content in <main> element (#63121)
This fix updates the adev `DocViewer` component to support rendering with the `main[docsViewer` selector so that the primary content for the page is inside of a `<main>` element (without introducing an extra DOM element).

PR Close #63121
2025-08-12 11:05:15 -07:00
Matthieu Riegler f251c7d39f docs: add missing supported != operator (#63108)
fixes 63103

PR Close #63108
2025-08-12 09:39:07 -07:00
Matthieu Riegler e6c84a4a12 refactor(zone.js): remove unused jasmine globalerror monkey patching. (#63077)
This is for testing purposes for now. See discussion on the related issue.

fixes #63072

PR Close #63077
2025-08-11 16:41:11 -07:00
Matthieu Riegler 1dd6fd044a refactor(core): remove temporary resource setter function. (#63097)
Now that G3 has been fully migrated to the new throwing behavior, we don't need that setter anymore.

PR Close #63097
2025-08-11 15:43:47 -07:00
Matthieu Riegler fdce7e20d9 docs: remove router testing from the testing scenarios guide (#63078)
This commit also adds the router testing guide to the testing section

PR Close #63078
2025-08-11 12:15:40 -07:00
Kristiyan Kostadinov d9e37908a5 fix(compiler): incorrect spans for AST inside input value with leading space (#63082)
When parsing expressions inside a bound attribute, we offset all of its spans by an `absoluteOffset` in order to get the right spans in the source file. The offset was incorrect when parsing an attribute with leading spaces during the construction of the Ivy AST, because of the combination of:
1. We were setting the offset by looking at `valueSpan.start`.
2. The Ivy parser sets `leadingTriviaChars: [' ', '\n']` which means that spaces and new lines will be ignored in the `sourceSpan.start`.

These changes resolve the issue by using `valueSpan.fullStart` which includes the leading spaces.

Fixes #63069.

PR Close #63082
2025-08-11 11:57:06 -07:00
Alan Agius 53297c0776 ci: several fixes for renovate (#63083)
This commit contains several fixes for renovate to work properly with `pnpm`

PR Close #63083
2025-08-11 11:03:30 -07:00
Joey Perrott b72ef65b08 build: update to the latest version of devinfra and rename npm2 workspace (#63093)
Rename the npm2 workspace to npm and use the latest version of devinfra which drops rules_nodejs

PR Close #63093
2025-08-11 10:35:33 -07:00
Kristiyan Kostadinov 5fd79424e3 fix(router): attempt to resolve component resources in JIT mode (#63062)
In #62758 we started loading the component resources during bootstrap in JIT mode to ensure that they're in place by the time we create the component. This won't work for lazy-loaded components in the router, because they don't exist at bootstrap time.

These changes add similar logic when the router loads a component.

PR Close #63062
2025-08-08 14:18:22 -07:00
Shuaib Hasan Akib 63aa602796 docs(docs-infra): add next page reference (#62566)
PR Close #62566
2025-08-08 11:06:35 -07:00
Matthieu Riegler 322042c5b3 fix(core): destroying the effect on afterRenderEffect (#63001)
Prior to this commit, the effect node wasn't destroyed.

fixes #62980

PR Close #63001
2025-08-08 08:46:47 -07:00
Kristiyan Kostadinov 4aa120ac00 fix(compiler-cli): error when type checking host bindings of generic directive (#63061)
Fixes that the compiler was throwing an error if type checking of host bindings is enabled for a generic directive. The problem was that we were always using the `TcbNonGenericDirectiveTypeOp`.

Fixes #63052.

PR Close #63061
2025-08-08 08:42:24 -07:00
Andrew Scott f6876d7c30 refactor(zone.js): Add internal implementation for auto ticking fakeAsync (#62135)
Benefits of auto-ticking mock clocks have been described in other PRs,
such as https://github.com/jasmine/jasmine/pull/2042 and
https://github.com/sinonjs/fake-timers/pull/509. In short, `fakeAsync`
cannot work when some tasks are required to be truly async, such as XHRs
or observers like ResizeObserver. In addition, auto ticking mock clocks
can be applied to tests without the tests then needing to update
everything to manually flush timers.

PR Close #62135
2025-08-08 08:39:25 -07:00
Joey Perrott bba7c6fed5 build: remove unused old toolchain dependencies (#63039)
Update to latest version of dev-infra and complete the removal of rules_nodejs from the repo

PR Close #63039
2025-08-07 09:31:46 -07:00
Doug Parker 8f234ffb7a docs(devtools): update pnpm install command (#63040)
The `install` subcommand is necessary for `--frozen-lockfile` to work.

PR Close #63040
2025-08-07 09:11:23 -07:00
Cheng-Hsuan Tsai aeb878bbc4 docs(docs-infra): fix inconsistent codeblock styles (#63041)
PR Close #63041
2025-08-07 09:09:22 -07:00
Andrew Scott 0430a56f1d release: cut the v20.1.6 release 20.1.6 2025-08-06 12:03:32 -07:00
Joey Perrott 847de40196 build: explicitly include types for locales in @angular/common/locales (#63030)
Include the d.ts files for each local in the @angular/common/locales files

PR Close #63030
2025-08-06 11:44:34 -07:00
Ben Hong 6a3d2a0bd8 docs: add dedicated router testing guide (#62445)
PR Close #62445
2025-08-06 16:47:23 +02:00
Joey Perrott 711e06ca67 build: correct the snapshot build script now that zone.js does not create a tar file (#63021)
No longer create and copy a tar file for zone.js snapshot builds.

PR Close #63021
2025-08-06 16:45:37 +02:00
Kristiyan Kostadinov 7f6c39ae31 release: cut the v20.1.5 release 20.1.5 2025-08-06 16:37:29 +02:00
robertIsaac 9f7cb08ca4 docs: update binding.md to use signals (#62606)
PR Close #62606
2025-08-06 15:11:15 +02:00
SkyZeroZx 974ba1066f refactor(service-worker): improve localhost detection in scheduleInitialization (#62861)
Replaces ad hoc localhost check with a dedicated method using a regular expression for more reliable detection

PR Close #62861
2025-08-06 15:09:57 +02:00
Amila Welihinda fd373f2ddd refactor(animations): optimize resolveTimeExpression (#62927)
This moves a regexp expression into a const to optimize performance.

PR Close #62927
2025-08-06 15:09:19 +02:00
Milo 294fc880e4 refactor(devtools): enable view source for template effects (#62692)
Use inspect(class instance.constructor) to jump to the source of
components when trying to inspect template effects

PR Close #62692
2025-08-06 11:19:15 +02:00
Ben Hong 12fe5f6293 docs: update router transition animation guide (#62858)
PR Close #62858
2025-08-06 11:18:39 +02:00
Joey Perrott 23ef448afa ci: use pnpm silent mode for perf action list job (#63014)
Use silent mode for the perf action list creation job

PR Close #63014
2025-08-05 19:17:35 +00:00
Joey Perrott 26f99b3dcd build: migrate all npm packages to use new rules_js based npm_package rule (#62989)
Use a common rule for all npm_packages

PR Close #62989
2025-08-05 19:09:26 +00:00
Joey Perrott 0aadf04a32 build: update diff-release-package tooling (#62989)
Update the diff release package tooling to better handle failures

PR Close #62989
2025-08-05 19:09:26 +00:00
Jeremy Elbourn c966746c62 docs: add context7.json config (#63000)
Context 7 is a popular tool for providing context to LLM-based coding tools. This config file tells Context 7 which parts of the repo are relevant for these LLM-based dev tools. See https://github.com/upstash/context7/blob/master/docs/adding-projects.md.

PR Close #63000
2025-08-05 18:15:39 +02:00
Joey Perrott 16a4d80745 build: no longer rely on archive packages for integration tests (#62997)
Now that the packages are avaiable at the base node_modules we can treat local packages as normal packages and not leverage the archive package versions

PR Close #62997
2025-08-05 10:12:34 +02:00
Paul Gschwendtner c9f3976eba fix(core): properly recognize failed fetch responses when loading external resources in JIT (#62992)
Currently when loading external resources in JIT, when `fetch` fails,
the `text` is empty and the component is loading. This hides the actual
underlying fetch error. We should properly detect this and error out.

PR Close #62992
2025-08-05 10:10:57 +02:00
Joey Perrott 8cd716644b build: drop usage of pkg_web (#62993)
Drop usages of pkg_web as it comes from our previous toolchain

PR Close #62993
2025-08-05 10:09:51 +02:00
Matthieu Riegler 82c2557f9c docs: Update best-practices (#62988)
From the latest version we have on the CLI repo.

PR Close #62988
2025-08-05 10:08:07 +02:00
muhammadali1658 bccc8c8d7d docs: Fix typos in zoneless documentation (#62985)
PR Close #62985
2025-08-05 10:07:00 +02:00
Kristiyan Kostadinov 3b2e8efcac fix(compiler-cli): correctly type check host listeners to own outputs (#62965)
Currently the code that type checks host bindings assumes that all listeners are bound to the DOM, however that's not the case since host bindings can also bind to own outputs.

These changes update the TCB to generate the proper code for type checking such outputs.

Fixes #62783.

PR Close #62965
2025-08-05 10:04:26 +02:00
Kristiyan Kostadinov 17c110e618 refactor(compiler): allow directives to be resolved on host element (#62965)
Allows the target binder to resolve directives set on the host element.

PR Close #62965
2025-08-05 10:04:26 +02:00
SkyZeroZx e0d436ad6c docs: Adds docs on handling redirect info in interceptors (#62968)
PR Close #62968
2025-08-04 11:41:24 +02:00
Matthieu Riegler 3cbfc6759b docs: disable stackblitz examples (#62972)
This isn't supported ATM.

PR Close #62972
2025-08-04 11:39:38 +02:00
Joey Perrott c120bb332b ci: use new version of pnpm-lock.yaml file during renovate (#62957)
Use the newly updated pnpm_lock.yaml file during renovate post upgrade runs

PR Close #62957
2025-08-04 11:39:06 +02:00
Joey Perrott c2b48bee2f build: move to pnpm version 9.15.9 (#62951)
Use pnpm version 9.15.9 to match the rest of the organization

PR Close #62951
2025-08-01 14:22:32 +00:00
Angular Robot f700bd9cd7 build: update pnpm to v10.14.0 (#62946)
See associated pull request for more information.

PR Close #62946
2025-08-01 13:25:35 +00:00
Matthieu Riegler 3a8fa72d20 build: replace docs script with adev (#62944)
`pnpm docs` is a dedicated command to open a package docs.

PR Close #62944
2025-08-01 12:39:38 +00:00
Angular Robot b99c3e951a build: update dependency node to v22.18.0 (#62945)
See associated pull request for more information.

PR Close #62945
2025-08-01 12:37:10 +00:00
Matthieu Riegler ac2bdd39a1 ci: remove lockfile sync (#62948)
This is no longer necessary

PR Close #62948
2025-08-01 12:36:34 +00:00