@schematics/angular 14.0.0-next.4 → 14.0.0-next.7

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.
Files changed (41) hide show
  1. package/app-shell/index.js +6 -2
  2. package/app-shell/schema.d.ts +3 -3
  3. package/app-shell/schema.json +3 -3
  4. package/application/index.js +1 -4
  5. package/application/schema.d.ts +1 -1
  6. package/application/schema.json +1 -1
  7. package/class/schema.json +1 -2
  8. package/collection.json +1 -4
  9. package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +0 -2
  10. package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +3 -3
  11. package/component/index.js +5 -1
  12. package/directive/index.js +5 -1
  13. package/e2e/e2e-long.md +1 -1
  14. package/e2e/index.js +6 -0
  15. package/e2e/schema.d.ts +1 -1
  16. package/e2e/schema.json +1 -1
  17. package/interface/schema.json +0 -1
  18. package/library/index.js +1 -4
  19. package/migrations/migration-collection.json +10 -0
  20. package/migrations/update-14/remove-default-project-option.d.ts +10 -0
  21. package/migrations/update-14/remove-default-project-option.js +17 -0
  22. package/migrations/update-14/replace-default-collection-option.d.ts +10 -0
  23. package/migrations/update-14/replace-default-collection-option.js +32 -0
  24. package/module/index.js +5 -1
  25. package/ng-new/index.js +1 -1
  26. package/package.json +4 -4
  27. package/pipe/index.js +5 -1
  28. package/service-worker/index.js +7 -3
  29. package/third_party/github.com/Microsoft/TypeScript/BUILD.bazel +7 -2
  30. package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +29 -16
  31. package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +4866 -3030
  32. package/universal/index.js +11 -2
  33. package/universal/schema.d.ts +1 -1
  34. package/universal/schema.json +1 -1
  35. package/utility/ast-utils.js +5 -1
  36. package/utility/latest-versions/package.json +4 -4
  37. package/utility/ng-ast-utils.js +6 -2
  38. package/utility/test/index.js +5 -1
  39. package/utility/workspace-models.d.ts +8 -6
  40. package/workspace/files/README.md.template +1 -1
  41. package/workspace/files/package.json.template +1 -2
