array.prototype.some
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -10,29 +10,38 @@ # Changelog | ||
## [v1.1.0](https://github.com/ljharb/Array.prototype.some/compare/v1.0.0...v1.1.0) - 2019-11-25 | ||
## [v1.1.1](https://github.com/es-shims/Array.prototype.some/compare/v1.1.0...v1.1.1) - 2019-12-19 | ||
### Commits | ||
- [Tests] use shared travis-ci configs [`0cb3e3e`](https://github.com/ljharb/Array.prototype.some/commit/0cb3e3e66b69b6a1456cbd227e96cf68ef33289c) | ||
- [Tests] up to `node` `v12.6`, `v10.16`, `v9.11`, `v8.16`, `v7.10`, `v6.17`, `v4.9`; use `nvm install-latest-npm` [`4602e79`](https://github.com/ljharb/Array.prototype.some/commit/4602e795be3e45a6a60e14366a26312de33aa439) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `evalmd`, `functions-have-names`, `replace`, `safe-publish-latest`, `semver` [`2c0cb95`](https://github.com/ljharb/Array.prototype.some/commit/2c0cb95e7ed5958cbaaa116cf4e4ffc868545eb4) | ||
- [meta] add `auto-changelog` [`c2c5730`](https://github.com/ljharb/Array.prototype.some/commit/c2c5730282b32e9e6704c70fd6b9d3f1ba2819e2) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `covert`, `function-bind`, `replace`, `safe-publish-latest`, `semver`, `tape` [`b0703d8`](https://github.com/ljharb/Array.prototype.some/commit/b0703d81a78b31a8df16a270c2e64c8f602b71ab) | ||
- [Tests] add `has-strict-mode` [`64ebc6c`](https://github.com/ljharb/Array.prototype.some/commit/64ebc6cf024c7ae6aae12fc1980c20f7a4f7a838) | ||
- [Tests] up to `node` `v13.0`, `v12.13`, `v10.17` [`37790ce`](https://github.com/ljharb/Array.prototype.some/commit/37790ce4b65e1879c43f23a0af73463f40902b32) | ||
- [meta] move repo to es-shims org [`3657d55`](https://github.com/ljharb/Array.prototype.some/commit/3657d554e2509999a38f1ce69152cdeeb1444520) | ||
- [actions] add automatic rebasing / merge commit blocking [`b8703cb`](https://github.com/ljharb/Array.prototype.some/commit/b8703cb7ddeee48857706a15fdbacf35e222435f) | ||
- [meta] create FUNDING.yml [`84693bf`](https://github.com/ljharb/Array.prototype.some/commit/84693bf8d8966ba904b63ccdac22e36d1782c32f) | ||
- [Deps] update `es-abstract` [`1ced75a`](https://github.com/ljharb/Array.prototype.some/commit/1ced75a66574a2f49fd2b16f060aaee23dbc0b70) | ||
- [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops [`a30bde5`](https://github.com/ljharb/Array.prototype.some/commit/a30bde5a859ca170f1788f8322885b2617307909) | ||
- Only apps should have lockfiles [`6b9427d`](https://github.com/ljharb/Array.prototype.some/commit/6b9427d03776b18b80d1966891257852f7b5fb94) | ||
- [Dev Deps] update `@ljharb/eslint-config`, `safe-publish-latest` [`9e56349`](https://github.com/ljharb/Array.prototype.some/commit/9e56349ca1eb7962885980349a5d66da0368c9e8) | ||
- [Deps] update `define-properties`, `es-abstract` [`e45c94e`](https://github.com/ljharb/Array.prototype.some/commit/e45c94e7ca307d46a7cf5d649c6c24608eeaaa3a) | ||
- [meta] add `funding` field [`6ef4eaa`](https://github.com/ljharb/Array.prototype.some/commit/6ef4eaa62ce758dce2cd36340ab2dcfa6193119e) | ||
- [Tests] use `functions-have-names` [`f92d774`](https://github.com/ljharb/Array.prototype.some/commit/f92d774eeda81f3de9379c6eed7cbfcf9791d693) | ||
- [New] add `auto` entry point [`cc9a91a`](https://github.com/ljharb/Array.prototype.some/commit/cc9a91ac7b29893f9e83209eb34556a4788429dc) | ||
- [Dev Deps] update `eslint` [`3a7cff8`](https://github.com/ljharb/Array.prototype.some/commit/3a7cff81f34377df20039ca9db38ed2e5711468e) | ||
- [Deps] update `es-abstract` [`d0a07ba`](https://github.com/ljharb/Array.prototype.some/commit/d0a07baaea8adb36b575eac56bb95208e2e40ce0) | ||
- [Tests] temporarily allow coverage tests to fail, due to a bug in covert [`d7f104b`](https://github.com/ljharb/Array.prototype.some/commit/d7f104b01a63499dd36ca998f6d04cf47ea38fde) | ||
- [Docs] remove merge artifact [`d508100`](https://github.com/ljharb/Array.prototype.some/commit/d5081000e11b963e17a50d220bb2318e34e7ecb3) | ||
- [Refactor] use split-up `es-abstract` (79% bundle size decrease) [`bb054d0`](https://github.com/es-shims/Array.prototype.some/commit/bb054d063a4679971d508182ca61aa973a64db72) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`871c869`](https://github.com/es-shims/Array.prototype.some/commit/871c869255b50fb1128db744acef7787f658dc1a) | ||
- [Deps] update `es-abstract`, `is-string` [`581a3db`](https://github.com/es-shims/Array.prototype.some/commit/581a3dba5126ceb5d980d58c132df9fb1ef8eef6) | ||
- [dev deps] remove unused deps [`3a14d16`](https://github.com/es-shims/Array.prototype.some/commit/3a14d164ecd4c2ad6317920562411d05c04a0d51) | ||
## [v1.1.0](https://github.com/es-shims/Array.prototype.some/compare/v1.0.0...v1.1.0) - 2019-11-25 | ||
### Commits | ||
- [Tests] use shared travis-ci configs [`0cb3e3e`](https://github.com/es-shims/Array.prototype.some/commit/0cb3e3e66b69b6a1456cbd227e96cf68ef33289c) | ||
- [Tests] up to `node` `v12.6`, `v10.16`, `v9.11`, `v8.16`, `v7.10`, `v6.17`, `v4.9`; use `nvm install-latest-npm` [`4602e79`](https://github.com/es-shims/Array.prototype.some/commit/4602e795be3e45a6a60e14366a26312de33aa439) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `evalmd`, `functions-have-names`, `replace`, `safe-publish-latest`, `semver` [`2c0cb95`](https://github.com/es-shims/Array.prototype.some/commit/2c0cb95e7ed5958cbaaa116cf4e4ffc868545eb4) | ||
- [meta] add `auto-changelog` [`c2c5730`](https://github.com/es-shims/Array.prototype.some/commit/c2c5730282b32e9e6704c70fd6b9d3f1ba2819e2) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `covert`, `function-bind`, `replace`, `safe-publish-latest`, `semver`, `tape` [`b0703d8`](https://github.com/es-shims/Array.prototype.some/commit/b0703d81a78b31a8df16a270c2e64c8f602b71ab) | ||
- [Tests] add `has-strict-mode` [`64ebc6c`](https://github.com/es-shims/Array.prototype.some/commit/64ebc6cf024c7ae6aae12fc1980c20f7a4f7a838) | ||
- [Tests] up to `node` `v13.0`, `v12.13`, `v10.17` [`37790ce`](https://github.com/es-shims/Array.prototype.some/commit/37790ce4b65e1879c43f23a0af73463f40902b32) | ||
- [meta] move repo to es-shims org [`3657d55`](https://github.com/es-shims/Array.prototype.some/commit/3657d554e2509999a38f1ce69152cdeeb1444520) | ||
- [actions] add automatic rebasing / merge commit blocking [`b8703cb`](https://github.com/es-shims/Array.prototype.some/commit/b8703cb7ddeee48857706a15fdbacf35e222435f) | ||
- [meta] create FUNDING.yml [`84693bf`](https://github.com/es-shims/Array.prototype.some/commit/84693bf8d8966ba904b63ccdac22e36d1782c32f) | ||
- [Deps] update `es-abstract` [`1ced75a`](https://github.com/es-shims/Array.prototype.some/commit/1ced75a66574a2f49fd2b16f060aaee23dbc0b70) | ||
- [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops [`a30bde5`](https://github.com/es-shims/Array.prototype.some/commit/a30bde5a859ca170f1788f8322885b2617307909) | ||
- Only apps should have lockfiles [`6b9427d`](https://github.com/es-shims/Array.prototype.some/commit/6b9427d03776b18b80d1966891257852f7b5fb94) | ||
- [Dev Deps] update `@ljharb/eslint-config`, `safe-publish-latest` [`9e56349`](https://github.com/es-shims/Array.prototype.some/commit/9e56349ca1eb7962885980349a5d66da0368c9e8) | ||
- [Deps] update `define-properties`, `es-abstract` [`e45c94e`](https://github.com/es-shims/Array.prototype.some/commit/e45c94e7ca307d46a7cf5d649c6c24608eeaaa3a) | ||
- [meta] add `funding` field [`6ef4eaa`](https://github.com/es-shims/Array.prototype.some/commit/6ef4eaa62ce758dce2cd36340ab2dcfa6193119e) | ||
- [Tests] use `functions-have-names` [`f92d774`](https://github.com/es-shims/Array.prototype.some/commit/f92d774eeda81f3de9379c6eed7cbfcf9791d693) | ||
- [New] add `auto` entry point [`cc9a91a`](https://github.com/es-shims/Array.prototype.some/commit/cc9a91ac7b29893f9e83209eb34556a4788429dc) | ||
- [Dev Deps] update `eslint` [`3a7cff8`](https://github.com/es-shims/Array.prototype.some/commit/3a7cff81f34377df20039ca9db38ed2e5711468e) | ||
- [Deps] update `es-abstract` [`d0a07ba`](https://github.com/es-shims/Array.prototype.some/commit/d0a07baaea8adb36b575eac56bb95208e2e40ce0) | ||
- [Tests] temporarily allow coverage tests to fail, due to a bug in covert [`d7f104b`](https://github.com/es-shims/Array.prototype.some/commit/d7f104b01a63499dd36ca998f6d04cf47ea38fde) | ||
- [Docs] remove merge artifact [`d508100`](https://github.com/es-shims/Array.prototype.some/commit/d5081000e11b963e17a50d220bb2318e34e7ecb3) | ||
## v1.0.0 - 2016-11-23 | ||
@@ -42,10 +51,10 @@ | ||
- [Tests] Add `npm run testling` and `test.html` [`f281bef`](https://github.com/ljharb/Array.prototype.some/commit/f281bef183c70d14d1d08b58ef69bfe80c7c68ca) | ||
- Tests. [`30cabe1`](https://github.com/ljharb/Array.prototype.some/commit/30cabe167bf77b6782c4029f4504578b3cce0ef6) | ||
- Dotfiles. [`dac5d19`](https://github.com/ljharb/Array.prototype.some/commit/dac5d192cdb4a801ef5d2200303a7e59e3669f19) | ||
- package.json [`e6a0ba8`](https://github.com/ljharb/Array.prototype.some/commit/e6a0ba818acd55416ce3b118aa6934d4c3dcfcaa) | ||
- Implementation. [`b2c3f0f`](https://github.com/ljharb/Array.prototype.some/commit/b2c3f0f01d00f90ebe9b729952b5a497e6bd8d86) | ||
- Read me. [`e42892f`](https://github.com/ljharb/Array.prototype.some/commit/e42892f472ff3c7d1e642212c4ca9a0a528de195) | ||
- Initial commit [`978b696`](https://github.com/ljharb/Array.prototype.some/commit/978b6960c738d65308cc36afffb26e886b4c6923) | ||
- [Dev Deps] add `safe-publish-latest` [`cccc495`](https://github.com/ljharb/Array.prototype.some/commit/cccc495af3456416f780f3a376bd9c4c44cec199) | ||
- [Tests] allow coverage tests to fail, for now. [`bac2605`](https://github.com/ljharb/Array.prototype.some/commit/bac260551042fee3055b9814177d53fd37c4bb8d) | ||
- [Tests] Add `npm run testling` and `test.html` [`f281bef`](https://github.com/es-shims/Array.prototype.some/commit/f281bef183c70d14d1d08b58ef69bfe80c7c68ca) | ||
- Tests. [`30cabe1`](https://github.com/es-shims/Array.prototype.some/commit/30cabe167bf77b6782c4029f4504578b3cce0ef6) | ||
- Dotfiles. [`dac5d19`](https://github.com/es-shims/Array.prototype.some/commit/dac5d192cdb4a801ef5d2200303a7e59e3669f19) | ||
- package.json [`e6a0ba8`](https://github.com/es-shims/Array.prototype.some/commit/e6a0ba818acd55416ce3b118aa6934d4c3dcfcaa) | ||
- Implementation. [`b2c3f0f`](https://github.com/es-shims/Array.prototype.some/commit/b2c3f0f01d00f90ebe9b729952b5a497e6bd8d86) | ||
- Read me. [`e42892f`](https://github.com/es-shims/Array.prototype.some/commit/e42892f472ff3c7d1e642212c4ca9a0a528de195) | ||
- Initial commit [`978b696`](https://github.com/es-shims/Array.prototype.some/commit/978b6960c738d65308cc36afffb26e886b4c6923) | ||
- [Dev Deps] add `safe-publish-latest` [`cccc495`](https://github.com/es-shims/Array.prototype.some/commit/cccc495af3456416f780f3a376bd9c4c44cec199) | ||
- [Tests] allow coverage tests to fail, for now. [`bac2605`](https://github.com/es-shims/Array.prototype.some/commit/bac260551042fee3055b9814177d53fd37c4bb8d) |
'use strict'; | ||
var ES = require('es-abstract/es5'); | ||
var IsCallable = require('es-abstract/2019/IsCallable'); | ||
var ToObject = require('es-abstract/2019/ToObject'); | ||
var ToUint32 = require('es-abstract/2019/ToUint32'); | ||
var callBound = require('es-abstract/helpers/callBound'); | ||
@@ -14,5 +16,5 @@ var isString = require('is-string'); | ||
module.exports = function some(callbackfn) { | ||
var O = ES.ToObject(this); | ||
var O = ToObject(this); | ||
var self = splitString && isString(O) ? $split(O, '') : O; | ||
var len = ES.ToUint32(self.length); | ||
var len = ToUint32(self.length); | ||
var T; | ||
@@ -24,3 +26,3 @@ if (arguments.length > 1) { | ||
// If no callback function or if callback is not a callable function | ||
if (!ES.IsCallable(callbackfn)) { | ||
if (!IsCallable(callbackfn)) { | ||
throw new TypeError('Array.prototype.some callback must be a function'); | ||
@@ -27,0 +29,0 @@ } |
'use strict'; | ||
var define = require('define-properties'); | ||
var ES = require('es-abstract/es2015'); | ||
var RequireObjectCoercible = require('es-abstract/2019/RequireObjectCoercible'); | ||
var callBound = require('es-abstract/helpers/callBound'); | ||
@@ -11,8 +12,8 @@ var implementation = require('./implementation'); | ||
var slice = Array.prototype.slice; | ||
var $slice = callBound('Array.prototype.slice'); | ||
// eslint-disable-next-line no-unused-vars | ||
var boundEveryShim = function some(array, callbackfn) { | ||
ES.RequireObjectCoercible(array); | ||
return polyfill.apply(array, slice.call(arguments, 1)); | ||
RequireObjectCoercible(array); | ||
return polyfill.apply(array, $slice(arguments, 1)); | ||
}; | ||
@@ -19,0 +20,0 @@ define(boundEveryShim, { |
{ | ||
"name": "array.prototype.some", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": { | ||
@@ -55,11 +55,11 @@ "name": "Jordan Harband", | ||
"define-properties": "^1.1.3", | ||
"es-abstract": "^1.16.2", | ||
"is-string": "^1.0.4" | ||
"es-abstract": "^1.17.0-next.1", | ||
"is-string": "^1.0.5" | ||
}, | ||
"devDependencies": { | ||
"@es-shims/api": "^2.1.2", | ||
"@ljharb/eslint-config": "^15.0.1", | ||
"@ljharb/eslint-config": "^15.0.2", | ||
"auto-changelog": "^1.16.2", | ||
"covert": "^1.1.1", | ||
"eslint": "^6.7.1", | ||
"eslint": "^6.7.2", | ||
"evalmd": "0.0.19", | ||
@@ -71,6 +71,4 @@ "foreach": "^2.0.5", | ||
"indexof": "^0.0.1", | ||
"replace": "^1.1.1", | ||
"safe-publish-latest": "^1.1.4", | ||
"semver": "^6.3.0", | ||
"tape": "^4.11.0" | ||
"tape": "^4.12.0" | ||
}, | ||
@@ -77,0 +75,0 @@ "testling": { |
790021
13
313
Updatedes-abstract@^1.17.0-next.1
Updatedis-string@^1.0.5