Skip to content

Commit 8faf0ee

Browse files
Adam Simonadams85
authored andcommitted
Switch to new ConfigCat SDK
Signed-off-by: Adam Simon <[email protected]>
1 parent ef2869f commit 8faf0ee

File tree

16 files changed

+667
-553
lines changed

16 files changed

+667
-553
lines changed

libs/providers/config-cat-web/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ The OpenFeature SDK is required as peer dependency.
1414

1515
The minimum required version of `@openfeature/web-sdk` currently is `1.0.0`.
1616

17-
The minimum required version of `configcat-js-ssr` currently is `8.4.3`.
17+
The minimum required version of `@configcat/sdk` currently is `1.0.1`.
1818

1919
```
20-
$ npm install @openfeature/web-sdk configcat-js-ssr
20+
$ npm install @openfeature/web-sdk @configcat/sdk
2121
```
2222

2323
## Usage
2424

25-
The ConfigCat provider uses the [ConfigCat JavaScript SSR SDK](https://configcat.com/docs/sdk-reference/js-ssr/).
25+
The ConfigCat provider uses the [ConfigCat Browser (JavaScript) SDK](https://configcat.com/docs/sdk-reference/js/browser/).
2626

2727
It can be created by passing the ConfigCat SDK options to ```ConfigCatWebProvider.create```.
28-
The available options can be found in the [ConfigCat JavaScript SSR SDK](https://configcat.com/docs/sdk-reference/js-ssr/#creating-the-configcat-client).
28+
The available options can be found in the [ConfigCat JavaScript SSR SDK](https://configcat.com/docs/sdk-reference/js/browser/#creating-the-configcat-client).
2929

3030
The ConfigCat Web Provider only supports the `AutoPolling` mode because it caches all evaluation data to support synchronous evaluation of feature flags.
3131

@@ -54,7 +54,7 @@ await OpenFeature.clearProviders();
5454
```javascript
5555
import { OpenFeature } from "@openfeature/web-sdk";
5656
import { ConfigCatWebProvider } from '@openfeature/config-cat-web-provider';
57-
import { createConsoleLogger, LogLevel } from 'configcat-js-ssr';
57+
import { createConsoleLogger, LogLevel } from '@configcat/sdk';
5858

5959
// Create and set the provider.
6060
const provider = ConfigCatWebProvider.create('<sdk_key>', {

libs/providers/config-cat-web/package-lock.json

Lines changed: 217 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/providers/config-cat-web/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
"current-version": "echo $npm_package_version"
88
},
99
"peerDependencies": {
10-
"@openfeature/web-sdk": "^1.0.0",
11-
"configcat-js-ssr": "^8.4.3",
10+
"@configcat/sdk": "^1.0.1",
11+
"@openfeature/web-sdk": "^1.0.0"
12+
},
13+
"dependencies": {
1214
"@openfeature/config-cat-core": "0.1.1"
1315
}
1416
}

0 commit comments

Comments
 (0)