33578 Commits

Author SHA1 Message Date
Andrew Kushnir b2076fad07 release: cut the v20.0.7 release 20.0.7 2025-07-09 11:59:12 -07:00
Paul Gschwendtner ce958e070e refactor(compiler): fix import manager to be closure property renaming-compatible (#62517)
The `generateUniqueIdentifier` helper relies on the internal `identifiers` property of a `ts.SourceFile`.
As this is not a public-facing API, it is not included in the externs provided to Closure Compiler.
Consequently, it is susceptible to being renamed during advanced optimizations, which would lead to runtime failures.

To prevent this, the property is now accessed via a string literal (`sf['identifiers']`). This change ensures that
the property name is preserved through the compilation process. An explanatory comment has been added to clarify the
necessity of this approach for future reference.

PR Close #62517
2025-07-08 11:31:08 +00:00
Paul Gschwendtner 403ba91327 refactor(compiler): ensure compiler passes closure conformance checks (#62500)
This commit adjusts some code of the compiler that currently results in
conformance checks failures with JSCompiler/Closure.

PR Close #62500
2025-07-07 16:14:16 +00:00
Kristiyan Kostadinov 2c18043240 fix(compiler-cli): use proper name for diagnostic type (#62479)
Currently when a diagnostic happens in a template, we always say "Error occurs in ...", however we have other types of diagnostics as well.

PR Close #62479
2025-07-07 15:29:38 +00:00
Paul Gschwendtner 5fca07c5a2 refactor(compiler-cli): ensure mock file system can be loaded in the browser (#62493)
The mock file system currently relies on some NodeJS logic. This blocks
the convenient use of the mock file system in the browser. The file
system is useful for creating tests to verify e.g. that our transforms
can work in the browser.

PR Close #62493
2025-07-07 12:59:26 +02:00
Paul Gschwendtner 20724e64d9 refactor: fix closure compatibility errors in compiler (#62493)
The static fields may be part of advanced compilations where the
receiver would change as part of the static field collapsing
optimization.

The optimization requires us to use the explicit class name, over
`this` that would change to e.g. `globalThis`.

PR Close #62493
2025-07-07 12:59:26 +02:00
Michael DeRazon 434508fd04 docs: fix typo on guidelines file (#62468)
Correct a minor spelling mistake in the documentation to improve clarity.

PR Close #62468
2025-07-04 11:01:06 +00:00
Paul Gschwendtner aa04a4a22f refactor(migrations): ensure tsurge can properly emit references in g3 (#62447)
Currently when Tsurge runs in g3, it creates a bare bones Angular
compiler plugin. The tsconfigs from compilation units may set options
like "useHostForImportGeneration", but the Ngtsc logic doesn't enable
because the `fileNameToModuleName` method is not defined on the host.

This can break reference emission for Tsurge analyzers/programs and
result in subtle differences to real `ng_module` compilations. This
commit fixes this by making the method available in 1P Tsurge.

Notably, reference emission can occur during analysis— so even if
migrations aren't "emitting TS -> JS" output.

PR Close #62447
2025-07-03 09:36:17 +00:00
Matthieu Riegler 321e1b9e3f docs(docs-infra): Load of the typing files from Angular. (#62424)
Following some infra changes, DTS files are now splitted over several files, which aren't referenced in the `package.json` but are directly imported in the root dts.

We chose to not use ATA here because it only pulls the latest version from a CDN whereas we prefer to use the local definitions we have in the `node_modules` of the tutorial.

fixes #62374

PR Close #62424
2025-07-03 09:35:36 +00:00
Jessica Janiuk ade8ddd0a1 ci: update pullapprove reviewers (#62448)
This sets some people to be reviewers, but not actively requested to account for availability.

PR Close #62448
2025-07-03 09:15:20 +00:00
Matthieu Riegler 5901a230af docs: display deprecation message for top most symbol (#62427)
For classes, types, functions, enums etc.

fixes #62365

PR Close #62427
2025-07-03 08:35:02 +00:00
Shuaib Hasan Akib a7ce3cc80f refactor(docs-infra): removed unused imports (#62441)
Cleans up instances of unused imports in a few shared docs components.

PR Close #62441
2025-07-03 08:11:45 +00:00
Shuaib Hasan Akib a4f6720ebe refactor(docs-infra): cleanup lines in scss (#62438)
Cleans up some of the scss code.

PR Close #62438
2025-07-03 08:11:09 +00:00
jstnjs 4c332c39c9 docs: fix formatting (#62400)
PR Close #62400
2025-07-02 16:56:25 +00:00
jstnjs 8e2d56b984 docs: fix dynamic form reactivity (#62400)
PR Close #62400
2025-07-02 16:56:25 +00:00
Shuaib Hasan Akib 6016e4f782 docs(docs-infra): replace deprecated RouterTestingModule with RouterModule.forRoot([]) (#62364)
PR Close #62364
2025-07-02 16:52:32 +00:00
Jessica Janiuk e0e78fe9c0 Revert "fix(service-worker): update service worker to handle seeking better for videos (#60029)" (#62422)
This reverts commit c663277df6.

PR Close #62422
2025-07-02 07:50:15 +00:00
Jessica Janiuk 5766ba6a5e release: cut the v20.0.6 release 20.0.6 2025-07-01 18:40:02 +02:00
Matthieu Riegler 9cd1c4263c docs: update breaking change for nullish coalesching + parenthesis (#62382)
This breakages was introduced by #60169

fixes #62375

PR Close #62382
2025-07-01 09:34:22 +00:00
Angular Robot bf881cc7bd build: update github/codeql-action action to v3.29.2 (#62394)
See associated pull request for more information.

PR Close #62394
2025-07-01 08:25:36 +00:00
Angular Robot a20799571a build: update dependency @types/node to v24.0.8 (#62393)
See associated pull request for more information.

PR Close #62393
2025-07-01 08:25:00 +00:00
Angular Robot 7c82f26c5e build: lock file maintenance (#62369)
See associated pull request for more information.

PR Close #62369
2025-06-30 09:25:01 +00:00
Angular Robot 4bc8187b7e build: update all non-major dependencies (#62356)
See associated pull request for more information.

PR Close #62356
2025-06-30 08:47:31 +00:00
Shuaib Hasan Akib 85d6474d8c refactor(core): update NG0303 error message (#62363)
This adds mention of the `input()` signal function
to the error message.

PR Close #62363
2025-06-30 08:15:12 +00:00
Joan a06ec75735 docs: fix broken link on assertNotInReactiveContext ref page (#62360)
PR Close #62360
2025-06-30 08:13:45 +00:00
Veerabhadra Rao Chikka e145a83bb0 docs: update router read-route-state.md file (#62367)
ActivedRoute variable name updated to route

PR Close #62367
2025-06-30 08:05:47 +00:00
aliroshandev db68645570 docs: fix syntax error in tutorial (#62361)
PR Close #62361
2025-06-30 07:58:20 +00:00
Angular Robot 5edbb5429c build: update rules_browsers digest to 800d91c (#62359)
See associated pull request for more information.

PR Close #62359
2025-06-30 07:43:55 +00:00
Angular Robot 175e4802b8 build: update cross-repo angular dependencies (#62350)
See associated pull request for more information.

PR Close #62350
2025-06-30 07:42:15 +00:00
Joey Perrott 8d581502ca build: migrate modules to use @rules_browsers protractor rules (#62345)
Use the protractor rules from `@rules_browsers` for the module directory.

PR Close #62345
2025-06-27 22:27:52 +00:00
Jan Martin 0866077c31 ci: add jkrems to pullapprove (public-api) (#62340)
Allow jkrems to (co-)approve public-api changes.

PR Close #62340
2025-06-27 18:37:01 +00:00
Michael Small c0532f0ce5 docs: add page NG8115 (uninvokedTrackFunction) (#61962)
Pull request that added the diagnostic:

https://github.com/angular/angular/pull/60495

PR Close #61962
2025-06-27 11:54:42 +00:00
Angular Robot 82cdd5ce24 build: update github/codeql-action action to v3.29.1 (#62332)
See associated pull request for more information.

PR Close #62332
2025-06-27 11:23:59 +00:00
Angular Robot 84fe149dc7 build: update cross-repo angular dependencies (#62330)
See associated pull request for more information.

PR Close #62330
2025-06-27 11:21:21 +00:00
Angular Robot 74004f60ef build: update rules_sass digest to cc1e845 (#62328)
See associated pull request for more information.

PR Close #62328
2025-06-27 10:31:22 +00:00
Joey Perrott e3103fe60d build: migrate devtools to use new sass ruleset (#62298)
Use the new sass ruleset for bazel sass building in devtools

PR Close #62298
2025-06-27 09:26:16 +00:00
Joey Perrott 3e0437f902 build: migrate adev to use new sass ruleset (#62298)
Use the new sass ruleset for bazel sass building in adev

PR Close #62298
2025-06-27 09:26:16 +00:00
Angular Robot 41230e6719 build: update dependency marked to v16 (#62322)
See associated pull request for more information.

PR Close #62322
2025-06-27 08:59:58 +00:00
Angular Robot 308c82d87b build: update all non-major dependencies (#62324)
See associated pull request for more information.

Closes #62321 as a pr takeover

PR Close #62324
2025-06-27 08:35:53 +00:00
Matthieu Riegler ac7fe2c6f2 docs: remove list of APIs with a providers array. (#62296)
fixes #62295

PR Close #62296
2025-06-27 07:45:24 +00:00
Jessica Janiuk 5c2a9426e4 ci: restore flamegraph dep (#62304)
The flamegraph dep was fixed upstream.

PR Close #62304
2025-06-27 07:23:19 +00:00
Angular Robot ff37af9f76 build: update cross-repo angular dependencies (#62313)
See associated pull request for more information.

PR Close #62313
2025-06-27 07:21:12 +00:00
Joey Perrott 6a4263a186 build: migrate to @devinfra for toolchains (#62302)
Migrate the toolchains we depend on to use @devinfra instead of @npm//

PR Close #62302
2025-06-27 07:19:19 +00:00
Joey Perrott 69ddabb11c build: migrate integration tests to use @devinfra dependencies (#62302)
Use @devinfra// dependencies for integration tests

PR Close #62302
2025-06-27 07:19:18 +00:00
Can Özkan 69c8a24662 docs: use correct link for best-practices.md (#62306)
PR Close #62306
2025-06-27 07:18:46 +00:00
Joey Perrott 31e3eb20f9 build: migrate to use web test runner rules (#62294)
Migrate karma tests throughout the repo to use the new web test runner based rule instead

PR Close #62294
2025-06-26 17:20:49 +00:00
anastasiaanisimova 8955ed2c53 docs: fix deferrable views doc links (#62293)
PR Close #62293
2025-06-26 14:34:45 +00:00
arturovt a3c246abae refactor(common): remove redundant ɵloadImpl check in client bundles (#62191)
In this commit, the conditional branching around `ɵloadImpl` is removed from client-side code, as `ɵloadImpl` is never defined in client bundles. This makes the logic simpler and improves tree-shaking, allowing the `from()` import to be dropped from the common bundle in browser builds.

PR Close #62191
2025-06-26 12:02:51 +00:00
arturovt fb7bfa6149 refactor(common): replace forEach with index loop for Domino compatibility (#62290)
In this commit, the use of `images.forEach` was replaced with a traditional `for (let i = 0; ...)` loop to ensure compatibility with Domino. Domino may return a custom internal data structure (e.g., a lazily evaluated query result) that does not fully support standard iteration protocols like `forEach` or `for...of`.

Naturally, this would never happen in any browser. It occurs only in unit tests when using `renderApplication()`, because Domino's `querySelectorAll` returns the following:

```js
var nodes = select(selector, context);
return nodes.item ? nodes : new NodeList(nodes);
```

In certain unit tests, it returns an object like:
`{ root: document, filter: function(e) { ... }, lastModTime: 1, done: true, cache: [] }`,
which means that the object does not have a `forEach` method.

As a result, this causes an `afterAll` error: `forEach is not a function`.

PR Close #62290
2025-06-26 12:01:37 +00:00
Jessica Janiuk bee0409525 ci: remove artifacts job (#62291)
Remove the artifacts job.

PR Close #62291
2025-06-26 12:01:00 +00:00