BREAKING CHANGES:
FIXES:
BREAKING CHANGES:
- Change type guards to return never instead of false
- Change type guards to return never instead of false in option
CHANGES:
FIXES:
BREAKING CHANGES:
BREAKING CHANGES:
CHANGES:
FEATURES:
FEATURES:
- Add Result.partition static method
- Add Result.toString method and higher-order function variant
- Add Option.toString method and higher-order function variant
FEATURES:
FIXES:
- Fix expectErr code examples in Result module README
- Fix type inference for unwrap, unwrapErr, isOk and isErr HOFs
CHANGES:
- Improve type inference for result higher order functions
- Improve type inference for Option flatMap
- Improve type inference for Option higher order functions
FEATURES:
FIXES:
CHANGES:
- Improve constructor documentation
- Improve Result isOk and isErr type guard type inference
- Improve Option isSome and isNone type guard type inference
FIXES:
BREAKING CHANGES:
FEATURES:
- Add Option.filter function to filter options
- Add Result.filter function to filter results
- Support promise likes with Option.from and Result.from functions
CHANGES:
- Better type inference for union types with Option.match
- Better type inference for union types with Result.match
- Change Result.from to error map function as the second argument
FIXES:
BREAKING CHANGES:
CHANGES:
- Improve return type correctness for Option.from function
- Make the value in Some explicitly of type NonNullable
- Improve type inference for Option type
- Improve type inference for Result type
BREAKING CHANGES:
Functions Option.fromNullable, Option.fromPromise, Result.fromThrowable
and Result.fromPromise were removed in favor of using Option.from or
Result.from instead.
CHANGES:
FIXES:
BREAKING CHANGES:
CHANGES:
- Remove comments from transpiled js files
- Add return type for Result.flatMap instead of relying on inference
- Allow null values with Result.ok and Result.err
FIXES:
- Fix type inference for match and flatMap in Option
- Fix type inference for match and flatMap in Result
- Fix documentation in Result
BREAKING CHANGES:
- Export
Resultas a namespace - Export
Optionas a namespace - Change the order of arguments in match function
- Add void type for Result.ok and Result.err
CHANGES:
FEATURES:
CHANGES:
FEATURES:
CHANGES:
FIXES:
FEATURES:
CHANGES:
FIXES:
FEATURES: