View Source Changelog

v0-2-1-2023-01-14

v0.2.1 (2023-01-14)

enhancements

Enhancements

  • [Janus.Policy] Raise if something other than a schema is passed to allow/4 or deny/4

v0-2-0-2023-01-05

v0.2.0 (2023-01-05)

enhancements-1

Enhancements

  • [Janus] use Janus accepts optional defaults for Janus.Authorization.authorize/4 options
  • [Janus.Policy] Breaking: policy_for renamed to build_policy
  • [Janus.Policy] Breaking: before_policy_for removed
  • [Janus.Policy] Pre-authorization hooks with Janus.Policy.attach_hook/4 and friends
  • [Janus.Authorization] Breaking: filter_authorized renamed to scope
  • [Janus.Authorization] Breaking: authorize now returns {:error, :not_authorized} instead of :error
  • [Janus.Authorization] authorize/4 adds :repo and :load_assocations options
  • [mix janus.gen.policy] Overhaul generated policy helpers to more easily replace Ecto.Repo callbacks

v0-1-0-2022-12-25

v0.1.0 (2022-12-25)

First release.