@flagship.io/react-sdk 3.0.4 → 3.0.5
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 +23 -12
- package/dist/esm/FlagshipHooks.js +5 -5
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/FlagshipHooks.d.ts +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
<img src="https://mk0abtastybwtpirqi5t.kinstacdn.com/wp-content/uploads/picture-solutions-persona-product-flagship.jpg" width="211" height="182" alt="flagship-java" />
|
|
3
|
-
</p>
|
|
4
|
-
<h3 align="center">Bring your features to life</h3>
|
|
1
|
+
## About Flagship
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
|
|
4
|
+
<img src="https://www.flagship.io/wp-content/uploads/Flagship-horizontal-black-wake-AB.png" alt="drawing" width="150"/>
|
|
5
|
+
|
|
6
|
+
[Flagship by AB Tasty](https://www.flagship.io/) is a feature flagging platform for modern engineering and product teams. It eliminates the risks of future releases by separating code deployments from these releases :bulb: With Flagship, you have full control over the release process. You can:
|
|
7
|
+
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
- Switch features on or off through remote config.
|
|
10
|
+
- Automatically roll-out your features gradually to monitor performance and gather feedback from your most relevant users.
|
|
11
|
+
- Roll back any feature should any issues arise while testing in production.
|
|
12
|
+
- Segment users by granting access to a feature based on certain user attributes.
|
|
13
|
+
- Carry out A/B tests by easily assigning feature variations to groups of users.
|
|
14
|
+
|
|
15
|
+
<img src="https://www.flagship.io/wp-content/uploads/demo-setup.png" alt="drawing" width="600"/>
|
|
16
|
+
|
|
17
|
+
Flagship also allows you to choose whatever implementation method works for you from our many available SDKs or directly through a REST API. Additionally, our architecture is based on multi-cloud providers that offer high performance and highly-scalable managed services.
|
|
18
|
+
|
|
19
|
+
**To learn more:**
|
|
20
|
+
|
|
21
|
+
- [Solution overview](https://www.flagship.io/#showvideo) - A 5mn video demo :movie_camera:
|
|
22
|
+
- [Documentation](https://docs.developers.flagship.io/) - Our dev portal with guides, how tos, API and SDK references
|
|
23
|
+
- [Sign up for a free trial](https://www.flagship.io/sign-up/) - Create your free account
|
|
24
|
+
- [Guide to feature flagging](https://www.flagship.io/feature-flags/) - Everyhting you need to know about feature flag related use cases
|
|
25
|
+
- [Blog](https://www.flagship.io/blog/) - Additional resources about release management
|
|
@@ -70,7 +70,7 @@ var fsModificationsSync = function fsModificationsSync(args) {
|
|
|
70
70
|
};
|
|
71
71
|
/**
|
|
72
72
|
* Retrieve a modification value by its key. If no modification match the given key or if the stored value type and default value type do not match, default value will be returned.
|
|
73
|
-
* @deprecated use
|
|
73
|
+
* @deprecated use useFsFlag instead
|
|
74
74
|
*/
|
|
75
75
|
|
|
76
76
|
|
|
@@ -92,7 +92,7 @@ export var useFsModifications = function useFsModifications(params, activateAll)
|
|
|
92
92
|
};
|
|
93
93
|
/**
|
|
94
94
|
* Retrieve a modification value by its key. If no modification match the given key or if the stored value type and default value type do not match, default value will be returned.
|
|
95
|
-
* @deprecated use
|
|
95
|
+
* @deprecated use useFsFlag instead
|
|
96
96
|
*/
|
|
97
97
|
|
|
98
98
|
export var useFsModification = function useFsModification(params) {
|
|
@@ -141,7 +141,7 @@ var fsModificationInfoSync = function fsModificationInfoSync(args) {
|
|
|
141
141
|
/**
|
|
142
142
|
* Get the campaign modification information value matching the given key.
|
|
143
143
|
* @param {string} key key which identify the modification.
|
|
144
|
-
* @deprecated use
|
|
144
|
+
* @deprecated use useFsFlag instead
|
|
145
145
|
*/
|
|
146
146
|
|
|
147
147
|
|
|
@@ -221,7 +221,7 @@ export var useFsFlag = function useFsFlag(key, defaultValue) {
|
|
|
221
221
|
/**
|
|
222
222
|
* Report this user has seen this modification. Report this user has seen these modifications.
|
|
223
223
|
* @param params
|
|
224
|
-
* @deprecated use
|
|
224
|
+
* @deprecated use useFsFlag instead
|
|
225
225
|
* @returns
|
|
226
226
|
*/
|
|
227
227
|
|
|
@@ -462,7 +462,7 @@ export var useFlagship = function useFlagship() {
|
|
|
462
462
|
synchronizeModifications: synchronizeModifications,
|
|
463
463
|
getModifications: getModifications,
|
|
464
464
|
modifications: modifications || [],
|
|
465
|
-
|
|
465
|
+
flagsData: (visitor === null || visitor === void 0 ? void 0 : visitor.getFlagsDataArray()) || [],
|
|
466
466
|
getModificationInfo: getModificationInfo,
|
|
467
467
|
hit: {
|
|
468
468
|
send: fsSendHit,
|