[Pkg-javascript-commits] [node-es6-shim] 01/03: New upstream version 0.35.3+ds
Julien Puydt
julien.puydt at laposte.net
Wed Jan 25 08:29:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to branch master
in repository node-es6-shim.
commit 48a8fdb5d955aadc2570a633d0c1ba2e246e5e88
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Wed Jan 25 09:22:45 2017 +0100
New upstream version 0.35.3+ds
---
.travis.yml | 153 ++++++++++++++++++++++++++++++++++----------------------
CHANGELOG.md | 5 ++
component.json | 2 +-
es6-sham.map | 2 +-
es6-sham.min.js | 2 +-
es6-shim.js | 17 ++++---
es6-shim.map | 2 +-
es6-shim.min.js | 4 +-
package.json | 8 +--
test/.eslintrc | 1 +
10 files changed, 121 insertions(+), 75 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index b1b92db..ac1fddc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,72 +1,27 @@
language: node_js
+os:
+ - linux
node_js:
- - "7.2"
- - "7.1"
- - "7.0"
+ - "7.4"
- "6.9"
- - "6.8"
- - "6.7"
- - "6.6"
- - "6.5"
- - "6.4"
- - "6.3"
- - "6.2"
- - "6.1"
- - "6.0"
- "5.12"
- - "5.11"
- - "5.10"
- - "5.9"
- - "5.8"
- - "5.7"
- - "5.6"
- - "5.5"
- - "5.4"
- - "5.3"
- - "5.2"
- - "5.1"
- - "5.0"
- - "4.6"
- - "4.5"
- - "4.4"
- - "4.3"
- - "4.2"
- - "4.1"
- - "4.0"
+ - "4.7"
- "iojs-v3.3"
- - "iojs-v3.2"
- - "iojs-v3.1"
- - "iojs-v3.0"
- "iojs-v2.5"
- - "iojs-v2.4"
- - "iojs-v2.3"
- - "iojs-v2.2"
- - "iojs-v2.1"
- - "iojs-v2.0"
- "iojs-v1.8"
- - "iojs-v1.7"
- - "iojs-v1.6"
- - "iojs-v1.5"
- - "iojs-v1.4"
- - "iojs-v1.3"
- - "iojs-v1.2"
- - "iojs-v1.1"
- - "iojs-v1.0"
- "0.12"
- - "0.11"
- "0.10"
- - "0.9"
- "0.8"
- - "0.6"
- - "0.4"
before_install:
- - 'if [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm at 1.4.28 ;; 2.*) npm install -g npm at 2 ;; esac ; fi'
+ - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm at 1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm at 1.4.28 ;; 2.*) npm install -g npm at 2 ;; esac ; fi'
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
- - 'if [ "${SAUCE-}" = "true" ]; then npm install -g grunt-cli; fi'
+ - 'if [ -n "${SAUCE-}" ]; then npm install -g grunt-cli; fi'
script:
- - 'if [ "${SAUCE-}" = "true" ]; then npm run sauce; fi'
- - 'if [ "${PRETEST-}" = "true" ]; then npm run pretest; fi'
- - 'if [ "${TEST-}" = "true"]; then npm run tests-only; fi'
+ - 'if [ -n "${SAUCE-}" ]; then npm run sauce; fi'
+ - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
+ - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
+ - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
+ - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
# NOTE: sauce_connect is disabled, because it applies to every test and we only need it on one of them.
# It's available inside `npm run sauce`
# addons:
@@ -81,58 +36,138 @@ matrix:
env: PRETEST=true
- node_js: "node"
env: SAUCE=true
- allow_failures:
+ - node_js: "7.3"
+ env: TEST=true ALLOW_FAILURE=true
+ - node_js: "7.2"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "7.1"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "7.0"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "6.8"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "6.7"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "6.6"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "6.5"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "6.4"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "6.3"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "6.2"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "6.1"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "6.0"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.11"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.10"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.9"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.8"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.7"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.6"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.5"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.4"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.3"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.2"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.1"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "5.0"
+ env: TEST=true ALLOW_FAILURE=true
+ - node_js: "4.6"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "4.5"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "4.4"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "4.3"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "4.2"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "4.1"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "4.0"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v3.2"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v3.1"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v3.0"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.4"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.3"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.2"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.1"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v2.0"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.7"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.6"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.5"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.4"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.3"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.2"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.1"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "iojs-v1.0"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "0.11"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "0.9"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "0.6"
+ env: TEST=true ALLOW_FAILURE=true
- node_js: "0.4"
- - node_js: "node"
- env: SAUCE=true
+ env: TEST=true ALLOW_FAILURE=true
+ - node_js: "7"
+ env: TEST=true
+ os: osx
+ - node_js: "6"
+ env: TEST=true
+ os: osx
+ - node_js: "5"
+ env: TEST=true
+ os: osx
+ - node_js: "4"
+ env: TEST=true
+ os: osx
+ - node_js: "iojs"
+ env: TEST=true
+ os: osx
+ - node_js: "0.12"
+ env: TEST=true
+ os: osx
+ - node_js: "0.10"
+ env: TEST=true
+ os: osx
+ - node_js: "0.8"
+ env: TEST=true
+ os: osx
+ allow_failures:
+ - os: osx
+ - env: TEST=true ALLOW_FAILURE=true
+ - env: SAUCE=true
env:
global:
- secure: YD4HLTE93NhSxa+64MYHhnbJ2ZkREp/HGiFGE4q+AWShqAiehtqE/K3hQUe7p0+1/2/34avhm2bz31j508ayCobm6SSUhpleJH58IK3v4LI2o9qtM+2N/MPJFOIvbziHqOM6fPluowU0k3OSdEAp4U+6S23wKSuXzcUSK8upAiM=
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0bba71b..9985aef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+# es6-shim 0.35.3 (23 January 2017)
+* [Fix] avoid needlessly shimming `Array#{find, findIndex}` (#433)
+* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `grunt-saucelabs`
+* [Tests] up to `node` `v7.4`, `v4.7`; improve test matrix
+
# es6-shim 0.35.2 (3 December 2016)
* [Fix] ensure `document.all` is not treated as a non-object-coercible (#428)
* [Performance] Use original map for data backing when possible (#429, #422)
diff --git a/component.json b/component.json
index 5438e24..49a3541 100644
--- a/component.json
+++ b/component.json
@@ -1,6 +1,6 @@
{
"name": "es6-shim",
- "version": "0.35.1",
+ "version": "0.35.3",
"repo": "paulmillr/es6-shim",
"description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",
"keywords": [
diff --git a/es6-sham.map b/es6-sham.map
index 3362c81..b15a4f6 100644
--- a/es6-sham.map
+++ b/es6-sham.map
@@ -1 +1 @@
-{"version":3,"sources":["es6-sham.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","getGlobal","Function","globals","Object","_call","call","bind","functionToString","toString","_strMatch","String","prototype","match","throwsError","func","e","arePropertyDescriptorsSupported","defineProperty","get","supportsDescriptors","setPrototypeOf","getOwnPropertyNames","getOwnPropertyDescriptor","create","getPrototypeOf","objProto","copyDescriptors","target"," [...]
\ No newline at end of file
+{"version":3,"sources":["es6-sham.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","getGlobal","Function","globals","Object","_call","call","bind","functionToString","toString","_strMatch","String","prototype","match","throwsError","func","e","arePropertyDescriptorsSupported","defineProperty","get","supportsDescriptors","setPrototypeOf","getOwnPropertyNames","getOwnPropertyDescriptor","create","getPrototypeOf","objProto","copyDescriptors","target"," [...]
\ No newline at end of file
diff --git a/es6-sham.min.js b/es6-sham.min.js
index d31f374..ce702a4 100644
--- a/es6-sham.min.js
+++ b/es6-sham.min.js
@@ -7,5 +7,5 @@
* Details and documentation:
* https://github.com/paulmillr/es6-shim/
*/
-(function(t,e){if(typeof define==="function"&&define.amd){define(e)}else if(typeof exports==="object"){module.exports=e()}else{t.returnExports=e()}})(this,function(){"use strict";var t=new Function("return this;");var e=t();var r=e.Object;var n=Function.call.bind(Function.call);var o=Function.toString;var i=String.prototype.match;var f=function(t){try{t();return false}catch(e){return true}};var a=function(){return!f(function(){r.defineProperty({},"x",{get:function(){}})})};var u=!!r.defi [...]
+(function(t,e){if(typeof define==="function"&&define.amd){define(e)}else if(typeof exports==="object"){module.exports=e()}else{t.returnExports=e()}})(this,function(){"use strict";var t=new Function("return this;");var e=t();var r=e.Object;var n=Function.call.bind(Function.call);var o=Function.toString;var i=String.prototype.match;var f=function(t){try{t();return false}catch(t){return true}};var a=function(){return!f(function(){r.defineProperty({},"x",{get:function(){}})})};var u=!!r.defi [...]
//# sourceMappingURL=es6-sham.map
diff --git a/es6-shim.js b/es6-shim.js
index 30b9031..60b1749 100644
--- a/es6-shim.js
+++ b/es6-shim.js
@@ -1462,10 +1462,10 @@
// methods of Number, so this test has to happen down here.)
/*jshint elision: true */
/* eslint-disable no-sparse-arrays */
- if (![, 1].find(function (item, idx) { return idx === 0; })) {
+ if ([, 1].find(function () { return true; }) === 1) {
overrideNative(Array.prototype, 'find', ArrayPrototypeShims.find);
}
- if ([, 1].findIndex(function (item, idx) { return idx === 0; }) !== 0) {
+ if ([, 1].findIndex(function () { return true; }) !== 0) {
overrideNative(Array.prototype, 'findIndex', ArrayPrototypeShims.findIndex);
}
/* eslint-enable no-sparse-arrays */
@@ -2894,6 +2894,7 @@
var head = new MapEntry(null, null);
// circular doubly-linked list.
+ /* eslint no-multi-assign: 1 */
head.next = head.prev = head;
map._head = head;
@@ -2977,7 +2978,7 @@
this._storage[fkey].value = value;
return this;
} else {
- entry = this._storage[fkey] = new MapEntry(key, value);
+ entry = this._storage[fkey] = new MapEntry(key, value); /* eslint no-multi-assign: 1 */
i = head.prev;
// fall through
}
@@ -3034,7 +3035,8 @@
}
while ((i = i.next) !== head) {
if (ES.SameValueZero(i.key, key)) {
- i.key = i.value = empty;
+ i.key = empty;
+ i.value = empty;
i.prev.next = i.next;
i.next.prev = i.prev;
this._size -= 1;
@@ -3045,6 +3047,7 @@
},
clear: function clear() {
+ /* eslint no-multi-assign: 1 */
requireMapSlot(this, 'clear');
this._map = OrigMap ? new OrigMap() : null;
this._size = 0;
@@ -3053,7 +3056,8 @@
var i = head;
var p = i.next;
while ((i = p) !== head) {
- i.key = i.value = empty;
+ i.key = empty;
+ i.value = empty;
p = i.next;
i.next = i.prev = head;
}
@@ -3154,7 +3158,8 @@
// Switch from the object backing storage to a full Map.
var ensureMap = function ensureMap(set) {
if (!set['[[SetData]]']) {
- var m = set['[[SetData]]'] = new collectionShims.Map();
+ var m = new collectionShims.Map();
+ set['[[SetData]]'] = m;
_forEach(keys(set._storage), function (key) {
var k = decodeKey(key);
m.set(k, k);
diff --git a/es6-shim.map b/es6-shim.map
index d75ac61..9877c12 100644
--- a/es6-shim.map
+++ b/es6-shim.map
@@ -1 +1 @@
-{"version":3,"sources":["es6-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","_apply","Function","call","bind","apply","_call","isArray","Array","keys","Object","not","notThunker","func","notThunk","arguments","throwsError","e","valueOrFalseIfThrows","isCallableWithoutNew","arePropertyDescriptorsSupported","defineProperty","get","supportsDescriptors","functionsHaveNames","foo","name","_forEach","prototype","forEach","_reduce","reduce","_filter [...]
\ No newline at end of file
+{"version":3,"sources":["es6-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","_apply","Function","call","bind","apply","_call","isArray","Array","keys","Object","not","notThunker","func","notThunk","arguments","throwsError","e","valueOrFalseIfThrows","isCallableWithoutNew","arePropertyDescriptorsSupported","defineProperty","get","supportsDescriptors","functionsHaveNames","foo","name","_forEach","prototype","forEach","_reduce","reduce","_filter [...]
\ No newline at end of file
diff --git a/es6-shim.min.js b/es6-shim.min.js
index 0ca6daf..0155837 100644
--- a/es6-shim.min.js
+++ b/es6-shim.min.js
@@ -7,6 +7,6 @@
* Details and documentation:
* https://github.com/paulmillr/es6-shim/
*/
-(function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=Function.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=Array.isArray;var n=Object.keys;var o=function notThunker(t){return function notThunk(){return!e(t,this,arguments)}};var i=function(e){try{e();return false}catch(t){return true}};var a=function valueOrFalseIfThrows(e){try{retu [...]
-})}var Cr=function(){var e=S.setTimeout;if(typeof e!=="function"&&typeof e!=="object"){return}re.IsPromise=function(e){if(!re.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var r=function(e){if(!re.IsConstructor(e)){throw new TypeError("Bad promise constructor")}var t=this;var r=function(e,r){if(t.resolve!==void 0||t.reject!==void 0){throw new TypeError("Bad Promise implementation!")}t.resolve=e;t.reject=r};t.resolve=void 0;t.reject=void 0;t.p [...]
+(function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=Function.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=Array.isArray;var n=Object.keys;var o=function notThunker(t){return function notThunk(){return!e(t,this,arguments)}};var i=function(e){try{e();return false}catch(e){return true}};var a=function valueOrFalseIfThrows(e){try{retu [...]
+return e-t<.5?t:r},!xr||!Rr);m.preserveToString(Math.round,Mr);var _r=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=Pr.imul;m.preserveToString(Math.imul,_r)}if(Math.imul.length!==2){re(Math,"imul",function imul(e,t){return se.Call(_r,Math,arguments)})}var kr=function(){var e=S.setTimeout;if(typeof e!=="function"&&typeof e!=="object"){return}se.IsPromise=function(e){if(!se.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var r=function(e){ [...]
//# sourceMappingURL=es6-shim.map
diff --git a/package.json b/package.json
index 6e58306..d51b75e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "es6-shim",
- "version": "0.35.2",
+ "version": "0.35.3",
"author": "Paul Miller (http://paulmillr.com)",
"description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",
"keywords": [
@@ -70,12 +70,12 @@
"devDependencies": {
"chai": "^3.5.0",
"es5-shim": "^4.5.9",
- "eslint": "^3.11.1",
- "@ljharb/eslint-config": "^9.0.1",
+ "eslint": "^3.14.0",
+ "@ljharb/eslint-config": "^10.0.0",
"grunt": "^0.4.5",
"grunt-contrib-connect": "^1.0.2",
"grunt-contrib-watch": "^1.0.0",
- "grunt-saucelabs": "^8.6.2",
+ "grunt-saucelabs": "^8.6.3",
"jscs": "^3.0.7",
"jshint": "^2.9.4",
"mocha": "^3.2.0",
diff --git a/test/.eslintrc b/test/.eslintrc
index 956230c..219da5a 100644
--- a/test/.eslintrc
+++ b/test/.eslintrc
@@ -5,6 +5,7 @@
"max-statements-per-line": [2, { "max": 2 }],
"no-restricted-properties": 1,
"symbol-description": 0,
+ "prefer-promise-reject-errors": 0,
},
"env": {
"mocha": true
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-es6-shim.git
More information about the Pkg-javascript-commits
mailing list