Releases: blakeembrey/array-flatten
Releases · blakeembrey/array-flatten
Simplify Package
Added
- Better TypeScript support for array flattening
Changed
- Added ES2015 distributable and renamed primary export to
exports.flatten
Removed
- Removed array type checked entry to
flatten, prefer performance and smaller code - 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
Readonly TypeScript Array
Fixed
- Use
ReadonlyArrayfor TypeScript interface to improve type assignability
TypeScript Improvements
Changed
- Fix the TypeScript definition return type for
depthfunctions
TypeScript Definition
Added
- Add TypeScript definition to project
Method Error Handling
Changed
- Add
TypeErrorvalidation to methods - Split function into four methods -
flatten,flattenFrom,flattenDepthandflattenFromDepth
Use Strict
Added
- Perf:
'use strict'
Improved Code Path Performance
Added
- Execute
flattenwithout depth via dedicated code (notdepth(Infinity)) to improve performance
Remove Depth 1 Code Path
Fixed
- Remove potential code paths by removing
depth === 1behavior
Updated Documentation
Added
- Updated documentation in README
- Ship on
filesneeded for package
Initial Release as V1
v1.0.0 1.0.0