1142 Commits

Author SHA1 Message Date
Alan Agius e8d35f9693 Revert "revert: revert all changes until fdc1b48f32e52da7684583811a6a3090f6418d5e"
This reverts commit 4747fe207d.
2026-05-27 10:26:12 -07:00
Alan Agius 4747fe207d revert: revert all changes until fdc1b48f32
This reverts all changes from fdc1b48f32 to the previous branch tip (d31f84116c) due to repository force-push restrictions.
2026-05-27 10:53:37 +00:00
Yenya030 9940ffd781 fix(http): exclude withCredentials requests from transfer cache
Update the transfer cache check to safely exclude all requests sent with the `withCredentials` flag.

By default, the HTTP transfer cache avoids caching user-specific responses to prevent sensitive data exposure or incorrect caching. While requests with explicit headers like `Cookie` or `Authorization` are excluded by default, requests can also be sent with credentials via the `withCredentials` flag without having those headers explicitly declared on the request object.

To keep user-specific responses from being cached, exclude `withCredentials` requests unconditionally, even when the `includeRequestsWithAuthHeaders` option is set to true.
2026-05-27 07:23:09 +00:00
Yenya030 0f67f0b962 fix(http): skip TransferCache for cookie-bearing requests by default
Treat requests with a Cookie header like other auth-bearing requests and skip TransferCache caching them by default.

