@angular/core 21.1.1 → 21.1.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.
- package/fesm2022/_attribute-chunk.mjs +1 -1
- package/fesm2022/_debug_node-chunk.mjs +7 -6
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_linked_signal-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_resource-chunk.mjs +1 -1
- package/fesm2022/_untracked-chunk.mjs +2 -2
- package/fesm2022/_untracked-chunk.mjs.map +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +1 -1
- package/fesm2022/primitives-signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/package.json +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
- package/schematics/bundles/application-config-core.cjs +1 -1
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
- package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/imports-CVmcbVA9.cjs +1 -1
- package/schematics/bundles/index-BtLcQH8g.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-CV7qdt5t.cjs +1 -1
- package/schematics/bundles/ng_component_template-BOuKAnQd.cjs +1 -1
- package/schematics/bundles/ng_decorators-DYy6II6x.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
- package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
- package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
- package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
- package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +1 -1
- package/schematics/bundles/router-current-navigation.cjs +1 -1
- package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +1 -1
- package/schematics/bundles/signal-queries-migration.cjs +1 -1
- package/schematics/bundles/signals.cjs +1 -1
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/symbol-DZeHSR-V.cjs +1 -1
- package/types/_api-chunk.d.ts +1 -1
- package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
- package/types/_discovery-chunk.d.ts +8 -26
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +1 -4
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +1 -1
package/fesm2022/core.mjs
CHANGED
package/fesm2022/testing.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "21.1.
|
|
3
|
+
"version": "21.1.2",
|
|
4
4
|
"description": "Angular - the core framework",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"tslib": "^2.3.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@angular/compiler": "21.1.
|
|
49
|
+
"@angular/compiler": "21.1.2",
|
|
50
50
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
51
51
|
"zone.js": "~0.15.0 || ~0.16.0"
|
|
52
52
|
},
|
package/types/_api-chunk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1.
|
|
2
|
+
* @license Angular v21.1.2
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -4751,7 +4751,7 @@ interface DirectiveDecorator {
|
|
|
4751
4751
|
*
|
|
4752
4752
|
* ### Declaring directives
|
|
4753
4753
|
*
|
|
4754
|
-
* By default, directives are marked as
|
|
4754
|
+
* By default, directives are marked as standalone, which makes
|
|
4755
4755
|
* them available to other components in your application.
|
|
4756
4756
|
*
|
|
4757
4757
|
* ```ts
|
|
@@ -5006,8 +5006,9 @@ interface Directive {
|
|
|
5006
5006
|
*
|
|
5007
5007
|
* For event handling:
|
|
5008
5008
|
* - The key is the DOM event that the directive listens to.
|
|
5009
|
-
*
|
|
5010
|
-
*
|
|
5009
|
+
* The global target names that can be used to prefix an event name are
|
|
5010
|
+
* `document:`, `window:` and `body:`.
|
|
5011
|
+
*
|
|
5011
5012
|
* - The value is the statement to execute when the event occurs. If the
|
|
5012
5013
|
* statement evaluates to `false`, then `preventDefault` is applied on the DOM
|
|
5013
5014
|
* event. A handler method can refer to the `$event` local variable.
|
|
@@ -5024,12 +5025,7 @@ interface Directive {
|
|
|
5024
5025
|
*/
|
|
5025
5026
|
jit?: true;
|
|
5026
5027
|
/**
|
|
5027
|
-
*
|
|
5028
|
-
* directives don't depend on any "intermediate context" of an NgModule (ex. configured
|
|
5029
|
-
* providers).
|
|
5030
|
-
*
|
|
5031
|
-
* More information about standalone components, directives, and pipes can be found in [this
|
|
5032
|
-
* guide](guide/components/importing).
|
|
5028
|
+
* Set `standalone` to `false` if you want to import the directive into an NgModule.
|
|
5033
5029
|
*/
|
|
5034
5030
|
standalone?: boolean;
|
|
5035
5031
|
/**
|
|
@@ -5289,12 +5285,7 @@ interface Component extends Directive {
|
|
|
5289
5285
|
*/
|
|
5290
5286
|
preserveWhitespaces?: boolean;
|
|
5291
5287
|
/**
|
|
5292
|
-
*
|
|
5293
|
-
* components directly manage their own template dependencies (components, directives, and pipes
|
|
5294
|
-
* used in a template) via the imports property.
|
|
5295
|
-
*
|
|
5296
|
-
* More information about standalone components, directives, and pipes can be found in [this
|
|
5297
|
-
* guide](guide/components/importing).
|
|
5288
|
+
* Set `standalone` to `false` if you want to import the directive into an NgModule.
|
|
5298
5289
|
*/
|
|
5299
5290
|
standalone?: boolean;
|
|
5300
5291
|
/**
|
|
@@ -5304,9 +5295,6 @@ interface Component extends Directive {
|
|
|
5304
5295
|
*
|
|
5305
5296
|
* This property is only available for standalone components - specifying it for components
|
|
5306
5297
|
* declared in an NgModule generates a compilation error.
|
|
5307
|
-
*
|
|
5308
|
-
* More information about standalone components, directives, and pipes can be found in [this
|
|
5309
|
-
* guide](guide/components/importing).
|
|
5310
5298
|
*/
|
|
5311
5299
|
imports?: (Type<any> | ReadonlyArray<any>)[];
|
|
5312
5300
|
/**
|
|
@@ -5315,9 +5303,6 @@ interface Component extends Directive {
|
|
|
5315
5303
|
*
|
|
5316
5304
|
* This property is only available for standalone components - specifying it for components
|
|
5317
5305
|
* declared in an NgModule generates a compilation error.
|
|
5318
|
-
*
|
|
5319
|
-
* More information about standalone components, directives, and pipes can be found in [this
|
|
5320
|
-
* guide](guide/components/importing).
|
|
5321
5306
|
*/
|
|
5322
5307
|
schemas?: SchemaMetadata[];
|
|
5323
5308
|
}
|
|
@@ -5387,9 +5372,6 @@ interface Pipe {
|
|
|
5387
5372
|
/**
|
|
5388
5373
|
* Angular pipes marked as `standalone` do not need to be declared in an NgModule. Such
|
|
5389
5374
|
* pipes don't depend on any "intermediate context" of an NgModule (ex. configured providers).
|
|
5390
|
-
*
|
|
5391
|
-
* More information about standalone components, directives, and pipes can be found in [this
|
|
5392
|
-
* guide](guide/components/importing).
|
|
5393
5375
|
*/
|
|
5394
5376
|
standalone?: boolean;
|
|
5395
5377
|
}
|
|
@@ -5536,7 +5518,7 @@ interface HostBindingDecorator {
|
|
|
5536
5518
|
*
|
|
5537
5519
|
* @usageNotes
|
|
5538
5520
|
*
|
|
5539
|
-
* NOTE: **Always** prefer using the `host` property over `@HostBinding`.
|
|
5521
|
+
* NOTE: **Always** prefer using the [`host` property](guide/components/host-elements#binding-to-the-host-element) over `@HostBinding`.
|
|
5540
5522
|
* This decorator exist exclusively for backwards compatibility.
|
|
5541
5523
|
*
|
|
5542
5524
|
* The following example creates a directive that sets the `valid` and `invalid`
|
package/types/_effect-chunk.d.ts
CHANGED
package/types/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1.
|
|
2
|
+
* @license Angular v21.1.2
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -383,8 +383,6 @@ type ImportProvidersSource = Type$1<unknown> | ModuleWithProviders<unknown> | Ar
|
|
|
383
383
|
* another environment injector (such as a route injector). They should not be used in component
|
|
384
384
|
* providers.
|
|
385
385
|
*
|
|
386
|
-
* More information about standalone components can be found in [this
|
|
387
|
-
* guide](guide/components/importing).
|
|
388
386
|
*
|
|
389
387
|
* @usageNotes
|
|
390
388
|
* The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:
|
|
@@ -5752,7 +5750,6 @@ declare function getComponentDef<T>(type: any): ComponentDef<T> | null;
|
|
|
5752
5750
|
/**
|
|
5753
5751
|
* Checks whether a given Component, Directive or Pipe is marked as standalone.
|
|
5754
5752
|
* This will return false if passed anything other than a Component, Directive, or Pipe class
|
|
5755
|
-
* See [this guide](guide/components/importing) for additional information:
|
|
5756
5753
|
*
|
|
5757
5754
|
* @param type A reference to a Component, Directive or Pipe.
|
|
5758
5755
|
* @publicApi
|
package/types/primitives-di.d.ts
CHANGED
package/types/rxjs-interop.d.ts
CHANGED
package/types/testing.d.ts
CHANGED