@feelflow/ffid-sdk 5.7.0 → 5.9.0
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/dist/{chunk-FXIDKFXQ.cjs → chunk-A6MOPB7D.cjs} +33 -6
- package/dist/{chunk-YAJN36SD.js → chunk-KENJXMSG.js} +33 -6
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{ffid-client-CknwTgly.d.cts → ffid-client-DRjzfAaS.d.cts} +36 -4
- package/dist/{ffid-client-C0k2PTbO.d.ts → ffid-client-gboJROw0.d.ts} +36 -4
- package/dist/{index-EFp_ZgK9.d.cts → index-DSvX4q8E.d.cts} +49 -19
- package/dist/{index-EFp_ZgK9.d.ts → index-DSvX4q8E.d.ts} +49 -19
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +15 -13
- package/dist/index.d.ts +15 -13
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +33 -6
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +33 -6
- package/dist/server/test/index.d.cts +2 -2
- package/dist/server/test/index.d.ts +2 -2
- package/dist/{types-s3y11uT6.d.cts → types-BYdtyO_2.d.cts} +12 -16
- package/dist/{types-s3y11uT6.d.ts → types-BYdtyO_2.d.ts} +12 -16
- package/dist/webhooks/index.d.cts +1 -1
- package/dist/webhooks/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -33,22 +33,18 @@
|
|
|
33
33
|
* This is the FFID-internal runtime-expired case (see
|
|
34
34
|
* `getEffectiveSubscriptionStatus` on the server). Deny access.
|
|
35
35
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* `
|
|
39
|
-
* `
|
|
40
|
-
* `
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* `
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* access-granting (no security regression on the userinfo path); when the
|
|
49
|
-
* server's `EffectiveSubscriptionStatus` is later extended to emit
|
|
50
|
-
* `active_canceling`, this docstring MUST be updated to drop the
|
|
51
|
-
* session-only note.
|
|
36
|
+
* **`active_canceling` is mirrored on the server (#3464, SDK 5.8.0).**
|
|
37
|
+
* Earlier (#3460, SDK 5.7.0) the literal was a session-only enrichment;
|
|
38
|
+
* since FFID #3464 the backend `EffectiveSubscriptionStatus` and both
|
|
39
|
+
* `/api/v1/subscriptions/ext/check` + `/oauth/userinfo` emit
|
|
40
|
+
* `active_canceling` directly when `cancel_at_period_end=true` and the
|
|
41
|
+
* period is still live. SDK consumers receive the same literal whether
|
|
42
|
+
* they read it from the session-derived `computeEffectiveStatusFromSession`
|
|
43
|
+
* or the server-derived `effectiveStatus` on the userinfo / ext-check
|
|
44
|
+
* paths. Pre-#3464 FFID backends omit `cancelAtPeriodEnd` on the wire; the
|
|
45
|
+
* SDK `normalizeUserinfo` boundary defaults it to `false`, so downstream
|
|
46
|
+
* consumers see a plain boolean and `computeEffectiveStatus` returns the
|
|
47
|
+
* original `'active'` verdict for legacy deployments.
|
|
52
48
|
*
|
|
53
49
|
* @see /api/v1/subscriptions/ext/check
|
|
54
50
|
* @see docs/03-implementation/EXPIRED_CONTRACT_HANDLING.md
|
package/dist/webhooks/index.d.ts
CHANGED