Skip to content

Releases: oissevalt/opzione

v1.1.1

20 Mar 15:51
Compare
Choose a tag to compare
imp: Swap returns value anyway

v1.1.0

20 Mar 03:12
Compare
Choose a tag to compare

New function Validate for Option type that allows custom validation logic to decide whether an Option contains meaningful value.

v1.0.0

19 Mar 04:32
Compare
Choose a tag to compare

Warning

This release contains breaking changes.

  • Simple and NewOption are removed. Chained has been renamed to Option, which is the only optional type this package provides. It can be constructed with functions Some and None.
  • Updates of documentation and README.

v0.3.2

18 Mar 08:38
Compare
Choose a tag to compare
Merge branch 'main' of https://github.com/oissevalt/opzione

v0.3.1

18 Mar 07:43
Compare
Choose a tag to compare

Extensive refactor. The package now has a refined logic for deciding whether an optional is None.
Chained now does not perform recursive None evaluation on simple pointer types; it simply compares whether the value to nil.
From this update, Chained will not track unsafe pointers due to their unpredictable nature.
More test cases have been added.

v0.3.0

18 Mar 02:58
Compare
Choose a tag to compare
  • Implemented support for pointer-like types, such as slices, maps, channels, and interfaces
    • Nil slices are valid Some, since calling len, cap, and append on a nil slice is safe
  • New NewOptional function that chooses Optional implementation according to the specific type

v0.3.0-rc1

17 Mar 19:45
Compare
Choose a tag to compare
v0.3.0-rc1 Pre-release
Pre-release

Support for slices, funcs, maps, channels, and interfaces.

v0.2.1

17 Mar 17:13
Compare
Choose a tag to compare

Optional interface now has a new method, Assigned, which is implemented by Simple and Chained. Assigned assigns the contained value to the passed pointer, if the optional is not None.

First release

17 Mar 07:51
Compare
Choose a tag to compare
v0.1.1

Add docs; change Take's signature