@launchdarkly/cloudflare-server-sdk 0.0.1 → 0.0.2
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.
- package/CHANGELOG.md +14 -0
- package/README.md +16 -4
- package/dist/cjs/package.json +1 -1
- package/dist/esm/package.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the LaunchDarkly SDK for Cloudflare Workers will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [0.0.2](https://github.com/launchdarkly/js-core/compare/cloudflare-server-sdk-v0.0.1...cloudflare-server-sdk-v0.0.2) (2023-04-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* semver util import error ([#90](https://github.com/launchdarkly/js-core/issues/90)) ([b70015a](https://github.com/launchdarkly/js-core/commit/b70015a86b460e8cdc3ee4fff8b339955bd95099))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
* The following workspace dependencies were updated
|
|
16
|
+
* dependencies
|
|
17
|
+
* @launchdarkly/js-server-sdk-common-edge bumped from 0.0.1 to 0.0.2
|
|
18
|
+
|
|
5
19
|
## 0.0.1 (2023-04-19)
|
|
6
20
|
|
|
7
21
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# LaunchDarkly Cloudflare SDK
|
|
2
2
|
|
|
3
|
-
[![NPM][sdk-
|
|
4
|
-
[![Actions Status][sdk-
|
|
5
|
-
[](https://launchdarkly.github.io/js-core/packages/sdk/
|
|
3
|
+
[![NPM][sdk-cloudflare-npm-badge]][sdk-cloudflare-npm-link]
|
|
4
|
+
[![Actions Status][sdk-cloudflare-ci-badge]][sdk-cloudflare-ci]
|
|
5
|
+
[](https://launchdarkly.github.io/js-core/packages/sdk/cloudflare/docs/)
|
|
6
6
|
|
|
7
7
|
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
|
|
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
|
|
65
|
+
|
|
66
|
+
[sdk-cloudflare-ci-badge]: https://github.com/launchdarkly/js-core/actions/workflows/cloudflare.yml/badge.svg
|
|
67
|
+
[sdk-cloudflare-ci]: https://github.com/launchdarkly/js-core/actions/workflows/cloudflare.yml
|
|
68
|
+
[sdk-cloudflare-npm-badge]: https://img.shields.io/npm/v/@launchdarkly/cloudflare-server-sdk.svg?style=flat-square
|
|
69
|
+
[sdk-cloudflare-npm-link]: https://www.npmjs.com/package/@launchdarkly/cloudflare-server-sdk
|
package/dist/cjs/package.json
CHANGED
package/dist/esm/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@launchdarkly/cloudflare-server-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Cloudflare LaunchDarkly SDK",
|
|
5
5
|
"packageManager": "yarn@3.4.1",
|
|
6
6
|
"keywords": [
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@cloudflare/workers-types": "^4.20230321.0",
|
|
34
|
-
"@launchdarkly/js-server-sdk-common-edge": "0.0.
|
|
34
|
+
"@launchdarkly/js-server-sdk-common-edge": "0.0.2",
|
|
35
35
|
"crypto-js": "^4.1.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|