@toggld/node 0.4.0 → 0.5.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 +5 -1
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -28,9 +28,13 @@ Two evaluation modes:
28
28
  ## Install
29
29
 
30
30
  ```bash
31
- pnpm add @toggld/node
31
+ pnpm add @toggld/node effect
32
32
  ```
33
33
 
34
+ `effect` is a peer dependency (`^4.0.5`), so the SDK runs on your app's copy of
35
+ Effect. Both API surfaces need it. An Effect app shares one Effect runtime with
36
+ the SDK, and the SDK's `Layer` composes with the app's layers.
37
+
34
38
  ## Promise API
35
39
 
36
40
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toggld/node",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Toggld SDK for Node.js — local flag evaluation with a background definition sync. Plain Promise API by default; native Effect API via @toggld/node/effect.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://toggld.io",
@@ -39,10 +39,11 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "dependencies": {
43
- "effect": "4.0.6"
42
+ "peerDependencies": {
43
+ "effect": "^4.0.5"
44
44
  },
45
45
  "devDependencies": {
46
+ "effect": "4.0.6",
46
47
  "tsdown": "^0.23.2",
47
48
  "typescript": "6.0.3",
48
49
  "unrun": "^0.3.1",