You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: downgrade to semver 7.4.0 to avoid require util error
* chore: include instructions to turn on nodejs compat flag.
* Update README.md
* fix: npm and ci badges
* chore: added comments why semver is pinned.
This library supports using Cloudflare [Workers KV](https://developers.cloudflare.com/workers/learning/how-kv-works) to replace the default in-memory feature store of the [LaunchDarkly Node.js SDK](https://github.com/launchdarkly/cloudflare-server-sdk).
8
8
@@ -17,7 +17,14 @@ npm i @launchdarkly/cloudflare-server-sdk
17
17
or yarn:
18
18
19
19
```shell
20
-
yarn add -D @launchdarkly/cloudflare-server-sdk
20
+
yarn add @launchdarkly/cloudflare-server-sdk
21
+
```
22
+
23
+
In `wrangler.toml` in your worker project turn on the Node.js compatibility flag.
24
+
This allows the SDK to use `node:events`:
25
+
26
+
```toml
27
+
compatibility_flags = [ "nodejs_compat" ]
21
28
```
22
29
23
30
## Quickstart
@@ -55,3 +62,8 @@ yarn test
55
62
-[docs.launchdarkly.com](https://docs.launchdarkly.com/'LaunchDarkly Documentation') for our documentation and SDK reference guides
56
63
-[apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/'LaunchDarkly API Documentation') for our API documentation
57
64
-[blog.launchdarkly.com](https://blog.launchdarkly.com/'LaunchDarkly Blog Documentation') for the latest product updates
0 commit comments