Skip to content

v0.2.0 - more fun!

Choose a tag to compare

@junebash junebash released this 04 Jan 02:42
· 18 commits to develop since this release

New Modules

  • Box: Reference wrappers for values, including thread-safe MutexBox using Swift 6's Synchronization.Mutex
  • AsyncPlus: Concurrency utilities including SaferContinuation for leak-safe continuations and ScaledClock for time-scaled testing

StdPlus Additions

New Functions:

  • Free functions: with(), configure(), catchAndReturn() (with async variants)

New Sequence Extensions:

  • only property for extracting a single element from a sequence

Optional Enhancements:

  • Made UnwrapError generic for better type precision
  • Added takeOrThrow() (mutating) to consume optional values
  • Added async map() and flatMap() for async transformations

Numeric Extensions:

  • clamped() to constrain values to a range
  • nonZero() to filter out zero values
  • positive() to filter for positive values only

StatefulAsyncSequence:

  • Added Sendable initializer variant for sendable state

Full Changelog: v0.1.0...v0.2.0