@angular/core 17.0.0-next.3 → 17.0.0-next.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/src/core.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +3 -1
- package/esm2022/src/core_reactivity_export_internal.mjs +3 -3
- package/esm2022/src/core_render3_private_export.mjs +3 -2
- package/esm2022/src/di/initializer_token.mjs +1 -1
- package/esm2022/src/di/internal_tokens.mjs +1 -1
- package/esm2022/src/di/r3_injector.mjs +3 -4
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/metadata/ng_module_def.mjs +1 -1
- package/esm2022/src/metadata/resource_loading.mjs +27 -14
- package/esm2022/src/render3/after_render_hooks.mjs +123 -30
- package/esm2022/src/render3/component_ref.mjs +3 -4
- package/esm2022/src/render3/deps_tracker/api.mjs +1 -1
- package/esm2022/src/render3/deps_tracker/deps_tracker.mjs +13 -3
- package/esm2022/src/render3/index.mjs +2 -2
- package/esm2022/src/render3/instructions/change_detection.mjs +3 -3
- package/esm2022/src/render3/instructions/defer.mjs +121 -40
- package/esm2022/src/render3/interfaces/defer.mjs +66 -1
- package/esm2022/src/render3/interfaces/definition.mjs +1 -1
- package/esm2022/src/render3/interfaces/view.mjs +1 -1
- package/esm2022/src/render3/jit/directive.mjs +6 -2
- package/esm2022/src/render3/local_compilation.mjs +8 -2
- package/esm2022/src/render3/pipe.mjs +2 -1
- package/esm2022/src/render3/reactive_lview_consumer.mjs +1 -1
- package/esm2022/src/render3/reactivity/effect.mjs +134 -43
- package/esm2022/src/render3/scope.mjs +10 -4
- package/esm2022/src/signals/index.mjs +2 -2
- package/esm2022/src/signals/src/api.mjs +2 -2
- package/esm2022/src/signals/src/computed.mjs +50 -45
- package/esm2022/src/signals/src/graph.mjs +10 -2
- package/esm2022/src/signals/src/signal.mjs +11 -6
- package/esm2022/src/signals/src/watch.mjs +40 -12
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/component_fixture.mjs +20 -3
- package/esm2022/testing/src/defer.mjs +84 -0
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +24 -3
- package/esm2022/testing/src/test_bed_common.mjs +1 -1
- package/esm2022/testing/src/test_bed_compiler.mjs +7 -4
- package/esm2022/testing/src/testing.mjs +3 -1
- package/fesm2022/core.mjs +694 -285
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +124 -7
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +260 -25
- package/package.json +3 -3
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +1962 -1303
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +50 -2
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
// bazel-out/
|
|
59
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
|
|
60
60
|
var remove_module_id_exports = {};
|
|
61
61
|
__export(remove_module_id_exports, {
|
|
62
62
|
default: () => remove_module_id_default
|
|
@@ -66,13 +66,13 @@ var import_schematics = require("@angular-devkit/schematics");
|
|
|
66
66
|
var import_path2 = require("path");
|
|
67
67
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
68
68
|
|
|
69
|
-
// bazel-out/
|
|
69
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
|
|
70
70
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
71
71
|
|
|
72
|
-
// bazel-out/
|
|
72
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
73
73
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
74
74
|
|
|
75
|
-
// bazel-out/
|
|
75
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
76
76
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
77
77
|
function getImportOfIdentifier(typeChecker, node) {
|
|
78
78
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -94,7 +94,7 @@ function getImportOfIdentifier(typeChecker, node) {
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// bazel-out/
|
|
97
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
98
98
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
99
99
|
if (!import_typescript2.default.isCallExpression(decorator.expression) || !import_typescript2.default.isIdentifier(decorator.expression.expression)) {
|
|
100
100
|
return null;
|
|
@@ -103,7 +103,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
103
103
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// bazel-out/
|
|
106
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
107
107
|
function getAngularDecorators(typeChecker, decorators) {
|
|
108
108
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
109
109
|
node,
|
|
@@ -113,7 +113,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
113
113
|
}));
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
// bazel-out/
|
|
116
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
|
|
117
117
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
118
118
|
function unwrapExpression(node) {
|
|
119
119
|
if (import_typescript3.default.isParenthesizedExpression(node) || import_typescript3.default.isAsExpression(node)) {
|
|
@@ -123,7 +123,7 @@ function unwrapExpression(node) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// bazel-out/
|
|
126
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
|
|
127
127
|
function extractAngularClassMetadata(typeChecker, node) {
|
|
128
128
|
const decorators = import_typescript4.default.getDecorators(node);
|
|
129
129
|
if (!decorators || !decorators.length) {
|
|
@@ -150,7 +150,7 @@ function extractAngularClassMetadata(typeChecker, node) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
// bazel-out/
|
|
153
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
154
154
|
var import_core = require("@angular-devkit/core");
|
|
155
155
|
function getProjectTsConfigPaths(tree) {
|
|
156
156
|
return __async(this, null, function* () {
|
|
@@ -230,11 +230,11 @@ function getWorkspace(tree) {
|
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
// bazel-out/
|
|
233
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
234
234
|
var import_path = require("path");
|
|
235
235
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
236
236
|
|
|
237
|
-
// bazel-out/
|
|
237
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
238
238
|
var path = __toESM(require("path"), 1);
|
|
239
239
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
240
240
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -251,7 +251,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
251
251
|
return import_typescript5.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
// bazel-out/
|
|
254
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
255
255
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
256
256
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
257
257
|
return import_typescript6.default.createProgram(rootNames, options, host);
|
|
@@ -284,7 +284,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
284
284
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
// bazel-out/
|
|
287
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
|
|
288
288
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
289
289
|
function getPropertyNameText(node) {
|
|
290
290
|
if (import_typescript7.default.isIdentifier(node) || import_typescript7.default.isStringLiteralLike(node)) {
|
|
@@ -293,7 +293,7 @@ function getPropertyNameText(node) {
|
|
|
293
293
|
return null;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
// bazel-out/
|
|
296
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
|
|
297
297
|
function remove_module_id_default() {
|
|
298
298
|
return (tree) => __async(this, null, function* () {
|
|
299
299
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|