@leancodepl/feature-flags-react-client 10.4.0 → 10.5.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,15 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [10.5.0](https://github.com/leancodepl/js_corelibrary/compare/v10.4.0...v10.5.0) (2026-07-01)
7
+
8
+ **Note:** Version bump only for package @leancodepl/feature-flags-react-client
9
+
10
+ # Change Log
11
+
12
+ All notable changes to this project will be documented in this file. See
13
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
14
+
6
15
  # [10.4.0](https://github.com/leancodepl/js_corelibrary/compare/v10.3.1...v10.4.0) (2026-06-23)
7
16
 
8
17
  **Note:** Version bump only for package @leancodepl/feature-flags-react-client
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { OpenFeatureProvider as u, useFlag as F } from "@openfeature/react-sdk";
2
2
  import { OpenFeature as e } from "@openfeature/web-sdk";
3
3
  function s(r, a) {
4
4
  return e.setProvider(a), {
5
- useFeatureFlag: (t, o) => F(t.toString(), o ?? r[t].defaultValue),
5
+ useFeatureFlag: (t, o) => F(t.toString(), o ?? r[t]?.defaultValue),
6
6
  FeatureFlagsProvider: u,
7
7
  setFeatureFlagsContext: e.setContext.bind(e)
8
8
  };
@@ -1 +1 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@openfeature/react-sdk"),require("@openfeature/web-sdk")):typeof define=="function"&&define.amd?define(["exports","@openfeature/react-sdk","@openfeature/web-sdk"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["@leancodepl/feature-flags-react-client"]={},e.reactSdk,e.webSdk))})(this,(function(e,t,r){"use strict";function u(a,i){return r.OpenFeature.setProvider(i),{useFeatureFlag:(n,o)=>t.useFlag(n.toString(),o??a[n].defaultValue),FeatureFlagsProvider:t.OpenFeatureProvider,setFeatureFlagsContext:r.OpenFeature.setContext.bind(r.OpenFeature)}}e.mkFeatureFlags=u,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@openfeature/react-sdk"),require("@openfeature/web-sdk")):typeof define=="function"&&define.amd?define(["exports","@openfeature/react-sdk","@openfeature/web-sdk"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["@leancodepl/feature-flags-react-client"]={},e.reactSdk,e.webSdk))})(this,(function(e,t,r){"use strict";function u(a,i){return r.OpenFeature.setProvider(i),{useFeatureFlag:(n,o)=>t.useFlag(n.toString(),o??a[n]?.defaultValue),FeatureFlagsProvider:t.OpenFeatureProvider,setFeatureFlagsContext:r.OpenFeature.setContext.bind(r.OpenFeature)}}e.mkFeatureFlags=u,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/feature-flags-react-client",
3
- "version": "10.4.0",
3
+ "version": "10.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,6 +19,11 @@
19
19
  "@openfeature/react-sdk": "^0.4.5",
20
20
  "@openfeature/web-sdk": "^1.2.3"
21
21
  },
22
+ "devDependencies": {
23
+ "@testing-library/react": "*",
24
+ "react": "*",
25
+ "vitest": "*"
26
+ },
22
27
  "publishConfig": {
23
28
  "access": "public",
24
29
  "registry": "https://registry.npmjs.org/"