View Source Changelog

unreleased

Unreleased

1-2-0-2023-06-19

[1.2.0] - 2023-06-19

added

Added

  • Added an optional opts argument to the authorize functions, so that additional options can be passed to pre-hooks.
  • Updated LetMe.filter_rules/2 to allow filtering by meta data.

changed

Changed

  • Pre-hook options are now expected to be passed as a keyword list.

fixed

Fixed

1-1-0-2023-05-08

[1.1.0] - 2023-05-08

added-1

Added

  • Added a metadata macro to add metadata to actions. The metadata can be read from the LetMe.Rule struct.

1-0-3-2023-03-21

[1.0.3] - 2023-03-21

changed-1

Changed

  • Update ex_doc and other dev dependencies.

1-0-2-2023-01-05

[1.0.2] - 2023-01-05

added-2

Added

  • Added a cheat sheet for rules and checks.

fixed-1

Fixed

  • Fixed a code example for rule introspection in the readme.

1-0-1-2022-11-06

[1.0.1] - 2022-11-06

changed-2

Changed

1-0-0-2022-11-06

[1.0.0] - 2022-11-06

added-3

Added

changed-3

Changed

  • Renamed c:LetMe.Policy.authorized?/3 to c:LetMe.Policy.authorize?/3, because consistency is more important than grammar, maybe.
  • The c:LetMe.Schema.scope/2 callback was removed in favour of LetMe.Schema.scope/3. The __using__ macro defined default implementations for both functions that returned the given query unchanged, in case you only needed the redact callback of the behaviour. In practice, this made it all too easy to call the 2-arity version when only the 3-arity version was defined, and vice versa, which would lead the query to not be scoped. So in order to reduce the room for error at the cost of a minor inconvenience, you will now always need to implement the 3-arity function, even if you don't need the third argument.
  • Changed c:LetMe.Schema.redacted_fields/2 to LetMe.Schema.redacted_fields/3 to allow passing additional options, and to be consistent with LetMe.Schema.scope/3.

0-2-0-2022-07-12

[0.2.0] - 2022-07-12

changed-4

Changed

  • Added support for nested field redactions, either by explicitly listing the fields or by referencing a module that also implements LetMe.Schema.

fixed-2

Fixed

  • reject_redacted_fields/3 called redact/2 callback with the wrong argument order.

0-1-0-2022-07-11

[0.1.0] - 2022-07-11

initial release