@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.
- package/app-shell/index.js +6 -2
- package/app-shell/schema.d.ts +3 -3
- package/app-shell/schema.json +3 -3
- package/application/index.js +1 -4
- package/application/schema.d.ts +1 -1
- package/application/schema.json +1 -1
- package/class/schema.json +1 -2
- package/collection.json +1 -4
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +0 -2
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +3 -3
- package/component/index.js +5 -1
- package/directive/index.js +5 -1
- package/e2e/e2e-long.md +1 -1
- package/e2e/index.js +6 -0
- package/e2e/schema.d.ts +1 -1
- package/e2e/schema.json +1 -1
- package/interface/schema.json +0 -1
- package/library/index.js +1 -4
- package/migrations/migration-collection.json +10 -0
- package/migrations/update-14/remove-default-project-option.d.ts +10 -0
- package/migrations/update-14/remove-default-project-option.js +17 -0
- package/migrations/update-14/replace-default-collection-option.d.ts +10 -0
- package/migrations/update-14/replace-default-collection-option.js +32 -0
- package/module/index.js +5 -1
- package/ng-new/index.js +1 -1
- package/package.json +4 -4
- package/pipe/index.js +5 -1
- package/service-worker/index.js +7 -3
- package/third_party/github.com/Microsoft/TypeScript/BUILD.bazel +7 -2
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +29 -16
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +4866 -3030
- package/universal/index.js +11 -2
- package/universal/schema.d.ts +1 -1
- package/universal/schema.json +1 -1
- package/utility/ast-utils.js +5 -1
- package/utility/latest-versions/package.json +4 -4
- package/utility/ng-ast-utils.js +6 -2
- package/utility/test/index.js +5 -1
- package/utility/workspace-models.d.ts +8 -6
- package/workspace/files/README.md.template +1 -1
- package/workspace/files/package.json.template +1 -2
package/universal/index.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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) {
|
package/universal/schema.d.ts
CHANGED
package/universal/schema.json
CHANGED
package/utility/ast-utils.js
CHANGED
|
@@ -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.
|
|
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": "~
|
|
7
|
-
"@types/node": "^
|
|
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": "^
|
|
14
|
+
"ng-packagr": "^14.0.0-next.2",
|
|
15
15
|
"rxjs": "~7.5.0",
|
|
16
16
|
"tslib": "^2.3.0",
|
|
17
|
-
"typescript": "~4.
|
|
17
|
+
"typescript": "~4.6.2",
|
|
18
18
|
"zone.js": "~0.11.4"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/utility/ng-ast-utils.js
CHANGED
|
@@ -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.
|
|
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
|
|
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);
|
package/utility/test/index.js
CHANGED
|
@@ -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.
|
|
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
|
|
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'] %>",
|