Skip to content

Latest commit

 

History

History
135 lines (92 loc) · 3.21 KB

changelog.md

File metadata and controls

135 lines (92 loc) · 3.21 KB

Void List Changelog

[unreleased]

[1.0.0] - 13-01-2022

Added

  • List
  • Example usage

[1.0.1] - 13-01-2022

Added

  • Example in the readme

[1.0.2] - 13-01-2022

Fixed

  • Example now use index instead of the name to remove

[1.0.3] - 25-01-2022

Added

  • Sorting(use the internal array [].sort())
  • Map

[1.0.6] - 25-01-2022

Added

  • Typescript Typings
  • forEach and filter.

[1.0.7] - 27-06-2022

Added

  • empty().

Changed

  • map() no longer call [].map() in the code

[1.0.8] - 28-06-2022

Added

  • containAll(list) => Check if a list is contained in this one.
  • set(index, value) => Set the value at that index.
  • indexOf(value) => Returns the index of the first occurrence of a value in a list, or -1 if it is not present.
  • shuffle() => Shuffle the list using a Fisher–Yates shuffle algorithm.

Changed

  • deprecated empty and renamed it to isEmpty

[1.0.9] 30-06-2022

Added

  • copy() => Create a copy of the list.
  • join(seperator) => Adds all the elements of an list into a string, separated by the specified separator string.
  • shift() => Remove the first element in the list.
  • slice(start?, end?) => Returns a copy of a section of an list.
  • reverse() => Reverses the elements in an list. Ex : a list of letter A, B, C would become list of C, B, A

Fixed

  • Fixed a crash in the map.
  • Fixed a bug where forEach was using (index, value, list) for the predicate instead of (value, index, list) 8

[1.1.0] 14-08-2022

Added

  • toArray() => return the internal array.
  • equals(otherList) => check if both list have the same internal. (they don't have to be the same object)
  • retainAll(otherList) => Retains only the elements in this list that are contained in the other List.
  • fromList(otherList)(non static) => add all elements from another list to this one
  • addIf(otherList, predicate) => add another list content to this one if it match the predicate

Fixed

  • Fixed static fromList() not working properly

[1.1.1] 20-08-2022

Added

  • clear() => same as removeAll()
  • fromArray(array)(non static) => same as the static fromArray(array) method.
  • removeALLBut(predicate) => remove all elements that do not match the predicate

Fixed

  • Fixed issues with the typings

[1.1.2] 24-11-2022

Added

  • static merge(lists) => merge the lists into one.

Changed

  • typing for static methods is better now.

[1.1.3] 27-11-2022

Added

  • fill(index1, index2, value) => fill every field between the two indexes by the provided value, return the modified list
  • clone() => alias for copy()

[1.1.4] 04-12-2022

Added

  • static from(...elements) => create a list from those elements

Fixed

  • fixed typings for forEach

[1.1.5] 14-08-2023

Added

  • ImmutableList is a non modifiable list.
  • ImmutableList.merge(list) to merge multiple immutable lists into one.
  • replace(i, value) => alias for set

Fixed

  • fixed a few errors with the List

[1.1.6] 31-01-2023

Fixed

  • fixed a typo in List.fromJson();

[1.1.7] 25-08-2024

Added

  • more tests

Fixed

  • fixed a few methods

[1.1.8] 17-10-2024

Added

  • getRandomElement() return a random element from the list