Releases: yifanwww/rustlike-result
Releases · yifanwww/rustlike-result
@rustresult/typeorm v0.6.0 (2024-11-10)
Features
Add TypeORM helpers:
typeormTransaction
@rustresult/result v0.6.0 (2024-11-10)
Breaking Changes
Change package name to @rustresult/result
.
The following functions are moved to @rustresult/json
package:
ResultJSON.serialize
ResultJSON.deserialize
The following functions are moved to @rustresult/json-serializr
package:
createResultModelSchema
resultPropSchema
The following functions are moved to @rustresult/typeorm
package:
typeormTransaction
@rustresult/json v0.6.0 (2024-11-10)
Features
Adds a simple JSON (de)serialization support for @rustresult/result
:
ResultJSON.serialize
ResultJSON.deserialize
@rustresult/json-serializr v0.6.0 (2024-11-10)
Features
Add helpers to (de)serialize Result
objects by serializr
:
createResultModelSchema
resultPropSchema
rustlike-result v0.5.1 (2024-10-28)
Features
Add helpers for TypeORM:
typeormTransaction
rustlike-result v0.5.0 (2024-08-20)
Breaking Changes
All deprecated functions and methods are deleted:
Result.isOkAndAsync
Result.isErrAndAsync
Result.mapAsync
Result.mapOrAsync
Result.mapOrElseAsync
Result.mapErrAsync
Result.inspectAsync
Result.inspectErrAsync
Result.unwrapOrElseAsync
Result.andThenAsync
Result.orElseAsync
resultify
resultify.sync
resultify.promise
rustlike-result v0.4.6 (2024-06-15)
Features
Add new package exports for jest
:
rustlike-result/cjs
rustlike-result/cjs/serializr
rustlike-result v0.4.5 (2024-06-15)
Features
Add new factory fromPromiseableResult
rustlike-result v0.4.4 (2024-06-08)
Features
Add asynchronous Result ResultAsync
, support these methods:
ResultAsync.isOk
ResultAsync.isOkAnd
ResultAsync.isErr
ResultAsync.isErrAnd
ResultAsync.ok
ResultAsync.err
ResultAsync.map
ResultAsync.mapOr
ResultAsync.mapOrElse
ResultAsync.mapErr
ResultAsync.inspect
ResultAsync.inspectErr
ResultAsync.expect
ResultAsync.unwrap
ResultAsync.expectErr
ResultAsync.unwrapErr
ResultAsync.unwrapOr
ResultAsync.unwrapOrElse
ResultAsync.unwrapUnchecked
ResultAsync.unwrapErrUnchecked
ResultAsync.and
ResultAsync.andThen
ResultAsync.or
ResultAsync.orElse
ResultAsync.transpose
ResultAsync.equal
Add new factories:
OkAsync
ErrAsync
Support new methods for Result
:
Result.async
Add new resultifying helpers:
resultifyAsync
resultifySync
resultifyPromise
Notable Changes
These methods are deprecated:
Result.isOkAndAsync
Result.isErrAndAsync
Result.mapAsync
Result.mapOrAsync
Result.mapOrElseAsync
Result.mapErrAsync
Result.inspectAsync
Result.inspectErrAsync
Result.unwrapOrElseAsync
Result.andThenAsync
Result.orElseAsync
These helpers are deprecated:
resultify
resultify.sync
resultify.promise
rustlike-result v0.4.3 (2024-04-14)
Features
- Narrow down
Result
type afterisOk
orisErr