neverthrow
Advanced tools
Changelog
8.0.0
#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.
Changelog
7.1.0
4b9d2fd
Thanks @untidy-hair
! - feat: add andTee
and andThrough
to handle side-effect#483 96f7f66
Thanks @braxtonhall! - Fix combineWithAllErrors
types
#563 eadf50c
Thanks @mattpocock! - Made err() infer strings narrowly for easier error tagging.
Changelog
7.0.0
#553 5a3af0a
Thanks @m-shaka! - Declare the minimum supported Node.js version
Neverthrow
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 the package.json
file.