@fluxcontrolsdk/js-sdk 0.1.0 → 0.1.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/README.md +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@ High-performance JavaScript/TypeScript SDK for feature flags and experimentation
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @
|
|
8
|
+
npm install @fluxcontrolsdk/js-sdk
|
|
9
9
|
# or
|
|
10
|
-
yarn add @
|
|
10
|
+
yarn add @fluxcontrolsdk/js-sdk
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
@@ -15,7 +15,7 @@ yarn add @fluxcontrol/js-sdk
|
|
|
15
15
|
### Vanilla JavaScript/TypeScript
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import { FluxClient } from '@
|
|
18
|
+
import { FluxClient } from '@fluxcontrolsdk/js-sdk';
|
|
19
19
|
|
|
20
20
|
// Initialize client
|
|
21
21
|
const client = new FluxClient('your-sdk-key', {
|
|
@@ -54,7 +54,7 @@ client.close();
|
|
|
54
54
|
### React
|
|
55
55
|
|
|
56
56
|
```tsx
|
|
57
|
-
import { FluxProvider, useFeature, useTrack } from '@
|
|
57
|
+
import { FluxProvider, useFeature, useTrack } from '@fluxcontrolsdk/js-sdk';
|
|
58
58
|
|
|
59
59
|
// Wrap your app
|
|
60
60
|
function App() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxcontrolsdk/js-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "FluxControl JavaScript SDK for feature flags and experimentation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
59
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"react": {
|