@traffical/openfeature-web 0.2.5 → 0.2.6

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -21,7 +21,7 @@ import { OpenFeature } from "@openfeature/web-sdk";
21
21
  import { TrafficalClient } from "@traffical/js-client";
22
22
  import { TrafficalWebProvider } from "@traffical/openfeature-web";
23
23
 
24
- const client = new TrafficalClient({ apiKey: "pk_...", /* ... */ });
24
+ const client = new TrafficalClient({ apiKey: "traffical_pk_…", /* ... */ });
25
25
 
26
26
  await OpenFeature.setContext({ targetingKey: user.id, plan: user.plan });
27
27
  await OpenFeature.setProviderAndWait(new TrafficalWebProvider(client));
@@ -40,7 +40,7 @@ const enabled = of.getBooleanValue("checkout.newFlow", false);
40
40
  const color = of.getStringValue("ui.color", "blue");
41
41
  ```
42
42
 
43
- Resolvers are synchronous. The `variant`, `reason` (`SPLIT` when a variant was assigned, else `DEFAULT`), and scalar `traffical.*` `flagMetadata` come from the decision.
43
+ Resolvers are synchronous. The `variant`, `reason` (`SPLIT` when an allocation was assigned, else `DEFAULT`), and scalar `traffical.*` `flagMetadata` come from the decision.
44
44
 
45
45
  ## Exposure — the `$traffical.exposure` convention
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@traffical/openfeature-web",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "OpenFeature web (static-context) provider backed by the Traffical browser SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@traffical/core": "0.12.0",
27
27
  "@traffical/openfeature-core": "0.2.5",
28
- "@traffical/js-client": "0.17.0"
28
+ "@traffical/js-client": "0.18.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@openfeature/web-sdk": "^1.9.0"