Packages

array-flatten

3.0.0 · 21 Nov 2019MIT70.7M / weekRepositorynpmAtom feed

Upgrading array-flatten From 1.0.1 to 3.0.0

8 releases in betweenevery note read

Other targets from 1.0.1Newest 1.x1.1.1
The note of 3.0.0, 2.0.0 lists no breaking change or deprecation, which is rare for a major.
?
changes to make
0
advisories fixed
4
new
1
fix

Release by release

  1. 3.0.0

    21 Nov 20191 new
    • new

      Added ES2015 distributable and renamed primary export to exports.flatten

  2. 2.1.2nothing new or fixed in the note

  3. 2.1.1

    14 Jan 20171 fix
    • fixed

      Fix the TypeScript definition return type for depth functions

  4. 2.1.0

    29 Apr 20161 new
    • new

      Add TypeScript definition to project

  5. 2.0.0

    16 Nov 20151 new
    • new

      Add TypeError validation to methods

  6. 1.1.1

    9 Jul 20151 new
    • new

      'use strict'

  7. 1.0.2 – 1.1.02 releases, nothing new or fixed in the notes

7 other lines we could not sort, mostly version bumps
  • 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 depth version of functions, if you know the depth it's better to use something like Array#flat or flatten helpers explicitly in code - you typically don't need anything between 1 and infinity in every day code

    3.0.0
  • Use ReadonlyArray for TypeScript interface to improve type assignability

    2.1.2
  • Split function into four methods - flatten, flattenFrom, flattenDepth and flattenFromDepth

    2.0.0
  • Execute flatten without depth via dedicated code (not depth(Infinity)) to improve performance

    1.1.0
  • Remove potential code paths by removing depth === 1 behavior

    1.0.2