- #600
3aee20a
Thanks @m-shaka! - docs: updated README.md aboutsafeTry
and added @deprecated tag to safeUnwrap
-
#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.
- #562
547352f
Thanks @sharno! - change the return type ofsafeTry
to beResultAsync<T, E>
instead ofPromise<Result<T, E>>
for better composability
- #467
4b9d2fd
Thanks @untidy-hair ! - feat: addandTee
andandThrough
to handle side-effect
-
#483
96f7f66
Thanks @braxtonhall! - FixcombineWithAllErrors
types -
#563
eadf50c
Thanks @mattpocock! - Made err() infer strings narrowly for easier error tagging.
-
#527
2e1f198
Thanks @3846masa! - fix: change type definitions to make inferring types of safeTry more strict -
#497
e06203e
Thanks @braxtonhall! - enhance type inferrence ofmatch
-
#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.