@featurevisor/react 0.20.1 → 0.21.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.21.0](https://github.com/fahad19/featurevisor/compare/v0.20.2...v0.21.0) (2023-05-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * allow customizing bucket key ([#71](https://github.com/fahad19/featurevisor/issues/71)) ([c905ab5](https://github.com/fahad19/featurevisor/commit/c905ab5354e29a3cad884003cdb96e89044e2f1c))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.20.2](https://github.com/fahad19/featurevisor/compare/v0.20.1...v0.20.2) (2023-05-14)
18
+
19
+ **Note:** Version bump only for package @featurevisor/react
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.20.1](https://github.com/fahad19/featurevisor/compare/v0.20.0...v0.20.1) (2023-05-13)
7
26
 
8
27
  **Note:** Version bump only for package @featurevisor/react
package/README.md CHANGED
@@ -1,9 +1,18 @@
1
- # @featurevisor/react
1
+ # @featurevisor/react <!-- omit in toc -->
2
2
 
3
3
  React components and hooks for Featurevisor.
4
4
 
5
5
  Visit [https://featurevisor.com](https://featurevisor.com) for more information.
6
6
 
7
+ - [Installation](#installation)
8
+ - [API](#api)
9
+ - [`FeaturevisorProvider`](#featurevisorprovider)
10
+ - [`activateFeature`](#activatefeature)
11
+ - [`useSdk`](#usesdk)
12
+ - [`useStatus`](#usestatus)
13
+ - [`useVariation`](#usevariation)
14
+ - [`useVariable`](#usevariable)
15
+
7
16
  ## Installation
8
17
 
9
18
  ```
@@ -12,7 +21,7 @@ $ npm install --save @featurevisor/react
12
21
 
13
22
  ## API
14
23
 
15
- ### FeaturevisorProvider
24
+ ### `FeaturevisorProvider`
16
25
 
17
26
  React Provider component for setting SDK instance:
18
27
 
@@ -34,19 +43,19 @@ function Root() {
34
43
  }
35
44
  ```
36
45
 
37
- ### activateFeature
46
+ ### `activateFeature`
38
47
 
39
48
  > activateFeature(featureName, attributes = {}): VariationValue | undefined
40
49
 
41
50
  Hook for activate feature.
42
51
 
43
- ### useSdk
52
+ ### `useSdk`
44
53
 
45
54
  > useSdk(): FeaturevisorInstance
46
55
 
47
56
  Hook for getting Featurevisor SDK instance.
48
57
 
49
- ### useStatus
58
+ ### `useStatus`
50
59
 
51
60
  > useStatus(): { isReady: boolean }
52
61
 
@@ -67,18 +76,18 @@ function App() {
67
76
  }
68
77
  ```
69
78
 
70
- ### useVariation
79
+ ### `useVariation`
71
80
 
72
81
  > useVariation(featureKey, attributes = {}): VariationValue | undefined
73
82
 
74
83
  Hook for getting variation value.
75
84
 
76
- ### useVariable
85
+ ### `useVariable`
77
86
 
78
87
  > useVariable(featureKey, variableKey, attributes = {}): VariableValue | undefined
79
88
 
80
89
  Hook for getting variable value.
81
90
 
82
- ## License
91
+ ## License <!-- omit in toc -->
83
92
 
84
93
  MIT © [Fahad Heylaal](https://fahad19.com)
package/dist/index.js.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/react",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "React package for Featurevisor",
5
5
  "main": "dist/index.js",
6
6
  "module": "lib/index.js",
@@ -42,8 +42,8 @@
42
42
  "url": "https://github.com/fahad19/featurevisor/issues"
43
43
  },
44
44
  "dependencies": {
45
- "@featurevisor/sdk": "^0.20.1",
46
- "@featurevisor/types": "^0.20.0"
45
+ "@featurevisor/sdk": "^0.21.0",
46
+ "@featurevisor/types": "^0.21.0"
47
47
  },
48
48
  "license": "MIT",
49
49
  "devDependencies": {
@@ -51,5 +51,5 @@
51
51
  "@testing-library/react": "^14.0.0",
52
52
  "jest-environment-jsdom": "^29.5.0"
53
53
  },
54
- "gitHead": "33e3f3d03125c7ec72d837ed5285bcda7761be42"
54
+ "gitHead": "6de1db4b4eb559cb851daae8366d52577f9c3d96"
55
55
  }