value-or-promise
1.0.12 · 3 Jan 2023MIT7.7M / weekRepositoryHomepagenpmAtom feed
13 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
1.0.12
3 Jan 2023Upgrade dev-dependencies
Handle async rejections in the presence of sync errors
1.0.11
30 Sep 2021ValueOrPromise.all: Sync code should error first
1.0.10
29 May 2021types: Implementation signature should also be callable
1.0.9
28 May 2021types: Do not make results nullable
1.0.8
7 May 2021Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
1.0.7
4 May 2021resolve: Always resolve to actual Promise
Even though ValueOrPromise objects can be initialized with anything PromiseLike, it is helpful to have them always resolve to either values or to actual promises.
1.0.6
30 Apr 2021dependencies: No dependencies, please
1.0.5
27 Apr 2021Fix published api
1.0.4
27 Apr 2021Add missing catch
1.0.3
27 Apr 2021Exclude spec files from build
1.0.2
27 Apr 2021Add missing function ValueOrPromise.all
1.0.1
26 Apr 2021Add resolve method to resolve the ValueOrPromise to either a value or promise
1.0.0
26 Apr 2021
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.