6.0.0 (2024-07-17)
- classes: add CancellablePromise (1aa340e)
- classes: add DeferredPromise (c24ad6b)
- classes: add ExtensiblePromise (0166da2)
- classes: add LazyPromise (d9b5984)
- classes: add SyncPromise (e34ca8d)
- collection: add Parallel (2ed3bdf)
- collection: add Series methods (87ca458)
- creation: add timeout (17d3edb)
- creation: add until (8cc3dd2)
- creation: add wait (67b9da7)
- creation: wait can take a null delay for immediate resolution (972968f)
- utils: add control and type guards utils (ec0cff2)
- isPromiseLike returns false for functions with a then method
- require node >= 22
- Promist has been almost entirely rewritten and its api redesigned. Please check the latest documentation.
5.1.0 (2021-12-14)
- creation: wait can take a null delay for immediate resolution (972968f)
5.0.0 (2021-12-13)
- reboot package development (0a3d779)
- classes: add CancellablePromise (1aa340e)
- classes: add DeferredPromise (c24ad6b)
- classes: add ExtensiblePromise (0166da2)
- classes: add LazyPromise (d9b5984)
- classes: add SyncPromise (e34ca8d)
- collection: add Parallel (2ed3bdf)
- collection: add Series methods (87ca458)
- creation: add timeout (17d3edb)
- creation: add until (8cc3dd2)
- creation: add wait (67b9da7)
- utils: add control and type guards utils (ec0cff2)
- Promist has been almost entirely rewritten and its api redesigned. Please check the latest documentation.
4.0.0 (2020-08-05)
- utils: adds isPromiseLike (8cb7af2)
- utils: isPromise behavior is more restrictive and will return false for thenables; will only return true for thenable and catchable objects
3.0.0 (2020-04-13)
- utils: declares control w/ more permissive types for Generator (3703e94)
- updates setup and dependencies (a0454b4)
- Requires node +12
2.0.2 (2020-02-13)
- fixes Promist value type inference for generics (b87e128)
2.0.1 (2020-02-13)
- fixes subscribe type inference (f232232)
2.0.0 (2019-10-31)
-
classes: fixes PromiseExecutor definition; fixes LazyPromist using PromiseExecutor instead of PromistExecutor (3bed547)
-
exports classes and collections from main entry point (55d7f19)
-
chore(prepares class based rewrite): (a05e28d)
- classes: adds LazyPromist (86808b8)
- classes: adds Promist (ebec03c)
- create: adds subscribe; renames waitUntil to until; reafactors until and wait (aab4ea4)
- subscribe and Promist.subscribe take a second onComplete argument (128dd31)
- create: waitUntil has been renamed to until; takes ms as a third parameter instead of as second; most other create functions have been removed
- All extend functions have been deprecated, some of the previous create function remain, perhaps with different apis, while some other have been added. The pipe and clone utilities have also been deprecated.
1.0.0 (2019-10-02)
- utils/control: updates to latest typscript (Generator) (798dbb0)
- extend: renames status to stateful (54bdef6)
- create/deferred: guards agains unassigned values for resolve and reject (b19294c)
- create: removes immediate (0872f71)
- extend/timeout: doesn't declare return type as an extended promise (c87ff5f)
- improves typings; extend functions clone input promise (71fb681)
- utils: adds isPromist (c52e6e4)
- utils: exports clone as an util (7a738be)
- utils: replaces compose with pipe (4905d84)
- Typing improvements might break typescript codebases; extend functions clone the input promises, returning a new promise instance, which will break all usage relying on object mutation; extend functions don't take a second argument (previously used for returning a new promise instance instead of mutating the object)
- extend: The
state
extend function -with its associated type- has been renamedstateful
- create: Removes
immediate
create function, as it's entirely dispensable; it additionally relied on non-standard features - utils: The
compose
utility function has been replaced forpipe
in order to preserve type safety - utils/control: latest TypeScript is required to get correct typings on control function
0.7.0 (2019-05-13)
- create/lazy: adds lazy.fn (5212948)
0.6.0 (2019-05-12)
- compose: adds second argument (create) for compose functions (344fcd7)
- exports types from entry point (a47f043)
- helpers: adds asNew() (e5921c6)
- helpers: adds helpers index w/ named exports (20c433c)
- types: defines statuses as literals instead of enums (c6e9c50)
- utils/compose: adds create argument to compose; improves typings (a051a63)
- utils/is-promise: adds type guard to isPromise (70d3e62)