Skip to content

Releases: yifanwww/rustlike-result

@rustresult/typeorm v0.6.0 (2024-11-10)

10 Nov 11:40
Compare
Choose a tag to compare
Pre-release

Features

Add TypeORM helpers:

  • typeormTransaction

@rustresult/result v0.6.0 (2024-11-10)

10 Nov 11:42
Compare
Choose a tag to compare
Pre-release

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)

10 Nov 11:41
Compare
Choose a tag to compare
Pre-release

Features

Adds a simple JSON (de)serialization support for @rustresult/result:

  • ResultJSON.serialize
  • ResultJSON.deserialize

@rustresult/json-serializr v0.6.0 (2024-11-10)

10 Nov 11:41
Compare
Choose a tag to compare

Features

Add helpers to (de)serialize Result objects by serializr:

  • createResultModelSchema
  • resultPropSchema

rustlike-result v0.5.1 (2024-10-28)

28 Oct 16:21
Compare
Choose a tag to compare
Pre-release

Features

Add helpers for TypeORM:

  • typeormTransaction

rustlike-result v0.5.0 (2024-08-20)

21 Aug 01:27
Compare
Choose a tag to compare
Pre-release

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)

15 Jun 14:28
Compare
Choose a tag to compare
Pre-release

Features

Add new package exports for jest:

  • rustlike-result/cjs
  • rustlike-result/cjs/serializr

rustlike-result v0.4.5 (2024-06-15)

15 Jun 09:38
Compare
Choose a tag to compare
Pre-release

Features

Add new factory fromPromiseableResult

rustlike-result v0.4.4 (2024-06-08)

08 Jun 08:13
Compare
Choose a tag to compare
Pre-release

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)

14 Apr 17:30
Compare
Choose a tag to compare
Pre-release

Features

  • Narrow down Result type after isOk or isErr