Skip to content

v2.2.4

Choose a tag to compare

@Byloth Byloth released this 19 Feb 09:57
· 21 commits to master since this release
0d1b086

Patch release

  • Implemented a new ArrayView object class.
    Just like its "cousins" MapView and SetView, it can raise events whenever elements are added or removed.

  • Implemented a new Random.Split method.
    It can split a numeric value or an array into a given number of parts, with elements equally-randomly distributed between each part.

    Yeah... I know... I doesn't make sense... It easier to show than to explain... 馃槄

    Random.Split(100, 3);              // [28, 41, 31]
    Random.Split(10, 4);               // [3, 1, 4, 2]
    Random.Split([1, 2, 3, 4, 5], 2);  // [[1, 2], [3, 4, 5]]
    Random.Split([1, 2, 3, 4, 5], 2);  // [[1, 2, 3, 4], [5]]
    Random.Split("abcdef", 3);         // [["a"], ["b", "c", "d"], ["e", "f"]]
  • Added a new ResponseException object class.
    You can use it to wrap and throw a fetch response that failed with a error status code or whose body is malformed.

  • Minor improvements. & Updated dependencies.

Full Changelog: v2.2.3...v2.2.4