2.3.0 • Published 10 months ago

@borshch/utilities v2.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Borshch Utilities

Several utilities used in borshch components

!CAUTION package have no typings, so may have troubles with integration to TS projects. Didn't check yet.

!CAUTION cjs version is bundled, but has not been tested yet. you are welcome to give feedback or even create PR with a fix. But better stop using cjs. Forever.

Installation

npm i @borshch/utilities

Atom

State holder. Applies supplied function to current value and uses its result as new value (idea borrowed from Clojure Atom) Usage examples

Deferred

Creates deferred promise that you can manually control resolution and rejection Usage examples

Spy

Spy wrapper for the function allowing to analyze function calls and stub return values. It is extendable, meaning you can customize your spies and reuse them across tests. Usage examples

mixin

Mixes Base class with mixins returning new extendable class. Allows kind of multiple inheritance. Usage examples

2.3.0

10 months ago

2.2.0

10 months ago

2.1.6

10 months ago

2.1.5

10 months ago

2.1.4

10 months ago

2.1.3

10 months ago

2.1.2

10 months ago

2.1.1

10 months ago

2.1.0

10 months ago

2.0.0

10 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago