Skip to content

Releases: Byloth/core

v2.2.4

19 Feb 09:57
0d1b086

Choose a tag to compare

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.

v2.2.3

05 Jan 15:58
20fccba

Choose a tag to compare

Patch release

  • Implemented the new Random.Sample method.
  • Various performance improvements.
  • Updated dependencies.

v2.2.2

21 Nov 09:01
4076f44

Choose a tag to compare

Patch release

  • Now browsers seem to automatically handling the correct stack-trace output on exceptions.
    For this reason, we no longer need to handle it manually. EZ.
  • Updated dependencies.

v2.2.1

09 Nov 18:18
54735e3

Choose a tag to compare

Patch release

  • Added the new CallbackChain object class.
    Now you can chain multiple functions or callbacks and call them one after another easily.

Full Changelog: v2.2.0...v2.2.1

v2.2.0

07 Nov 00:01
382a5bd

Choose a tag to compare

Minor release

  • A better abstract library object events.
    Removed the use of generic subscribe / unsubscribe methods on library objects, while introducing more user-friendly on[...] methods.

Full Changelog: v2.1.8...v2.2.0

v2.1.8

06 Nov 22:15
2ad174d

Choose a tag to compare

Patch release

  • The library now returns custom SmartPromise object instead of the native Promise object where needed.
  • Added getMonth & getYear helpers for dates.
  • General improvements. & Some polishing.

v2.1.7

22 Jun 23:44
59a61d5

Choose a tag to compare

Patch release

  • A better general typing for Publisher class.
  • 200 commits! 🥳

Full Changelog: v2.1.6...v2.1.7

v2.1.6

19 Jun 08:02
2cd2894

Choose a tag to compare

Patch release

  • Typing Publisher events made extremely simple.
  • Better JSDoc.

Full Changelog: v2.1.5...v2.1.6

v2.1.5

17 Jun 14:54
ce551af

Choose a tag to compare

Patch release

  • Added PromiseQueue object.
    It is now possible to queue several asynchronous operations ensuring that they are executed in order, one after the other.

Full Changelog: v2.1.4...v2.1.5

v2.1.4

13 Jun 14:44
4565bae

Choose a tag to compare

Patch release

  • Now it's possible to subscribe to every event from Publisher class objects using the "*" wildcard.
  • Now it's possible to create a scope for Publisher class objects.
    Parent events can be propagated to children scopes while child events cannot be propagated to parents.
  • Minor various improvements.

Full Changelog: v2.1.3...v2.1.4