@angular/core 15.2.0-rc.0 → 15.2.1
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/esm2020/src/core_render3_private_export.mjs +2 -1
- package/esm2020/src/di/interface/defs.mjs +4 -5
- package/esm2020/src/di/provider_collection.mjs +2 -2
- package/esm2020/src/linker/query_list.mjs +6 -7
- package/esm2020/src/metadata/directives.mjs +1 -1
- package/esm2020/src/render3/instructions/element.mjs +10 -9
- package/esm2020/src/render3/instructions/shared.mjs +3 -4
- package/esm2020/src/render3/interfaces/node.mjs +1 -1
- package/esm2020/src/util/iterable.mjs +6 -7
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +27 -50
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +26 -49
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +27 -50
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +26 -49
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +11 -2
- package/package.json +2 -2
- package/schematics/migrations/relative-link-resolution/bundle.js +7 -7
- package/schematics/migrations/router-link-with-href/bundle.js +10 -10
- package/schematics/ng-generate/standalone-migration/bundle.js +634 -559
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2020/src/util/symbol.mjs +0 -30
- package/esm2020/src/view/index.mjs +0 -9
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.
|
|
2
|
+
* @license Angular v15.2.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2210,7 +2210,7 @@ export declare interface Directive {
|
|
|
2210
2210
|
* ```typescript
|
|
2211
2211
|
* @Component({
|
|
2212
2212
|
* selector: 'child-dir',
|
|
2213
|
-
* outputs: [ 'bankNameChange' ]
|
|
2213
|
+
* outputs: [ 'bankNameChange' ],
|
|
2214
2214
|
* template: `<input (input)="bankNameChange.emit($event.target.value)" />`
|
|
2215
2215
|
* })
|
|
2216
2216
|
* class ChildDir {
|
|
@@ -8000,6 +8000,11 @@ declare interface TNode {
|
|
|
8000
8000
|
* to insert them or remove them from the DOM.
|
|
8001
8001
|
*/
|
|
8002
8002
|
next: TNode | null;
|
|
8003
|
+
/**
|
|
8004
|
+
* The previous sibling node.
|
|
8005
|
+
* This simplifies operations when we need a pointer to the previous node.
|
|
8006
|
+
*/
|
|
8007
|
+
prev: TNode | null;
|
|
8003
8008
|
/**
|
|
8004
8009
|
* The next projected sibling. Since in Angular content projection works on the node-by-node
|
|
8005
8010
|
* basis the act of projecting nodes might change nodes relationship at the insertion point
|
|
@@ -10293,6 +10298,10 @@ export declare function ɵisInjectable(type: any): boolean;
|
|
|
10293
10298
|
|
|
10294
10299
|
export declare function ɵisListLikeIterable(obj: any): boolean;
|
|
10295
10300
|
|
|
10301
|
+
export declare function ɵisNgModule<T>(value: Type<T>): value is Type<T> & {
|
|
10302
|
+
ɵmod: ɵNgModuleDef<T>;
|
|
10303
|
+
};
|
|
10304
|
+
|
|
10296
10305
|
/**
|
|
10297
10306
|
* Determine if the argument is an Observable
|
|
10298
10307
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.1",
|
|
4
4
|
"description": "Angular - the core framework",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
39
|
-
"zone.js": "~0.11.4 || ~0.12.0"
|
|
39
|
+
"zone.js": "~0.11.4 || ~0.12.0 || ~0.13.0"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
// bazel-out/
|
|
59
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/index.mjs
|
|
60
60
|
var relative_link_resolution_exports = {};
|
|
61
61
|
__export(relative_link_resolution_exports, {
|
|
62
62
|
default: () => relative_link_resolution_default
|
|
@@ -65,7 +65,7 @@ module.exports = __toCommonJS(relative_link_resolution_exports);
|
|
|
65
65
|
var import_schematics = require("@angular-devkit/schematics");
|
|
66
66
|
var import_path2 = require("path");
|
|
67
67
|
|
|
68
|
-
// bazel-out/
|
|
68
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
69
69
|
var import_core = require("@angular-devkit/core");
|
|
70
70
|
function getProjectTsConfigPaths(tree) {
|
|
71
71
|
return __async(this, null, function* () {
|
|
@@ -145,11 +145,11 @@ function getWorkspace(tree) {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
// bazel-out/
|
|
148
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
149
149
|
var import_path = require("path");
|
|
150
150
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
151
151
|
|
|
152
|
-
// bazel-out/
|
|
152
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
153
153
|
var path = __toESM(require("path"), 1);
|
|
154
154
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
155
155
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -166,7 +166,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
166
166
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
// bazel-out/
|
|
169
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
170
170
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
171
171
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
172
172
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -199,7 +199,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
199
199
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
// bazel-out/
|
|
202
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/util.mjs
|
|
203
203
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
204
204
|
var relativeLinkResolution = "relativeLinkResolution";
|
|
205
205
|
var knownConfigValues = /* @__PURE__ */ new Set([`'legacy'`, `'corrected'`]);
|
|
@@ -239,7 +239,7 @@ function sortByStartPosDescending(rewrites) {
|
|
|
239
239
|
return rewrites.sort((entityA, entityB) => entityB.startPos - entityA.startPos);
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
// bazel-out/
|
|
242
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/index.mjs
|
|
243
243
|
function relative_link_resolution_default() {
|
|
244
244
|
return (tree) => __async(this, null, function* () {
|
|
245
245
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
// bazel-out/
|
|
59
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/index.mjs
|
|
60
60
|
var router_link_with_href_exports = {};
|
|
61
61
|
__export(router_link_with_href_exports, {
|
|
62
62
|
default: () => router_link_with_href_default
|
|
@@ -65,7 +65,7 @@ module.exports = __toCommonJS(router_link_with_href_exports);
|
|
|
65
65
|
var import_schematics = require("@angular-devkit/schematics");
|
|
66
66
|
var import_path2 = require("path");
|
|
67
67
|
|
|
68
|
-
// bazel-out/
|
|
68
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
69
69
|
var import_core = require("@angular-devkit/core");
|
|
70
70
|
function getProjectTsConfigPaths(tree) {
|
|
71
71
|
return __async(this, null, function* () {
|
|
@@ -145,11 +145,11 @@ function getWorkspace(tree) {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
// bazel-out/
|
|
148
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
149
149
|
var import_path = require("path");
|
|
150
150
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
151
151
|
|
|
152
|
-
// bazel-out/
|
|
152
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
153
153
|
var path = __toESM(require("path"), 1);
|
|
154
154
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
155
155
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -166,7 +166,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
166
166
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
// bazel-out/
|
|
169
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
170
170
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
171
171
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
172
172
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -199,10 +199,10 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
199
199
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
// bazel-out/
|
|
202
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/util.mjs
|
|
203
203
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
204
204
|
|
|
205
|
-
// bazel-out/
|
|
205
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
206
206
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
207
207
|
function getImportOfIdentifier(typeChecker, node) {
|
|
208
208
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -251,7 +251,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
// bazel-out/
|
|
254
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
255
255
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
256
256
|
function closestNode(node, predicate) {
|
|
257
257
|
let current = node.parent;
|
|
@@ -264,7 +264,7 @@ function closestNode(node, predicate) {
|
|
|
264
264
|
return null;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
// bazel-out/
|
|
267
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/util.mjs
|
|
268
268
|
var routerLink = "RouterLink";
|
|
269
269
|
var routerLinkWithHref = "RouterLinkWithHref";
|
|
270
270
|
var routerModule = "@angular/router";
|
|
@@ -323,7 +323,7 @@ function sortByStartPosDescending(rewrites) {
|
|
|
323
323
|
return rewrites.sort((entityA, entityB) => entityB.startPos - entityA.startPos);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
// bazel-out/
|
|
326
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/index.mjs
|
|
327
327
|
function router_link_with_href_default() {
|
|
328
328
|
return (tree) => __async(this, null, function* () {
|
|
329
329
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|