@angular/core 19.2.8 → 19.2.9

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.
Files changed (45) hide show
  1. package/event_dispatcher.d-DlbccpYq.d.ts +1 -1
  2. package/fesm2022/core.mjs +57 -34
  3. package/fesm2022/core.mjs.map +1 -1
  4. package/fesm2022/primitives/di.mjs +1 -1
  5. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  6. package/fesm2022/primitives/signals.mjs +1 -1
  7. package/fesm2022/rxjs-interop.mjs +1 -1
  8. package/fesm2022/testing.mjs +30 -11
  9. package/fesm2022/testing.mjs.map +1 -1
  10. package/fesm2022/untracked-BKcld_ew.mjs +1 -1
  11. package/index.d.ts +13 -4
  12. package/navigation_types.d-fAxd92YV.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/primitives/di/index.d.ts +1 -1
  15. package/primitives/event-dispatch/index.d.ts +1 -1
  16. package/primitives/signals/index.d.ts +1 -1
  17. package/rxjs-interop/index.d.ts +1 -1
  18. package/schematics/bundles/apply_import_manager-COqnCltX.js +1 -1
  19. package/schematics/bundles/checker-BNmiXJIJ.js +2 -2
  20. package/schematics/bundles/cleanup-unused-imports.js +1 -1
  21. package/schematics/bundles/compiler_host-BafHjBMK.js +1 -1
  22. package/schematics/bundles/control-flow-migration.js +1 -1
  23. package/schematics/bundles/explicit-standalone-flag.js +1 -1
  24. package/schematics/bundles/imports-CIX-JgAN.js +1 -1
  25. package/schematics/bundles/index-CAJ-Rm56.js +11 -11
  26. package/schematics/bundles/index-rvZ5aROS.js +1 -1
  27. package/schematics/bundles/inject-migration.js +1 -1
  28. package/schematics/bundles/leading_space-D9nQ8UQC.js +1 -1
  29. package/schematics/bundles/migrate_ts_type_references-BIV-FPWl.js +1 -1
  30. package/schematics/bundles/ng_decorators-DznZ5jMl.js +1 -1
  31. package/schematics/bundles/nodes-B16H9JUd.js +1 -1
  32. package/schematics/bundles/output-migration.js +1 -1
  33. package/schematics/bundles/pending-tasks.js +1 -1
  34. package/schematics/bundles/project_paths-A9I0g_ID.js +1 -1
  35. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.js +1 -1
  36. package/schematics/bundles/property_name-BBwFuqMe.js +1 -1
  37. package/schematics/bundles/provide-initializer.js +1 -1
  38. package/schematics/bundles/route-lazy-loading.js +1 -1
  39. package/schematics/bundles/self-closing-tags-migration.js +1 -1
  40. package/schematics/bundles/signal-input-migration.js +1 -1
  41. package/schematics/bundles/signal-queries-migration.js +1 -1
  42. package/schematics/bundles/signals.js +1 -1
  43. package/schematics/bundles/standalone-migration.js +1 -1
  44. package/testing/index.d.ts +5 -3
  45. package/weak_ref.d-DWHPG08n.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.8
