@equinor/cpl-feature-flag-react 1.0.0 → 2.0.1

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/dist/index.js CHANGED
@@ -115,8 +115,8 @@ var import_jsx_runtime = require("react/jsx-runtime");
115
115
  function buildFeatureFlagContext(storage, sessionStorageKey, config) {
116
116
  const FeatureFlagContext = (0, import_react.createContext)(config);
117
117
  const useFeatureFlagConfig = () => (0, import_react.useContext)(FeatureFlagContext);
118
- const FeatureFlagDispatchContext = (0, import_react.createContext)(() => {
119
- });
118
+ const FeatureFlagDispatchContext = (0, import_react.createContext)((() => {
119
+ }));
120
120
  const useFeatureFlagDispatch = () => (0, import_react.useContext)(FeatureFlagDispatchContext);
121
121
  const reducer = buildReducer(storage, sessionStorageKey);
122
122
  const FeatureFlagProvider = ({ children }) => {
package/dist/index.mjs CHANGED
@@ -82,8 +82,8 @@ import { jsx } from "react/jsx-runtime";
82
82
  function buildFeatureFlagContext(storage, sessionStorageKey, config) {
83
83
  const FeatureFlagContext = createContext(config);
84
84
  const useFeatureFlagConfig = () => useContext(FeatureFlagContext);
85
- const FeatureFlagDispatchContext = createContext(() => {
86
- });
85
+ const FeatureFlagDispatchContext = createContext((() => {
86
+ }));
87
87
  const useFeatureFlagDispatch = () => useContext(FeatureFlagDispatchContext);
88
88
  const reducer = buildReducer(storage, sessionStorageKey);
89
89
  const FeatureFlagProvider = ({ children }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/cpl-feature-flag-react",
3
- "version": "1.0.0",
3
+ "version": "2.0.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -9,7 +9,7 @@
9
9
  "dist/**"
10
10
  ],
11
11
  "devDependencies": {
12
- "@equinor/eds-core-react": "^0.42.5",
12
+ "@equinor/eds-core-react": "^2.2.0",
13
13
  "@storybook/react": "^9.1.1",
14
14
  "@types/react": "^18.3.18",
15
15
  "@types/react-dom": "^18.3.5",
@@ -18,12 +18,12 @@
18
18
  "react": "^18.2.0",
19
19
  "react-dom": "^18.2.0",
20
20
  "styled-components": "^6.1.14",
21
- "tsup": "^8.3.6",
22
- "@equinor/cpl-eslint-config": "0.0.9",
21
+ "tsup": "^8.5.1",
22
+ "@equinor/cpl-eslint-config": "1.0.0",
23
23
  "@equinor/cpl-typescript-config": "0.0.2"
24
24
  },
25
25
  "peerDependencies": {
26
- "@equinor/eds-core-react": ">=0.42.1",
26
+ "@equinor/eds-core-react": ">=2.2.0",
27
27
  "react": ">=18.2.0",
28
28
  "react-dom": ">=18.2.0",
29
29
  "styled-components": ">=5.3.11"