Commit Graph

33026 Commits

Author SHA1 Message Date
Paul Gschwendtner b590dfb8ae build: migrate manual_api_docs to rules_js (#61181)
Migrates `manual_api_docs` to `rules_js`. Since compiler CLI is ESM
compiled but doesn't have extensions, we can either bundle or simply use
the dependency as type only. This is easier and sufficient for this
use-case.

PR Close #61181
2025-05-09 15:59:47 +00:00
Paul Gschwendtner 89c5a4c5af build: migrate compiler-cli/src/ngtsc/docs to ts_project (#61181)
Migrates `compiler-cli/src/ngtsc/docs` to `ts_project`.

PR Close #61181
2025-05-09 15:59:47 +00:00
Paul Gschwendtner b07a2dfce1 build: prepare for compiler-cli to be using ts_project (#61181)
Prepare the compiler-cli package for being ready for migration
to `ts_project`.

PR Close #61181
2025-05-09 15:59:47 +00:00
Alan Agius 83c98ad1b5 ci: restore .npmrc before executing postUpgradeTasks (#61239)
Renovate temporarily modifies the `.npmrc` file during its operations and reverts these changes afterward. However, during `postUpgradeTasks`, the non reverted `.npmrc` will lead to errors when running `yarn bazel sync --only=repo`

See: https://github.com/renovatebot/renovate/discussions/14897

PR Close #61239
2025-05-09 14:25:50 +00:00
Alan Agius 5cecf0d23b ci: update workflow to clone repo with history (#61223)
Tentative fix for:
```
Adding upstream remote: ***github.com/angular-robot/angular.git
origin	https://github.com/angular/angular (fetch)
origin	https://github.com/angular/angular (push)
upstream	***github.com/angular-robot/angular.git (fetch)
upstream	***github.com/angular-robot/angular.git (push)
Pushing 19.2.x from origin to angular-robot upstream...
To https://github.com/angular-robot/angular.git
 ! [rejected]        19.2.x -> 19.2.x (stale info)
error: failed to push some refs to 'https://github.com/angular-robot/angular.git'
```

PR Close #61223
2025-05-08 11:56:59 -07:00
Alan Agius 30761174aa ci: use --force-with-lease when pushing to remote branch (#61222)
Tentative fix for:
```
! [rejected]        20.0.x -> 20.0.x (fetch first)
error: failed to push some refs to 'https://github.com/angular-robot/angular.git'
```

PR Close #61222
2025-05-08 11:33:47 -07:00
Tom Adler 23ee85d071 docs: update the description of example (#61205)
PR Close #61205
2025-05-08 09:57:02 -07:00
Angular Robot 1aeb71c3ea docs: update Angular CDK apis [20.0.x] (#61203)
Updated Angular CDK api files.

PR Close #61203
2025-05-08 09:48:06 -07:00
Vlad Boisa 8a3397c1ee docs: swap the anchor to the correct one (#61200)
The anchor on the link - is not working, swap the anchor to the correct one
PR Close #61200
2025-05-08 09:43:33 -07:00
Miles Malerba 1b56cf1ca5 ci: fix typo in update-cdk-apis job and mark it for megre (#61195)
Updates the name which accidentally remained unchanged from when I
copied it from the CLI help script

Also marks the PR for merge immediately. The caretaker can sanity check
it, approve it, and merge it.

PR Close #61195
2025-05-08 09:42:53 -07:00
Tom Adler 9cb045160a docs: update descriptions of examples (#61207)
PR Close #61207
2025-05-08 09:40:21 -07:00
Alan Agius 5666d2555e ci: fix step name (#61213)
This fixes the name of the step which was previously incorrect

PR Close #61213
2025-05-08 09:27:05 -07:00
Alan Agius 413fa4d26e ci: restrict cross-repo updates to follow only the next tag on main (#61215)
Limits automated cross-repo updates to only follow the 'next' tag when operating on the main branch. This helps avoid unintended updates from other tags and ensures a controlled release process.

PR Close #61215
2025-05-08 09:25:35 -07:00
Paul Gschwendtner 2bd9edf0b2 build: migrate symbol-extractor to ts_project (#61197)
Migrates the symbol-extractor code to `ts_project`.

PR Close #61197
2025-05-08 09:24:30 -07:00
Paul Gschwendtner 051d90a4cc build: remove irrelevant madge circular deps tests (#61197)
We don't need this tooling anymore because we are already validating
that there are no circular dependencies via the `ng-dev` tooling that
checks `.ts` files directly.

Also these tests never actually failed to my knowledge.

PR Close #61197
2025-05-08 09:24:30 -07:00
Alan Agius bad2870073 ci: use bash syntax for CURRENT_BRANCH in GitHub Actions (#61212)
Replaces incorrect use of GitHub Actions expression syntax `${{CURRENT_BRANCH }}` inside a run block with proper bash variablesyntax `$CURRENT_BRANCH`, preventing 'Unrecognized named-value' errors.

PR Close #61212
2025-05-08 16:32:45 +02:00
Alan Agius 2f7e4ebd8d ci: remove redundant dash in workflow file (#61206)
This appears to the reason why the workflow is erroring out that each step is required to have `uses` or `run`
PR Close #61206
2025-05-08 14:41:34 +02:00
Alan Agius 1dece6c813 ci: add workflow to sync non-default branches (#61201)
This workflow addresses a limitation with Renovate's behavior in fork mode.  Renovate does not automatically sync non-default branches in forked repositories.

This workflow automates syncing forked non-default branches with their upstream counterparts.  This ensures Renovate can detect and apply updates to these branches, maintaining up-to-date dependencies across all relevant branches.

PR Close #61201
2025-05-08 13:29:55 +02:00
Andrew Scott 9f432328bb refactor(router): Avoid unnecessary href updates on navigations for routerlink (#60875)
The `RouterLink` href does not depend on the state of the router unless
it uses the `fragment` or `queryParams`. This doesn't bother
unsubscribing from the events if the inputs change in a way to no longer
depend on those values since inputs changing is quite rare (and even
more rare for query params handling or preserveFragment to change).

PR Close #60875
2025-05-07 11:31:09 -07:00
Andrew Scott 2c5ed5109f refactor(router): Update RouterLink href to use host binding and signals (#60875)
This commit updates the method of setting the href attribute on
`RouterLink` to use built in host binding rather than custom attribute
setting and sanitization. The advantage here would be automatic handling
of the sanitization and avoiding of writing the same value to the DOM
that we had before.

This change does mean that we _always_ write to the href attribute where
before we only wrote to it when the elemnt was known to support `href`.
That said, the implementation attempts to retain behavior that is as
close as possible: the original value of `href` is used and never updated.

PR Close #60875
2025-05-07 11:31:09 -07:00
Jan Martin 9678a30c43 docs: document preventDefault() behavior for event listeners (#61184)
The `false` behavior has existed for a long time but hasn't really
been documented. It's also not _quite_ what the browser would do.

Finally, the page explicitly discourages the implicit `false` way
of preventing default. Biggest motivation (beyond code clarity) are
potential footguns like `(click)="myProp=x()"` which happens to prevent
default behavior iff `x()` happens to return `false`.

Fixes https://github.com/angular/angular.io/issues/2568

PR Close #61184
2025-05-07 11:21:46 -07:00
Matthieu Riegler 886d462ebc docs: update versions support for v20 (#61180)
PR Close #61180
2025-05-07 11:20:47 -07:00
Tom Adler 09af19a8b9 docs: fix case of variable name (#61177)
PR Close #61177
2025-05-07 11:19:57 -07:00
Angular Robot e13bf69c88 docs: update Angular CDK apis [20.0.x] (#61161)
Updated Angular CDK api files.

PR Close #61161
2025-05-07 11:19:04 -07:00
cexbrayat 5aaeecc7bd docs: update references of afterEveryRender (#61159)
Since `afterRender` has been renamed `afterEveryRender`, some docs needed to be updated.

PR Close #61159
2025-05-07 11:17:56 -07:00
Matthieu Riegler 0b1428e960 docs(docs-infra): Version info are pulled from an json file. (#60870)
It should pull the file from the main adev site and fallback to local data is anything goes wrong

PR Close #60870
2025-05-07 11:13:56 -07:00
Andrew Kushnir ea87eb48ec release: cut the v20.0.0-rc.0 release 20.0.0-rc.0 2025-05-07 10:52:29 -07:00
Alan Agius 803c94c272 ci: enable Renovate on main and 20.0.x branches (#61160)
Dependency updates can no longer be cherry-picked due to hash changes in Aspect lock files. This commit enables Renovate to run directly on the `main` and `20.0.x` branches.

PR Close #61160
2025-05-07 10:44:10 +02:00
Vlad Boisa 4b365c7908 docs: fix non-working link (#61131)
Swap non-working @link to just usual `` link to work


Same like #61011
PR Close #61131
2025-05-06 14:11:27 -07:00
Miles Malerba 2d9eaeefa6 docs: update rendering to use generated repo link (#61130)
PR Close #61130
2025-05-06 14:07:32 -07:00
Miles Malerba 67adcd8c9b docs: update API generation to include repo name (#61130)
PR Close #61130
2025-05-06 14:07:32 -07:00
Matthieu Riegler 6cd5d8ebdc fix(devtools): support defer blocks in IdentityTracker (#61139)
This reverts the fix of #61080 which wasn't adequate.

PR Close #61139
2025-05-06 13:44:37 -07:00
Joey Perrott 70f959b3bd ci: migrate node target version for deploy script to node20 (#61149)
Migrate the generated script to target node20 which is already the environment we run the action in.

PR Close #61149
2025-05-06 13:39:35 -07:00
Joey Perrott 4eb36373b0 build: migrate documentation site deploy script to use ts_project (#61149)
Migrate to the new toolchain

PR Close #61149
2025-05-06 13:39:35 -07:00
Alan Agius 9793693f5b refactor: add Node.js 24 as supported version (#61142)
Node.js 24 has been released https://nodejs.org/en/about/previous-releases

Closes: #61140

PR Close #61142
2025-05-06 13:38:25 -07:00
Joey Perrott 9f4830e000 build: update tslint configuration (#61146)
Update the configuration for tslint

PR Close #61146
2025-05-06 13:35:27 -07:00
Andrew Kushnir 8898328608 Revert "docs(docs-infra): fix first-app intro example (#61042)" (#61145)
This reverts commit ab91a355f8.

Revert reason: the change causes CI to fail (the `lint` CI job).

PR Close #61145
2025-05-06 11:06:24 -07:00
Tom Adler 121e0e6b9f docs: fix whitespace after a link (#61136)
PR Close #61136
2025-05-06 10:25:51 -07:00
Alan Agius 2b7aa9172f ci: add interop pnpm and aspect files to fileFilters (#61138)
This change will force these files to be committed.

PR Close #61138
2025-05-06 09:11:07 -07:00
Angular Robot 1bee10ccc3 build: update github/codeql-action action to v3.28.17 (#61134)
See associated pull request for more information.

PR Close #61134
2025-05-06 09:09:58 -07:00
Jan Martin bc31ad91a0 fix(platform-server): less aggressive ngServerMode cleanup (#61106)
Other code may depend on `ngServerMode` and it might have been set
globally / via a bundler. Forcing it to `undefined` in those situations
can lead to hard debug issues where the only symptom is that "suddenly"
browser-specific code paths run on the server and (obviously) break.

PR Close #61106
2025-05-06 09:08:50 -07:00
Matthieu Riegler 116a97a031 docs(docs-infra): fix first-app intro example (#61042)
fixes #60844

PR Close #61042
2025-05-06 09:07:28 -07:00
Alan Agius ff943e310d docs: update ssr docs to include prerendering wildcards (#61116)
This feature was introduced in version 20.

PR Close #61116
2025-05-05 17:02:29 -07:00
Angular Robot 3b3466a732 build: update rules_angular digest to 42d4791 (#61126)
See associated pull request for more information.

PR Close #61126
2025-05-05 15:36:39 -07:00
Joey Perrott 63d10dc879 build: fix the lockfiles (#61127)
Fix the lock files for the npm_translate

PR Close #61127
2025-05-05 11:54:21 -07:00
Angular Robot d8d4ee2f2d build: update rules_angular digest to 3ba9d67 (#61124)
See associated pull request for more information.

PR Close #61124
2025-05-05 09:24:35 -07:00
Andrew Scott 33f2ea83fc refactor(core): Remove use of private export PendingTasksInternal where possible (#61049)
This commit removes the use of the privately exported
PendingTasksInternal everywhere except for Router. A follow-up change
will be done to remove that one as well and delete the private export.

PR Close #61049
2025-05-05 08:56:20 -07:00
Klaas Cuvelier aa11d3d8a7 docs(router): update typing for skipLocationChange in RedirectCommand example (#61119)
The example for the RedirectCommand used a string for skipLocationChange, changed this to a boolean

PR Close #61119
2025-05-05 08:47:52 -07:00
oliv37 7ec40db118 docs(docs-infra): update use production configuration (#61112)
PR Close #61112
2025-05-05 08:45:03 -07:00
Miles Malerba c9ffcb145c docs: hide entries that are marked @docs-private (#61104)
PR Close #61104
2025-05-05 08:43:30 -07:00