Skip to content

v0.4.1

Choose a tag to compare

@sfelixalejandro sfelixalejandro released this 31 Oct 09:37
· 33 commits to main since this release

AshBilling v0.4.1

Fixed

  • AshBilling.Checks.HasPrice now fails closed when :price is missing, nil, empty, or whitespace-only.
  • Invalid or missing :price options are rejected at compile time during Ash policy definition via init/1 with a descriptive Spark.Error.DslError.
  • Added dynamic policy compilation regression tests and comprehensive authorization policy tests.

Documentation

  • Clarified that AshBilling.WebhookEvent is an internal deduplication resource and its actions must not be exposed to untrusted clients via public APIs (AshJsonApi, AshGraphql, etc.).
  • Documented explicit AshPostgres.DataLayer setup and shared Repo pool requirements for distributed webhook deduplication.
  • Clarified that distributed cross-node concurrency guarantees (pg_try_advisory_xact_lock and FOR UPDATE NOWAIT) apply to PostgreSQL. Non-Postgres data layers rely on local node locks.
  • Updated installation, upgrade, and security documentation for the published 0.4.x series.

Upgrade Notes

  • Applications using HasPrice without a valid :price must supply an explicit price or switch to AshBilling.Checks.Subscribed for general active subscription checks.
  • No database migrations are required when upgrading from v0.4.0.