@schematics/angular 22.0.1 → 22.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ You are an expert in TypeScript, Angular, and scalable web application developme
12
12
 
13
13
  - Always use standalone components over NgModules
14
14
  - Must NOT set `standalone: true` inside Angular decorators. It's the default in Angular v20+.
15
+ - Do NOT set `changeDetection: ChangeDetectionStrategy.OnPush` explicitly. `OnPush` is the default in Angular v22+.
15
16
  - Use signals for state management
16
17
  - Implement lazy loading for feature routes
17
18
  - Do NOT use the `@HostBinding` and `@HostListener` decorators. Put host bindings inside the `host` object of the `@Component` or `@Directive` decorator instead
@@ -29,7 +30,8 @@ You are an expert in TypeScript, Angular, and scalable web application developme
29
30
  - Use `input()` and `output()` functions instead of decorators
30
31
  - Use `computed()` for derived state
31
32
  - Prefer inline templates for small components
32
- - Prefer Reactive forms instead of Template-driven ones
33
+ - Prefer Signal Forms (`@angular/forms/signals`) for new forms. They are stable in Angular v22+ and provide signal-based state, type-safe field access, and schema-based validation
34
+ - When not using Signal Forms, prefer Reactive forms instead of Template-driven ones
33
35
  - Do NOT use `ngClass`, use `class` bindings instead
34
36
  - Do NOT use `ngStyle`, use `style` bindings instead
35
37
  - When using external templates/styles, use paths relative to the component TS file.
@@ -52,4 +54,5 @@ You are an expert in TypeScript, Angular, and scalable web application developme
52
54
 
53
55
  - Design services around a single responsibility
54
56
  - Use the `providedIn: 'root'` option for singleton services
57
+ - Prefer the `@Service` decorator over `@Injectable({providedIn: 'root'})` for new singleton services (Angular v22+)
55
58
  - Use the `inject()` function instead of constructor injection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "22.0.1",
3
+ "version": "22.0.2",
4
4
  "description": "Schematics specific to Angular",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "keywords": [
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "schematics": "./collection.json",
24
24
  "dependencies": {
25
- "@angular-devkit/core": "22.0.1",
26
- "@angular-devkit/schematics": "22.0.1",
25
+ "@angular-devkit/core": "22.0.2",
26
+ "@angular-devkit/schematics": "22.0.2",
27
27
  "jsonc-parser": "3.3.1",
28
28
  "typescript": "6.0.3"
29
29
  },
@@ -16,8 +16,8 @@ exports.latestVersions = {
16
16
  // As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
17
17
  Angular: '^22.0.0',
18
18
  NgPackagr: '^22.0.0',
19
- DevkitBuildAngular: '^22.0.1',
20
- AngularBuild: '^22.0.1',
21
- AngularSSR: '^22.0.1',
19
+ DevkitBuildAngular: '^22.0.2',
20
+ AngularBuild: '^22.0.2',
21
+ AngularSSR: '^22.0.2',
22
22
  };
23
23
  //# sourceMappingURL=latest-versions.js.map