Skip to content

Commit d5d0b07

Browse files
christianliebelBrocco
authored andcommitted
feat(@angular/cli): update standard library to es2017
ECMAScript 2017 was released at the end of June. Standard library support for ES 2017 is around in TypeScript for quite a while now. Even `typescript@~2.0.0` which is used by the Angular 2 template supports a subset of ES 2017. Hence, it seems reasonable to update to the latest standard library version.
1 parent 35c89a5 commit d5d0b07

File tree

8 files changed

+12
-14
lines changed

8 files changed

+12
-14
lines changed

docs/documentation/stories/1.0-update.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ CLI projects now use one tsconfig per app ([#4924](https://github.com/angular/an
215215
"experimentalDecorators": true,
216216
"target": "es5",
217217
"lib": [
218-
"es2016",
218+
"es2017",
219219
"dom"
220220
],
221221
"outDir": "../out-tsc/app",
@@ -239,7 +239,7 @@ CLI projects now use one tsconfig per app ([#4924](https://github.com/angular/an
239239
"emitDecoratorMetadata": true,
240240
"experimentalDecorators": true,
241241
"lib": [
242-
"es2016",
242+
"es2017",
243243
"dom"
244244
],
245245
"outDir": "../out-tsc/spec",
@@ -271,7 +271,7 @@ CLI projects now use one tsconfig per app ([#4924](https://github.com/angular/an
271271
"emitDecoratorMetadata": true,
272272
"experimentalDecorators": true,
273273
"lib": [
274-
"es2016"
274+
"es2017"
275275
],
276276
"outDir": "../out-tsc/e2e",
277277
"module": "commonjs",
@@ -302,7 +302,7 @@ There is an additional root-level `tsconfig.json` that is used for IDE integrati
302302
"node_modules/@types"
303303
],
304304
"lib": [
305-
"es2016",
305+
"es2017",
306306
"dom"
307307
]
308308
}

packages/@angular/cli/blueprints/ng/files/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"node_modules/@types"
1313
],
1414
"lib": [
15-
"es2016",
15+
"es2017",
1616
"dom"
1717
]
1818
}

tests/e2e/assets/1.0.0-proj/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"node_modules/@types"
1414
],
1515
"lib": [
16-
"es2016",
16+
"es2017",
1717
"dom"
1818
]
1919
}

tests/e2e/assets/webpack/test-app-weird/not/so/source/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"emitDecoratorMetadata": true,
1010
"experimentalDecorators": true,
1111
"lib": [
12-
"es2016",
12+
"es2017",
1313
"dom"
1414
],
1515
"outDir": "lib",

tests/e2e/assets/webpack/test-app/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"emitDecoratorMetadata": true,
1212
"experimentalDecorators": true,
1313
"lib": [
14-
"es2016",
14+
"es2017",
1515
"dom"
1616
],
1717
"outDir": "lib",

tests/e2e/assets/webpack/test-server-app/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"emitDecoratorMetadata": true,
1111
"experimentalDecorators": true,
1212
"lib": [
13-
"es2016",
13+
"es2017",
1414
"dom"
1515
],
1616
"outDir": "lib",

tests/e2e/utils/project.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function useNg2() {
108108
'experimentalDecorators': true,
109109
'target': 'es5',
110110
'lib': [
111-
'es2016',
111+
'es2017',
112112
'dom'
113113
],
114114
'outDir': '../out-tsc/app',
@@ -130,7 +130,7 @@ export function useNg2() {
130130
'emitDecoratorMetadata': true,
131131
'experimentalDecorators': true,
132132
'lib': [
133-
'es2016',
133+
'es2017',
134134
'dom'
135135
],
136136
'outDir': '../out-tsc/spec',
@@ -159,7 +159,7 @@ export function useNg2() {
159159
'emitDecoratorMetadata': true,
160160
'experimentalDecorators': true,
161161
'lib': [
162-
'es2016'
162+
'es2017'
163163
],
164164
'outDir': '../out-tsc/e2e',
165165
'module': 'commonjs',

tsconfig.json

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
"sourceRoot": "",
1818
"target": "es6",
1919
"lib": [
20-
"es2015",
21-
"es2016",
2220
"es2017"
2321
],
2422
"baseUrl": "",

0 commit comments

Comments
 (0)