2
+ * @license Angular v19.2.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.8
2
+ * @license Angular v19.2.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4736,6 +4736,14 @@ declare abstract class RendererFactory2 {
4736
4736
  * renders a template into DOM. You can use custom rendering to intercept
4737
4737
  * rendering calls, or to render to something other than DOM.
4738
4738
  *
4739
+ * <div class="docs-alert docs-alert-important">
4740
+ * <p>
4741
+ * Please be aware that usage of `Renderer2`, in context of accessing DOM elements, provides no
4742
+ * extra security which makes it equivalent to
4743
+ * {@link /best-practices/security#direct-use-of-the-dom-apis-and-explicit-sanitization-calls Security vulnerabilities}.
4744
+ * </p>
4745
+ * </div>
4746
+ *
4739
4747
  * Create your custom renderer using `RendererFactory2`.
4740
4748
  *
4741
4749
  * Use a custom renderer to bypass Angular's templating and
@@ -8758,12 +8766,13 @@ declare const defaultKeyValueDiffers: KeyValueDiffers;
8758
8766
  */
8759
8767
  declare class ElementRef<T = any> {
8760
8768
  /**
8761
- * <div class="callout is-critical">
8769
+ * <div class="docs-alert docs-alert-important">
8762
8770
  * <header>Use with caution</header>
8763
8771
  * <p>
8764
8772
  * Use this API as the last resort when direct access to DOM is needed. Use templating and
8765
- * data-binding provided by Angular instead. Alternatively you can take a look at
8766
- * {@link Renderer2} which provides an API that can be safely used.
8773
+ * data-binding provided by Angular instead. If used, it is recommended in combination with
8774
+ * {@link /best-practices/security#direct-use-of-the-dom-apis-and-explicit-sanitization-calls DomSanitizer}
8775
+ * for maxiumum security;
8767
8776
  * </p>
8768
8777
  * </div>
8769
8778
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.8
2
+ * @license Angular v19.2.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "19.2.8",
3
+ "version": "19.2.9",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.8
2
+ * @license Angular v19.2.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.8
2
+ * @license Angular v19.2.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.8
2
+ * @license Angular v19.2.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.8
2
+ * @license Angular v19.2.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -30728,7 +30728,7 @@ function publishFacade(global) {
30728
30728
  * @description
30729
30729
  * Entry point for all public APIs of the compiler package.
30730
30730
  */
30731
- new Version('19.2.8');
30731
+ new Version('19.2.9');
30732
30732
 
30733
30733
  const _I18N_ATTR = 'i18n';
30734
30734
  const _I18N_ATTR_PREFIX = 'i18n-';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1007,7 +1007,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
1007
1007
  function compileDeclareClassMetadata(metadata) {
1008
1008
  const definitionMap = new checker.DefinitionMap();
1009
1009
  definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
1010
- definitionMap.set('version', checker.literal('19.2.8'));
1010
+ definitionMap.set('version', checker.literal('19.2.9'));
1011
1011
  definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
1012
1012
  definitionMap.set('type', metadata.type);
1013
1013
  definitionMap.set('decorators', metadata.decorators);
@@ -1025,7 +1025,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
1025
1025
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? checker.literal(null));
1026
1026
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? checker.literal(null));
1027
1027
  definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
1028
- definitionMap.set('version', checker.literal('19.2.8'));
1028
+ definitionMap.set('version', checker.literal('19.2.9'));
1029
1029
  definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
1030
1030
  definitionMap.set('type', metadata.type);
1031
1031
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -1120,7 +1120,7 @@ function createDirectiveDefinitionMap(meta) {
1120
1120
  const definitionMap = new checker.DefinitionMap();
1121
1121
  const minVersion = getMinimumVersionForPartialOutput(meta);
1122
1122
  definitionMap.set('minVersion', checker.literal(minVersion));
1123
- definitionMap.set('version', checker.literal('19.2.8'));
1123
+ definitionMap.set('version', checker.literal('19.2.9'));
1124
1124
  // e.g. `type: MyDirective`
1125
1125
  definitionMap.set('type', meta.type.value);
1126
1126
  if (meta.isStandalone !== undefined) {
@@ -1536,7 +1536,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
1536
1536
  function compileDeclareFactoryFunction(meta) {
1537
1537
  const definitionMap = new checker.DefinitionMap();
1538
1538
  definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
1539
- definitionMap.set('version', checker.literal('19.2.8'));
1539
+ definitionMap.set('version', checker.literal('19.2.9'));
1540
1540
  definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
1541
1541
  definitionMap.set('type', meta.type.value);
1542
1542
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -1571,7 +1571,7 @@ function compileDeclareInjectableFromMetadata(meta) {
1571
1571
  function createInjectableDefinitionMap(meta) {
1572
1572
  const definitionMap = new checker.DefinitionMap();
1573
1573
  definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
1574
- definitionMap.set('version', checker.literal('19.2.8'));
1574
+ definitionMap.set('version', checker.literal('19.2.9'));
1575
1575
  definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
1576
1576
  definitionMap.set('type', meta.type.value);
1577
1577
  // Only generate providedIn property if it has a non-null value
@@ -1622,7 +1622,7 @@ function compileDeclareInjectorFromMetadata(meta) {
1622
1622
  function createInjectorDefinitionMap(meta) {
1623
1623
  const definitionMap = new checker.DefinitionMap();
1624
1624
  definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
1625
- definitionMap.set('version', checker.literal('19.2.8'));
1625
+ definitionMap.set('version', checker.literal('19.2.9'));
1626
1626
  definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
1627
1627
  definitionMap.set('type', meta.type.value);
1628
1628
  definitionMap.set('providers', meta.providers);
@@ -1655,7 +1655,7 @@ function createNgModuleDefinitionMap(meta) {
1655
1655
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
1656
1656
  }
1657
1657
  definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
1658
- definitionMap.set('version', checker.literal('19.2.8'));
1658
+ definitionMap.set('version', checker.literal('19.2.9'));
1659
1659
  definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
1660
1660
  definitionMap.set('type', meta.type.value);
1661
1661
  // We only generate the keys in the metadata if the arrays contain values.
@@ -1706,7 +1706,7 @@ function compileDeclarePipeFromMetadata(meta) {
1706
1706
  function createPipeDefinitionMap(meta) {
1707
1707
  const definitionMap = new checker.DefinitionMap();
1708
1708
  definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION));
1709
- definitionMap.set('version', checker.literal('19.2.8'));
1709
+ definitionMap.set('version', checker.literal('19.2.9'));
1710
1710
  definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
1711
1711
  // e.g. `type: MyPipe`
1712
1712
  definitionMap.set('type', meta.type.value);
@@ -10730,7 +10730,7 @@ class PipeDecoratorHandler {
10730
10730
  * @description
10731
10731
  * Entry point for all public APIs of the compiler-cli package.
10732
10732
  */
10733
- new checker.Version('19.2.8');
10733
+ new checker.Version('19.2.9');
10734
10734
 
10735
10735
  /**
10736
10736
  * Whether a given decorator should be treated as an Angular decorator.
@@ -18585,7 +18585,7 @@ var semver = /*@__PURE__*/getDefaultExportFromCjs(semverExports);
18585
18585
  * @param minVersion Minimum required version for the feature.
18586
18586
  */
18587
18587
  function coreVersionSupportsFeature(coreVersion, minVersion) {
18588
- // A version of `19.2.8` usually means that core is at head so it supports
18588
+ // A version of `19.2.9` usually means that core is at head so it supports
18589
18589
  // all features. Use string interpolation prevent the placeholder from being replaced
18590
18590
  // with the current version during build time.
18591
18591
  if (coreVersion === `0.0.0-${'PLACEHOLDER'}`) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.8
3
+ * @license Angular v19.2.9
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.8
2
+ * @license Angular v19.2.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -534,7 +534,6 @@ declare class MetadataOverrider {
534
534
  * things like traversal delay.
535
535
  */
536
536
  declare class FakeNavigation implements Navigation {
537
- private readonly window;
538
537
  /**
539
538
  * The fake implementation of an entries array. Only same-document entries
540
539
  * allowed.
@@ -576,7 +575,10 @@ declare class FakeNavigation implements Navigation {
576
575
  get currentEntry(): FakeNavigationHistoryEntry;
577
576
  get canGoBack(): boolean;
578
577
  get canGoForward(): boolean;
579
- constructor(window: Window, startURL: `http${string}`);
578
+ private readonly createEventTarget;
579
+ private readonly _window;
580
+ get window(): Pick<Window, 'addEventListener' | 'removeEventListener'>;
581
+ constructor(doc: Document, startURL: `http${string}`);
580
582
  /**
581
583
  * Sets the initial entry.
582
584
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.8
2
+ * @license Angular v19.2.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */