Skip to content

v1.0.0

Compare
Choose a tag to compare
@georapbox georapbox released this 28 Jun 13:51
· 92 commits to master since this release

Changes

  • Provide named exports for each API method. Now you can also import like this: import {push} from 'immutable-arrays'

Breaking Changes

Change API methods' names to avoid redundancy. This was more of an issue when the library was used as a global in browser where someone would need to type immutableArrays.immutablePush().
Below is a list with the renamed methods:

  • immutablePush renamed to push;
  • immutablePop renamed to pop;
  • immutableShift renamed to shift;
  • immutableUnshift renamed to unshift;
  • immutableSplice renamed to splice;
  • immutableReverse renamed to reverse;
  • immutableSort renamed to sort;
  • immutableDelete renamed to del;