@powerlines/plugin-open-feature 0.1.2 → 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.
Files changed (23) hide show
  1. package/README.md +1 -1
  2. package/dist/types/plugin.cjs +2 -3
  3. package/dist/types/plugin.d.cts +1 -2
  4. package/dist/types/plugin.d.cts.map +1 -1
  5. package/dist/types/plugin.d.mts +1 -2
  6. package/dist/types/plugin.d.mts.map +1 -1
  7. package/dist/types/plugin.mjs +1 -2
  8. package/dist/types/plugin.mjs.map +1 -1
  9. package/package.json +10 -12
  10. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.cjs +0 -643
  11. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.mjs +0 -618
  12. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.mjs.map +0 -1
  13. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.cts +0 -489
  14. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.cts.map +0 -1
  15. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.mts +0 -489
  16. package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.mts.map +0 -1
  17. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.cjs +0 -423
  18. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.mjs +0 -424
  19. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.mjs.map +0 -1
  20. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.cts +0 -41
  21. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.cts.map +0 -1
  22. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.mts +0 -42
  23. package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.mts.map +0 -1
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.0.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.1.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -1,16 +1,15 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
- const require_index = require('../node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.cjs');
4
- require('../node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.cjs');
5
3
  let _powerlines_plugin_automd_types_plugin = require("@powerlines/plugin-automd/types/plugin");
6
4
  let _powerlines_plugin_alloy_types = require("@powerlines/plugin-alloy/types");
7
5
  let _powerlines_plugin_babel_types = require("@powerlines/plugin-babel/types");
6
+ let _openfeature_server_sdk = require("@openfeature/server-sdk");
8
7
 
9
8
  //#region src/types/plugin.ts
