@schematics/angular 14.0.0-rc.1 → 14.0.0-rc.2
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/app-shell/schema.json +0 -3
- package/class/schema.json +3 -0
- package/component/schema.json +3 -0
- package/directive/schema.json +3 -0
- package/enum/schema.json +3 -0
- package/guard/schema.json +3 -0
- package/interceptor/schema.json +3 -0
- package/interface/schema.json +3 -0
- package/module/schema.json +3 -0
- package/package.json +3 -3
- package/pipe/schema.json +3 -0
- package/resolver/schema.json +3 -0
- package/service/schema.json +3 -1
- package/third_party/github.com/Microsoft/TypeScript/BUILD.bazel +4 -4
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +9 -9
- package/utility/latest-versions/package.json +1 -1
- package/web-worker/schema.json +3 -0
package/app-shell/schema.json
CHANGED
|
@@ -27,19 +27,16 @@
|
|
|
27
27
|
},
|
|
28
28
|
"main": {
|
|
29
29
|
"type": "string",
|
|
30
|
-
"format": "path",
|
|
31
30
|
"description": "The name of the main entry-point file.",
|
|
32
31
|
"default": "main.server.ts"
|
|
33
32
|
},
|
|
34
33
|
"appDir": {
|
|
35
34
|
"type": "string",
|
|
36
|
-
"format": "path",
|
|
37
35
|
"description": "The name of the application directory.",
|
|
38
36
|
"default": "app"
|
|
39
37
|
},
|
|
40
38
|
"rootModuleFileName": {
|
|
41
39
|
"type": "string",
|
|
42
|
-
"format": "path",
|
|
43
40
|
"description": "The name of the root module file",
|
|
44
41
|
"default": "app.server.module.ts"
|
|
45
42
|
},
|
package/class/schema.json
CHANGED
package/component/schema.json
CHANGED
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"path": {
|
|
10
10
|
"type": "string",
|
|
11
11
|
"format": "path",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "workingDirectory"
|
|
14
|
+
},
|
|
12
15
|
"description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
|
|
13
16
|
"visible": false
|
|
14
17
|
},
|
package/directive/schema.json
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"path": {
|
|
19
19
|
"type": "string",
|
|
20
20
|
"format": "path",
|
|
21
|
+
"$default": {
|
|
22
|
+
"$source": "workingDirectory"
|
|
23
|
+
},
|
|
21
24
|
"description": "The path at which to create the interface that defines the directive, relative to the workspace root.",
|
|
22
25
|
"visible": false
|
|
23
26
|
},
|
package/enum/schema.json
CHANGED
package/guard/schema.json
CHANGED
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
"path": {
|
|
30
30
|
"type": "string",
|
|
31
31
|
"format": "path",
|
|
32
|
+
"$default": {
|
|
33
|
+
"$source": "workingDirectory"
|
|
34
|
+
},
|
|
32
35
|
"description": "The path at which to create the interface that defines the guard, relative to the current workspace.",
|
|
33
36
|
"visible": false
|
|
34
37
|
},
|
package/interceptor/schema.json
CHANGED
package/interface/schema.json
CHANGED
package/module/schema.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "14.0.0-rc.
|
|
3
|
+
"version": "14.0.0-rc.2",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"schematics": "./collection.json",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@angular-devkit/core": "14.0.0-rc.
|
|
26
|
-
"@angular-devkit/schematics": "14.0.0-rc.
|
|
25
|
+
"@angular-devkit/core": "14.0.0-rc.2",
|
|
26
|
+
"@angular-devkit/schematics": "14.0.0-rc.2",
|
|
27
27
|
"jsonc-parser": "3.0.0"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
package/pipe/schema.json
CHANGED
package/resolver/schema.json
CHANGED
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
"path": {
|
|
30
30
|
"type": "string",
|
|
31
31
|
"format": "path",
|
|
32
|
+
"$default": {
|
|
33
|
+
"$source": "workingDirectory"
|
|
34
|
+
},
|
|
32
35
|
"description": "The path at which to create the interface that defines the resolver, relative to the current workspace.",
|
|
33
36
|
"visible": false
|
|
34
37
|
},
|
package/service/schema.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
load("//tools:defaults.bzl", "ts_library")
|
|
2
2
|
|
|
3
|
-
# files fetched on 2022-05-
|
|
4
|
-
# https://github.com/microsoft/TypeScript/releases/tag/v4.7
|
|
3
|
+
# files fetched on 2022-05-25 from
|
|
4
|
+
# https://github.com/microsoft/TypeScript/releases/tag/v4.7.2
|
|
5
5
|
|
|
6
6
|
# Commands to download:
|
|
7
|
-
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7
|
|
8
|
-
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7
|
|
7
|
+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7.2/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
|
|
8
|
+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7.2/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
|
|
9
9
|
|
|
10
10
|
licenses(["notice"]) # Apache 2.0
|
|
11
11
|
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = "
|
|
297
|
+
ts.version = "4.7.2";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -59090,9 +59090,9 @@ var ts;
|
|
|
59090
59090
|
t.flags & 2097152 /* TypeFlags.Intersection */ ? getApparentTypeOfIntersectionType(t) :
|
|
59091
59091
|
t.flags & 402653316 /* TypeFlags.StringLike */ ? globalStringType :
|
|
59092
59092
|
t.flags & 296 /* TypeFlags.NumberLike */ ? globalNumberType :
|
|
59093
|
-
t.flags & 2112 /* TypeFlags.BigIntLike */ ? getGlobalBigIntType(
|
|
59093
|
+
t.flags & 2112 /* TypeFlags.BigIntLike */ ? getGlobalBigIntType() :
|
|
59094
59094
|
t.flags & 528 /* TypeFlags.BooleanLike */ ? globalBooleanType :
|
|
59095
|
-
t.flags & 12288 /* TypeFlags.ESSymbolLike */ ? getGlobalESSymbolType(
|
|
59095
|
+
t.flags & 12288 /* TypeFlags.ESSymbolLike */ ? getGlobalESSymbolType() :
|
|
59096
59096
|
t.flags & 67108864 /* TypeFlags.NonPrimitive */ ? emptyObjectType :
|
|
59097
59097
|
t.flags & 4194304 /* TypeFlags.Index */ ? keyofConstraintType :
|
|
59098
59098
|
t.flags & 2 /* TypeFlags.Unknown */ && !strictNullChecks ? emptyObjectType :
|
|
@@ -60667,8 +60667,8 @@ var ts;
|
|
|
60667
60667
|
function getGlobalESSymbolConstructorTypeSymbol(reportErrors) {
|
|
60668
60668
|
return deferredGlobalESSymbolConstructorTypeSymbol || (deferredGlobalESSymbolConstructorTypeSymbol = getGlobalTypeSymbol("SymbolConstructor", reportErrors));
|
|
60669
60669
|
}
|
|
60670
|
-
function getGlobalESSymbolType(
|
|
60671
|
-
return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", /*arity*/ 0, reportErrors))) || emptyObjectType;
|
|
60670
|
+
function getGlobalESSymbolType() {
|
|
60671
|
+
return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", /*arity*/ 0, /*reportErrors*/ false))) || emptyObjectType;
|
|
60672
60672
|
}
|
|
60673
60673
|
function getGlobalPromiseType(reportErrors) {
|
|
60674
60674
|
return (deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType("Promise", /*arity*/ 1, reportErrors))) || emptyGenericType;
|
|
@@ -60732,8 +60732,8 @@ var ts;
|
|
|
60732
60732
|
deferredGlobalAwaitedSymbol || (deferredGlobalAwaitedSymbol = getGlobalTypeAliasSymbol("Awaited", /*arity*/ 1, reportErrors) || (reportErrors ? unknownSymbol : undefined));
|
|
60733
60733
|
return deferredGlobalAwaitedSymbol === unknownSymbol ? undefined : deferredGlobalAwaitedSymbol;
|
|
60734
60734
|
}
|
|
60735
|
-
function getGlobalBigIntType(
|
|
60736
|
-
return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", /*arity*/ 0, reportErrors))) || emptyObjectType;
|
|
60735
|
+
function getGlobalBigIntType() {
|
|
60736
|
+
return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", /*arity*/ 0, /*reportErrors*/ false))) || emptyObjectType;
|
|
60737
60737
|
}
|
|
60738
60738
|
/**
|
|
60739
60739
|
* Instantiates a global type that is generic with some element type, and returns that instantiation.
|
|
@@ -64885,7 +64885,7 @@ var ts;
|
|
|
64885
64885
|
if ((globalStringType === source && stringType === target) ||
|
|
64886
64886
|
(globalNumberType === source && numberType === target) ||
|
|
64887
64887
|
(globalBooleanType === source && booleanType === target) ||
|
|
64888
|
-
(getGlobalESSymbolType(
|
|
64888
|
+
(getGlobalESSymbolType() === source && esSymbolType === target)) {
|
|
64889
64889
|
reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, targetType, sourceType);
|
|
64890
64890
|
}
|
|
64891
64891
|
}
|
|
@@ -82697,7 +82697,7 @@ var ts;
|
|
|
82697
82697
|
var childSymbol = getSymbolAtLocation(childNode);
|
|
82698
82698
|
if (childSymbol && childSymbol === testedSymbol) {
|
|
82699
82699
|
// If the test was a simple identifier, the above check is sufficient
|
|
82700
|
-
if (ts.isIdentifier(expr)) {
|
|
82700
|
+
if (ts.isIdentifier(expr) || ts.isIdentifier(testedNode) && ts.isBinaryExpression(testedNode.parent)) {
|
|
82701
82701
|
return true;
|
|
82702
82702
|
}
|
|
82703
82703
|
// Otherwise we need to ensure the symbol is called on the same target
|
package/web-worker/schema.json
CHANGED