This preserves the explicit opt-in path via includeRequestsWithAuthHeaders, adds regression coverage for cookie-bearing requests, and updates the SSR guide to document the behavior.
2026-05-27 07:22:42 +00:00
Matthieu Riegler b9eaedee02 docs(docs-infra): use v19 index for algolia search 2025-11-06 07:53:01 -08:00
Matthieu Riegler 05ab1dd76e docs(docs-infra): pull version picker info from shared versions.json
fixes #64842
2025-11-04 19:00:52 +00:00
Alan Agius 70d0639bc1 fix(core): introduce BootstrapContext for improved server bootstrapping (#63639)
* fix(core): introduce `BootstrapContext` for improved server bootstrapping

This commit introduces a number of changes to the server bootstrapping process to make it more robust and less error-prone, especially for concurrent requests.

Previously, the server rendering process relied on a module-level global platform injector. This could lead to issues in server-side rendering environments where multiple requests are processed concurrently, as they could inadvertently share or overwrite the global injector state.

The new approach introduces a `BootstrapContext` that is passed to the `bootstrapApplication` function. This context provides a platform reference that is scoped to the individual request, ensuring that each server-side render has an isolated platform injector. This prevents state leakage between concurrent requests and makes the overall process more reliable.

BREAKING CHANGE:
The server-side bootstrapping process has been changed to eliminate the reliance on a global platform injector.

Before:
```ts
const bootstrap = () => bootstrapApplication(AppComponent, config);
```

After:
```ts
const bootstrap = (context: BootstrapContext) =>
  bootstrapApplication(AppComponent, config, context);
```

A schematic is provided to automatically update `main.server.ts` files to pass the `BootstrapContext` to the `bootstrapApplication` call.

In addition, `getPlatform()` and `destroyPlatform()` will now return `null` and be a no-op respectively when running in a server environment.
2025-09-09 10:56:38 -07:00
Matthieu Riegler 9317b1c2b8 docs: fix deprecated docs navigation background color. (#61776)
Backport of #58848 into v19 / main.

PR Close #61776
2025-06-02 16:43:28 -04:00
Alan Agius 428f3c4706 build: disable esbuild metadata file generation (#61636)
Disables creation of the esbuild meta.json file, which is not utilized in the build process. This streamlines the output and avoids generating unused artifacts.

PR Close #61636
2025-05-26 08:57:43 +00:00
Hakeem 2f5912e80a docs(docs-infra): fix nav items active status is shown for multiple items (#61597)
PR Close #61597
2025-05-21 16:04:27 -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
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
hirowf 21e5f0723d docs: include bun in packageManager value types (#60907)
PR Close #60907
2025-05-21 15:19:39 +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
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
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
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 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
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
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
Matthieu Riegler 74e39ea96a docs(docs-infra): llms-full.txt (#61356)
This includes a basic script to generate the file from the list of markdown files `llms-list.md`

PR Close #61356
2025-05-16 14:38:04 +00:00
Matthieu Riegler aa4293871d docs: fix textfield CVA (#61411)
patch backport of #61300

PR Close #61411
2025-05-16 14:35:55 +00:00
Vlad Boisa b2ade23282 docs: fix typos (#61257)
Change grammar and fix typos in docs

Fixes #61244

PR Close #61257
2025-05-16 10:20:36 +00:00
Matthieu Riegler db815e98ac docs: fix note formatting about optionam chaining (#61251)
PR Close #61251
2025-05-16 10:09:36 +00:00
Vlad Boisa 57df36127e docs: fix incomplete sentence (#61391)
Fix insufficient sentence.


Fixes #61350
PR Close #61391
2025-05-16 09:35:45 +00:00
Matthieu Riegler 85e0baf081 docs: fix Routed components example (#61278)
fixes #61277

PR Close #61278
2025-05-16 09:14:40 +00:00
Angular Robot bd2a5b9729 docs: update Angular CDK apis [19.2.x] (#61347)
Updated Angular CDK api files.

PR Close #61347
2025-05-16 07:40:11 +00:00
Andrew Seguin 30fcd46b30 docs: make drag and drop examples preview (#59737)
PR Close #59737
2025-05-16 07:38:05 +00:00
Miles Malerba fdb86983c5 docs: fix embedded preview (#59737)
update the embeddable examples glob to captrue the drag & drop examples,
and fix the current build issues in the drag & drop examples

PR Close #59737
2025-05-16 07:38:04 +00:00
Andrew Seguin eaf2c6eb8e docs: add preview to an example to test (#59737)
PR Close #59737
2025-05-16 07:38:04 +00:00
Miles Malerba 27c55fe30c ci: fix build (#59737)
Deletes the BUILD.bazel in examples/drag-drop so the files can be
collected in examples/BUILD.bazel instead

PR Close #59737
2025-05-16 07:38:04 +00:00
Amy Sorto 740885f560 docs: add code examples for drag and drop guide (#59737)
# Conflicts:
#	adev/src/content/guide/BUILD.bazel

PR Close #59737
2025-05-16 07:38:04 +00:00
Amy Sorto f7c1da7616 docs: add drag and drop guide (#59737)
PR Close #59737
2025-05-16 07:38:04 +00:00
Will 保哥 2d3e1d3b12 docs: update Traditional Chinese footer link (#61280)
update Traditional Chinese footer link from angular.tw to dev.angular.tw to direct users to the new Traditional Chinese dev site.

PR Close #61280
2025-05-16 07:36:20 +00:00
Matthieu Riegler dfed15fa49 docs: add llms.txt (#61285)
PR Close #61285
2025-05-15 10:09:14 -07:00
Hakeem 75e267da1d docs(docs-infra): fix update page styles to adhere to the new layout (#61256)
PR Close #61256
2025-05-14 08:47:31 -07:00
Hakeem bf8d52b497 docs(docs-infra): fixating the position of the docs content whether TOC exists or not (#61256)
PR Close #61256
2025-05-14 08:47:31 -07:00
Hakeem 4325243224 docs(docs-infra): integrate the new layout with the new changes (#61256)
fix new global layout issues, and make other pages adhere to the new centered layout like cli ref page, cli ref details, api ref details pages

PR Close #61256
2025-05-14 08:47:31 -07:00
Jan Martin ac77e30c76 docs: document the use of this in template expression syntax (#61250)
As of Angular 19, `this` should consistently reference the given
class property.

See: https://github.com/angular/angular/pull/55183
Co-authored-by: Jeremy Elbourn <jelbourn@google.com>
Co-authored-by: Matthieu Riegler <kyro38@gmail.com>

PR Close #61250
2025-05-14 06:35:56 -07:00
Miles Malerba c92c34d490 docs: update references to the cdk/testing apis (#60853)
PR Close #60853
2025-05-13 16:32:37 -07:00
Miles Malerba 07e8c3ef5e docs: generate api pages for cdk (#60853)
Generates html for the cdk api pages based on the json files imported
from angular/cdk-builds

PR Close #60853
2025-05-13 16:32:37 -07:00
Paul Gschwendtner 899cb4ab49 refactor: add explicit types for exports relying on inferred call return type (#61316)
As part of the Bazel toolchain migration we noticed that implicit types
generated by the TypeScript compiler sometimes end up referencing types
from other packages (i.e. cross-package imports).

These imports currently work just because the Bazel `ts_library` and
`ng_module` rules automatically inserted a `<amd-module
name="@angular/x" />` into `.d.ts` of packages. This helped TS figure
out how to import a given file. Notably this is custom logic that is not
occuring in vanilla TS or Angular compilations—so we will drop this
magic as part of the toolchain cleanup!

To improve code quality and keep the existing behavior working, we are
doing the following:

- adding a lint rule that reduces the risk of such imports breaking. The
  failure scenario without the rule is that API goldens show unexpected
  diffs, and types might be duplicated in a different package!

- keeping the `<amd-module` headers, but we manually insert them into
  the package entry-points. This should ensure we don't regress
  anywhere; while we also improved general safety around this above.

Long-term, isolated declarations or a lint rule from eslint-typescript
can make this even more robust.

PR Close #61316
2025-05-13 22:46:00 +00:00
Matthieu Riegler d1501bce5c docs(docs-infra): preselect search text on re-open (#61129)
PR Close #61129
2025-05-12 15:25:51 -07:00
Hakeem 223ca9f983 docs(docs-infra): limit the flexible width of the main content for better UX (#58831)
PR Close #58831
2025-05-09 10:24:15 -07:00
ahmadhakeem18 f9932e8b0d docs(docs-infra): fix the global layout of the site (#58831)
take the full width of the page for all the pages that use docs-viewer, also reserve an area for table of contents on-demand

Resolves: #52648

PR Close #58831
2025-05-09 10:24:15 -07:00