@angular/core 19.2.17 → 19.2.18

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 (46) hide show
  1. package/event_dispatcher.d-K56StcHr.d.ts +1 -1
  2. package/fesm2022/core.mjs +10 -13
  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 +1 -1
  9. package/fesm2022/untracked-BKcld_ew.mjs +1 -1
  10. package/index.d.ts +1 -1
  11. package/navigation_types.d-fAxd92YV.d.ts +1 -1
  12. package/package.json +1 -1
  13. package/primitives/di/index.d.ts +1 -1
  14. package/primitives/event-dispatch/index.d.ts +1 -1
  15. package/primitives/signals/index.d.ts +1 -1
  16. package/rxjs-interop/index.d.ts +1 -1
  17. package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +2 -2
  18. package/schematics/bundles/{apply_import_manager-BJETGeOK.cjs → apply_import_manager-BDckZ-aO.cjs} +3 -3
  19. package/schematics/bundles/{change_tracker-DCYvDUoh.cjs → change_tracker-EC4_OX_3.cjs} +2 -2
  20. package/schematics/bundles/{checker-3NZgzGls.cjs → checker-B7WeiY-n.cjs} +7 -3
  21. package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
  22. package/schematics/bundles/compiler_host-CAfDJO3W.cjs +1 -1
  23. package/schematics/bundles/control-flow-migration.cjs +3 -3
  24. package/schematics/bundles/explicit-standalone-flag.cjs +3 -3
  25. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  26. package/schematics/bundles/{index-CZ9tBi9p.cjs → index-DeAjKhiO.cjs} +12 -12
  27. package/schematics/bundles/{index-CVdD79i5.cjs → index-DyN3x_2s.cjs} +4 -4
  28. package/schematics/bundles/inject-migration.cjs +3 -3
  29. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  30. package/schematics/bundles/{migrate_ts_type_references-CvSO8ojl.cjs → migrate_ts_type_references-L5PQQLA-.cjs} +5 -5
  31. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  32. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  33. package/schematics/bundles/output-migration.cjs +6 -6
  34. package/schematics/bundles/pending-tasks.cjs +3 -3
  35. package/schematics/bundles/{project_paths-iOxGOuAR.cjs → project_paths-DIZUxMOI.cjs} +3 -3
  36. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
  37. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  38. package/schematics/bundles/provide-initializer.cjs +3 -3
  39. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  40. package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
  41. package/schematics/bundles/signal-input-migration.cjs +7 -7
  42. package/schematics/bundles/signal-queries-migration.cjs +7 -7
  43. package/schematics/bundles/signals.cjs +7 -7
  44. package/schematics/bundles/standalone-migration.cjs +4 -4
  45. package/testing/index.d.ts +1 -1
  46. package/weak_ref.d-DWHPG08n.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.17
2
+ * @license Angular v19.2.18
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/fesm2022/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.17
2
+ * @license Angular v19.2.18
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -11458,6 +11458,9 @@ function ɵɵtrustConstantResourceUrl(url) {
11458
11458
  }
11459
11459
  return trustedScriptURLFromString(url[0]);
11460
11460
  }
11461
+ // Define sets outside the function for O(1) lookups and memory efficiency
11462
+ const SRC_RESOURCE_TAGS = new Set(['embed', 'frame', 'iframe', 'media', 'script']);
11463
+ const HREF_RESOURCE_TAGS = new Set(['base', 'link', 'script']);
11461
11464
  /**
11462
11465
  * Detects which sanitizer to use for URL property, based on tag name and prop name.
11463
11466
  *
@@ -11466,16 +11469,10 @@ function ɵɵtrustConstantResourceUrl(url) {
11466
11469
  * If tag and prop names don't match Resource URL schema, use URL sanitizer.
11467
11470
  */
11468
11471
  function getUrlSanitizer(tag, prop) {
11469
- if ((prop === 'src' &&
11470
- (tag === 'embed' ||
11471
- tag === 'frame' ||
11472
- tag === 'iframe' ||
11473
- tag === 'media' ||
11474
- tag === 'script')) ||
11475
- (prop === 'href' && (tag === 'base' || tag === 'link'))) {
11476
- return ɵɵsanitizeResourceUrl;
11477
- }
11478
- return ɵɵsanitizeUrl;
11472
+ const isResource = (prop === 'src' && SRC_RESOURCE_TAGS.has(tag)) ||
11473
+ (prop === 'href' && HREF_RESOURCE_TAGS.has(tag)) ||
11474
+ (prop === 'xlink:href' && tag === 'script');
11475
+ return isResource ? ɵɵsanitizeResourceUrl : ɵɵsanitizeUrl;
11479
11476
  }
11480
11477
  /**
11481
11478
  * Sanitizes URL, selecting sanitizer function based on tag and property names.
@@ -18082,7 +18079,7 @@ class ComponentFactory extends ComponentFactory$1 {
18082
18079
  const cmpDef = this.componentDef;
18083
18080
  ngDevMode && verifyNotAnOrphanComponent(cmpDef);
18084
18081
  const tAttributes = rootSelectorOrNode
18085
- ? ['ng-version', '19.2.17']
18082
+ ? ['ng-version', '19.2.18']
18086
18083
  : // Extract attributes and classes from the first selector only to match VE behavior.
18087
18084
  extractAttrsAndClassesFromSelector(this.componentDef.selectors[0]);
18088
18085
  // Create the root view. Uses empty TView and ContentTemplate.
@@ -34789,7 +34786,7 @@ class Version {
34789
34786
  /**
34790
34787
  * @publicApi
34791
34788
  */
34792
- const VERSION = new Version('19.2.17');
34789
+ const VERSION = new Version('19.2.18');
34793
34790
 
34794
34791
  /**
34795
34792
  * Combination of NgModuleFactory and ComponentFactories.