array.prototype.flatmap
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -0,1 +1,21 @@ | ||
# 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). | ||
## [v1.3.1](https://github.com/es-shims/Array.prototype.flatMap/compare/v1.3.0...v1.3.1) - 2022-11-02 | ||
### Commits | ||
- [meta] use `npmignore` to autogenerate an npmignore file [`3587a34`](https://github.com/es-shims/Array.prototype.flatMap/commit/3587a34ca111ec36ffc46b4131f5b32d4d8a357c) | ||
- [meta] add `auto-changelog` [`d66bdea`](https://github.com/es-shims/Array.prototype.flatMap/commit/d66bdeac56f2c1803a72695230c80d8270ab2ecf) | ||
- [Deps] update `define-properties`, `es-abstract` [`d64c486`](https://github.com/es-shims/Array.prototype.flatMap/commit/d64c48639ec4958ed9a2627a4d7315ac1404687a) | ||
- [actions] update rebase action to use reusable workflow [`8d657d0`](https://github.com/es-shims/Array.prototype.flatMap/commit/8d657d094a2aafa7948eee73eaa0e56047c5d60d) | ||
- [Dev Deps] update `aud`, `object-inspect`, `tape` [`aa22741`](https://github.com/es-shims/Array.prototype.flatMap/commit/aa22741a4bbe8db6d448cc4ca5417ddec90ac01d) | ||
- [Tests] use `for-each` instead of `foreach` [`748a78d`](https://github.com/es-shims/Array.prototype.flatMap/commit/748a78dbddb08462c75916fde07746d34cfd5c5c) | ||
<!-- auto-changelog-above --> | ||
1.3.0 / 2022-04-11 | ||
@@ -2,0 +22,0 @@ ================= |
'use strict'; | ||
var ArraySpeciesCreate = require('es-abstract/2021/ArraySpeciesCreate'); | ||
var FlattenIntoArray = require('es-abstract/2021/FlattenIntoArray'); | ||
var Get = require('es-abstract/2021/Get'); | ||
var IsCallable = require('es-abstract/2021/IsCallable'); | ||
var ToLength = require('es-abstract/2021/ToLength'); | ||
var ToObject = require('es-abstract/2021/ToObject'); | ||
var ArraySpeciesCreate = require('es-abstract/2022/ArraySpeciesCreate'); | ||
var FlattenIntoArray = require('es-abstract/2022/FlattenIntoArray'); | ||
var Get = require('es-abstract/2022/Get'); | ||
var IsCallable = require('es-abstract/2022/IsCallable'); | ||
var ToLength = require('es-abstract/2022/ToLength'); | ||
var ToObject = require('es-abstract/2022/ToObject'); | ||
@@ -10,0 +10,0 @@ module.exports = function flatMap(mapperFunction) { |
{ | ||
"name": "array.prototype.flatmap", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": { | ||
@@ -23,2 +23,3 @@ "name": "Jordan Harband", | ||
"scripts": { | ||
"prepack": "npmignore --auto --commentLines=autogenerated", | ||
"prepublishOnly": "safe-publish-latest", | ||
@@ -32,3 +33,5 @@ "prepublish": "not-in-publish || npm run prepublishOnly", | ||
"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)\")\"" | ||
}, | ||
@@ -52,4 +55,4 @@ "repository": { | ||
"call-bind": "^1.0.2", | ||
"define-properties": "^1.1.3", | ||
"es-abstract": "^1.19.2", | ||
"define-properties": "^1.1.4", | ||
"es-abstract": "^1.20.4", | ||
"es-shim-unscopables": "^1.0.0" | ||
@@ -60,3 +63,3 @@ }, | ||
"@ljharb/eslint-config": "^21.0.0", | ||
"aud": "^2.0.0", | ||
"aud": "^2.0.1", | ||
"auto-changelog": "^2.4.0", | ||
@@ -66,8 +69,10 @@ "covert": "^1.1.1", | ||
"evalmd": "^0.0.19", | ||
"foreach": "^2.0.5", | ||
"for-each": "^0.3.3", | ||
"has-strict-mode": "^1.0.1", | ||
"in-publish": "^2.0.1", | ||
"npmignore": "^0.3.0", | ||
"nyc": "^10.3.2", | ||
"object-inspect": "^1.12.0", | ||
"object-inspect": "^1.12.2", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.5.3" | ||
"tape": "^5.6.1" | ||
}, | ||
@@ -98,7 +103,16 @@ "testling": { | ||
}, | ||
"greenkeeper": { | ||
"auto-changelog": { | ||
"output": "CHANGELOG.md", | ||
"template": "keepachangelog", | ||
"unreleased": false, | ||
"commitLimit": false, | ||
"backfillLimit": false, | ||
"hideCredit": true, | ||
"startingVersion": "1.3.1" | ||
}, | ||
"publishConfig": { | ||
"ignore": [ | ||
"nyc" | ||
".github/workflows" | ||
] | ||
} | ||
} |
@@ -9,4 +9,5 @@ 'use strict'; | ||
t.test('bad array/this value', function (st) { | ||
st['throws'](flatMap.bind(null, undefined, function () {}), TypeError, 'undefined is not an object'); | ||
st['throws'](flatMap.bind(null, null, function () {}), TypeError, 'null is not an object'); | ||
/* eslint no-useless-call: 0 */ | ||
st['throws'](function () { flatMap.call(undefined, function () {}); }, TypeError, 'undefined is not an object'); | ||
st['throws'](function () { flatMap.call(null, function () {}); }, TypeError, 'null is not an object'); | ||
st.end(); | ||
@@ -13,0 +14,0 @@ }); |
'use strict'; | ||
var inspect = require('object-inspect'); | ||
var forEach = require('foreach'); | ||
var forEach = require('for-each'); | ||
@@ -6,0 +6,0 @@ module.exports = function (flatMap, t) { |
18571
147
15
Updateddefine-properties@^1.1.4
Updatedes-abstract@^1.20.4