@dif.sh/flags-sdk 0.7.0 → 0.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.
Files changed (2) hide show
  1. package/README.md +3 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -38,6 +38,9 @@ import { difAdapter } from "@dif.sh/flags-sdk";
38
38
  - `difAdapter.isEnabled()` resolves to `true` when the assigned variant is not the first declared variant. `difAdapter.isEnabled({ on: "variant_b" })` resolves to `true` only for `variant_b`.
39
39
  - `difAdapter.identify` reads `userId` from the `dif_uid` cookie.
40
40
 
41
+ This adapter does not send page views. Add the dif tracking script to the page,
42
+ or call `dif.page()` from `@dif.sh/sdk` in the client.
43
+
41
44
  Use `createDifAdapter` to change the defaults:
42
45
 
43
46
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dif.sh/flags-sdk",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Vercel Flags SDK adapter for dif feature flags and A/B tests. Assigns variants from dif/generated/client.ts.",
5
5
  "keywords": [
6
6
  "flags-sdk",
@@ -57,7 +57,7 @@
57
57
  "prepublishOnly": "npm run lint && npm test && npm run build"
58
58
  },
59
59
  "peerDependencies": {
60
- "@dif.sh/sdk": "^0.7.0"
60
+ "@dif.sh/sdk": "^0.9.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@dif.sh/sdk": "file:../sdk",