Changelog
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[6.0.0] - 2025-09-??
NOTICE: 6.0 contains a breaking change where return and else_return
argument order were unified:
TO MAKE CERTAIN LOGIC IS NOT INVERTED BY ACCIDENT USE else_return and/or
return ARGUMENT LABELS WHEN UPGRADING TO 6.0!
- Following functions have their return and else_return argument order switched:
given.thatgiven.anygiven.allgiven.notgiven.any_notgiven.all_not
- Function documentation has been improved and unified with the examples.
- Examples have been improved.
[5.2.1] - 2025-09-03
NOTICE: 6.0 will have a breaking change where return and else_return
argument order will be unified:
TO MAKE CERTAIN LOGIC IS NOT INVERTED USE else_return and/or return ARG
LABELS BEFORE UPGRADING TO 6.0!
- Fixed a bug in
given.any_not(and deprecatedgiven.not_any) where the result was inverse of what it should be. - Improved readme and examples.
- Reverted the decision to replace
given.non_emptywithgiven.not_empty. Both will exist till 6.0 but then onlygiven.non_empty.
[5.2.0] - 2025-08-16
- Added
given.not_emptyto improve naming consistency. - Deprecated
given.non_emptywhich will be removed in 6.0
[5.1.0] - 2025-07-08
- Added
given.all_notandgiven.any_not. - Deprecated
given.not_allwhich will be removed in 6.0. - Deprecated
given.not_anywhich will be removed in 6.0. - Updated dependencies and other chores.
[5.0.4] - 2025-04-20
- Removed a warning of unused
io.debugwhen compiling the dependency or running the example.
[5.0.3] - 2025-03-06
- Fixed license shown in hex to be in line with license in repo.
[5.0.2] - 2025-01-16
- Fixed more function doc blocks.
[5.0.1] - 2025-01-16
- Fix deps constraint in
gleam.toml.
[5.0.0] - 2025-01-16
- Removed duplicate functions:
given.givenuse qualifiedgiven.that(...or unqualified importgiveninstead.given.not_givenuse qualifiedgiven.not(in:...or unqualified importnot_giveninstead.given.ok_inuse qualifiedgiven.ok(in:...or unqualified importgiven_ok_ininstead.given.error_in, use qualifiedgiven.error(in:...or unqualified importgiven_error_ininstead.
- Added:
given.allto check if all elements in a list are true.given.anyto check if any elements in a list are true.given.not_allto check if all elements in a list are false.given.not_anyto check if any elements in a list are false.given.whento allow for more complex lazy conditions.given.when_notto allow for more complex lazy conditions.given.emptyto check if a list is empty.given.non_emptyto check if a list is non-empty.given.all_okto check if all results are ok.given.any_okto check if any results are ok.given.all_errorto check if all results are errors.given.any_errorto check if any results are errors.given.all_someto check if all options are some.given.any_someto check if any options are some.given.all_noneto check if all options are none.given.any_noneto check if any options are none.
[4.1.1] - 2025-01-01
- Improved examples.
[4.1.0] - 2025-01-01
- Added alternatives function names and label names:
given.ok(in: result...)as an alternative togiven.ok_in(result:...)given.error(in: result...)as an alternative togiven.error_in(result:...)given.some(in: option...)as an alternative togiven.some_in(option:...)given.none(in: option...)as an alternative togiven.none_in(option:...)- Fixed readme to add the correct latest version.
[4.0.1] - 2025-01-01
- Improved unit tests.
- Improved examples.
- Improved readme.
[4.0.0] - 2025-01-01
Bugfix release of 3.0.2 but containing breaking change:
-
given.ok_inhas the labels switched, before:pub fn ok_in( result rslt: Result(a, e), else_return consequence: fn(a) -> c, return alternative: fn(e) -> c, ) -> cafter:
pub fn ok_in( result rslt: Result(a, e), else_return alternative: fn(e) -> c, return consequence: fn(a) -> c, ) -> c
[3.0.2] - 2024-12-16
- Fix readme.
[3.0.1] - 2024-12-16
- Added one inverse example for
none_in.
[3.0.0] - 2024-12-16
- Updated labels and internal code to be more consistent. git
[2.0.0] - 2024-12-14
- Removed
givenfunction prefixes from most functions to cut down import boilerplate and reduce local namespace pollution.
[1.0.0] - 2024-12-14
- Initial release.