Skip to content

v7.0.0-alpha.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Dec 23:13
3a310e5

7.0.0-alpha.1 (2023-12-05)

⚠ BREAKING CHANGES

  • shuffle: The deprecated function
    shuffle has been deleted. This function was
    always out of scope for this package because it
    is non-deterministic and therefore not
    functionally pure. If you need a similar
    function, use the package "array-shuffle"
    instead.
  • filterFirst: The deprecated function
    filterFirst has been deleted because it is
    confusing. Use excludeFirst instead and
    invert the predicate.
  • head: The deprecated function head
    has been deleted. Use first instead.
  • isArrayLike: isArrayLike can no longer be
    called with a type parameter. This function was
    unsound when called with a type parameter. Code
    that relied on specifying the type parameter
    explicitly should be rewritten to validate the
    type of array elements by some other method.
  • isArray: isArray can no longer be called
    with a type parameter. This function was unsound
    when called with a type parameter. Code that
    relied on specifying the type parameter
    explicitly should be rewritten to validate the
    type of array elements by some other method.

Features

  • filterFirst: delete deprecated function (c3d2759)
  • head: delete deprecated function (928b19e)
  • shuffle: delete deprecated function (3a310e5), closes #45

Code Refactoring

  • isArray: delete type parameter (f056517)
  • isArrayLike: delete type parameter (110ae6a)