@angular/core 20.3.15 → 20.3.16

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 (58) hide show
  1. package/api.d.d.ts +1 -1
  2. package/chrome_dev_tools_performance.d.d.ts +1 -1
  3. package/discovery.d.d.ts +1 -1
  4. package/effect.d.d.ts +1 -1
  5. package/event_dispatcher.d.d.ts +1 -1
  6. package/fesm2022/attribute.mjs +1 -1
  7. package/fesm2022/core.mjs +1 -1
  8. package/fesm2022/debug_node.mjs +9 -12
  9. package/fesm2022/debug_node.mjs.map +1 -1
  10. package/fesm2022/effect.mjs +1 -1
  11. package/fesm2022/not_found.mjs +1 -1
  12. package/fesm2022/primitives/di.mjs +1 -1
  13. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  14. package/fesm2022/primitives/signals.mjs +1 -1
  15. package/fesm2022/resource.mjs +1 -1
  16. package/fesm2022/root_effect_scheduler.mjs +2 -2
  17. package/fesm2022/root_effect_scheduler.mjs.map +1 -1
  18. package/fesm2022/rxjs-interop.mjs +1 -1
  19. package/fesm2022/signal.mjs +1 -1
  20. package/fesm2022/testing.mjs +1 -1
  21. package/fesm2022/weak_ref.mjs +1 -1
  22. package/formatter.d.d.ts +1 -1
  23. package/index.d.ts +1 -1
  24. package/package.json +2 -2
  25. package/primitives/di/index.d.ts +1 -1
  26. package/primitives/event-dispatch/index.d.ts +1 -1
  27. package/primitives/signals/index.d.ts +1 -1
  28. package/rxjs-interop/index.d.ts +1 -1
  29. package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +5 -5
  30. package/schematics/bundles/{apply_import_manager-BKP1lF28.cjs → apply_import_manager-C-hIllzM.cjs} +3 -3
  31. package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
  32. package/schematics/bundles/{compiler_host-CNpC4-d2.cjs → compiler_host-C7zi7NDP.cjs} +2 -2
  33. package/schematics/bundles/control-flow-migration.cjs +3 -3
  34. package/schematics/bundles/document-core.cjs +5 -5
  35. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  36. package/schematics/bundles/{index-DxdWo-Gr.cjs → index-BdbAclL_.cjs} +4 -4
  37. package/schematics/bundles/{index-Cu2VLWJC.cjs → index-CEqacA4Q.cjs} +12 -12
  38. package/schematics/bundles/inject-flags.cjs +5 -5
  39. package/schematics/bundles/inject-migration.cjs +3 -3
  40. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  41. package/schematics/bundles/{migrate_ts_type_references-Cyyq9Vr9.cjs → migrate_ts_type_references-BJnim1Tm.cjs} +5 -5
  42. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  43. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  44. package/schematics/bundles/output-migration.cjs +6 -6
  45. package/schematics/bundles/{project_paths-Ck6Mza_h.cjs → project_paths-qw-vHpyb.cjs} +3 -3
  46. package/schematics/bundles/{project_tsconfig_paths-CgKwP2MX.cjs → project_tsconfig_paths-C5dXM8JP.cjs} +7 -3
  47. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  48. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  49. package/schematics/bundles/router-current-navigation.cjs +4 -4
  50. package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
  51. package/schematics/bundles/signal-input-migration.cjs +7 -7
  52. package/schematics/bundles/signal-queries-migration.cjs +7 -7
  53. package/schematics/bundles/signals.cjs +7 -7
  54. package/schematics/bundles/standalone-migration.cjs +4 -4
  55. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  56. package/schematics/bundles/test-bed-get.cjs +4 -4
  57. package/testing/index.d.ts +1 -1
  58. package/weak_ref.d.d.ts +1 -1
package/api.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.3.15
2
+ * @license Angular v20.3.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.3.15
2
+ * @license Angular v20.3.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
package/discovery.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.3.15
2
+ * @license Angular v20.3.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
package/effect.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.3.15
2
+ * @license Angular v20.3.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.3.15
2
+ * @license Angular v20.3.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.3.15
2
+ * @license Angular v20.3.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
package/fesm2022/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.3.15
2
+ * @license Angular v20.3.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.3.15
2
+ * @license Angular v20.3.16
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -6192,6 +6192,9 @@ function ɵɵtrustConstantResourceUrl(url) {
6192
6192
  }
6193
6193
  return trustedScriptURLFromString(url[0]);
6194
6194
  }
6195
+ // Define sets outside the function for O(1) lookups and memory efficiency
6196
+ const SRC_RESOURCE_TAGS = new Set(['embed', 'frame', 'iframe', 'media', 'script']);
6197
+ const HREF_RESOURCE_TAGS = new Set(['base', 'link', 'script']);
6195
6198
  /**
6196
6199
  * Detects which sanitizer to use for URL property, based on tag name and prop name.
6197
6200
  *
@@ -6200,16 +6203,10 @@ function ɵɵtrustConstantResourceUrl(url) {
6200
6203
  * If tag and prop names don't match Resource URL schema, use URL sanitizer.
6201
6204
  */
6202
6205
  function getUrlSanitizer(tag, prop) {
6203
- if ((prop === 'src' &&
6204
- (tag === 'embed' ||
6205
- tag === 'frame' ||
6206
- tag === 'iframe' ||
6207
- tag === 'media' ||
6208
- tag === 'script')) ||
6209
- (prop === 'href' && (tag === 'base' || tag === 'link'))) {
6210
- return ɵɵsanitizeResourceUrl;
6211
- }
6212
- return ɵɵsanitizeUrl;
6206
+ const isResource = (prop === 'src' && SRC_RESOURCE_TAGS.has(tag)) ||
6207
+ (prop === 'href' && HREF_RESOURCE_TAGS.has(tag)) ||
6208
+ (prop === 'xlink:href' && tag === 'script');
6209
+ return isResource ? ɵɵsanitizeResourceUrl : ɵɵsanitizeUrl;
6213
6210
  }
6214
6211
  /**
6215
6212
  * Sanitizes URL, selecting sanitizer function based on tag and property names.
@@ -14723,7 +14720,7 @@ class ComponentFactory extends ComponentFactory$1 {
14723
14720
  }
14724
14721
  function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
14725
14722
  const tAttributes = rootSelectorOrNode
14726
- ? ['ng-version', '20.3.15']
14723
+ ? ['ng-version', '20.3.16']
14727
14724
  : // Extract attributes and classes from the first selector only to match VE behavior.
14728
14725
  extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
14729
14726
  let creationBindings = null;