@revturbine/sdk 0.10.10 → 0.11.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.
@@ -0,0 +1,39 @@
1
+ /** The minor that removes every `ExportedConfig`-spelled alias. */
2
+ export declare const PLAYBOOK_ALIAS_REMOVAL_VERSION = "0.12.0";
3
+ /**
4
+ * Emit the one-time development warning for an `ExportedConfig`-spelled alias.
5
+ *
6
+ * The message always names the canonical replacement, and production builds
7
+ * stay silent.
8
+ *
9
+ * @internal
10
+ */
11
+ export declare function warnDeprecatedPlaybookAliasOnce(message: string): void;
12
+ /**
13
+ * Resolve a `{ playbook?, exportedConfig? }` pair to whichever was supplied.
14
+ *
15
+ * `playbook` is canonical and wins when both are present; reading the alias
16
+ * warns once. Returns `undefined` when neither was supplied, so each caller
17
+ * decides whether that is an error.
18
+ *
19
+ * @internal
20
+ */
21
+ export declare function resolvePlaybookOption<T>(source: {
22
+ playbook?: T;
23
+ exportedConfig?: T;
24
+ } | null | undefined, label: string): T | undefined;
25
+ /**
26
+ * {@link resolvePlaybookOption}, but throws when neither spelling was supplied.
27
+ *
28
+ * For a read site whose option was *required* before the rename, so that
29
+ * omitting both stays an error rather than becoming a silent `undefined`.
30
+ *
31
+ * @internal
32
+ */
33
+ export declare function requirePlaybookOption<T>(source: {
34
+ playbook?: T;
35
+ exportedConfig?: T;
36
+ } | null | undefined, label: string): T;
37
+ /** Test-only: forget that the alias warning fired so the next read warns again. @internal */
38
+ export declare function resetPlaybookAliasWarning(): void;
39
+ //# sourceMappingURL=playbook-option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playbook-option.d.ts","sourceRoot":"","sources":["../../../playbook-option.ts"],"names":[],"mappings":"AA8BA,mEAAmE;AACnE,eAAO,MAAM,8BAA8B,WAAW,CAAC;AAIvD;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;IAAC,cAAc,CAAC,EAAE,CAAC,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAC/D,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,SAAS,CASf;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;IAAC,cAAc,CAAC,EAAE,CAAC,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAC/D,KAAK,EAAE,MAAM,GACZ,CAAC,CAMH;AAED,6FAA6F;AAC7F,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revturbine/sdk",
3
- "version": "0.10.10",
3
+ "version": "0.11.1",
4
4
  "description": "RevTurbine customer-facing SDK — placement decisioning, entitlement checks, and usage tracking.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.12.0",
@@ -56,9 +56,9 @@
56
56
  "devDependencies": {
57
57
  "@growthbook/growthbook": "^1.7.0",
58
58
  "@optimizely/optimizely-sdk": "^6.5.0",
59
- "@revt-eng/core": "0.1.332",
60
- "@revt-eng/schema": "0.1.332",
61
- "@revt-eng/schema-external": "0.1.332",
59
+ "@revt-eng/core": "0.1.335",
60
+ "@revt-eng/schema": "0.1.335",
61
+ "@revt-eng/schema-external": "0.1.335",
62
62
  "@types/react": "^19.2.17",
63
63
  "@types/react-dom": "^19.2.3",
64
64
  "openapi-fetch": "^0.17.0",