From bd52aa3f3496bbeddb9e025f3db568ea72af95bc Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Fri, 20 May 2016 02:35:19 +0200 Subject: [PATCH] docs: complete es6-shim to core-js migration closes #1442 --- public/docs/_examples/quickstart/js/index.html | 2 +- public/docs/_examples/quickstart/ts/index.html | 2 +- public/docs/_examples/webpack/ts/config/karma-test-shim.js | 2 +- public/docs/_examples/webpack/ts/package.webpack.json | 2 +- public/docs/_examples/webpack/ts/src/polyfills.ts | 2 +- public/docs/_examples/webpack/ts/typings.1.json | 2 +- public/docs/ts/latest/guide/npm-packages.jade | 2 +- public/docs/ts/latest/quickstart.jade | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/docs/_examples/quickstart/js/index.html b/public/docs/_examples/quickstart/js/index.html index 9181ea2c52..bec42f9dea 100644 --- a/public/docs/_examples/quickstart/js/index.html +++ b/public/docs/_examples/quickstart/js/index.html @@ -10,7 +10,7 @@ - + diff --git a/public/docs/_examples/quickstart/ts/index.html b/public/docs/_examples/quickstart/ts/index.html index 95459ad58c..a0a64d1122 100644 --- a/public/docs/_examples/quickstart/ts/index.html +++ b/public/docs/_examples/quickstart/ts/index.html @@ -11,7 +11,7 @@ - + diff --git a/public/docs/_examples/webpack/ts/config/karma-test-shim.js b/public/docs/_examples/webpack/ts/config/karma-test-shim.js index 7691460bcd..67a2409917 100644 --- a/public/docs/_examples/webpack/ts/config/karma-test-shim.js +++ b/public/docs/_examples/webpack/ts/config/karma-test-shim.js @@ -1,7 +1,7 @@ // #docregion Error.stackTraceLimit = Infinity; -require('es6-shim'); +require('core-js/es6'); require('reflect-metadata'); require('zone.js/dist/zone'); diff --git a/public/docs/_examples/webpack/ts/package.webpack.json b/public/docs/_examples/webpack/ts/package.webpack.json index 041c0b41e1..618e1867ec 100644 --- a/public/docs/_examples/webpack/ts/package.webpack.json +++ b/public/docs/_examples/webpack/ts/package.webpack.json @@ -17,7 +17,7 @@ "@angular/platform-browser": "2.0.0-rc.1", "@angular/platform-browser-dynamic": "2.0.0-rc.1", "@angular/router-deprecated": "2.0.0-rc.1", - "es6-shim": "^0.35.0", + "core-js": "^2.4.0", "reflect-metadata": "0.1.2", "rxjs": "5.0.0-beta.6", "zone.js": "0.6.12" diff --git a/public/docs/_examples/webpack/ts/src/polyfills.ts b/public/docs/_examples/webpack/ts/src/polyfills.ts index 617af577cf..5de11fb502 100644 --- a/public/docs/_examples/webpack/ts/src/polyfills.ts +++ b/public/docs/_examples/webpack/ts/src/polyfills.ts @@ -1,5 +1,5 @@ // #docregion -import 'es6-shim'; +import 'core-js/es6'; import 'reflect-metadata'; require('zone.js/dist/zone'); diff --git a/public/docs/_examples/webpack/ts/typings.1.json b/public/docs/_examples/webpack/ts/typings.1.json index b5324f4199..ab3d27d712 100644 --- a/public/docs/_examples/webpack/ts/typings.1.json +++ b/public/docs/_examples/webpack/ts/typings.1.json @@ -1,6 +1,6 @@ { "ambientDependencies": { - "es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654", + "core-js": "registry:dt/core-js#0.0.0+20160317120654", "jasmine": "registry:dt/jasmine#2.2.0+20160412134438", "node": "registry:dt/node#4.0.0+20160509154515" } diff --git a/public/docs/ts/latest/guide/npm-packages.jade b/public/docs/ts/latest/guide/npm-packages.jade index 2ae1b9fa33..4997eafd28 100644 --- a/public/docs/ts/latest/guide/npm-packages.jade +++ b/public/docs/ts/latest/guide/npm-packages.jade @@ -103,7 +103,7 @@ a(id="polyfills") :marked See "[Why peerDependencies?](#why-peer-dependencies)" below for background on this requirement. :marked - ***es6-shim*** - monkey patches the global context (window) with essential features of ES2015 (ES6). + ***core-js*** - monkey patches the global context (window) with essential features of ES2015 (ES6). Developers may substitute an alternative polyfill that provides the same core APIs. This dependency should go away once these APIs are implemented by all supported ever-green browsers. diff --git a/public/docs/ts/latest/quickstart.jade b/public/docs/ts/latest/quickstart.jade index fb5bd5e910..346793f9c3 100644 --- a/public/docs/ts/latest/quickstart.jade +++ b/public/docs/ts/latest/quickstart.jade @@ -362,7 +362,7 @@ h2#index Step 4: Add #[code index.html] We loaded the following scripts +makeExcerpt('index.html', 'libraries') :marked - We begin with es6-shim which monkey patches the global context (window) with essential features of ES2015 (ES6). + We begin with core-js's es6-shim which monkey patches the global context (window) with essential features of ES2015 (ES6). Next are the polyfills for Angular2, `zone.js` and `reflect-metadata`. Then the [SystemJS](#systemjs) library for module loading.