array-flatten
3.0.0 · 21 Nov 2019MIT70.7M / weekRepositorynpmAtom feed
Upgrading array-flatten From 1.1.0 to 3.0.0
6 releases in betweenevery note read
Release by release
- new
Added ES2015 distributable and renamed primary export to
exports.flatten
- new
2.1.2nothing new or fixed in the note
- fixed
Fix the TypeScript definition return type for
depthfunctions
- fixed
- new
Add TypeScript definition to project
- new
- new
Add
TypeErrorvalidation to methods
- new
- new
'use strict'
- new
5 other lines we could not sort, mostly version bumps
- 3.0.0
Better TypeScript support for array flattening
- 3.0.0
Removed array type checked entry to
flatten, prefer performance and smaller code - 3.0.0
Removed
depthversion of functions, if you know the depth it's better to use something likeArray#flatorflattenhelpers explicitly in code - you typically don't need anything between 1 and infinity in every day code - 2.1.2
Use
ReadonlyArrayfor TypeScript interface to improve type assignability - 2.0.0
Split function into four methods -
flatten,flattenFrom,flattenDepthandflattenFromDepth