Releases: Byloth/core
Releases · Byloth/core
v2.2.4
Patch release
-
Implemented a new
ArrayViewobject class.
Just like its "cousins"MapViewandSetView, it can raise events whenever elements are added or removed. -
Implemented a new
Random.Splitmethod.
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
ResponseExceptionobject class.
You can use it to wrap and throw afetchresponse that failed with a error status code or whose body is malformed. -
Minor improvements. & Updated dependencies.
v2.2.3
Patch release
- Implemented the new
Random.Samplemethod. - Various performance improvements.
- Updated dependencies.
v2.2.2
v2.2.1
Patch release
- Added the new
CallbackChainobject 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
Minor release
- A better abstract library object events.
Removed the use of genericsubscribe/unsubscribemethods on library objects, while introducing more user-friendlyon[...]methods.
Full Changelog: v2.1.8...v2.2.0
v2.1.8
v2.1.7
v2.1.6
v2.1.5
Patch release
- Added
PromiseQueueobject.
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
Patch release
- Now it's possible to subscribe to every event from
Publisherclass objects using the"*"wildcard. - Now it's possible to create a scope for
Publisherclass 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