@powerlines/plugin-open-feature 0.1.319 → 0.1.320

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.
Files changed (2) hide show
  1. package/README.md +30 -0
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -74,6 +74,36 @@ A package containing a Powerlines plugin for managing Open Feature feature flags
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Registers an OpenFeature provider map for the project at runtime.
80
+ - Evaluates feature flags through the OpenFeature SDK.
81
+ - Ships shared components for feature-flagged projects.
82
+
83
+ ## Usage
84
+
85
+ Install the package:
86
+
87
+ ```bash
88
+ pnpm add @powerlines/plugin-open-feature
89
+ ```
90
+
91
+ Register the plugin in `powerlines.config.ts`:
92
+
93
+ ```ts
94
+ import { defineConfig } from "powerlines/config";
95
+ import { plugin as openFeature } from "@powerlines/plugin-open-feature";
96
+
97
+ export default defineConfig({
98
+ plugins: [openFeature()],
99
+ openFeature: {
100
+ providers: new Map()
101
+ }
102
+ });
103
+ ```
104
+
105
+ Then run the Powerlines build for your project.
106
+
77
107
  ## Installing
78
108
 
79
109
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-open-feature",
3
- "version": "0.1.319",
3
+ "version": "0.1.320",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for managing Open Feature feature flags at runtime.",
6
6
  "keywords": [
@@ -158,10 +158,10 @@
158
158
  "@openfeature/core": "^1.12.0",
159
159
  "@openfeature/server-sdk": "^1.23.0",
160
160
  "@power-plant/alloy-js": "^0.0.95",
161
- "@powerlines/plugin-alloy": "^0.26.314",
162
- "@powerlines/plugin-babel": "^0.13.213",
163
- "@powerlines/plugin-automd": "^0.1.678",
164
- "@storm-software/config-tools": "^1.190.151",
161
+ "@powerlines/plugin-alloy": "^0.26.315",
162
+ "@powerlines/plugin-babel": "^0.13.214",
163
+ "@powerlines/plugin-automd": "^0.1.679",
164
+ "@storm-software/config-tools": "^1.190.154",
165
165
  "@stryke/convert": "^0.7.47",
166
166
  "@stryke/env": "^0.20.135",
167
167
  "@stryke/fs": "^0.33.118",
@@ -173,13 +173,13 @@
173
173
  "automd": "^0.4.3",
174
174
  "c12": "^3.3.4",
175
175
  "defu": "^6.1.7",
176
- "powerlines": "^0.47.216"
176
+ "powerlines": "^0.47.217"
177
177
  },
178
178
  "devDependencies": {
179
179
  "@openfeature/flagd-provider": "^0.14.0",
180
- "@powerlines/plugin-plugin": "^0.12.629",
180
+ "@powerlines/plugin-plugin": "^0.12.630",
181
181
  "@types/node": "^25.9.9"
182
182
  },
183
183
  "publishConfig": { "access": "public" },
184
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
184
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
185
185
  }