@schematics/angular 8.0.2 → 8.0.6
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/application/index.js +1 -1
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -3
- package/library/index.js +5 -0
- package/migrations/update-8/differential-loading.js +10 -0
- package/migrations/update-8/update-dependencies.js +2 -3
- package/package.json +3 -3
- package/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template +1 -1
- package/utility/latest-versions.js +4 -4
- package/web-worker/index.js +3 -1
- package/workspace/files/tsconfig.json.template +2 -2
- package/workspace/files/tslint.json.template +2 -2
package/application/index.js
CHANGED
package/library/index.js
CHANGED
|
@@ -77,6 +77,11 @@ function addDependenciesToPackageJson() {
|
|
|
77
77
|
name: 'tsickle',
|
|
78
78
|
version: latest_versions_1.latestVersions.tsickle,
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
type: dependencies_1.NodeDependencyType.Dev,
|
|
82
|
+
name: 'tsickle',
|
|
83
|
+
version: '^0.35.0',
|
|
84
|
+
},
|
|
80
85
|
{
|
|
81
86
|
type: dependencies_1.NodeDependencyType.Default,
|
|
82
87
|
name: 'tslib',
|
|
@@ -101,8 +101,18 @@ function updateTsConfig(tree, tsConfigPath) {
|
|
|
101
101
|
if (isExtendedConfig) {
|
|
102
102
|
json_utils_1.removePropertyInAstObject(recorder, compilerOptions, 'target');
|
|
103
103
|
json_utils_1.removePropertyInAstObject(recorder, compilerOptions, 'module');
|
|
104
|
+
json_utils_1.removePropertyInAstObject(recorder, compilerOptions, 'downlevelIteration');
|
|
104
105
|
}
|
|
105
106
|
else {
|
|
107
|
+
const downlevelIteration = json_utils_1.findPropertyInAstObject(compilerOptions, 'downlevelIteration');
|
|
108
|
+
if (!downlevelIteration) {
|
|
109
|
+
json_utils_1.insertPropertyInAstObjectInOrder(recorder, compilerOptions, 'downlevelIteration', true, 4);
|
|
110
|
+
}
|
|
111
|
+
else if (!downlevelIteration.value) {
|
|
112
|
+
const { start, end } = downlevelIteration;
|
|
113
|
+
recorder.remove(start.offset, end.offset - start.offset);
|
|
114
|
+
recorder.insertLeft(start.offset, 'true');
|
|
115
|
+
}
|
|
106
116
|
const scriptTarget = json_utils_1.findPropertyInAstObject(compilerOptions, 'target');
|
|
107
117
|
if (!scriptTarget) {
|
|
108
118
|
json_utils_1.insertPropertyInAstObjectInOrder(recorder, compilerOptions, 'target', 'es2015', 4);
|
|
@@ -9,10 +9,9 @@ function updateDependencies() {
|
|
|
9
9
|
'@angular-devkit/build-ng-packagr': latest_versions_1.latestVersions.DevkitBuildNgPackagr,
|
|
10
10
|
'@angular-devkit/build-webpack': latest_versions_1.latestVersions.DevkitBuildWebpack,
|
|
11
11
|
'zone.js': latest_versions_1.latestVersions.ZoneJs,
|
|
12
|
-
|
|
12
|
+
tsickle: latest_versions_1.latestVersions.tsickle,
|
|
13
13
|
'ng-packagr': latest_versions_1.latestVersions.ngPackagr,
|
|
14
|
-
|
|
15
|
-
'web-animations-js': 'github:angular/web-animations-js#release_pr208',
|
|
14
|
+
'web-animations-js': '^2.3.2',
|
|
16
15
|
};
|
|
17
16
|
for (const [name, version] of Object.entries(dependenciesToUpdate)) {
|
|
18
17
|
const current = dependencies_1.getPackageJsonDependency(host, name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.6",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
],
|
|
15
15
|
"schematics": "./collection.json",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@angular-devkit/core": "8.0.
|
|
18
|
-
"@angular-devkit/schematics": "8.0.
|
|
17
|
+
"@angular-devkit/core": "8.0.6",
|
|
18
|
+
"@angular-devkit/schematics": "8.0.6"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.latestVersions = {
|
|
11
11
|
// These versions should be kept up to date with latest Angular peer dependencies.
|
|
12
|
-
Angular: '~8.0.
|
|
12
|
+
Angular: '~8.0.3',
|
|
13
13
|
RxJs: '~6.4.0',
|
|
14
14
|
ZoneJs: '~0.9.1',
|
|
15
15
|
TypeScript: '~3.4.3',
|
|
16
16
|
TsLib: '^1.9.0',
|
|
17
17
|
// The versions below must be manually updated when making a new devkit release.
|
|
18
|
-
DevkitBuildAngular: '~0.800.
|
|
19
|
-
DevkitBuildNgPackagr: '~0.800.
|
|
20
|
-
DevkitBuildWebpack: '~0.800.
|
|
18
|
+
DevkitBuildAngular: '~0.800.6',
|
|
19
|
+
DevkitBuildNgPackagr: '~0.800.6',
|
|
20
|
+
DevkitBuildWebpack: '~0.800.6',
|
|
21
21
|
tsickle: '^0.35.0',
|
|
22
22
|
ngPackagr: '^5.1.0',
|
|
23
23
|
};
|
package/web-worker/index.js
CHANGED
|
@@ -17,7 +17,9 @@ function addConfig(options, root, tsConfigPath) {
|
|
|
17
17
|
return (host, context) => {
|
|
18
18
|
context.logger.debug('updating project configuration.');
|
|
19
19
|
// Add worker glob exclusion to tsconfig.app.json.
|
|
20
|
-
|
|
20
|
+
// Projects pre version 8 should to have tsconfig.app.json inside their application
|
|
21
|
+
const isInSrc = core_1.dirname(core_1.normalize(tsConfigPath)).endsWith('src');
|
|
22
|
+
const workerGlob = `${isInSrc ? '' : 'src/'}**/*.worker.ts`;
|
|
21
23
|
const buffer = host.read(tsConfigPath);
|
|
22
24
|
if (buffer) {
|
|
23
25
|
const tsCfgAst = core_1.parseJsonAst(buffer.toString(), core_1.JsonParseMode.Loose);
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"outDir": "./dist/out-tsc",
|
|
6
6
|
"sourceMap": true,
|
|
7
7
|
"declaration": false,
|
|
8
|
+
"downlevelIteration": true,
|
|
9
|
+
"experimentalDecorators": true,
|
|
8
10
|
"module": "esnext",
|
|
9
11
|
"moduleResolution": "node",
|
|
10
|
-
"emitDecoratorMetadata": true,
|
|
11
|
-
"experimentalDecorators": true,
|
|
12
12
|
"importHelpers": true,
|
|
13
13
|
"target": "es2015",
|
|
14
14
|
"typeRoots": [
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"array-type": false,
|
|
8
8
|
"arrow-parens": false,
|
|
9
9
|
"deprecation": {
|
|
10
|
-
"severity": "
|
|
10
|
+
"severity": "warning"
|
|
11
11
|
},
|
|
12
12
|
"import-blacklist": [
|
|
13
13
|
true,
|
|
@@ -77,4 +77,4 @@
|
|
|
77
77
|
"use-lifecycle-interface": true,
|
|
78
78
|
"use-pipe-transform-interface": true
|
|
79
79
|
}
|
|
80
|
-
}
|
|
80
|
+
}
|