@angular/core 21.1.4 → 21.1.6
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 +17 -6
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_effect-chunk.mjs.map +1 -1
- package/fesm2022/_linked_signal-chunk.mjs +1 -1
- package/fesm2022/_linked_signal-chunk.mjs.map +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_resource-chunk.mjs +1 -1
- package/fesm2022/_untracked-chunk.mjs +8 -8
- package/fesm2022/_untracked-chunk.mjs.map +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +5 -3
- package/fesm2022/core.mjs.map +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/primitives-signals.mjs.map +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 +1 -1
- 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 +4 -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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1.
|
|
2
|
+
* @license Angular v21.1.6
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1212,7 +1212,7 @@ function reflectDependency(dep) {
|
|
|
1212
1212
|
meta.token = param.token;
|
|
1213
1213
|
} else if (param instanceof Attribute) {
|
|
1214
1214
|
if (param.attributeName === undefined) {
|
|
1215
|
-
throw new RuntimeError(204, ngDevMode && `Attribute name must be defined.`);
|
|
1215
|
+
throw new RuntimeError(-204, ngDevMode && `Attribute name must be defined.`);
|
|
1216
1216
|
}
|
|
1217
1217
|
meta.attribute = param.attributeName;
|
|
1218
1218
|
} else {
|
|
@@ -8327,7 +8327,7 @@ class ComponentFactory extends ComponentFactory$1 {
|
|
|
8327
8327
|
}
|
|
8328
8328
|
}
|
|
8329
8329
|
function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
|
|
8330
|
-
const tAttributes = rootSelectorOrNode ? ['ng-version', '21.1.
|
|
8330
|
+
const tAttributes = rootSelectorOrNode ? ['ng-version', '21.1.6'] : extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
|
|
8331
8331
|
let creationBindings = null;
|
|
8332
8332
|
let updateBindings = null;
|
|
8333
8333
|
let varsToAllocate = 0;
|
|
@@ -15472,8 +15472,19 @@ function walkIcuTree(ast, tView, tIcu, lView, sharedUpdateOpCodes, create, remov
|
|
|
15472
15472
|
} else {
|
|
15473
15473
|
ngDevMode && console.warn(`WARNING: ignoring unsafe attribute value ` + `${lowerAttrName} on element ${tagName} ` + `(see ${XSS_SECURITY_URL})`);
|
|
15474
15474
|
}
|
|
15475
|
+
} else if (VALID_ATTRS[lowerAttrName]) {
|
|
15476
|
+
if (URI_ATTRS[lowerAttrName]) {
|
|
15477
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
15478
|
+
console.warn(`WARNING: ignoring unsafe attribute ` + `${lowerAttrName} on element ${tagName} ` + `(see ${XSS_SECURITY_URL})`);
|
|
15479
|
+
}
|
|
15480
|
+
addCreateAttribute(create, newIndex, attr.name, 'unsafe:blocked');
|
|
15481
|
+
} else {
|
|
15482
|
+
addCreateAttribute(create, newIndex, attr.name, attr.value);
|
|
15483
|
+
}
|
|
15475
15484
|
} else {
|
|
15476
|
-
|
|
15485
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
15486
|
+
console.warn(`WARNING: ignoring unknown attribute name ` + `${lowerAttrName} on element ${tagName} ` + `(see ${XSS_SECURITY_URL})`);
|
|
15487
|
+
}
|
|
15477
15488
|
}
|
|
15478
15489
|
}
|
|
15479
15490
|
const elementNode = {
|
|
@@ -15537,8 +15548,8 @@ function addCreateNodeAndAppend(create, marker, text, appendToParentIdx, createA
|
|
|
15537
15548
|
}
|
|
15538
15549
|
create.push(text, createAtIdx, icuCreateOpCode(0, appendToParentIdx, createAtIdx));
|
|
15539
15550
|
}
|
|
15540
|
-
function addCreateAttribute(create, newIndex,
|
|
15541
|
-
create.push(newIndex << 1 | 1,
|
|
15551
|
+
function addCreateAttribute(create, newIndex, attrName, attrValue) {
|
|
15552
|
+
create.push(newIndex << 1 | 1, attrName, attrValue);
|
|
15542
15553
|
}
|
|
15543
15554
|
|
|
15544
15555
|
const ROOT_TEMPLATE_ID = 0;
|