Skip to content

Latest commit

 

History

History
110 lines (68 loc) · 3.73 KB

CHANGELOG.md

File metadata and controls

110 lines (68 loc) · 3.73 KB

CHANGELOG

v4.1.0 - 2020-11-06

  • Replace Mocha and Chai with Jest for testing the library.
  • Replace codecov with coveralls for tests coverage.
  • Update devDependencies.

v4.0.0 - 2019-10-17

BREAKING CHANGES

Remove default export in favor of named exports.

The following is NOT working aymore:

import immutableArrays from 'immutable-arrays';

Import the method you want to use instead:

import { push } from 'immutable-arrays';

OTHER CHANGES

  • Fix missing build file path for UMD bundling in rollup configuration file
  • Update devDependencies

v3.0.1 - 2019-04-14

  • Fixes issue #8

v3.0.0 - 2019-04-08

  • Replaced Webpack with Rollup for bundling the library. As a result of this migration the library is now exported in UMD, CommonJS and ESM formats.
  • The library does not export standalone modules. If you need to import only one method you can import a named export.

v2.0.2 - 2019-03-01

  • In del method if index is a negative number, return a copy of the original array. By just returning the original array (as of version 1.0.3) is dangerous for mutating the resulted array if the original is mutated.

v2.0.1 - 2018-11-27

  • Update devDependencies
  • Update npm-run-all to latest version to protect against flatmap-stream malicious dependency (mysticatea/npm-run-all#153)

v2.0.0 - 2018-11-05

BREAKING CHANGES

The library's API has not breaking changes. All breaking changes refer to how the final distributed files are bundled and their locations in the project.

  • All distributed files are located under the dist/ directory instead of lib/ which was in v1.x.x. The UMD format is located under dist/umd/ directory and the CommonJS under the dist/commonjs/ directory.
  • The directory containing the distributed files is no longer included in GIT.

OTHER CHANGES

  • All devDependencies are updated to latest versions. Updated Webpack to v4.x.x and Babel to v7.x.x.
  • The library is now exported in both UMD (as was in version 1.x.x) and CommonJS. For CommonJS, the library's methods are also exported as standalone functions in order to import only the ones you want for your project. Check the Usage section in README for more details.

v1.0.3 - 2018-10-31

  • Fixes issue #4. Do not copy array unnecessarily in del method if index is a negative number.

v1.0.2 - 2018-01-20

  • Use the array spread operator in delete method.
  • Keep devDependencies up to date.

v1.0.1 - 2017-11-30

  • Keep devDependencies up to date.
  • Minor documentation updates.

v1.0.0 - 2017-06-28

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;

v0.4.3 - 2017-06-28

  • Include test coverage in build process
  • Add test to cover scenario with all optional arguments being undefined for immutableSplice method

v0.4.2 - 2017-06-24

  • Keep devDependencies up to date
  • Add code climate integration
  • Add test coverage report

v0.4.1 - 2017-06-24

  • Fix bug while deleting an element at 0 index (#1)