@ttoss/react-feature-flags 0.1.1 → 0.1.3

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.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
 
4
4
  interface FeatureFlagProps {
5
- name: string;
5
+ name: FeatureFlags;
6
6
  children: React.ReactNode;
7
7
  fallback?: React.ReactNode;
8
8
  }
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
 
4
4
  interface FeatureFlagProps {
5
- name: string;
5
+ name: FeatureFlags;
6
6
  children: React.ReactNode;
7
7
  fallback?: React.ReactNode;
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/react-feature-flags",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "React Feature Flags",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -11,22 +11,26 @@
11
11
  "url": "https://github.com/ttoss/ttoss.git",
12
12
  "directory": "packages/react-feature-flags"
13
13
  },
14
- "main": "dist/index.js",
15
- "module": "dist/esm/index.js",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/esm/index.js",
17
+ "require": "./dist/index.js",
18
+ "types": "./dist/index.d.ts"
19
+ }
20
+ },
16
21
  "files": [
17
22
  "dist",
18
23
  "src"
19
24
  ],
20
- "typings": "dist/index.d.ts",
21
25
  "peerDependencies": {
22
26
  "react": ">=16.8.0"
23
27
  },
24
28
  "devDependencies": {
25
- "@types/react": "^18.2.48",
29
+ "@types/react": "^18.2.76",
26
30
  "jest": "^29.7.0",
27
- "tsup": "^8.0.1",
28
- "@ttoss/config": "^1.31.4",
29
- "@ttoss/test-utils": "^2.1.0"
31
+ "tsup": "^8.0.2",
32
+ "@ttoss/config": "^1.31.5",
33
+ "@ttoss/test-utils": "^2.1.2"
30
34
  },
31
35
  "keywords": [
32
36
  "feature-flags",
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { useFeatureFlag } from './useFeatureFlag';
3
3
 
4
4
  export interface FeatureFlagProps {
5
- name: string;
5
+ name: FeatureFlags;
6
6
  children: React.ReactNode;
7
7
  fallback?: React.ReactNode;
8
8
  }