@@ -8,7 +8,11 @@
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
11
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
12
16
  }) : (function(o, m, k, k2) {
13
17
  if (k2 === undefined) k2 = k;
14
18
  o[k2] = m[k];
@@ -33,6 +37,7 @@ const ts = __importStar(require("../third_party/github.com/Microsoft/TypeScript/
33
37
  const ast_utils_1 = require("../utility/ast-utils");
34
38
  const change_1 = require("../utility/change");
35
39
  const dependencies_1 = require("../utility/dependencies");
40
+ const latest_versions_1 = require("../utility/latest-versions");
36
41
  const ng_ast_utils_1 = require("../utility/ng-ast-utils");
37
42
  const paths_1 = require("../utility/paths");
38
43
  const project_targets_1 = require("../utility/project-targets");
@@ -194,7 +199,11 @@ function addDependencies() {
194
199
  name: '@angular/platform-server',
195
200
  };
196
201
  (0, dependencies_1.addPackageJsonDependency)(host, platformServerDep);
197
- return host;
202
+ (0, dependencies_1.addPackageJsonDependency)(host, {
203
+ type: dependencies_1.NodeDependencyType.Dev,
204
+ name: '@types/node',
205
+ version: latest_versions_1.latestVersions['@types/node'],
206
+ });
198
207
  };
199
208
  }
200
209
  function default_1(options) {
@@ -7,7 +7,7 @@ export interface Schema {
7
7
  */
8
8
  appDir?: string;
9
9
  /**
10
- * The app identifier to use for transition.
10
+ * The application identifier to use for transition.
11
11
  */
12
12
  appId?: string;
13
13
  /**
@@ -16,7 +16,7 @@
16
16
  "appId": {
17
17
  "type": "string",
18
18
  "format": "html-selector",
19
- "description": "The app identifier to use for transition.",
19
+ "description": "The application identifier to use for transition.",
20
20
  "default": "serverApp"
21
21
  },
22
22
  "main": {
@@ -8,7 +8,11 @@
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
11
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
12
16
  }) : (function(o, m, k, k2) {
13
17
  if (k2 === undefined) k2 = k;
14
18
  o[k2] = m[k];
@@ -3,18 +3,18 @@
3
3
  "comment": "This file is needed so that depedencies are synced by Renovate.",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@types/jasmine": "~3.10.0",
7
- "@types/node": "^12.11.1",
6
+ "@types/jasmine": "~4.0.0",
7
+ "@types/node": "^14.15.0",
8
8
  "jasmine-core": "~4.0.0",
9
9
  "karma-chrome-launcher": "~3.1.0",
10
10
  "karma-coverage": "~2.2.0",
11
11
  "karma-jasmine-html-reporter": "~1.7.0",
12
12
  "karma-jasmine": "~4.0.0",
13
13
  "karma": "~6.3.0",
14
- "ng-packagr": "^13.0.0",
14
+ "ng-packagr": "^14.0.0-next.2",
15
15
  "rxjs": "~7.5.0",
16
16
  "tslib": "^2.3.0",
17
- "typescript": "~4.5.2",
17
+ "typescript": "~4.6.2",
18
18
  "zone.js": "~0.11.4"
19
19
  }
20
20
  }
@@ -8,7 +8,11 @@
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
11
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
12
16
  }) : (function(o, m, k, k2) {
13
17
  if (k2 === undefined) k2 = k;
14
18
  o[k2] = m[k];
@@ -68,7 +72,7 @@ function findBootstrapModulePath(host, mainPath) {
68
72
  const bootstrapModule = bootstrapCall.arguments[0];
69
73
  const mainBuffer = host.read(mainPath);
70
74
  if (!mainBuffer) {
71
- throw new schematics_1.SchematicsException(`Client app main file (${mainPath}) not found`);
75
+ throw new schematics_1.SchematicsException(`Client application main file (${mainPath}) not found`);
72
76
  }
73
77
  const mainText = mainBuffer.toString('utf-8');
74
78
  const source = ts.createSourceFile(mainPath, mainText, ts.ScriptTarget.Latest, true);
@@ -8,7 +8,11 @@
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
11
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
12
16
  }) : (function(o, m, k, k2) {
13
17
  if (k2 === undefined) k2 = k;
14
18
  o[k2] = m[k];
@@ -110,12 +110,15 @@ export declare type TestBuilderTarget = BuilderTarget<Builders.Karma, TestBuilde
110
110
  export declare type ServeBuilderTarget = BuilderTarget<Builders.DevServer, ServeBuilderOptions>;
111
111
  export declare type ExtractI18nBuilderTarget = BuilderTarget<Builders.ExtractI18n, ExtractI18nOptions>;
112
112
  export declare type E2EBuilderTarget = BuilderTarget<Builders.Protractor, E2EOptions>;
113
+ interface WorkspaceCLISchema {
114
+ warnings?: Record<string, boolean>;
115
+ schematicCollections?: string[];
116
+ defaultCollection?: string;
117
+ }
113
118
  export interface WorkspaceSchema {
114
119
  version: 1;
115
120
  defaultProject?: string;
116
- cli?: {
117
- warnings?: Record<string, boolean>;
118
- };
121
+ cli?: WorkspaceCLISchema;
119
122
  projects: {
120
123
  [key: string]: WorkspaceProject<ProjectType.Application | ProjectType.Library>;
121
124
  };
@@ -128,9 +131,7 @@ export interface WorkspaceProject<TProjectType extends ProjectType = ProjectType
128
131
  root: string;
129
132
  sourceRoot: string;
130
133
  prefix: string;
131
- cli?: {
132
- warnings?: Record<string, boolean>;
133
- };
134
+ cli?: WorkspaceCLISchema;
134
135
  /**
135
136
  * Tool options.
136
137
  */
@@ -150,3 +151,4 @@ export interface WorkspaceTargets<TProjectType extends ProjectType = ProjectType
150
151
  'extract-i18n'?: ExtractI18nBuilderTarget;
151
152
  [key: string]: any;
152
153
  }
154
+ export {};
@@ -4,7 +4,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular
4
4
 
5
5
  ## Development server
6
6
 
7
- Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
7
+ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
8
8
 
9
9
  ## Code scaffolding
10
10
 
@@ -25,8 +25,7 @@
25
25
  "devDependencies": {
26
26
  "@angular/cli": "<%= '~' + version %>",
27
27
  "@angular/compiler-cli": "<%= latestVersions.Angular %>",<% if (!minimal) { %>
28
- "@types/jasmine": "<%= latestVersions['@types/jasmine'] %>",<% } %>
29
- "@types/node": "<%= latestVersions['@types/node'] %>",<% if (!minimal) { %>
28
+ "@types/jasmine": "<%= latestVersions['@types/jasmine'] %>",
30
29
  "jasmine-core": "<%= latestVersions['jasmine-core'] %>",
31
30
  "karma": "<%= latestVersions['karma'] %>",
32
31
  "karma-chrome-launcher": "<%= latestVersions['karma-chrome-launcher'] %>",