@odla-ai/chapter 0.43.0 → 0.43.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odla-ai/chapter",
3
- "version": "0.43.0",
3
+ "version": "0.43.1",
4
4
  "description": "A leader/follower foundation for branded membership sites: shared CRM, admin, auth, payments, booking, and explicit record delivery from one defineChapter config.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://odla.ai/docs/packages/chapter",
@@ -584,7 +584,12 @@ cancellation before switching the UI.
584
584
  For a shared Stripe account, preserve Chapter's closed partition metadata on
585
585
  every new customer, subscription, payment intent, and refund: app, chapter,
586
586
  environment, data environment, and stable runtime. Do not infer ownership from
587
- the Stripe account or Price alone. The signed webhook must apply an exact target
587
+ the Stripe account or Price alone. A Worker with a named runtime prefers its
588
+ `stripe_webhook_secret__<runtime>` endpoint secret. During an existing app's
589
+ upgrade, Chapter falls back to the historical `stripe_webhook_secret` slot only
590
+ when the scoped slot is absent; replace that compatibility path by reconciling a
591
+ dedicated endpoint, without reading or manually copying either secret. The
592
+ signed webhook must apply an exact target
588
593
  once, acknowledge a fully tagged sibling with zero local writes, quarantine an
589
594
  unmatched event for operators, and accept a metadata-free legacy object only
590
595
  when its Stripe customer, subscription, or gift id is already linked to this
@@ -762,7 +762,10 @@ deployed dev origin.
762
762
  endpoint, stores `stripe_webhook_secret__<name>` under write-only custody,
763
763
  and binds `ODLA_RUNTIME`; do not manually reuse one signing secret across
764
764
  endpoints. A legacy single-Worker app may still store
765
- `stripe_webhook_secret` directly.
765
+ `stripe_webhook_secret` directly. An upgraded named-runtime Worker falls back
766
+ to that historical slot only while its scoped endpoint secret is absent;
767
+ reconcile the dedicated endpoint to end the compatibility period without
768
+ reading or copying either secret.
766
769
  4. In the guarded `groups` row, set `stripePublishableKey` and `stripePriceId`.
767
770
  5. Confirm `policy.merchantDisclosureText` names the merchant the customer will
768
771
  see on the charge or receipt, including the chapter relationship when the