@leancodepl/feature-flags-react-client 9.6.5 → 9.7.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/README.md CHANGED
@@ -33,8 +33,8 @@ import { mkFeatureFlags } from "@leancodepl/feature-flags-react-client"
33
33
  import { ConfigCatWebProvider } from "@openfeature/config-cat-web-provider"
34
34
 
35
35
  const flags = {
36
- enableNewFeature: { defaultValue: false },
37
- maxRetries: { defaultValue: 3 },
36
+ enableNewFeature: { defaultValue: false },
37
+ maxRetries: { defaultValue: 3 },
38
38
  }
39
39
 
40
40
  const provider = ConfigCatWebProvider.create("sdk-key")
package/index.cjs.js CHANGED
@@ -5,11 +5,11 @@ var webSdk = require('@openfeature/web-sdk');
5
5
 
6
6
  /**
7
7
  * Creates React hooks for type-safe feature flag management using OpenFeature.
8
- *
8
+ *
9
9
  * Sets up OpenFeature provider and returns typed hooks for feature flag evaluation.
10
10
  * Provides React context provider, hook for accessing feature flags in components
11
11
  * and a function to set the feature flags context.
12
- *
12
+ *
13
13
  * @param flags - Feature flags configuration object with default values
14
14
  * @param provider - OpenFeature provider instance
15
15
  * @returns Object containing `useFeatureFlag` hook, `FeatureFlagsProvider` component and `setFeatureFlagsContext` function
package/index.esm.js CHANGED
@@ -3,11 +3,11 @@ import { OpenFeature } from '@openfeature/web-sdk';
3
3
 
4
4
  /**
5
5
  * Creates React hooks for type-safe feature flag management using OpenFeature.
6
- *
6
+ *
7
7
  * Sets up OpenFeature provider and returns typed hooks for feature flag evaluation.
8
8
  * Provides React context provider, hook for accessing feature flags in components
9
9
  * and a function to set the feature flags context.
10
- *
10
+ *
11
11
  * @param flags - Feature flags configuration object with default values
12
12
  * @param provider - OpenFeature provider instance
13
13
  * @returns Object containing `useFeatureFlag` hook, `FeatureFlagsProvider` component and `setFeatureFlagsContext` function
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/feature-flags-react-client",
3
- "version": "9.6.5",
3
+ "version": "9.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "dependencies": {
6
6
  "@openfeature/core": "^1.3.0",