@archbase/feature-flags 3.0.0 → 3.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Edson Martins
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # @archbase/feature-flags
2
+
3
+ Feature flags integration for Archbase React v3 using Unleash.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @archbase/feature-flags
9
+ # or
10
+ pnpm add @archbase/feature-flags
11
+ # or
12
+ yarn add @archbase/feature-flags
13
+ ```
14
+
15
+ ## Features
16
+
17
+ - **Unleash Integration**: Full Unleash proxy client support
18
+ - **React Hooks**: Easy-to-use hooks for feature flag checks
19
+ - **Context Provider**: Global feature flag context
20
+ - **Type Safety**: Full TypeScript support
21
+
22
+ ## Dependencies
23
+
24
+ ```json
25
+ {
26
+ "@mantine/core": "8.3.12",
27
+ "react": "^18.3.0 || ^19.0.0",
28
+ "react-dom": "^18.3.0 || ^19.0.0"
29
+ }
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```typescript
35
+ import { useFeature, FeatureProvider } from '@archbase/feature-flags';
36
+
37
+ // Check if a feature is enabled
38
+ const { isEnabled } = useFeature('my-feature');
39
+
40
+ if (isEnabled) {
41
+ // Feature code
42
+ }
43
+ ```
44
+
45
+ ## License
46
+
47
+ MIT © Edson Martins
48
+
49
+ ## Documentation
50
+
51
+ For full documentation, visit [https://react.archbase.dev](https://react.archbase.dev)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archbase/feature-flags",
3
- "version": "3.0.0",
3
+ "version": "3.0.3",
4
4
  "description": "Feature flags integration for Archbase React v3 using Unleash",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -10,7 +10,8 @@
10
10
  "exports": {
11
11
  ".": {
12
12
  "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js"
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.js"
14
15
  }
15
16
  },
16
17
  "files": [
@@ -19,12 +20,12 @@
19
20
  ],
20
21
  "peerDependencies": {
21
22
  "@mantine/core": "8.3.12",
22
- "react": "^18.3.0 || ^19.0.0",
23
- "react-dom": "^18.3.0 || ^19.0.0"
23
+ "react": "^18.3.0 || ^19.2.0",
24
+ "react-dom": "^18.3.0 || ^19.2.0"
24
25
  },
25
26
  "dependencies": {
26
- "@unleash/proxy-client-react": "^3.6.0",
27
- "@archbase/core": "3.0.0"
27
+ "@archbase/core": "3.0.3",
28
+ "@unleash/proxy-client-react": "^3.6.0"
28
29
  },
29
30
  "devDependencies": {
30
31
  "@types/react": "^19.0.6",
@@ -34,7 +35,7 @@
34
35
  "vite-plugin-dts": "^4.5.0"
35
36
  },
36
37
  "scripts": {
37
- "build": "vite build && tsc --emitDeclarationOnly || true",
38
+ "build": "vite build",
38
39
  "dev": "vite build --watch",
39
40
  "lint": "eslint src",
40
41
  "typecheck": "tsc --noEmit"