Skip to content

Releases: yifanwww/rustlike-result

rustlike-result v0.4.2 (2024-03-23)

23 Mar 18:30
Compare
Choose a tag to compare
Pre-release

Features

  • Remove type limit of equal method
  • Add doc examples for Rust-like Result methods

rustlike-result v0.4.1 (2024-03-17)

18 Mar 02:11
Compare
Choose a tag to compare
Pre-release

Features

Support new methods:

  • inspectAsync
  • inspectErrAsync

rustlike-result v0.4.0 (2024-03-03)

09 Mar 11:21
Compare
Choose a tag to compare
Pre-release

Breaking Changes

  • Optional type is no longer exported, you can just simply write T | undefined.

Features

Support new methods:

  • inspect
  • inspectErr

rustlike-result v0.3.2 (2024-01-02)

02 Jan 18:00
Compare
Choose a tag to compare
Pre-release

Bug Fixes

Correct exports in package.json, run commonjs code in Node.js environment, while the bundlers can still bundle the fake esm code.

rustlike-result v0.3.1 (2023-09-24)

24 Sep 15:37
Compare
Choose a tag to compare
Pre-release

Features

Add async methods:

  • isOkAndAsync
  • isErrAndAsync
  • mapAsync
  • mapOrAsync
  • mapOrElseAsync
  • mapErrAsync
  • unwrapOrElseAsync
  • andThenAsync
  • orElseAsync

rustlike-result v0.3.0 (2023-09-23)

24 Sep 15:37
Compare
Choose a tag to compare
Pre-release

Features

Adds JSON serialization and deserialization support with these functions:

  • ResultJSON.serialize
  • ResultJSON.deserialize
  • createResultModelSchema
  • resultPropSchema

rustlike-result v0.2.0 (2023-09-17)

16 Sep 16:57
Compare
Choose a tag to compare
Pre-release

Features

Adds resultify help funtions

  • resultify
  • resultify.sync
  • resultify.promise

rustlike-result v0.1.0 (2023-09-13)

13 Sep 16:44
Compare
Choose a tag to compare
Pre-release

Features

Implements Result with these methods:

  • isOk
  • isOkAnd
  • isErr
  • isErrAnd
  • ok
  • err
  • map
  • mapOr
  • mapOrElse
  • mapErr
  • expect
  • unwrap
  • expectErr
  • unwrapErr
  • unwrapOr
  • unwrapOrElse
  • unwrapUnchecked
  • unwrapErrUnchecked
  • and
  • andThen
  • or
  • orElse
  • transpose

Implements Ok and Err to create Result