Skip to content

Latest commit

 

History

History
281 lines (132 loc) · 12 KB

CHANGELOG.md

File metadata and controls

281 lines (132 loc) · 12 KB

6.0.0 (2024-07-17)

Bug Fixes

  • remove external AbortController dependency (36df93c)
  • update type-core dependency (0e506d1)

chore

Features

  • 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)

BREAKING CHANGES

  • 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)

Features

  • creation: wait can take a null delay for immediate resolution (972968f)

5.0.0 (2021-12-13)

chore

  • reboot package development (0a3d779)

Features

  • 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)

BREAKING CHANGES

  • Promist has been almost entirely rewritten and its api redesigned. Please check the latest documentation.

4.0.0 (2020-08-05)

Features

  • utils: adds isPromiseLike (8cb7af2)

BREAKING CHANGES

  • 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)

Bug Fixes

  • utils: declares control w/ more permissive types for Generator (3703e94)

chore

  • updates setup and dependencies (a0454b4)

BREAKING CHANGES

  • Requires node +12

2.0.2 (2020-02-13)

Bug Fixes

  • fixes Promist value type inference for generics (b87e128)

2.0.1 (2020-02-13)

Bug Fixes

  • fixes subscribe type inference (f232232)

2.0.0 (2019-10-31)

Bug Fixes

  • 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)

Features

  • 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)

BREAKING CHANGES

  • 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)

Bug Fixes

  • utils/control: updates to latest typscript (Generator) (798dbb0)

Code Refactoring

  • extend: renames status to stateful (54bdef6)

Features

  • 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)

BREAKING CHANGES

  • 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 renamed stateful
  • 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 for pipe 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)

Features

  • create/lazy: adds lazy.fn (5212948)

0.6.0 (2019-05-12)

Features

  • 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)

0.5.3 (2019-02-24)

0.5.2 (2019-01-24)

0.5.1 (2019-01-20)

0.5.0 (2019-01-19)

0.4.3 (2019-01-15)

0.4.2 (2019-01-07)

0.4.1 (2019-01-07)

0.4.0 (2019-01-07)

0.3.1 (2018-12-31)

0.3.0 (2018-12-31)

0.2.0 (2018-12-18)

0.1.3 (2018-12-10)

0.1.2 (2018-12-08)

0.1.1 (2018-12-07)

0.1.0 (2018-12-06)