31048 Commits
Author SHA1 Message Date
Andrew Scott 98db1093f8 release: cut the v18.2.14 release 18.2.14 2025-09-10 11:48:02 -07:00
Alan Agius 1d86de1bf5 build: ignore node_modules (#63701)
This is needed as these files are left when switching from main branch to the LTS branch.

PR Close #63701
2025-09-10 11:41:41 -07:00
Alan Agius 08f01ac3b7 build: address issues with bazelrc file (#63684)
ERROR: --remote_grpc_log=/tmp/rbe-grpc.log :: Unrecognized option: --remote_grpc_log=/tmp/rbe-grpc.log

PR Close #63684
2025-09-10 07:22:27 -07:00
Alan Agius ff90477150 ci: separate integration tests to speed up CI (#63640)
This commit separates the integration tests into their own CI job.
This change aims to speed up the overall CI process by allowing
integration tests to run independently. This also aligns the CI
configuration with the v19 branch.

PR Close #63640
2025-09-09 10:46:28 -07:00
Alan Agius 8a6e124cb5 test: remove ng_update_migrations integration test (#63640)
The `ng_update_migrations` integration test is consistently failing due to Node.js engine incompatibilities. The test attempts to install an old version of  `@angular/cli` (v12) which requires a Node.js version that is no longer available in our CI environment.

This test has already been removed in the v19 branch. To align with that precedent and remove a failing test that is difficult to maintain, this commit removes the test entirely.

PR Close #63640
2025-09-09 10:46:28 -07:00
Alan Agius 64bbfc384a build: update @angular/build-tooling dependency (#63640)
Use a more recent SHA, to fix issues with Chrome sandboxing.

PR Close #63640
2025-09-09 10:46:28 -07:00
Alan Agius 1c30234d24 ci: update dev-infra github actions to latest SHA (#63640)
This commit updates all usages of `angular/dev-infra/github-actions` to their latest SHA.
This is necessary to ensure that all workflows are using the most up-to-date versions of the actions,
which can include bug fixes, performance improvements, or new features.

PR Close #63640
2025-09-09 10:46:27 -07:00
Alan Agius 9d1fb33f5e fix(core): introduce BootstrapContext for improved server bootstrapping (#63640)
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.

(cherry picked from commit 8bf80c9d2314b4f2bcf3df83ae01552a6fc49834)

PR Close #63640
2025-09-09 10:46:27 -07:00
Angular Robot 32512de80d docs: update Angular CLI help [18.2.x] (#59767)
Updated Angular CLI help contents.

PR Close #59767
2025-01-29 10:53:21 -08:00
Alan Agius 3cbc8a50c5 ci: update to latest version of dev-infra actions
This resolves

```
ERROR: java.io.IOException: Error getting access token for service account: 400 Bad Request
{"error":"invalid_grant","error_description":"Invalid JWT Signature."}
```
2025-01-29 13:29:59 +01:00
Jessica Janiuk e1e419aa02 release: cut the v18.2.13 release 18.2.13 2024-11-26 10:04:41 -08:00
prasantht96 c6cec5eefa docs: angular dev v18 page issue fix (#58848)
PR Close #58848
2024-11-26 14:48:54 +00:00
Matthieu Riegler 06d70a25ea fix(migrations): take care of tests that import both HttpClientModule & HttpClientTestingModule. (#58777)
While having both `HttpClientModule` & `HttpClientTestingModule` serves no real purpose (`HttpClientTestingModule` imports `HttpClientModule`), some code bases can have those 2 together and the migration can be quite breaking.

fixes #58536

PR Close #58777
2024-11-22 14:47:12 +00:00
marktechson 88072c879d docs: add v19 developer event banner (#58721)
PR Close #58721
2024-11-18 12:48:46 -08:00
Guillaume MOREAU 6fef9b5e0f docs: fix typo in build system migration doc (#58668)
PR Close #58668
2024-11-14 14:18:13 -08:00
Jessica Janiuk 76721458ec release: cut the v18.2.12 release 18.2.12 2024-11-14 08:11:59 -08:00
Jens Kuehlers d9009c12eb docs: add State of JS 2024 banner (#58649)
PR Close #58649
2024-11-14 14:53:19 +00:00
Julio Massano Santos 8e5228f584 docs: adds interceptor testing (#57568)
PR Close #57568
2024-11-14 14:50:42 +00:00
ashish caeeee7fad docs(docs-infra): Fixed grammatical error (#58611)
PR Close #58611
2024-11-12 14:48:11 +00:00
Angular Robot a1fd551cf3 build: update github/codeql-action action to v3.27.2 (#58604)
See associated pull request for more information.

PR Close #58604
2024-11-12 14:47:18 +00:00
Matthieu Riegler 90603ec601 docs: fix link in 6-property-binding tutorial (#58594)
fixes #58588

PR Close #58594
2024-11-12 14:44:59 +00:00
Anner Visser 2fbc7f077f docs: Fix menu label for ng cache clean, clear -> clean (#58560)
PR Close #58560
2024-11-08 17:28:03 +00:00
Teun Willems f3567cc29e docs: remove foreach from testing.md as it's not a JS function (#58565)
Foreach was present in the documentation even though it's not valid Javascript

PR Close #58565
2024-11-08 17:16:43 +00:00
Alan Agius 3d8f827ec7 fix(docs-infra): retain function keyword in API definitions (#58561)
**Before:**
```ts
animate(
  timings: string | number,
  styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null
): AnimationAnimateMetadata;
```

**Now:**
```ts
function animate(
  timings: string | number,
  styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null
): AnimationAnimateMetadata;
```

PR Close #58561
2024-11-08 17:16:05 +00:00
Alan Agius 4c38160853 fix(compiler-cli): correct extraction of generics from type aliases (#58548)
**Before:**
```ts
type HttpEvent = | HttpSentEvent
  | HttpHeaderResponse
  | HttpResponse<T>
  | HttpProgressEvent
  | HttpUserEvent<T>
```

**After:**
```ts
type HttpEvent<T> = | HttpSentEvent
  | HttpHeaderResponse
  | HttpResponse<T>
  | HttpProgressEvent
  | HttpUserEvent<T>
```

PR Close #58548
2024-11-08 17:15:08 +00:00
Alan Agius 9199dd9a87 docs(docs-infra): update default generic values and add constraints for type parameters in functions (#58548)
Before
```typescript
createNodeRequestHandler(
  handler: T
): T;
```

```typescript
class NgIf<T> {
  @Input() set ngIf(value: T);
  @Input() set ngIfThen(value: TemplateRef<NgIfContext<T>> | null);
  @Input() set ngIfElse(value: TemplateRef<NgIfContext<T>> | null);
  static ngTemplateGuard_ngIf: "binding";
  static ngTemplateContextGuard<T>(dir: NgIf<T>, ctx: any): boolean;
}
```

Now
```typescript
createNodeRequestHandler<T extends NodeRequestHandlerFunction>(
  handler: T
): T;
```

```typescript
class NgIf<T = unknown> {
  @Input() set ngIf(value: T);
  @Input() set ngIfThen(value: TemplateRef<NgIfContext<T>> | null);
  @Input() set ngIfElse(value: TemplateRef<NgIfContext<T>> | null);
  static ngTemplateGuard_ngIf: "binding";
  static ngTemplateContextGuard<T>(dir: NgIf<T>, ctx: any): boolean;
}
```

PR Close #58548
2024-11-08 17:15:07 +00:00
Alan Agius 5a236c2c5c docs(docs-infra): add support for @remarks (#58523)
In TSDoc, we currently handle the `@usageNotes` annotation, but this is not a standard TSDoc tag. Instead, the `@remarks` annotation is the correct standard, which is used in the Angular CLI repo and on the SSR package.

This change ensures that `@remarks` is treated the same as `@usageNotes` during the transform process.

PR Close #58523
2024-11-07 15:49:14 +00:00
Jessica Janiuk 681a63ceda release: cut the v18.2.11 release 18.2.11 2024-11-06 09:53:34 -08:00
Kristiyan Kostadinov 5f2d98a1b1 fix(core): avoid slow stringification when checking for duplicates in dev mode (#58521)
When we check for duplicates in dev mode, we end up stringifying an `LView` even if we don't report an error. This can be expensive in large views.

These changes work around the issue by only generating the string when we have an error to throw.

Fixes #58509.

PR Close #58521
2024-11-06 13:02:35 +01:00
Madhu Ranjan 6c80778576 docs: fix example for pipe operator precedence by removing extra parenthesis (#58488)
PR Close #58488
2024-11-06 07:00:40 +01:00