10
9
  const __ΩOpenFeaturePluginOptions = [
11
10
  "Provider",
12
11
  "ServerProviderStatus",
13
- () => require_index.ProviderWrapper,
12
+ () => _openfeature_server_sdk.ProviderWrapper,
14
13
  "providers",
15
14
  "A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `\":\"` or `\"#\"` character. For example: `\"./src/types/env.ts#ConfigConfiguration\"`.",
16
15
  () => _powerlines_plugin_automd_types_plugin.__ΩAutoMDPluginOptions,
@@ -1,5 +1,4 @@
1
- import { ProviderWrapper, ServerProviderStatus } from "../node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.cjs";
2
- import { Provider } from "../node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.cjs";
1
+ import { Provider, ProviderWrapper, ServerProviderStatus } from "@openfeature/server-sdk";
3
2
  import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
4
3
  import { AutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
5
4
  import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;UAoCiB,wBAAA;;;AAAjB;EAIE,SAAA,GAAY,GAAA,SAAY,eAAA,CAAgB,QAAA,EAAU,oBAAA;;;;;;;EAQlD,MAAA,GAAS,mBAAA;EAQiB;;;;;;EAA1B,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,2BAAA,GAA8B,qBAAA,GACxC,qBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,KAGL,+BAAA,GAAkC,yBAAA,GAC5C,yBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,UAGA,wBAAA,yBACS,+BAAA,GACtB,+BAAA,UAGA,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA;AAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;UAoCiB,wBAAA;;AAAjB;;EAIE,SAAA,GAAY,GAAA,SAAY,eAAA,CAAgB,QAAA,EAAU,oBAAA;EAAV;;;;;;EAQxC,MAAA,GAAS,mBAAA;EAQiB;;;;;;EAA1B,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,2BAAA,GAA8B,qBAAA,GACxC,qBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,KAGL,+BAAA,GAAkC,yBAAA,GAC5C,yBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,UAGA,wBAAA,yBACS,+BAAA,GACtB,+BAAA,UAGA,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA;AAAA"}
@@ -1,8 +1,7 @@
1
- import { ProviderWrapper, ServerProviderStatus } from "../node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.mjs";
2
- import { Provider } from "../node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.mjs";
3
1
  import { AutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
4
2
  import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
5
3
  import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
4
+ import { Provider, ProviderWrapper, ServerProviderStatus } from "@openfeature/server-sdk";
6
5
 
7
6
  //#region src/types/plugin.d.ts
8
7
  interface OpenFeaturePluginOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;UAoCiB,wBAAA;;;AAAjB;EAIE,SAAA,GAAY,GAAA,SAAY,eAAA,CAAgB,QAAA,EAAU,oBAAA;;;;;;;EAQlD,MAAA,GAAS,mBAAA;EAQiB;;;;;;EAA1B,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,2BAAA,GAA8B,qBAAA,GACxC,qBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,KAGL,+BAAA,GAAkC,yBAAA,GAC5C,yBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,UAGA,wBAAA,yBACS,+BAAA,GACtB,+BAAA,UAGA,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA;AAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;UAoCiB,wBAAA;;AAAjB;;EAIE,SAAA,GAAY,GAAA,SAAY,eAAA,CAAgB,QAAA,EAAU,oBAAA;EAAV;;;;;;EAQxC,MAAA,GAAS,mBAAA;EAQiB;;;;;;EAA1B,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,2BAAA,GAA8B,qBAAA,GACxC,qBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,KAGL,+BAAA,GAAkC,yBAAA,GAC5C,yBAAA;EACE,WAAA,EAAa,wBAAA;AAAA;AAAA,UAGA,wBAAA,yBACS,+BAAA,GACtB,+BAAA,UAGA,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA;AAAA"}
@@ -1,8 +1,7 @@
1
- import { ProviderWrapper } from "../node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.mjs";
2
- import "../node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.mjs";
3
1
  import { __ΩAutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
4
2
  import { __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
5
3
  import { __ΩBabelPluginContext, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from "@powerlines/plugin-babel/types";
4
+ import { ProviderWrapper } from "@openfeature/server-sdk";
6
5
 
7
6
  //#region src/types/plugin.ts
8
7
  const __ΩOpenFeaturePluginOptions = [
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Provider,\n ProviderWrapper,\n ServerProviderStatus\n} from \"@openfeature/server-sdk\";\nimport {\n AlloyPluginContext,\n AlloyPluginOptions,\n AlloyPluginResolvedConfig,\n AlloyPluginUserConfig\n} from \"@powerlines/plugin-alloy/types\";\nimport { AutoMDPluginOptions } from \"@powerlines/plugin-automd/types/plugin\";\nimport {\n BabelPluginContext,\n BabelPluginResolvedConfig,\n BabelPluginUserConfig\n} from \"@powerlines/plugin-babel/types\";\n\nexport interface OpenFeaturePluginOptions {\n /**\n * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `\":\"` or `\"#\"` character. For example: `\"./src/types/env.ts#ConfigConfiguration\"`.\n */\n providers?: Map<string, ProviderWrapper<Provider, ServerProviderStatus>>;\n\n /**\n * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.\n *\n * @remarks\n * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.\n */\n automd?: AutoMDPluginOptions;\n\n /**\n * Alloy configuration options to use when injecting environment variables into the source code.\n *\n * @remarks\n * This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.\n */\n alloy?: AlloyPluginOptions;\n}\n\nexport type OpenFeaturePluginUserConfig = BabelPluginUserConfig &\n AlloyPluginUserConfig & {\n openFeature: OpenFeaturePluginOptions;\n };\n\nexport type OpenFeaturePluginResolvedConfig = BabelPluginResolvedConfig &\n AlloyPluginResolvedConfig & {\n openFeature: OpenFeaturePluginOptions;\n };\n\nexport interface OpenFeaturePluginContext<\n TResolvedConfig extends OpenFeaturePluginResolvedConfig =\n OpenFeaturePluginResolvedConfig\n>\n extends\n BabelPluginContext<TResolvedConfig>,\n AlloyPluginContext<TResolvedConfig> {}\n"],"mappings":";;;;;;;AAkCA,MAAM,8BAA2B;CAAA;CAAM;OAAA;CAAA;CAAA;OAAA;CAAA;CAAA;OAAA;CAAA;CAAA;CAAA;CAAA;CAAA;AAEvC,MAAM,iCAAW;OAAyB;OAAA;OAAA;CAAA;CAAA;CAAA;CAAA;AAE1C,MAAM,qCAAqC;OAAA;OAA2C;OAAkC;CAA4B;CAAiB;CAAoC;CAAY;AAErN,MAAE,8BAAwB;OAAgB;CAAgC;OAAA;OAAA;CAAA;CAAA;CAAA"}
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Provider,\n ProviderWrapper,\n ServerProviderStatus\n} from \"@openfeature/server-sdk\";\nimport {\n AlloyPluginContext,\n AlloyPluginOptions,\n AlloyPluginResolvedConfig,\n AlloyPluginUserConfig\n} from \"@powerlines/plugin-alloy/types\";\nimport { AutoMDPluginOptions } from \"@powerlines/plugin-automd/types/plugin\";\nimport {\n BabelPluginContext,\n BabelPluginResolvedConfig,\n BabelPluginUserConfig\n} from \"@powerlines/plugin-babel/types\";\n\nexport interface OpenFeaturePluginOptions {\n /**\n * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `\":\"` or `\"#\"` character. For example: `\"./src/types/env.ts#ConfigConfiguration\"`.\n */\n providers?: Map<string, ProviderWrapper<Provider, ServerProviderStatus>>;\n\n /**\n * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.\n *\n * @remarks\n * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.\n */\n automd?: AutoMDPluginOptions;\n\n /**\n * Alloy configuration options to use when injecting environment variables into the source code.\n *\n * @remarks\n * This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.\n */\n alloy?: AlloyPluginOptions;\n}\n\nexport type OpenFeaturePluginUserConfig = BabelPluginUserConfig &\n AlloyPluginUserConfig & {\n openFeature: OpenFeaturePluginOptions;\n };\n\nexport type OpenFeaturePluginResolvedConfig = BabelPluginResolvedConfig &\n AlloyPluginResolvedConfig & {\n openFeature: OpenFeaturePluginOptions;\n };\n\nexport interface OpenFeaturePluginContext<\n TResolvedConfig extends OpenFeaturePluginResolvedConfig =\n OpenFeaturePluginResolvedConfig\n>\n extends\n BabelPluginContext<TResolvedConfig>,\n AlloyPluginContext<TResolvedConfig> {}\n"],"mappings":";;;;;;AAkCA,MAAM,8BAA2B;CAAA;CAAM;OAAA;CAAA;CAAA;OAAA;CAAA;CAAA;OAAA;CAAA;CAAA;CAAA;CAAA;CAAA;AAEvC,MAAM,iCAAW;OAAyB;OAAA;OAAA;CAAA;CAAA;CAAA;CAAA;AAE1C,MAAM,qCAAqC;OAAA;OAA2C;OAAkC;CAA4B;CAAiB;CAAoC;CAAY;AAErN,MAAE,8BAAwB;OAAgB;CAAgC;OAAA;OAAA;CAAA;CAAA;CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-open-feature",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for managing Open Feature feature flags at runtime.",
6
6
  "keywords": [
@@ -169,10 +169,12 @@
169
169
  "@alloy-js/json": "0.23.0-dev.2",
170
170
  "@alloy-js/markdown": "0.23.0-dev.1",
171
171
  "@alloy-js/typescript": "0.23.0-dev.4",
172
- "@powerlines/plugin-alloy": "^0.25.68",
173
- "@powerlines/plugin-automd": "^0.1.381",
174
- "@powerlines/plugin-plugin": "^0.12.332",
175
- "@storm-software/config-tools": "^1.189.57",
172
+ "@openfeature/core": "^1.9.2",
173
+ "@openfeature/server-sdk": "^1.20.2",
174
+ "@powerlines/plugin-alloy": "^0.25.69",
175
+ "@powerlines/plugin-automd": "^0.1.382",
176
+ "@powerlines/plugin-plugin": "^0.12.333",
177
+ "@storm-software/config-tools": "^1.189.60",
176
178
  "@stryke/convert": "^0.6.57",
177
179
  "@stryke/env": "^0.20.81",
178
180
  "@stryke/fs": "^0.33.64",
@@ -183,19 +185,15 @@
183
185
  "@stryke/types": "^0.11.2",
184
186
  "automd": "^0.4.3",
185
187
  "defu": "^6.1.4",
186
- "powerlines": "^0.42.22",
188
+ "powerlines": "^0.42.23",
187
189
  "c12": "^3.3.3"
188
190
  },
189
191
  "devDependencies": {
190
192
  "@openfeature/flagd-provider": "^0.14.0",
191
193
  "@openfeature/server-sdk": "^1.20.2",
192
194
  "@types/node": "^25.5.0",
193
- "vite": "^8.0.2"
195
+ "vite": "^8.0.3"
194
196
  },
195
197
  "publishConfig": { "access": "public" },
196
- "inlinedDependencies": {
197
- "@openfeature/core": "1.9.2",
198
- "@openfeature/server-sdk": "1.20.2"
199
- },
200
- "gitHead": "c3781ffadfbf52a06d7684294cbcdca702689ad6"
198
+ "gitHead": "4042ae8096ab1aae106c743a39ee41047307dce3"
201
199
  }