From 891d4f185e4a39a04f608122039933ca26c93403 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sun, 2 Oct 2016 19:51:26 -0700 Subject: [PATCH] Add ECMAScript 2016 file, include in polyfill.js --- README.md | 8 +- bower.json | 3 +- demos/keyboard.html | 4 +- es2016.js | 128 ++++++++++++++++++++++++ es2016.md | 10 ++ experimental/es-proposed.js | 28 ------ experimental/es-proposed.md | 4 - experimental/tests/es-proposed.html | 1 + experimental/tests/es-proposed_tests.js | 20 ---- package.json | 4 +- polyfill.js | 128 ++++++++++++++++++++++++ polyfill.min.js | 6 +- tests/es2016.html | 22 ++++ tests/es2016_tests.js | 21 ++++ 14 files changed, 324 insertions(+), 63 deletions(-) create mode 100644 es2016.js create mode 100644 es2016.md create mode 100644 tests/es2016.html create mode 100644 tests/es2016_tests.js diff --git a/README.md b/README.md index 34634f0..179798d 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Since I generally use several in my hobby projects, bundled/minified versions ar * [web.js](web.js) (minified: [web.min.js](web.min.js)) includes the most common Web polyfills - it assumes ES2015 support * Includes: [html.js](html.js) [dom.js](dom.js) [xhr.js](xhr.js) [cssom.js](cssom.js) [timing.js](timing.js) [url.js](url.js) [fetch.js](fetch.js) -* [polyfill.js](polyfill.js) (minified: [polyfill.min.js](polyfill.min.js)) has everything in [web.js](web.js) plus [es5.js](es5.js) and [es6.js](es6.js) +* [polyfill.js](polyfill.js) (minified: [polyfill.min.js](polyfill.min.js)) has everything in [web.js](web.js) plus [es5.js](es5.js) and [es6.js](es6.js) and [es2016.js](es2016.js) Minification is done via https://github.com/mishoo/UglifyJS2 @@ -44,9 +44,11 @@ Minification is done via https://github.com/mishoo/UglifyJS2 ECMAScript / JavaScript Polyfills --------------------------------- -[ECMAScript 5](es5.md) - Previous standard, supported by all modern browsers. Frozen. +[ECMAScript 5](es5.md) - Previous standard, supported by browsers circa 2012.. -[ECMAScript 2015](es6.md) - Most recent standard. Not fully supported by modern browsers yet. +[ECMAScript 2015](es6.md) - Previous standard, supported by browsers circa 2016. + +[ECMAScript 2016](es2016.md) - Most recent standard. Not fully supported by modern browsers yet. [ECMAScript proposed](experimental/es-proposed.md) - Proposals for future editions of the standard. Here there be dragons. diff --git a/bower.json b/bower.json index 6726144..727586d 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "js-polyfills", - "version": "0.1.26", + "version": "0.1.27", "homepage": "https://github.com/inexorabletash/polyfill", "authors": [ "Joshua Bell " @@ -10,6 +10,7 @@ "main": [ "es5.js", "es6.js", + "es2016.js", "html.js", "dom.js", "xhr.js", diff --git a/demos/keyboard.html b/demos/keyboard.html index 3dac398..5bbe1c7 100644 --- a/demos/keyboard.html +++ b/demos/keyboard.html @@ -2,9 +2,7 @@ Keyboard Event Polyfill Demo - - - +