@adonis-agora/payments 0.16.0 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @adonis-agora/payments
2
2
 
3
+ ## 0.16.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2288c35`](https://github.com/DavideCarvalho/adonis-agora-payments/commit/2288c35821ca4c56236155ca2b8c74cd9e4749b0) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Attach the `billingOverview` doc comment to the function it describes, and correct which of its metrics the `from`/`to` window actually scopes — `active_subscriptions` and `mrr` are point-in-time.
8
+
9
+ ## 0.16.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#68](https://github.com/DavideCarvalho/adonis-agora-payments/pull/68) [`32e2796`](https://github.com/DavideCarvalho/adonis-agora-payments/commit/32e27963cea6c010a1a4747f945274abcac5135c) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - **Bug:** `LucidBillingStore.saveSubscription` accepted `externalReference` and never wrote it.
14
+
15
+ Shipped in 0.13.0. The field was added to the `BillingStore` contract, to `SubscriptionListItem`, to the `listSubscriptions` filter and to `InMemoryBillingStore` — and not to the Lucid store's `saveSubscription`. So on Postgres every subscription persisted with a null `external_reference` and became **unfindable by the app that created it**, through the very query added to find it. `listSubscriptions({ externalReference })` returned nothing, always.
16
+
17
+ Anything deriving subscription state from the store instead of mirroring it in an app column — the pattern 0.13.0 exists to enable — was silently broken.
18
+
19
+ Nothing caught it because nothing round-tripped a real save: the store's tests mock the model, and `InMemoryBillingStore` had the field, so the in-memory half of every test passed. `test/lucid_save_subscription_fields.spec.ts` now asserts what got assigned to the row, including the absent-preserves / explicit-null-clears rule that `subscription.canceled` depends on.
20
+
3
21
  ## 0.16.0
4
22
 
5
23
  ### Minor Changes