From 65c1786f7f6a9c83ce92aac572e776461e3be3f7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 20 Feb 2021 13:37:39 -0800 Subject: [PATCH 01/40] [actions] update workflows --- .github/workflows/node-4+.yml | 1 + .github/workflows/node-zero.yml | 2 ++ .github/workflows/rebase.yml | 2 +- .github/workflows/require-allow-edits.yml | 2 -- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node-4+.yml b/.github/workflows/node-4+.yml index ba174e1..4c070dd 100644 --- a/.github/workflows/node-4+.yml +++ b/.github/workflows/node-4+.yml @@ -42,6 +42,7 @@ jobs: steps: - uses: actions/checkout@v2 - uses: ljharb/actions/node/run@main + name: 'npm install && npm run tests-only' with: node-version: ${{ matrix.node-version }} command: 'tests-only' diff --git a/.github/workflows/node-zero.yml b/.github/workflows/node-zero.yml index d044c60..2435bf2 100644 --- a/.github/workflows/node-zero.yml +++ b/.github/workflows/node-zero.yml @@ -25,6 +25,7 @@ jobs: steps: - uses: actions/checkout@v2 - uses: ljharb/actions/node/run@main + name: 'npm install && npm run tests-only' with: node-version: ${{ matrix.node-version }} command: 'tests-only' @@ -44,6 +45,7 @@ jobs: steps: - uses: actions/checkout@v2 - uses: ljharb/actions/node/run@main + name: 'npm install && npm run tests-only' with: node-version: ${{ matrix.node-version }} command: 'tests-only' diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 0c2ad39..027aed0 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: ljharb/rebase@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/require-allow-edits.yml b/.github/workflows/require-allow-edits.yml index aac42d3..549d7b4 100644 --- a/.github/workflows/require-allow-edits.yml +++ b/.github/workflows/require-allow-edits.yml @@ -10,5 +10,3 @@ jobs: steps: - uses: ljharb/require-allow-edits@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From d313ad53d6971f7c771a92c6a3c1ade0e4f4e1d1 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 20 Feb 2021 13:38:40 -0800 Subject: [PATCH 02/40] [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `has-strict-mode`, `tape` --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 4918d7e..e48abf1 100644 --- a/package.json +++ b/package.json @@ -52,18 +52,18 @@ }, "devDependencies": { "@es-shims/api": "^2.1.2", - "@ljharb/eslint-config": "^17.3.0", - "aud": "^1.1.3", - "eslint": "^7.14.0", + "@ljharb/eslint-config": "^17.5.1", + "aud": "^1.1.4", + "eslint": "^7.20.0", "evalmd": "0.0.19", "foreach": "^2.0.5", "function-bind": "^1.1.1", - "functions-have-names": "^1.2.1", - "has-strict-mode": "^1.0.0", + "functions-have-names": "^1.2.2", + "has-strict-mode": "^1.0.1", "indexof": "^0.0.1", "nyc": "^10.3.2", "safe-publish-latest": "^1.1.4", - "tape": "^5.0.1" + "tape": "^5.2.0" }, "testling": { "files": [ From d769b93ebb8378f278e1f2019e29f1c7eae1eff3 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 20 Feb 2021 13:39:14 -0800 Subject: [PATCH 03/40] [Deps] update `call-bind`, `es-abstract`, `get-intrinsic` --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e48abf1..c2969f6 100644 --- a/package.json +++ b/package.json @@ -44,10 +44,10 @@ "es-shim API" ], "dependencies": { - "call-bind": "^1.0.0", + "call-bind": "^1.0.2", "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.1", - "get-intrinsic": "^1.0.1", + "es-abstract": "^1.18.0-next.2", + "get-intrinsic": "^1.1.1", "is-string": "^1.0.5" }, "devDependencies": { From c24283f869d2ff86ea186091ebff9ba2c772849d Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 20 Feb 2021 13:39:37 -0800 Subject: [PATCH 04/40] [meta] do not publish github action workflow files --- .npmignore | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..8264f78 --- /dev/null +++ b/.npmignore @@ -0,0 +1,13 @@ +# gitignore +node_modules + +# Only apps should have lockfiles +npm-shrinkwrap.json +package-lock.json +yarn.lock + +# coverage +coverage/ +.nyc_output/ + +.github/workflows From c5b970f2f5dd20b7838f5f21bf08062a22581fcc Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 20 Feb 2021 13:41:37 -0800 Subject: [PATCH 05/40] [Tests] increase coverage --- test/shimmed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/shimmed.js b/test/shimmed.js index f69c641..7081eb1 100644 --- a/test/shimmed.js +++ b/test/shimmed.js @@ -1,6 +1,6 @@ 'use strict'; -require('../shim')(); +require('../auto'); var test = require('tape'); var defineProperties = require('define-properties'); From 96c8dc669642a16209212ea7b1d95e3fe9521947 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 20 Feb 2021 13:41:03 -0800 Subject: [PATCH 06/40] v3.1.3 --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78e09ab..7e8a56e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +3.1.3 / 2021-02-20 +================= + * [Deps] update `call-bind`, `es-abstract`, `get-intrinsic` + * [meta] do not publish github action workflow files + * [meta] gitignore coverage output + * [actions] update workflows + * [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `has-strict-mode`, `tape` + * [Tests] increase coverage + 3.1.2 / 2020-11-24 ================= * [Robustness] remove dependency on `.apply` diff --git a/package.json b/package.json index c2969f6..e1ae426 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "array-includes", - "version": "3.1.2", + "version": "3.1.3", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", From 300f1514ff342342a7f573d6265daaadc0dfea15 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 12 Apr 2021 23:27:23 -0700 Subject: [PATCH 07/40] [meta] use `prepublishOnly` script for npm 7+ --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e1ae426..3f85a12 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "license": "MIT", "main": "index.js", "scripts": { - "prepublish": "safe-publish-latest", + "prepublish": "not-in-publish || npm run prepublishOnly", + "prepublishOnly": "safe-publish-latest", "pretest": "npm run --silent lint && evalmd README.md", "test": "npm run --silent tests-only", "posttest": "npx aud --production", From 757a64f1f4e69a48cc721deb3a31c03b3cb57b25 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 12 Apr 2021 23:27:37 -0700 Subject: [PATCH 08/40] [actions] use `node/install` instead of `node/run`; use `codecov` action --- .github/workflows/node-4+.yml | 16 ++++++++++------ .github/workflows/node-iojs.yml | 16 ++++++++++------ .github/workflows/node-pretest.yml | 12 ++++++------ .github/workflows/node-zero.yml | 16 ++++++++++------ .nycrc | 4 ---- 5 files changed, 36 insertions(+), 28 deletions(-) diff --git a/.github/workflows/node-4+.yml b/.github/workflows/node-4+.yml index 4c070dd..ce378c7 100644 --- a/.github/workflows/node-4+.yml +++ b/.github/workflows/node-4+.yml @@ -20,15 +20,18 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: true matrix: ${{ fromJson(needs.matrix.outputs.latest) }} steps: - uses: actions/checkout@v2 - - uses: ljharb/actions/node/run@main - name: 'npm install && npm run tests-only' + - uses: ljharb/actions/node/install@main + name: 'nvm install ${{ matrix.node-version }} && npm install' with: node-version: ${{ matrix.node-version }} - command: 'tests-only' + - run: npm run tests-only + - uses: codecov/codecov-action@v1 + minors: needs: [matrix, latest] name: 'non-latest minors' @@ -41,11 +44,12 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: ljharb/actions/node/run@main - name: 'npm install && npm run tests-only' + - uses: ljharb/actions/node/install@main + name: 'nvm install ${{ matrix.node-version }} && npm install' with: node-version: ${{ matrix.node-version }} - command: 'tests-only' + - run: npm run tests-only + - uses: codecov/codecov-action@v1 node: name: 'node 4+' diff --git a/.github/workflows/node-iojs.yml b/.github/workflows/node-iojs.yml index f707c3c..891b73d 100644 --- a/.github/workflows/node-iojs.yml +++ b/.github/workflows/node-iojs.yml @@ -20,16 +20,18 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: ${{ fromJson(needs.matrix.outputs.latest) }} steps: - uses: actions/checkout@v2 - - uses: ljharb/actions/node/run@main - name: 'npm install && npm run tests-only' + - uses: ljharb/actions/node/install@main + name: 'nvm install ${{ matrix.node-version }} && npm install' with: node-version: ${{ matrix.node-version }} - command: 'tests-only' skip-ls-check: true + - run: npm run tests-only + - uses: codecov/codecov-action@v1 minors: needs: [matrix, latest] @@ -39,16 +41,18 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: ${{ fromJson(needs.matrix.outputs.minors) }} steps: - uses: actions/checkout@v2 - - uses: ljharb/actions/node/run@main - name: 'npm install && npm run tests-only' + - uses: ljharb/actions/node/install@main + name: 'nvm install ${{ matrix.node-version }} && npm install' with: node-version: ${{ matrix.node-version }} - command: 'tests-only' skip-ls-check: true + - run: npm run tests-only + - uses: codecov/codecov-action@v1 node: name: 'io.js' diff --git a/.github/workflows/node-pretest.yml b/.github/workflows/node-pretest.yml index 3921e0a..969d138 100644 --- a/.github/workflows/node-pretest.yml +++ b/.github/workflows/node-pretest.yml @@ -8,19 +8,19 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: ljharb/actions/node/run@main - name: 'npm install && npm run pretest' + - uses: ljharb/actions/node/install@main + name: 'nvm install lts/* && npm install' with: node-version: 'lts/*' - command: 'pretest' + - run: npm run pretest posttest: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: ljharb/actions/node/run@main - name: 'npm install && npm run posttest' + - uses: ljharb/actions/node/install@main + name: 'nvm install lts/* && npm install' with: node-version: 'lts/*' - command: 'posttest' + - run: npm run posttest diff --git a/.github/workflows/node-zero.yml b/.github/workflows/node-zero.yml index 2435bf2..18dcd1a 100644 --- a/.github/workflows/node-zero.yml +++ b/.github/workflows/node-zero.yml @@ -20,17 +20,19 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: ${{ fromJson(needs.matrix.outputs.stable) }} steps: - uses: actions/checkout@v2 - - uses: ljharb/actions/node/run@main - name: 'npm install && npm run tests-only' + - uses: ljharb/actions/node/install@main + name: 'nvm install ${{ matrix.node-version }} && npm install' with: node-version: ${{ matrix.node-version }} - command: 'tests-only' cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} skip-ls-check: true + - run: npm run tests-only + - uses: codecov/codecov-action@v1 unstable: needs: [matrix, stable] @@ -40,17 +42,19 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: ${{ fromJson(needs.matrix.outputs.unstable) }} steps: - uses: actions/checkout@v2 - - uses: ljharb/actions/node/run@main - name: 'npm install && npm run tests-only' + - uses: ljharb/actions/node/install@main + name: 'nvm install ${{ matrix.node-version }} && npm install' with: node-version: ${{ matrix.node-version }} - command: 'tests-only' cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} skip-ls-check: true + - run: npm run tests-only + - uses: codecov/codecov-action@v1 node: name: 'node 0.x' diff --git a/.nycrc b/.nycrc index 1826526..bdd626c 100644 --- a/.nycrc +++ b/.nycrc @@ -2,10 +2,6 @@ "all": true, "check-coverage": false, "reporter": ["text-summary", "text", "html", "json"], - "lines": 86, - "statements": 85.93, - "functions": 82.43, - "branches": 76.06, "exclude": [ "coverage", "test" From e1fcde529d55964ee678b4d31e49cdc24369ec02 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 12 Apr 2021 23:30:12 -0700 Subject: [PATCH 09/40] [Dev Deps] update `eslint`, `tape` --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3f85a12..0a543da 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,8 @@ "@es-shims/api": "^2.1.2", "@ljharb/eslint-config": "^17.5.1", "aud": "^1.1.4", - "eslint": "^7.20.0", - "evalmd": "0.0.19", + "eslint": "^7.24.0", + "evalmd": "^0.0.19", "foreach": "^2.0.5", "function-bind": "^1.1.1", "functions-have-names": "^1.2.2", @@ -64,7 +64,7 @@ "indexof": "^0.0.1", "nyc": "^10.3.2", "safe-publish-latest": "^1.1.4", - "tape": "^5.2.0" + "tape": "^5.2.2" }, "testling": { "files": [ From 4d5f4790b32c7da7778142e6f73bf18cda45c361 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 12 Apr 2021 23:30:32 -0700 Subject: [PATCH 10/40] [Deps] update `es-abstract` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a543da..df9d0d0 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2", + "es-abstract": "^1.18.0", "get-intrinsic": "^1.1.1", "is-string": "^1.0.5" }, From 31f212835f4cfee54f871eab16b7c66217bf6963 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 12 Apr 2021 23:31:06 -0700 Subject: [PATCH 11/40] [readme] fix repo URLs; remove travis badge --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fb87587..adb3abf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # array-includes [![Version Badge][npm-version-svg]][package-url] -[![Build Status][travis-svg]][travis-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] @@ -10,7 +9,7 @@ An ES7/ES2016 spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3. -This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](http://www.ecma-international.org/ecma-262/6.0/). +This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](https://262.ecma-international.org/6.0/). Because `Array.prototype.includes` depends on a receiver (the `this` value), the main export takes the array to operate on as the first argument. @@ -80,15 +79,13 @@ assert.equal(arr.includes(1, 'foo'), includes(arr, 1, 'foo')); Simply clone the repo, `npm install`, and run `npm test` [package-url]: https://npmjs.org/package/array-includes -[npm-version-svg]: http://versionbadg.es/es-shims/array-includes.svg -[travis-svg]: https://travis-ci.org/es-shims/array-includes.svg -[travis-url]: https://travis-ci.org/es-shims/array-includes +[npm-version-svg]: https://versionbadg.es/es-shims/array-includes.svg [deps-svg]: https://david-dm.org/es-shims/array-includes.svg [deps-url]: https://david-dm.org/es-shims/array-includes [dev-deps-svg]: https://david-dm.org/es-shims/array-includes/dev-status.svg [dev-deps-url]: https://david-dm.org/es-shims/array-includes#info=devDependencies [npm-badge-png]: https://nodei.co/npm/array-includes.png?downloads=true&stars=true -[license-image]: http://img.shields.io/npm/l/array-includes.svg +[license-image]: https://img.shields.io/npm/l/array-includes.svg [license-url]: LICENSE -[downloads-image]: http://img.shields.io/npm/dm/array-includes.svg -[downloads-url]: http://npm-stat.com/charts.html?package=array-includes +[downloads-image]: https://img.shields.io/npm/dm/array-includes.svg +[downloads-url]: https://npm-stat.com/charts.html?package=array-includes From f2a2d8b07358de5948721f6473c65006d9770041 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 4 Oct 2021 21:03:01 -0700 Subject: [PATCH 12/40] [actions] update workflows --- .github/workflows/node-4+.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node-4+.yml b/.github/workflows/node-4+.yml index ce378c7..007f773 100644 --- a/.github/workflows/node-4+.yml +++ b/.github/workflows/node-4+.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest strategy: - fail-fast: true + fail-fast: false matrix: ${{ fromJson(needs.matrix.outputs.latest) }} steps: @@ -40,6 +40,7 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: ${{ fromJson(needs.matrix.outputs.minors) }} steps: From 148d014151c698ea5e36034c8c29a65a9227f8fa Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 4 Oct 2021 21:04:10 -0700 Subject: [PATCH 13/40] [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `tape` --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index df9d0d0..0850d43 100644 --- a/package.json +++ b/package.json @@ -52,10 +52,10 @@ "is-string": "^1.0.5" }, "devDependencies": { - "@es-shims/api": "^2.1.2", - "@ljharb/eslint-config": "^17.5.1", - "aud": "^1.1.4", - "eslint": "^7.24.0", + "@es-shims/api": "^2.2.2", + "@ljharb/eslint-config": "^18.0.0", + "aud": "^1.1.5", + "eslint": "^7.32.0", "evalmd": "^0.0.19", "foreach": "^2.0.5", "function-bind": "^1.1.1", @@ -64,7 +64,7 @@ "indexof": "^0.0.1", "nyc": "^10.3.2", "safe-publish-latest": "^1.1.4", - "tape": "^5.2.2" + "tape": "^5.3.1" }, "testling": { "files": [ From 71cab2f835aac8543a52fc9a9509a70f379425f4 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 4 Oct 2021 21:05:42 -0700 Subject: [PATCH 14/40] [Deps] update `es-abstract`, `is-string` --- .eslintrc | 11 ++++++++++- implementation.js | 10 +++++----- index.js | 2 +- package.json | 4 ++-- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.eslintrc b/.eslintrc index 0df206d..dc67ea5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -7,7 +7,16 @@ "complexity": 0, "id-length": [2, { "min": 1, "max": 26 }], "max-statements": [2, 14], - "new-cap": [2, { capIsNewExceptions: ["GetIntrinsic", "ToObject", "ToInteger", "ToLength", "SameValueZero", "RequireObjectCoercible"] }], + "new-cap": [2, { + "capIsNewExceptions": [ + "GetIntrinsic", + "ToObject", + "ToIntegerOrInfinity", + "ToLength", + "SameValueZero", + "RequireObjectCoercible", + ], + }], }, "overrides": [ diff --git a/implementation.js b/implementation.js index 7823d5a..f75c0e9 100644 --- a/implementation.js +++ b/implementation.js @@ -1,9 +1,9 @@ 'use strict'; -var ToInteger = require('es-abstract/2020/ToInteger'); -var ToLength = require('es-abstract/2020/ToLength'); -var ToObject = require('es-abstract/2020/ToObject'); -var SameValueZero = require('es-abstract/2020/SameValueZero'); +var ToIntegerOrInfinity = require('es-abstract/2021/ToIntegerOrInfinity'); +var ToLength = require('es-abstract/2021/ToLength'); +var ToObject = require('es-abstract/2021/ToObject'); +var SameValueZero = require('es-abstract/2021/SameValueZero'); var $isNaN = require('es-abstract/helpers/isNaN'); var $isFinite = require('es-abstract/helpers/isFinite'); var GetIntrinsic = require('get-intrinsic'); @@ -14,7 +14,7 @@ var $charAt = callBound('String.prototype.charAt'); var $indexOf = GetIntrinsic('%Array.prototype.indexOf%'); // TODO: use callBind.apply without breaking IE 8 module.exports = function includes(searchElement) { - var fromIndex = arguments.length > 1 ? ToInteger(arguments[1]) : 0; + var fromIndex = arguments.length > 1 ? ToIntegerOrInfinity(arguments[1]) : 0; if ($indexOf && !$isNaN(searchElement) && $isFinite(fromIndex) && typeof searchElement !== 'undefined') { return $indexOf.apply(this, arguments) > -1; } diff --git a/index.js b/index.js index bed832e..92cda1c 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ 'use strict'; var define = require('define-properties'); -var RequireObjectCoercible = require('es-abstract/2020/RequireObjectCoercible'); +var RequireObjectCoercible = require('es-abstract/2021/RequireObjectCoercible'); var callBind = require('call-bind'); var callBound = require('call-bind/callBound'); diff --git a/package.json b/package.json index 0850d43..9a4671b 100644 --- a/package.json +++ b/package.json @@ -47,9 +47,9 @@ "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", - "es-abstract": "^1.18.0", + "es-abstract": "^1.19.1", "get-intrinsic": "^1.1.1", - "is-string": "^1.0.5" + "is-string": "^1.0.7" }, "devDependencies": { "@es-shims/api": "^2.2.2", From 46e91f1c3cf61faa8d84e2d362408b9e5a2174cb Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 4 Oct 2021 21:06:22 -0700 Subject: [PATCH 15/40] [Robustness] avoid a runtime `Math.max` call --- implementation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/implementation.js b/implementation.js index f75c0e9..1211641 100644 --- a/implementation.js +++ b/implementation.js @@ -12,6 +12,7 @@ var isString = require('is-string'); var $charAt = callBound('String.prototype.charAt'); var $indexOf = GetIntrinsic('%Array.prototype.indexOf%'); // TODO: use callBind.apply without breaking IE 8 +var $max = GetIntrinsic('%Math.max%'); module.exports = function includes(searchElement) { var fromIndex = arguments.length > 1 ? ToIntegerOrInfinity(arguments[1]) : 0; @@ -24,7 +25,7 @@ module.exports = function includes(searchElement) { if (length === 0) { return false; } - var k = fromIndex >= 0 ? fromIndex : Math.max(0, length + fromIndex); + var k = fromIndex >= 0 ? fromIndex : $max(0, length + fromIndex); while (k < length) { if (SameValueZero(searchElement, isString(O) ? $charAt(O, k) : O[k])) { return true; From 9c00fbe0255f923c8d45a32fea5d3d00390bdf95 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 4 Oct 2021 21:08:24 -0700 Subject: [PATCH 16/40] [readme] add github actions/codecov badges --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index adb3abf..5e29042 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # array-includes [![Version Badge][npm-version-svg]][package-url] +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] @@ -89,3 +91,7 @@ Simply clone the repo, `npm install`, and run `npm test` [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/array-includes.svg [downloads-url]: https://npm-stat.com/charts.html?package=array-includes +[codecov-image]: https://codecov.io/gh/es-shims/array-includes/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/es-shims/array-includes/ +[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/array-includes +[actions-url]: https://github.com/es-shims/array-includes/actions From e3a7b0a9565b6e9328ca3ecdd30042d982f7c9f4 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 4 Oct 2021 22:24:48 -0700 Subject: [PATCH 17/40] v3.1.4 --- CHANGELOG.md | 11 +++++++++++ package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e8a56e..0b35673 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +3.1.4 / 2021-10-04 +================= + * [Robustness] avoid a runtime `Math.max` call + * [readme] add github actions/codecov badges + * [readme] fix repo URLs; remove travis badge + * [Deps] update `es-abstract`, `is-string` + * [meta] use `prepublishOnly` script for npm 7+ + * [actions] update workflows + * [actions] use `node/install` instead of `node/run`; use `codecov` action + * [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `tape` + 3.1.3 / 2021-02-20 ================= * [Deps] update `call-bind`, `es-abstract`, `get-intrinsic` diff --git a/package.json b/package.json index 9a4671b..2e54090 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "array-includes", - "version": "3.1.3", + "version": "3.1.4", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", From 1951ec5de8e69e7b3d67341c8e26076e51545ff1 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 13 Oct 2021 09:59:30 -0700 Subject: [PATCH 18/40] [actions] update codecov uploader --- .github/workflows/node-4+.yml | 4 ++-- .github/workflows/node-iojs.yml | 4 ++-- .github/workflows/node-zero.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node-4+.yml b/.github/workflows/node-4+.yml index 007f773..dc07b85 100644 --- a/.github/workflows/node-4+.yml +++ b/.github/workflows/node-4+.yml @@ -30,7 +30,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm run tests-only - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v2 minors: needs: [matrix, latest] @@ -50,7 +50,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm run tests-only - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v2 node: name: 'node 4+' diff --git a/.github/workflows/node-iojs.yml b/.github/workflows/node-iojs.yml index 891b73d..ac64c55 100644 --- a/.github/workflows/node-iojs.yml +++ b/.github/workflows/node-iojs.yml @@ -31,7 +31,7 @@ jobs: node-version: ${{ matrix.node-version }} skip-ls-check: true - run: npm run tests-only - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v2 minors: needs: [matrix, latest] @@ -52,7 +52,7 @@ jobs: node-version: ${{ matrix.node-version }} skip-ls-check: true - run: npm run tests-only - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v2 node: name: 'io.js' diff --git a/.github/workflows/node-zero.yml b/.github/workflows/node-zero.yml index 18dcd1a..ad75396 100644 --- a/.github/workflows/node-zero.yml +++ b/.github/workflows/node-zero.yml @@ -32,7 +32,7 @@ jobs: cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} skip-ls-check: true - run: npm run tests-only - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v2 unstable: needs: [matrix, stable] @@ -54,7 +54,7 @@ jobs: cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} skip-ls-check: true - run: npm run tests-only - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v2 node: name: 'node 0.x' From b3c04b2778b1dc41d505b6a91577da0bbd3c55cb Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 14 Dec 2021 23:19:09 -0800 Subject: [PATCH 19/40] [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `safe-publish-latest`, `tape` --- .eslintignore | 1 - .eslintrc | 2 -- package.json | 17 +++++++++-------- 3 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 404abb2..0000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -coverage/ diff --git a/.eslintrc b/.eslintrc index dc67ea5..540ac8e 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,9 +4,7 @@ "extends": "@ljharb", "rules": { - "complexity": 0, "id-length": [2, { "min": 1, "max": 26 }], - "max-statements": [2, 14], "new-cap": [2, { "capIsNewExceptions": [ "GetIntrinsic", diff --git a/package.json b/package.json index 2e54090..5c40808 100644 --- a/package.json +++ b/package.json @@ -22,11 +22,12 @@ "scripts": { "prepublish": "not-in-publish || npm run prepublishOnly", "prepublishOnly": "safe-publish-latest", - "pretest": "npm run --silent lint && evalmd README.md", + "pretest": "npm run --silent lint", "test": "npm run --silent tests-only", - "posttest": "npx aud --production", + "posttest": "aud --production", "tests-only": "nyc tape 'test/**/*.js'", - "lint": "eslint .", + "prelint": "evalmd README.md", + "lint": "eslint --ext=js,mjs .", "postlint": "es-shim-api --bound" }, "repository": { @@ -52,10 +53,10 @@ "is-string": "^1.0.7" }, "devDependencies": { - "@es-shims/api": "^2.2.2", - "@ljharb/eslint-config": "^18.0.0", + "@es-shims/api": "^2.2.3", + "@ljharb/eslint-config": "^20.1.0", "aud": "^1.1.5", - "eslint": "^7.32.0", + "eslint": "^8.4.1", "evalmd": "^0.0.19", "foreach": "^2.0.5", "function-bind": "^1.1.1", @@ -63,8 +64,8 @@ "has-strict-mode": "^1.0.1", "indexof": "^0.0.1", "nyc": "^10.3.2", - "safe-publish-latest": "^1.1.4", - "tape": "^5.3.1" + "safe-publish-latest": "^2.0.0", + "tape": "^5.3.2" }, "testling": { "files": [ From b3e698d1b2e3268d5062bd885656b27a6ddd83e5 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 14 Dec 2021 23:19:44 -0800 Subject: [PATCH 20/40] [actions] reuse common workflows See https://github.com/inspect-js/is-arguments/pull/38 --- .github/workflows/node-4+.yml | 60 --------------------- .github/workflows/node-aught.yml | 18 +++++++ .github/workflows/node-iojs.yml | 62 ---------------------- .github/workflows/node-pretest.yml | 23 +------- .github/workflows/node-tens.yml | 18 +++++++ .github/workflows/node-zero.yml | 64 ----------------------- .github/workflows/rebase.yml | 8 +-- .github/workflows/require-allow-edits.yml | 2 +- 8 files changed, 43 insertions(+), 212 deletions(-) delete mode 100644 .github/workflows/node-4+.yml create mode 100644 .github/workflows/node-aught.yml delete mode 100644 .github/workflows/node-iojs.yml create mode 100644 .github/workflows/node-tens.yml delete mode 100644 .github/workflows/node-zero.yml diff --git a/.github/workflows/node-4+.yml b/.github/workflows/node-4+.yml deleted file mode 100644 index dc07b85..0000000 --- a/.github/workflows/node-4+.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: 'Tests: node.js' - -on: [pull_request, push] - -jobs: - matrix: - runs-on: ubuntu-latest - outputs: - latest: ${{ steps.set-matrix.outputs.requireds }} - minors: ${{ steps.set-matrix.outputs.optionals }} - steps: - - uses: ljharb/actions/node/matrix@main - id: set-matrix - with: - preset: '>=4' - - latest: - needs: [matrix] - name: 'latest minors' - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: ${{ fromJson(needs.matrix.outputs.latest) }} - - steps: - - uses: actions/checkout@v2 - - uses: ljharb/actions/node/install@main - name: 'nvm install ${{ matrix.node-version }} && npm install' - with: - node-version: ${{ matrix.node-version }} - - run: npm run tests-only - - uses: codecov/codecov-action@v2 - - minors: - needs: [matrix, latest] - name: 'non-latest minors' - continue-on-error: true - if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: ${{ fromJson(needs.matrix.outputs.minors) }} - - steps: - - uses: actions/checkout@v2 - - uses: ljharb/actions/node/install@main - name: 'nvm install ${{ matrix.node-version }} && npm install' - with: - node-version: ${{ matrix.node-version }} - - run: npm run tests-only - - uses: codecov/codecov-action@v2 - - node: - name: 'node 4+' - needs: [latest, minors] - runs-on: ubuntu-latest - steps: - - run: 'echo tests completed' diff --git a/.github/workflows/node-aught.yml b/.github/workflows/node-aught.yml new file mode 100644 index 0000000..f3cddd8 --- /dev/null +++ b/.github/workflows/node-aught.yml @@ -0,0 +1,18 @@ +name: 'Tests: node.js < 10' + +on: [pull_request, push] + +jobs: + tests: + uses: ljharb/actions/.github/workflows/node.yml@main + with: + range: '< 10' + type: minors + command: npm run tests-only + + node: + name: 'node < 10' + needs: [tests] + runs-on: ubuntu-latest + steps: + - run: 'echo tests completed' diff --git a/.github/workflows/node-iojs.yml b/.github/workflows/node-iojs.yml deleted file mode 100644 index ac64c55..0000000 --- a/.github/workflows/node-iojs.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: 'Tests: node.js (io.js)' - -on: [pull_request, push] - -jobs: - matrix: - runs-on: ubuntu-latest - outputs: - latest: ${{ steps.set-matrix.outputs.requireds }} - minors: ${{ steps.set-matrix.outputs.optionals }} - steps: - - uses: ljharb/actions/node/matrix@main - id: set-matrix - with: - preset: 'iojs' - - latest: - needs: [matrix] - name: 'latest minors' - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: ${{ fromJson(needs.matrix.outputs.latest) }} - - steps: - - uses: actions/checkout@v2 - - uses: ljharb/actions/node/install@main - name: 'nvm install ${{ matrix.node-version }} && npm install' - with: - node-version: ${{ matrix.node-version }} - skip-ls-check: true - - run: npm run tests-only - - uses: codecov/codecov-action@v2 - - minors: - needs: [matrix, latest] - name: 'non-latest minors' - continue-on-error: true - if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: ${{ fromJson(needs.matrix.outputs.minors) }} - - steps: - - uses: actions/checkout@v2 - - uses: ljharb/actions/node/install@main - name: 'nvm install ${{ matrix.node-version }} && npm install' - with: - node-version: ${{ matrix.node-version }} - skip-ls-check: true - - run: npm run tests-only - - uses: codecov/codecov-action@v2 - - node: - name: 'io.js' - needs: [latest, minors] - runs-on: ubuntu-latest - steps: - - run: 'echo tests completed' diff --git a/.github/workflows/node-pretest.yml b/.github/workflows/node-pretest.yml index 969d138..765edf7 100644 --- a/.github/workflows/node-pretest.yml +++ b/.github/workflows/node-pretest.yml @@ -3,24 +3,5 @@ name: 'Tests: pretest/posttest' on: [pull_request, push] jobs: - pretest: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: ljharb/actions/node/install@main - name: 'nvm install lts/* && npm install' - with: - node-version: 'lts/*' - - run: npm run pretest - - posttest: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: ljharb/actions/node/install@main - name: 'nvm install lts/* && npm install' - with: - node-version: 'lts/*' - - run: npm run posttest + tests: + uses: ljharb/actions/.github/workflows/pretest.yml@main diff --git a/.github/workflows/node-tens.yml b/.github/workflows/node-tens.yml new file mode 100644 index 0000000..b49ceb1 --- /dev/null +++ b/.github/workflows/node-tens.yml @@ -0,0 +1,18 @@ +name: 'Tests: node.js >= 10' + +on: [pull_request, push] + +jobs: + tests: + uses: ljharb/actions/.github/workflows/node.yml@main + with: + range: '>= 10' + type: minors + command: npm run tests-only + + node: + name: 'node >= 10' + needs: [tests] + runs-on: ubuntu-latest + steps: + - run: 'echo tests completed' diff --git a/.github/workflows/node-zero.yml b/.github/workflows/node-zero.yml deleted file mode 100644 index ad75396..0000000 --- a/.github/workflows/node-zero.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: 'Tests: node.js (0.x)' - -on: [pull_request, push] - -jobs: - matrix: - runs-on: ubuntu-latest - outputs: - stable: ${{ steps.set-matrix.outputs.requireds }} - unstable: ${{ steps.set-matrix.outputs.optionals }} - steps: - - uses: ljharb/actions/node/matrix@main - id: set-matrix - with: - preset: '0.x' - - stable: - needs: [matrix] - name: 'stable minors' - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: ${{ fromJson(needs.matrix.outputs.stable) }} - - steps: - - uses: actions/checkout@v2 - - uses: ljharb/actions/node/install@main - name: 'nvm install ${{ matrix.node-version }} && npm install' - with: - node-version: ${{ matrix.node-version }} - cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} - skip-ls-check: true - - run: npm run tests-only - - uses: codecov/codecov-action@v2 - - unstable: - needs: [matrix, stable] - name: 'unstable minors' - continue-on-error: true - if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: ${{ fromJson(needs.matrix.outputs.unstable) }} - - steps: - - uses: actions/checkout@v2 - - uses: ljharb/actions/node/install@main - name: 'nvm install ${{ matrix.node-version }} && npm install' - with: - node-version: ${{ matrix.node-version }} - cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }} - skip-ls-check: true - - run: npm run tests-only - - uses: codecov/codecov-action@v2 - - node: - name: 'node 0.x' - needs: [stable, unstable] - runs-on: ubuntu-latest - steps: - - run: 'echo tests completed' diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 027aed0..5b6d04b 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: ljharb/rebase@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v2 + - uses: ljharb/rebase@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/require-allow-edits.yml b/.github/workflows/require-allow-edits.yml index 549d7b4..7b842f8 100644 --- a/.github/workflows/require-allow-edits.yml +++ b/.github/workflows/require-allow-edits.yml @@ -9,4 +9,4 @@ jobs: runs-on: ubuntu-latest steps: - - uses: ljharb/require-allow-edits@main + - uses: ljharb/require-allow-edits@main From 47655a17f4846f8257aa036b536e099ccd701a05 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 3 May 2022 13:54:07 -0700 Subject: [PATCH 21/40] [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `tape` --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5c40808..0ef1863 100644 --- a/package.json +++ b/package.json @@ -54,18 +54,18 @@ }, "devDependencies": { "@es-shims/api": "^2.2.3", - "@ljharb/eslint-config": "^20.1.0", - "aud": "^1.1.5", - "eslint": "^8.4.1", + "@ljharb/eslint-config": "^21.0.0", + "aud": "^2.0.0", + "eslint": "=8.8.0", "evalmd": "^0.0.19", "foreach": "^2.0.5", "function-bind": "^1.1.1", - "functions-have-names": "^1.2.2", + "functions-have-names": "^1.2.3", "has-strict-mode": "^1.0.1", "indexof": "^0.0.1", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", - "tape": "^5.3.2" + "tape": "^5.5.3" }, "testling": { "files": [ From beeca7b58a038f1aae9a768d6bd9863ca2cdcbc7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 3 May 2022 13:55:00 -0700 Subject: [PATCH 22/40] [Deps] update `define-properties`, `es-abstract` --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0ef1863..29c0d26 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,8 @@ ], "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", "get-intrinsic": "^1.1.1", "is-string": "^1.0.7" }, From c1ec3b6005c0ec01c1b30ad7a005dea791f21e61 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 3 May 2022 14:05:42 -0700 Subject: [PATCH 23/40] [Fix] install polyfill on FF 99+ See https://bugzilla.mozilla.org/show_bug.cgi?id=1767541 --- README.md | 8 ++++++++ polyfill.js | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e29042..da1ec5a 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,14 @@ This package implements the [es-shim API](https://github.com/es-shims/api) inter Because `Array.prototype.includes` depends on a receiver (the `this` value), the main export takes the array to operate on as the first argument. +Engines that need this package include: + - IE (all versions) + - Safari < 9 + - Firefox < 43, and 99+ + - Chrome < 47 + - Edge < 14 + - node < 6 + ## Getting started ```sh diff --git a/polyfill.js b/polyfill.js index dfbaa42..6abe64b 100644 --- a/polyfill.js +++ b/polyfill.js @@ -3,5 +3,11 @@ var implementation = require('./implementation'); module.exports = function getPolyfill() { - return Array.prototype.includes || implementation; + if ( + Array.prototype.includes + && Array(1).includes(undefined) // https://bugzilla.mozilla.org/show_bug.cgi?id=1767541 + ) { + return Array.prototype.includes; + } + return implementation; }; From 6c7dd5974567ed4b69b2ee10f37ac449007d0bbd Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 3 May 2022 14:11:06 -0700 Subject: [PATCH 24/40] v3.1.5 --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b35673..364caec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +3.1.5 / 2022-05-03 +================= + * [Fix] install polyfill on FF 99+ + * [Deps] update `define-properties`, `es-abstract` + * [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `functions-have-names`, `safe-publish-latest`, `tape` + * [actions] reuse common workflows + * [actions] update codecov uploader + 3.1.4 / 2021-10-04 ================= * [Robustness] avoid a runtime `Math.max` call diff --git a/package.json b/package.json index 29c0d26..2daaaa6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "array-includes", - "version": "3.1.4", + "version": "3.1.5", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", From 0a0c758ed52808428314ffe53ea8278297170c84 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 7 Jul 2022 23:20:01 -0700 Subject: [PATCH 25/40] [readme] note that FF 102+ no longer needs this package --- README.md | 2 +- test/shimmed.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index da1ec5a..525c2a2 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Because `Array.prototype.includes` depends on a receiver (the `this` value), the Engines that need this package include: - IE (all versions) - Safari < 9 - - Firefox < 43, and 99+ + - Firefox < 43, and 99-101 - Chrome < 47 - Edge < 14 - node < 6 diff --git a/test/shimmed.js b/test/shimmed.js index 7081eb1..95c378a 100644 --- a/test/shimmed.js +++ b/test/shimmed.js @@ -1,5 +1,7 @@ 'use strict'; +var orig = Array.prototype.includes; + require('../auto'); var test = require('tape'); @@ -11,6 +13,7 @@ var functionsHaveNames = require('functions-have-names')(); var runTests = require('./tests'); test('shimmed', function (t) { + t.comment('shimmed: ' + (orig === Array.prototype.includes ? 'no' : 'yes')); t.equal(Array.prototype.includes.length, 1, 'Array#includes has a length of 1'); t.test('Function name', { skip: !functionsHaveNames }, function (st) { st.equal(Array.prototype.includes.name, 'includes', 'Array#includes has name "includes"'); From 6e241d5177513cfb0261d0fbe0c8c98daf5c5eab Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 7 Nov 2022 14:58:58 -0800 Subject: [PATCH 26/40] [actions] update rebase action to use reusable workflow --- .github/workflows/rebase.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 5b6d04b..b9e1712 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -4,12 +4,6 @@ on: [pull_request_target] jobs: _: - name: "Automatic Rebase" - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: ljharb/rebase@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ljharb/actions/.github/workflows/rebase.yml@main + secrets: + token: ${{ secrets.GITHUB_TOKEN }} From 9b2a931aee6fc8195a349c6fe7894445a911223f Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 7 Nov 2022 15:06:08 -0800 Subject: [PATCH 27/40] [Dev Deps] update `aud`, `tape` --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2daaaa6..1e3ca7b 100644 --- a/package.json +++ b/package.json @@ -55,17 +55,17 @@ "devDependencies": { "@es-shims/api": "^2.2.3", "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.0", + "aud": "^2.0.1", "eslint": "=8.8.0", "evalmd": "^0.0.19", - "foreach": "^2.0.5", "function-bind": "^1.1.1", "functions-have-names": "^1.2.3", "has-strict-mode": "^1.0.1", + "in-publish": "^2.0.1", "indexof": "^0.0.1", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", - "tape": "^5.5.3" + "tape": "^5.6.1" }, "testling": { "files": [ From dbd6dc8f8906cca6b0b493e308686c4fd05bea15 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 7 Nov 2022 15:07:00 -0800 Subject: [PATCH 28/40] [meta] use `npmignore` to autogenerate an npmignore file --- .gitignore | 2 ++ .npmignore | 13 ------------- package.json | 7 +++++++ 3 files changed, 9 insertions(+), 13 deletions(-) delete mode 100644 .npmignore diff --git a/.gitignore b/.gitignore index 7c5e02e..e98a30e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ yarn.lock # coverage coverage/ .nyc_output/ + +.npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 8264f78..0000000 --- a/.npmignore +++ /dev/null @@ -1,13 +0,0 @@ -# gitignore -node_modules - -# Only apps should have lockfiles -npm-shrinkwrap.json -package-lock.json -yarn.lock - -# coverage -coverage/ -.nyc_output/ - -.github/workflows diff --git a/package.json b/package.json index 1e3ca7b..e45267b 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "license": "MIT", "main": "index.js", "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", "prepublish": "not-in-publish || npm run prepublishOnly", "prepublishOnly": "safe-publish-latest", "pretest": "npm run --silent lint", @@ -63,6 +64,7 @@ "has-strict-mode": "^1.0.1", "in-publish": "^2.0.1", "indexof": "^0.0.1", + "npmignore": "^0.3.0", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", "tape": "^5.6.1" @@ -91,5 +93,10 @@ }, "engines": { "node": ">= 0.4" + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] } } From b819e3b3dd1adce0b3359529b0276a416efce351 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 7 Nov 2022 15:19:08 -0800 Subject: [PATCH 29/40] [Deps] update `es-abstract`, `get-intrinsic` --- implementation.js | 8 ++++---- index.js | 2 +- package.json | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/implementation.js b/implementation.js index 1211641..224ecbb 100644 --- a/implementation.js +++ b/implementation.js @@ -1,9 +1,9 @@ 'use strict'; -var ToIntegerOrInfinity = require('es-abstract/2021/ToIntegerOrInfinity'); -var ToLength = require('es-abstract/2021/ToLength'); -var ToObject = require('es-abstract/2021/ToObject'); -var SameValueZero = require('es-abstract/2021/SameValueZero'); +var ToIntegerOrInfinity = require('es-abstract/2022/ToIntegerOrInfinity'); +var ToLength = require('es-abstract/2022/ToLength'); +var ToObject = require('es-abstract/2022/ToObject'); +var SameValueZero = require('es-abstract/2022/SameValueZero'); var $isNaN = require('es-abstract/helpers/isNaN'); var $isFinite = require('es-abstract/helpers/isFinite'); var GetIntrinsic = require('get-intrinsic'); diff --git a/index.js b/index.js index 92cda1c..1ecb331 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ 'use strict'; var define = require('define-properties'); -var RequireObjectCoercible = require('es-abstract/2021/RequireObjectCoercible'); +var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible'); var callBind = require('call-bind'); var callBound = require('call-bind/callBound'); diff --git a/package.json b/package.json index e45267b..98554be 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,8 @@ "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", - "es-abstract": "^1.19.5", - "get-intrinsic": "^1.1.1", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", "is-string": "^1.0.7" }, "devDependencies": { From c5fbe728395deff641d756cc9d398a949076c180 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 7 Nov 2022 15:20:38 -0800 Subject: [PATCH 30/40] [meta] add `auto-changelog` --- .npmrc | 2 ++ CHANGELOG.md | 9 +++++++++ package.json | 14 +++++++++++++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index 43c97e7..eacea13 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,3 @@ package-lock=false +allow-same-version=true +message=v%s diff --git a/CHANGELOG.md b/CHANGELOG.md index 364caec..9ef9355 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + + + 3.1.5 / 2022-05-03 ================= * [Fix] install polyfill on FF 99+ diff --git a/package.json b/package.json index 98554be..f23bc7f 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,9 @@ "tests-only": "nyc tape 'test/**/*.js'", "prelint": "evalmd README.md", "lint": "eslint --ext=js,mjs .", - "postlint": "es-shim-api --bound" + "postlint": "es-shim-api --bound", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" }, "repository": { "type": "git", @@ -57,6 +59,7 @@ "@es-shims/api": "^2.2.3", "@ljharb/eslint-config": "^21.0.0", "aud": "^2.0.1", + "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "evalmd": "^0.0.19", "function-bind": "^1.1.1", @@ -94,6 +97,15 @@ "engines": { "node": ">= 0.4" }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true, + "startingVersion": "3.1.6" + }, "publishConfig": { "ignore": [ ".github/workflows" From 4b1922ef553490e4b28008f5d0b0b629122fb04b Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 7 Nov 2022 18:04:07 -0800 Subject: [PATCH 31/40] v3.1.6 --- CHANGELOG.md | 11 +++++++++++ package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ef9355..eaefc2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v3.1.6](https://github.com/es-shims/array-includes/compare/v3.1.5...v3.1.6) - 2022-11-07 + +### Commits + +- [meta] add `auto-changelog` [`c5fbe72`](https://github.com/es-shims/array-includes/commit/c5fbe728395deff641d756cc9d398a949076c180) +- [meta] use `npmignore` to autogenerate an npmignore file [`dbd6dc8`](https://github.com/es-shims/array-includes/commit/dbd6dc8f8906cca6b0b493e308686c4fd05bea15) +- [Deps] update `es-abstract`, `get-intrinsic` [`b819e3b`](https://github.com/es-shims/array-includes/commit/b819e3b3dd1adce0b3359529b0276a416efce351) +- [actions] update rebase action to use reusable workflow [`6e241d5`](https://github.com/es-shims/array-includes/commit/6e241d5177513cfb0261d0fbe0c8c98daf5c5eab) +- [Dev Deps] update `aud`, `tape` [`9b2a931`](https://github.com/es-shims/array-includes/commit/9b2a931aee6fc8195a349c6fe7894445a911223f) +- [readme] note that FF 102+ no longer needs this package [`0a0c758`](https://github.com/es-shims/array-includes/commit/0a0c758ed52808428314ffe53ea8278297170c84) + 3.1.5 / 2022-05-03 diff --git a/package.json b/package.json index f23bc7f..a9ed34e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "array-includes", - "version": "3.1.5", + "version": "3.1.6", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", From 93465c3da3bd6ea0670a0bd12dc9adc9085e8130 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 1 Sep 2023 15:03:05 -0700 Subject: [PATCH 32/40] [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `tape` --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a9ed34e..d0367e9 100644 --- a/package.json +++ b/package.json @@ -56,9 +56,9 @@ "is-string": "^1.0.7" }, "devDependencies": { - "@es-shims/api": "^2.2.3", - "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.1", + "@es-shims/api": "^2.4.2", + "@ljharb/eslint-config": "^21.1.0", + "aud": "^2.0.3", "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "evalmd": "^0.0.19", @@ -70,7 +70,7 @@ "npmignore": "^0.3.0", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", - "tape": "^5.6.1" + "tape": "^5.6.6" }, "testling": { "files": [ From e217b1ebfe90a7425654f0fa72c59f59930d4dd8 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 1 Sep 2023 15:04:38 -0700 Subject: [PATCH 33/40] [Deps] update `define-properties`, `es-abstract`, `get-intrinsic` --- implementation.js | 8 ++++---- index.js | 2 +- package.json | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/implementation.js b/implementation.js index 224ecbb..dbeefb6 100644 --- a/implementation.js +++ b/implementation.js @@ -1,9 +1,9 @@ 'use strict'; -var ToIntegerOrInfinity = require('es-abstract/2022/ToIntegerOrInfinity'); -var ToLength = require('es-abstract/2022/ToLength'); -var ToObject = require('es-abstract/2022/ToObject'); -var SameValueZero = require('es-abstract/2022/SameValueZero'); +var ToIntegerOrInfinity = require('es-abstract/2023/ToIntegerOrInfinity'); +var ToLength = require('es-abstract/2023/ToLength'); +var ToObject = require('es-abstract/2023/ToObject'); +var SameValueZero = require('es-abstract/2023/SameValueZero'); var $isNaN = require('es-abstract/helpers/isNaN'); var $isFinite = require('es-abstract/helpers/isFinite'); var GetIntrinsic = require('get-intrinsic'); diff --git a/index.js b/index.js index 1ecb331..5a242d7 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ 'use strict'; var define = require('define-properties'); -var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible'); +var RequireObjectCoercible = require('es-abstract/2023/RequireObjectCoercible'); var callBind = require('call-bind'); var callBound = require('call-bind/callBound'); diff --git a/package.json b/package.json index d0367e9..627c1a8 100644 --- a/package.json +++ b/package.json @@ -50,9 +50,9 @@ ], "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", "is-string": "^1.0.7" }, "devDependencies": { From 11c6a1d9341671ec48c68306167f9ab1dd617a6f Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 3 Sep 2023 12:34:43 -0700 Subject: [PATCH 34/40] v3.1.7 --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eaefc2c..8ee7b02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v3.1.7](https://github.com/es-shims/array-includes/compare/v3.1.6...v3.1.7) - 2023-09-03 + +### Commits + +- [Deps] update `define-properties`, `es-abstract`, `get-intrinsic` [`e217b1e`](https://github.com/es-shims/array-includes/commit/e217b1ebfe90a7425654f0fa72c59f59930d4dd8) +- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `tape` [`93465c3`](https://github.com/es-shims/array-includes/commit/93465c3da3bd6ea0670a0bd12dc9adc9085e8130) + ## [v3.1.6](https://github.com/es-shims/array-includes/compare/v3.1.5...v3.1.6) - 2022-11-07 ### Commits diff --git a/package.json b/package.json index 627c1a8..5ae0ef2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "array-includes", - "version": "3.1.6", + "version": "3.1.7", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", From fa1111d6d41381e4bd484e8f6d5896172874d6e7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 20 Mar 2024 11:55:19 -0700 Subject: [PATCH 35/40] [actions] remove redundant finisher --- .github/workflows/node-aught.yml | 7 ------- .github/workflows/node-tens.yml | 7 ------- 2 files changed, 14 deletions(-) diff --git a/.github/workflows/node-aught.yml b/.github/workflows/node-aught.yml index f3cddd8..4213896 100644 --- a/.github/workflows/node-aught.yml +++ b/.github/workflows/node-aught.yml @@ -9,10 +9,3 @@ jobs: range: '< 10' type: minors command: npm run tests-only - - node: - name: 'node < 10' - needs: [tests] - runs-on: ubuntu-latest - steps: - - run: 'echo tests completed' diff --git a/.github/workflows/node-tens.yml b/.github/workflows/node-tens.yml index b49ceb1..1f55be0 100644 --- a/.github/workflows/node-tens.yml +++ b/.github/workflows/node-tens.yml @@ -9,10 +9,3 @@ jobs: range: '>= 10' type: minors command: npm run tests-only - - node: - name: 'node >= 10' - needs: [tests] - runs-on: ubuntu-latest - steps: - - run: 'echo tests completed' From 3dbe456f14c94a5d119b35ac41712c7faea93afd Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 20 Mar 2024 11:56:08 -0700 Subject: [PATCH 36/40] [Tests] use `call-bind` instead of `function-bind` --- package.json | 1 - test/shimmed.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5ae0ef2..793a602 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,6 @@ "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "evalmd": "^0.0.19", - "function-bind": "^1.1.1", "functions-have-names": "^1.2.3", "has-strict-mode": "^1.0.1", "in-publish": "^2.0.1", diff --git a/test/shimmed.js b/test/shimmed.js index 95c378a..98f70c0 100644 --- a/test/shimmed.js +++ b/test/shimmed.js @@ -6,7 +6,7 @@ require('../auto'); var test = require('tape'); var defineProperties = require('define-properties'); -var bind = require('function-bind'); +var callBind = require('call-bind'); var isEnumerable = Object.prototype.propertyIsEnumerable; var functionsHaveNames = require('functions-have-names')(); @@ -33,7 +33,7 @@ test('shimmed', function (t) { st.end(); }); - runTests(bind.call(Function.call, Array.prototype.includes), t); + runTests(callBind(Array.prototype.includes), t); t.end(); }); From 499e7e9e952faab35740dfbe0b355183100e40b7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 20 Mar 2024 11:56:19 -0700 Subject: [PATCH 37/40] [Dev Deps] update `aud`, `npmignore`, `tape` --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 793a602..f2c3ae5 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "devDependencies": { "@es-shims/api": "^2.4.2", "@ljharb/eslint-config": "^21.1.0", - "aud": "^2.0.3", + "aud": "^2.0.4", "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "evalmd": "^0.0.19", @@ -66,10 +66,10 @@ "has-strict-mode": "^1.0.1", "in-publish": "^2.0.1", "indexof": "^0.0.1", - "npmignore": "^0.3.0", + "npmignore": "^0.3.1", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", - "tape": "^5.6.6" + "tape": "^5.7.5" }, "testling": { "files": [ From e4bd17f980b557fdf2b39eb552bafedd8a8f6bfb Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 20 Mar 2024 11:57:44 -0700 Subject: [PATCH 38/40] [Refactor] use `es-object-atoms` where possible --- implementation.js | 2 +- index.js | 2 +- package.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/implementation.js b/implementation.js index dbeefb6..2991490 100644 --- a/implementation.js +++ b/implementation.js @@ -2,7 +2,7 @@ var ToIntegerOrInfinity = require('es-abstract/2023/ToIntegerOrInfinity'); var ToLength = require('es-abstract/2023/ToLength'); -var ToObject = require('es-abstract/2023/ToObject'); +var ToObject = require('es-object-atoms/ToObject'); var SameValueZero = require('es-abstract/2023/SameValueZero'); var $isNaN = require('es-abstract/helpers/isNaN'); var $isFinite = require('es-abstract/helpers/isFinite'); diff --git a/index.js b/index.js index 5a242d7..29895d2 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ 'use strict'; var define = require('define-properties'); -var RequireObjectCoercible = require('es-abstract/2023/RequireObjectCoercible'); +var RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible'); var callBind = require('call-bind'); var callBound = require('call-bind/callBound'); diff --git a/package.json b/package.json index f2c3ae5..8562347 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "call-bind": "^1.0.2", "define-properties": "^1.2.0", "es-abstract": "^1.22.1", + "es-object-atoms": "^1.0.0", "get-intrinsic": "^1.2.1", "is-string": "^1.0.7" }, From b105f3a0ad1801aabf47bafd788482d8866ef0c9 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 20 Mar 2024 11:59:27 -0700 Subject: [PATCH 39/40] [Deps] update `call-bind`, `define-properties`, `es-abstract`, `get-intrinsic` --- implementation.js | 6 +++--- package.json | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/implementation.js b/implementation.js index 2991490..71add57 100644 --- a/implementation.js +++ b/implementation.js @@ -1,9 +1,9 @@ 'use strict'; -var ToIntegerOrInfinity = require('es-abstract/2023/ToIntegerOrInfinity'); -var ToLength = require('es-abstract/2023/ToLength'); +var ToIntegerOrInfinity = require('es-abstract/2024/ToIntegerOrInfinity'); +var ToLength = require('es-abstract/2024/ToLength'); var ToObject = require('es-object-atoms/ToObject'); -var SameValueZero = require('es-abstract/2023/SameValueZero'); +var SameValueZero = require('es-abstract/2024/SameValueZero'); var $isNaN = require('es-abstract/helpers/isNaN'); var $isFinite = require('es-abstract/helpers/isFinite'); var GetIntrinsic = require('get-intrinsic'); diff --git a/package.json b/package.json index 8562347..40bfe36 100644 --- a/package.json +++ b/package.json @@ -49,11 +49,11 @@ "es-shim API" ], "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.1", + "get-intrinsic": "^1.2.4", "is-string": "^1.0.7" }, "devDependencies": { From 946a33a8f58c572356c01676fc2d0a6f1ef0ec3a Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 20 Mar 2024 13:47:22 -0700 Subject: [PATCH 40/40] v3.1.8 --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ee7b02..4f31535 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v3.1.8](https://github.com/es-shims/array-includes/compare/v3.1.7...v3.1.8) - 2024-03-20 + +### Commits + +- [Deps] update `call-bind`, `define-properties`, `es-abstract`, `get-intrinsic` [`b105f3a`](https://github.com/es-shims/array-includes/commit/b105f3a0ad1801aabf47bafd788482d8866ef0c9) +- [actions] remove redundant finisher [`fa1111d`](https://github.com/es-shims/array-includes/commit/fa1111d6d41381e4bd484e8f6d5896172874d6e7) +- [Dev Deps] update `aud`, `npmignore`, `tape` [`499e7e9`](https://github.com/es-shims/array-includes/commit/499e7e9e952faab35740dfbe0b355183100e40b7) +- [Refactor] use `es-object-atoms` where possible [`e4bd17f`](https://github.com/es-shims/array-includes/commit/e4bd17f980b557fdf2b39eb552bafedd8a8f6bfb) +- [Tests] use `call-bind` instead of `function-bind` [`3dbe456`](https://github.com/es-shims/array-includes/commit/3dbe456f14c94a5d119b35ac41712c7faea93afd) + ## [v3.1.7](https://github.com/es-shims/array-includes/compare/v3.1.6...v3.1.7) - 2023-09-03 ### Commits diff --git a/package.json b/package.json index 40bfe36..55479fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "array-includes", - "version": "3.1.7", + "version": "3.1.8", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com",