Skip to content

Releases: alexocode/brex

Fix behaviour of Brex.none

27 Oct 14:29
Compare
Choose a tag to compare

Changed

  • BREAKING: Brex.none now only succeeds if every rule fails (before it only already succeeded when a single rule failed)

Make compatible with Elixir 1.10

19 May 08:35
Compare
Choose a tag to compare

See #5 for details, much thanks to @lorenzosinisi

Fix critical compilation issue

21 Mar 13:40
Compare
Choose a tag to compare

Version v0.2.1 failed to compile due to the version file missing from the hex package. This version includes the file in the package and also loads it into a module attribute instead of loading it at runtime.

Fix Brex.none/1 behaviour for empty lists

21 Nov 11:43
Compare
Choose a tag to compare

The behaviour of Brex.none/1 was confusing for an empty list of rules, due to simply inverting the result of Brex.all/1. This release introduces a special handling for an empty list of rules:

Before

iex> rules |> Brex.none() |> Brex.satisfies?(:whatever)
false

After

iex> rules |> Brex.none() |> Brex.satisfies?(:whatever)
true

Simplify custom operator creation

21 Nov 11:44
Compare
Choose a tag to compare

This release introduces a greatly simplified Operator generation. I've realised that the former implementation basically was reimplementing structs in a shitty manner. As such the Brex.Operator is now simply a struct with an aggregator and a clauses field.

For details take a look at the Brex.Operator moduledocs.