@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.
@@ -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
@@ -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 class, relative to the workspace root.",
22
25
  "visible": false
23
26
  },
@@ -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
  },
@@ -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
@@ -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 enum definition, relative to the current workspace.",
22
25
  "visible": false
23
26
  },
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
  },
@@ -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 interceptor, relative to the workspace root.",
22
25
  "visible": false
23
26
  },
@@ -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, relative to the workspace root.",
22
25
  "visible": false
23
26
  },
@@ -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 NgModule, relative to the workspace root.",
22
25
  "visible": false
23
26
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "14.0.0-rc.1",
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.1",
26
- "@angular-devkit/schematics": "14.0.0-rc.1",
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
@@ -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 pipe, relative to the workspace root.",
22
25
  "visible": false
23
26
  },
@@ -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
  },
@@ -17,7 +17,9 @@
17
17
  },
18
18
  "path": {
19
19
  "type": "string",
20
- "format": "path",
20
+ "$default": {
21
+ "$source": "workingDirectory"
22
+ },
21
23
  "description": "The path at which to create the service, relative to the workspace root.",
22
24
  "visible": false
23
25
  },
@@ -1,11 +1,11 @@
1
1
  load("//tools:defaults.bzl", "ts_library")
2
2
 
3
- # files fetched on 2022-05-06 from
4
- # https://github.com/microsoft/TypeScript/releases/tag/v4.7-rc
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-rc/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-rc/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
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 = "".concat(ts.versionMajorMinor, ".1-rc");
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(/*reportErrors*/ languageVersion >= 7 /* ScriptTarget.ES2020 */) :
59093
+ t.flags & 2112 /* TypeFlags.BigIntLike */ ? getGlobalBigIntType() :
59094
59094
  t.flags & 528 /* TypeFlags.BooleanLike */ ? globalBooleanType :
59095
- t.flags & 12288 /* TypeFlags.ESSymbolLike */ ? getGlobalESSymbolType(/*reportErrors*/ languageVersion >= 2 /* ScriptTarget.ES2015 */) :
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(reportErrors) {
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(reportErrors) {
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(/*reportErrors*/ false) === source && esSymbolType === target)) {
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
@@ -15,7 +15,7 @@
15
15
  "rxjs": "~7.5.0",
16
16
  "tslib": "^2.3.0",
17
17
  "ts-node": "~10.7.0",
18
- "typescript": "~4.6.2",
18
+ "typescript": "~4.7.2",
19
19
  "zone.js": "~0.11.4"
20
20
  }
21
21
  }
@@ -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 worker file, relative to the current workspace.",
13
16
  "visible": false
14
17
  },