@angular/core 18.0.4 → 18.0.5
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/esm2022/primitives/event-dispatch/src/eventcontract.mjs +2 -2
- package/esm2022/src/change_detection/change_detector_ref.mjs +3 -2
- package/esm2022/src/defer/instructions.mjs +2 -2
- package/esm2022/src/di/host_tag_name_token.mjs +4 -1
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/event_delegation_utils.mjs +3 -2
- package/esm2022/src/hydration/annotate.mjs +27 -16
- package/esm2022/src/hydration/error_handling.mjs +3 -1
- package/esm2022/src/hydration/event_replay.mjs +3 -2
- package/esm2022/src/hydration/i18n.mjs +102 -18
- package/esm2022/src/hydration/node_lookup_utils.mjs +12 -6
- package/esm2022/src/render3/after_render_hooks.mjs +3 -1
- package/esm2022/src/render3/collect_native_nodes.mjs +6 -1
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/instructions/i18n_icu_container_visitor.mjs +61 -51
- package/esm2022/src/render3/instructions/let_declaration.mjs +30 -7
- package/esm2022/src/render3/instructions/projection.mjs +14 -11
- package/esm2022/src/render3/instructions/shared.mjs +1 -1
- package/esm2022/src/render3/interfaces/node.mjs +2 -1
- package/esm2022/src/render3/node_assert.mjs +9 -8
- package/esm2022/src/render3/node_manipulation.mjs +10 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +291 -140
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +2 -2
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +11 -3
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +2 -2
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/http-providers/bundle.js +15 -15
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +167 -162
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +175 -170
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +453 -448
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.
|
|
2
|
+
* @license Angular v18.0.5
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -104,6 +104,7 @@ export declare interface AfterContentInit {
|
|
|
104
104
|
* </div>
|
|
105
105
|
*
|
|
106
106
|
* @param callback A callback function to register
|
|
107
|
+
* @param options Options to control the behavior of the callback
|
|
107
108
|
*
|
|
108
109
|
* @usageNotes
|
|
109
110
|
*
|
|
@@ -156,6 +157,7 @@ export declare function afterNextRender(callback: VoidFunction, options?: AfterR
|
|
|
156
157
|
* </div>
|
|
157
158
|
*
|
|
158
159
|
* @param callback A callback function to register
|
|
160
|
+
* @param options Options to control the behavior of the callback
|
|
159
161
|
*
|
|
160
162
|
* @usageNotes
|
|
161
163
|
*
|
|
@@ -10405,6 +10407,10 @@ declare const enum TNodeType {
|
|
|
10405
10407
|
* existing `TNode` (rather than create a new one) and just update the missing information.
|
|
10406
10408
|
*/
|
|
10407
10409
|
Placeholder = 64,
|
|
10410
|
+
/**
|
|
10411
|
+
* The TNode contains information about a `@let` declaration.
|
|
10412
|
+
*/
|
|
10413
|
+
LetDeclaration = 128,
|
|
10408
10414
|
AnyRNode = 3,// Text | Element
|
|
10409
10415
|
AnyContainer = 12
|
|
10410
10416
|
}
|
|
@@ -13566,6 +13572,7 @@ export declare const enum ɵRuntimeErrorCode {
|
|
|
13566
13572
|
HOST_DIRECTIVE_UNDEFINED_BINDING = 311,
|
|
13567
13573
|
HOST_DIRECTIVE_CONFLICTING_ALIAS = 312,
|
|
13568
13574
|
MULTIPLE_MATCHING_PIPES = 313,
|
|
13575
|
+
UNINITIALIZED_LET_ACCESS = 314,
|
|
13569
13576
|
MULTIPLE_PLATFORMS = 400,
|
|
13570
13577
|
PLATFORM_NOT_FOUND = 401,
|
|
13571
13578
|
MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP = 402,
|
|
@@ -14847,7 +14854,7 @@ export declare function ɵɵcontentQuerySignal<T>(directiveIndex: number, target
|
|
|
14847
14854
|
export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef<any> | ɵComponentDef<any>): void;
|
|
14848
14855
|
|
|
14849
14856
|
/**
|
|
14850
|
-
* Declares an `@let` at a specific data slot.
|
|
14857
|
+
* Declares an `@let` at a specific data slot. Returns itself to allow chaining.
|
|
14851
14858
|
*
|
|
14852
14859
|
* @param index Index at which to declare the `@let`.
|
|
14853
14860
|
*
|
|
@@ -16534,7 +16541,7 @@ export declare function ɵɵqueryAdvance(indexOffset?: number): void;
|
|
|
16534
16541
|
export declare function ɵɵqueryRefresh(queryList: QueryList<any>): boolean;
|
|
16535
16542
|
|
|
16536
16543
|
/**
|
|
16537
|
-
* Retrieves the value of a `@let` declaration defined
|
|
16544
|
+
* Retrieves the value of a `@let` declaration defined in a parent view.
|
|
16538
16545
|
*
|
|
16539
16546
|
* @param index Index of the declaration within the view.
|
|
16540
16547
|
*
|
|
@@ -16797,6 +16804,7 @@ export declare function ɵɵStandaloneFeature(definition: ɵComponentDef<unknown
|
|
|
16797
16804
|
|
|
16798
16805
|
/**
|
|
16799
16806
|
* Instruction that stores the value of a `@let` declaration on the current view.
|
|
16807
|
+
* Returns the value to allow usage inside variable initializers.
|
|
16800
16808
|
*
|
|
16801
16809
|
* @codeGenApi
|
|
16802
16810
|
*/
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.
|
|
2
|
+
* @license Angular v18.0.5
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -142,7 +142,7 @@ export declare class EventContract implements UnrenamedEventContract {
|
|
|
142
142
|
/** Whether to add an a11y click listener. */
|
|
143
143
|
private addA11yClickListener;
|
|
144
144
|
ecaacs?: (updateEventInfoForA11yClick: typeof a11yClickLib.updateEventInfoForA11yClick, preventDefaultForA11yClick: typeof a11yClickLib.preventDefaultForA11yClick, populateClickOnlyAction: typeof a11yClickLib.populateClickOnlyAction) => void;
|
|
145
|
-
constructor(containerManager: EventContractContainerManager, useActionResolver
|
|
145
|
+
constructor(containerManager: EventContractContainerManager, useActionResolver: false);
|
|
146
146
|
private handleEvent;
|
|
147
147
|
/**
|
|
148
148
|
* Handle an `EventInfo`.
|
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
// bazel-out/
|
|
63
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
|
|
64
64
|
var http_providers_exports = {};
|
|
65
65
|
__export(http_providers_exports, {
|
|
66
66
|
default: () => http_providers_default
|
|
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(http_providers_exports);
|
|
|
69
69
|
var import_schematics = require("@angular-devkit/schematics");
|
|
70
70
|
var import_path3 = require("path");
|
|
71
71
|
|
|
72
|
-
// bazel-out/
|
|
72
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
73
73
|
var import_core = require("@angular-devkit/core");
|
|
74
74
|
function getProjectTsConfigPaths(tree) {
|
|
75
75
|
return __async(this, null, function* () {
|
|
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
// bazel-out/
|
|
152
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
153
153
|
var import_path = require("path");
|
|
154
154
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
155
155
|
|
|
156
|
-
// bazel-out/
|
|
156
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
157
157
|
var path = __toESM(require("path"), 1);
|
|
158
158
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
159
159
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
170
170
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
// bazel-out/
|
|
173
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
174
174
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
175
175
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
176
176
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
203
203
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
// bazel-out/
|
|
206
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
|
|
207
207
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
208
208
|
|
|
209
|
-
// bazel-out/
|
|
209
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
210
210
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
211
211
|
|
|
212
|
-
// bazel-out/
|
|
212
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
213
213
|
var import_path2 = require("path");
|
|
214
214
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
215
215
|
var ImportManager = class {
|
|
@@ -393,7 +393,7 @@ ${text}`;
|
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
-
// bazel-out/
|
|
396
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
397
397
|
var ChangeTracker = class {
|
|
398
398
|
constructor(_printer, _importRemapper) {
|
|
399
399
|
__publicField(this, "_printer");
|
|
@@ -456,10 +456,10 @@ function normalizePath(path2) {
|
|
|
456
456
|
return path2.replace(/\\/g, "/");
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
-
// bazel-out/
|
|
459
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
460
460
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
461
461
|
|
|
462
|
-
// bazel-out/
|
|
462
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
463
463
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
464
464
|
function getImportOfIdentifier(typeChecker, node) {
|
|
465
465
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -519,7 +519,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
// bazel-out/
|
|
522
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
523
523
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
524
524
|
if (!import_typescript6.default.isCallExpression(decorator.expression) || !import_typescript6.default.isIdentifier(decorator.expression.expression)) {
|
|
525
525
|
return null;
|
|
@@ -528,7 +528,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
528
528
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
// bazel-out/
|
|
531
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
532
532
|
function getAngularDecorators(typeChecker, decorators) {
|
|
533
533
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
534
534
|
node,
|
|
@@ -538,7 +538,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
538
538
|
}));
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
-
// bazel-out/
|
|
541
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
|
|
542
542
|
var HTTP_CLIENT_MODULE = "HttpClientModule";
|
|
543
543
|
var HTTP_CLIENT_XSRF_MODULE = "HttpClientXsrfModule";
|
|
544
544
|
var HTTP_CLIENT_JSONP_MODULE = "HttpClientJsonpModule";
|
|
@@ -826,7 +826,7 @@ function updateTestBedConfiguration(configureTestingModuleArgs, newImports, newP
|
|
|
826
826
|
]);
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
-
// bazel-out/
|
|
829
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
|
|
830
830
|
function http_providers_default() {
|
|
831
831
|
return (tree) => __async(this, null, function* () {
|
|
832
832
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|