Commit graph

31655 commits

Author SHA1 Message Date
robertIsaac
ea4acaf9eb docs(core): Update linked-signal.md (#58756)
fix multiple issues with the existing code
1. `shippingOptions` was accessed without `this.` which produces error in realtime
2. the logic in calculating of the item exist or not was not correct since it was comparing the object to the id
3. I'm not sure why, but step 3 fail without stating typing for LinkedSignal, so I added it

PR Close #58756
2024-11-28 17:39:21 +01:00
Gustav Blomqvist
0a56d82900 docs(core): grammatical fix (#58204)
PR Close #58204
2024-11-28 17:38:35 +01:00
Hakeem
bc6efa758d docs(docs-infra): fix the overscroll behavior of the search dialogue (#58948)
since the dialogue shows on top of other scrollable elements of the page, then the overscroll behavior should be contain for better UX.

Resloves: #58947

PR Close #58948
2024-11-28 17:37:21 +01:00
Matthieu Riegler
dabbeb6498 docs(docs-infra): don't use URL to check for external links (#58955)
For perf reasons, it is more efficient to not rely on creating an `URL` object. Instead we check for the explicit protocol to detect external links.

This will also force us to use relative links, so archived versions & next versions navigate on the current version of the site.

fixes #58954

PR Close #58955
2024-11-28 16:43:28 +01:00
arturovt
e86b179a01 refactor(core): preventing resolving renderer factory every tick (#58618)
Prevents the `RendererFactory2` from being resolved each time the tick runs, as it only needs to be requested once.

PR Close #58618
2024-11-28 15:17:28 +01:00
hawkgs
293dce929d docs(docs-infra): remove redundant nav menu items from the DOM in the reference (#58934)
The DOM is cluttered with a lot of nav item UL-s that are not visible to the end user due to the usage of multiple docs-navigation-list instances that render the full navigation tree recursively instead of only the preselected visible levels.

PR Close #58934
2024-11-28 10:14:52 +01:00
Kristiyan Kostadinov
9f99196d23 fix(compiler-cli): account for multiple generated namespace imports in HMR (#58924)
The current HMR compiler assumes that there will only be one namespace import in the generated code (`@angular/core`). This is incorrect, because the compiler may need to generate additional imports in some cases (e.g. importing directives through a module). These changes adjust the compiler to capture all the namespaces in an array and pass them along.

Fixes #58915.

PR Close #58924
2024-11-28 10:00:56 +01:00
kirjs
d6f4b104e3 docs(docs-infra): Drop standalone: true (#58914)
This is now the default value, so safe to remove

PR Close #58914
2024-11-28 09:43:28 +01:00
arielbackenroth
4792db9a6d fix(core): Explicitly manage TracingSnapshot lifecycle and dispose of it once it's been used. (#58929)
Provide a callback to the TracingService implementation when a Snapshot can be disposed.
The underlying tracing implementation may use refcounting and needs to release resources
to enable the trace to complete.

While change detection uses the snapshot for exactly one callback, after render runs
multiple hooks in the sequence so we need a more predictable way to indicate that the snapshot
can be finalized.s

PR Close #58929
2024-11-27 18:11:13 +01:00
Sheik Althaf
31f73cd9d3 refactor(devtools): removed standalone: true (#58922)
Removed the default standalone true flag from all the component, directive and pipes

PR Close #58922
2024-11-27 18:09:00 +01:00
Angular Robot
ee7aca1096 build: update cross-repo angular dependencies (#58932)
See associated pull request for more information.

PR Close #58932
2024-11-27 18:07:15 +01:00
Matthieu Riegler
8c49a14c6e docs(docs-infra): remove unused api-examples (#58885)
PR Close #58885
2024-11-27 18:05:08 +01:00
Michael Small
3145ca4fed docs: remove dev preview warning for rxjs-interop in output page (#58937)
`outputFromObservable` and `outputToObservable` from `@angular/core/rxjs-interop` were recently promoted to `@publicApi`.

PR Close #58937
2024-11-27 18:04:15 +01:00
Jessica Janiuk
d23a5d5cae refactor(core): Consolidates shouldTrigger* methods down to one (#58833)
This cleans up the triggering code base and consolidates it down to one
function that outlines the logic. This also resolves the `hydrate when`
behavior issue.

fixes: #58709

PR Close #58833
2024-11-27 17:00:06 +01:00
Jessica Janiuk
d6da6313c1 refactor(compiler): Adds ingest and flags for defer details (#58833)
This adds TDeferDetailsFlags to indicate the presence of hydration triggers, and any future flags we add to defer.

PR Close #58833
2024-11-27 17:00:06 +01:00
Vincent
22a6ff788f refactor(core): Make wording of effect-allowSignalWrites deprecation warning more accurate (#58792)
The previous warning contained a typo and also somewhat implied that allowSignalWrites did something. However, setting allowSignalWrites to false has no impact at all in Angular 19.

Closes #58790

PR Close #58792
2024-11-27 16:59:05 +01:00
Enea Jahollari
9660d69a7a docs(docs-infra): remove unused code (#58925)
Removed unused code from docs infra

PR Close #58925
2024-11-27 16:57:46 +01:00
Angular Robot
c64f0d86f8 build: update cross-repo angular dependencies to v19.1.0-next.0 (#58927)
See associated pull request for more information.

PR Close #58927
2024-11-27 16:22:57 +01:00
Enea Jahollari
2e4e485655 refactor(docs-infra): use interpolation instead of innerHTML for better perf (#58913)
Using innerHTML will cause the browser to parse the HTML and then create a DOM tree instead of just using normal interpolation.

PR Close #58913
2024-11-27 10:59:18 +01:00
Utku Gultopu
4852e57d9a docs: capitalize webpack with a lowercase W (#56812)
PR Close #56812
2024-11-26 22:24:11 +00:00
Amirhossein Akbari
4246f43556 docs: add references to Vite DevServer Proxy documentation (#58077)
PR Close #58077
2024-11-26 22:23:01 +00:00
Angular Robot
f6e448529f build: update cross-repo angular dependencies to ^19.1.0-next (#58910)
See associated pull request for more information.

PR Close #58910
2024-11-26 20:08:15 +00:00
Alan Agius
552092d742 refactor(core): remove private whenStable (#58891)
The `@angular/ssr` package no longer depends on this symbol.

PR Close #58891
2024-11-26 18:10:51 +00:00
Alan Agius
01837167a2 build: update Angular tooling packages (#58891)
Update tooling packages to 19.0.2

PR Close #58891
2024-11-26 18:10:51 +00:00
Enea Jahollari
43309d066d docs: use modern api for environment initializer (#58904)
Refactor appConfig to use the new api and remove the deprecated api

PR Close #58904
2024-11-26 18:10:21 +00:00
Jessica Janiuk
18091e72cb release: cut the v19.0.1 release 2024-11-26 09:40:12 -08:00
Angular Robot
4c1abc4fc1 build: update cross-repo angular dependencies (#58900)
See associated pull request for more information.

PR Close #58900
2024-11-26 15:28:21 +00:00
Jelle Bruisten
0c86d3e1f3 refactor(router): remove unused default error handler function (#58819)
with v19 the `defaultErrorHandler` has become unused, so could be removed

PR Close #58819
2024-11-26 14:49:37 +00:00
Angular Robot
bea852fa15 build: update all non-major dependencies (#58888)
See associated pull request for more information.

PR Close #58888
2024-11-26 14:48:15 +00:00
Hakeem
914f540a43 fix(docs-infra): fix cards not shown if we hit the API page without active API tab (#58883)
since we are only updating the members margin at the constructing phase,
we should not disable this operation if user hit the page with tabs different than API active,
otherwise if user switched to the API page he won't see the cards since members margin equals zero and docs viewer won't be shown

Resolves #58882

PR Close #58883
2024-11-26 14:47:35 +00:00
Matthieu Riegler
fbf0c8226e docs: fix @let roadmap tile. (#58886)
Prior to this change, we generated an invalid HTML with nested anchor elements. Those are not valid and are recovered by the browser by closing one early which messed the layout.

fixes #58884

PR Close #58886
2024-11-26 14:45:50 +00:00
Julian Gong
f0ecbe62de docs: update link for language service config for neovim (#58479)
PR Close #58479
2024-11-25 21:22:48 +00:00
arielbackenroth
118803035f fix(core): Ensure _tick is always run within the TracingSnapshot. (#58881)
Fix a bug where calls to _tick are called without running through the snapshot.
This helps ensure that all snapshots that are requested are resumed.

PR Close #58881
2024-11-25 21:19:52 +00:00
Angular Robot
bae473d718 build: update cross-repo angular dependencies (#58877)
See associated pull request for more information.

PR Close #58877
2024-11-25 18:00:48 +00:00
Angular Robot
83d2a09922 build: pin google-github-actions/auth action to 6fc4af4 (#58879)
See associated pull request for more information.

PR Close #58879
2024-11-25 17:12:50 +00:00
Andrew Kushnir
03a14b5034 refactor(core): invoke setActiveConsumer in ɵɵdeferHydrateWhen at the right time (#58864)
This commit updates the code of the `ɵɵdeferHydrateWhen` function to invoke the `setActiveConsumer` function at the right time (currently, we invoke it in the `finally` block, which is too late).

PR Close #58864
2024-11-25 16:12:37 +00:00
Andrew Kushnir
21106bf3cd refactor(core): remove unused field in ApplicationRef class (#58864)
This commit removes an unused field in the `ApplicationRef` class. Most likely the usage of the field was removed earlier.

PR Close #58864
2024-11-25 16:12:37 +00:00
Matthieu Riegler
08b9452f01 fix(core): Ensure resource sets an error (#58855)
Before this commit, a resource with a previous value wouldn't set the error state correctly.
This commit fixes this. A resource will set its status to error even when there was a previous valid value.

PR Close #58855
2024-11-25 15:28:18 +00:00
Matthieu Riegler
beec8969ee docs: add standalone example for ErrorHandler (#58859)
fixes #55579

PR Close #58859
2024-11-25 15:26:50 +00:00
Kristiyan Kostadinov
b386b1aa6f refactor(migrations): skip TS version check in tsurge (#58866)
Skips the TS version check in tsurge since it's blocking some internal changes and generally isn't necessary since the app will be checked when it's built anyways.

PR Close #58866
2024-11-25 15:26:18 +00:00
Kristiyan Kostadinov
fb1fa8b0fc fix(compiler-cli): more accurate diagnostics for host binding parser errors (#58870)
Currently host bindings are in a bit of a weird state, because their source spans all point to the root object literal, rather than the individual expression. This is tricky to handle at the moment, because the object is being passed around as a `Record<string, string>` since the compiler needs to support both JIT and non-JIT environments, and because the AOT compiler evaluates the entire literal rather than doing it expression-by-expression. As a result, when we report errors in one of the host bindings, we end up highlighting the entire expression which can be very noisy in an IDE.

These changes aim to report a more accurate error for the most common case where the `host` object is initialized to a `string -> string` object literal by matching the failing expression to one of the property initializers. Note that this isn't 100% reliable, because we can't map cases like `host: SOME_CONST`, but it's still better than the current setup.

PR Close #58870
2024-11-25 15:25:48 +00:00
Andrew Kushnir
ea0bf74e31 refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834)
This commit removes a custom `whenStable` util in favor of standard `ApplicationRef.whenStable` API.

There is also an important different between the custom `whenStable` function and `ApplicationRef.whenStable` implementation: the `whenStable` was caching the "stable" promise on per-ApplicationRef basis, which resulted in unexpected behavior with zoneless, when some code ended up getting a stale resolved promise, when an application was not stable yet, this causing order of operations issues. This commit also has an extra test that covers that case.

PR Close #58834
2024-11-25 15:25:10 +00:00
kirjs
70547ebce0 refactor(core): make lView[Injector] non-nullable (#58805)
There actually no cases, where it can be null. Also update all usages.

PR Close #58805
2024-11-25 15:24:40 +00:00
Pawel Kozlowski
b8a450bbed refactor(docs-infra): use input bindings in docs component (#58826)
Use reactive inputs instead of manually getting data from the
currently activated route.

PR Close #58826
2024-11-25 15:23:54 +00:00
Sheik Althaf
9a9d1bfcdc refactor(docs-infra): remove deprecated modules from testing and use alternatives (#58847)
Removed the deprecated modules used in testing files and instead used the alternative one

PR Close #58847
2024-11-25 15:23:10 +00:00
Matthieu Riegler
b21f96dc0e docs(docs-infra): display navigation items as HTML. (#58093)
fixes #57872

PR Close #58093
2024-11-25 15:22:33 +00:00
Kristiyan Kostadinov
cb5ea19cde build: update g3 sync config (#58837)
Updates the sync config to exclude the entire `bazel` package. Previously only some subdirectories were excluded, but in the internal config the entire package is ignored.

PR Close #58837
2024-11-25 15:21:33 +00:00
Angular Robot
fa84477f26 build: lock file maintenance (#58867)
See associated pull request for more information.

PR Close #58867
2024-11-25 15:21:03 +00:00
Joey Perrott
48b48c1eea ci: update perf workflow to the latest version (#58876)
Update the perf workflow to the latest version to allow for uploading results to database

PR Close #58876
2024-11-25 15:20:25 +00:00
vladboisa
a41ac8329a docs(docs-infra): changed default type to object (#58289)
By API returned type is object, not any, rephrase docs and TIP

Fixes #58273

docs: change type from object to Object

Change the typo from object to Object

Co-authored-by: Matthieu Riegler <kyro38@gmail.com>

PR Close #58289
2024-11-22 20:30:44 +00:00