Releases: supermacro/neverthrow
v8.1.1
v8.1.0
v8.0.0
Major Changes
-
#484
09faf35
Thanks @braxtonhall! - Allow orElse method to change ok types.
This makes the orElse types match the implementation.This is a breaking change for the orElse type argument list,
as the ok type must now be provided before the err type.- result.orElse<ErrType>(foo) + result.orElse<OkType, ErrType>(foo)
This only applies if type arguments were
explicitly provided at an orElse callsite.
If the type arguments were inferred,
no updates are needed during the upgrade.
v7.2.0
v7.1.0
Minor Changes
- #467
4b9d2fd
Thanks @untidy-hair
! - feat: addandTee
andandThrough
to handle side-effect
Patch Changes
-
#483
96f7f66
Thanks @braxtonhall! - FixcombineWithAllErrors
types -
#563
eadf50c
Thanks @mattpocock! - Made err() infer strings narrowly for easier error tagging.
v7.0.1
v7.0.0
Major Changes
-
#553
5a3af0a
Thanks @m-shaka! - Declare the minimum supported Node.js versionNeverthrow
does not depend on any Node.js version-specific features, so it should work with any version of Node.js that supports ES6 and other runtimes like Browser, Deno, etc.However, for the sake of maintaining a consistent development environment, we should declare the minimum supported version of Node.js in the
engines
field of thepackage.json
file.
Performance improvements 🏎️ 💨
This patch ships #538 which makes the combine
APIs significantly faster. Now running the combine
apis on large lists is significantly faster.
Thank you @flowreaction for the PR 👏
Fix empty dist folder
Fixes #532
New `ResultAsunc.fromThrowable`
Addresses #488 & implements the .fromThrowable
method on ResultAsync
.
Thanks to @ehaynes99 for implementing this 🚀
👉 Reminder; I'm looking for a maintainer to help out: