The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fixed more function doc blocks.
- Fix deps constraint in
gleam.toml
.
- Removed duplicate functions:
given.given
use qualifiedgiven.that(...
or unqualified importgiven
instead.given.not_given
use qualifiedgiven.not(in:...
or unqualified importnot_given
instead.given.ok_in
use qualifiedgiven.ok(in:...
or unqualified importgiven_ok_in
instead.given.error_in
, use qualifiedgiven.error(in:...
or unqualified importgiven_error_in
instead.
- Added:
given.all
to check if all elements in a list are true.given.any
to check if any elements in a list are true.given.not_all
to check if all elements in a list are false.given.not_any
to check if any elements in a list are false.given.when
to allow for more complex lazy conditions.given.when_not
to allow for more complex lazy conditions.given.empty
to check if a list is empty.given.non_empty
to check if a list is non-empty.given.all_ok
to check if all results are ok.given.any_ok
to check if any results are ok.given.all_error
to check if all results are errors.given.any_error
to check if any results are errors.given.all_some
to check if all options are some.given.any_some
to check if any options are some.given.all_none
to check if all options are none.given.any_none
to check if any options are none.
- Improved examples.
- 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.
- Improved unit tests.
- Improved examples.
- Improved readme.
Bugfix release of 3.0.2 but containing breaking change:
-
given.ok_in
has the labels switched, before:pub fn ok_in( result rslt: Result(a, e), else_return consequence: fn(a) -> c, return alternative: fn(e) -> c, ) -> c
after:
pub fn ok_in( result rslt: Result(a, e), else_return alternative: fn(e) -> c, return consequence: fn(a) -> c, ) -> c
- Fix readme.
- Added one inverse example for
none_in
.
- Updated labels and internal code to be more consistent. git
- Removed
given
function prefixes from most functions to cut down import boilerplate and reduce local namespace pollution.
- Initial release.