@powerlines/plugin-open-feature 0.1.128 → 0.1.130

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.
@@ -1,4 +1,3 @@
1
- import * as _$_alloy_js_core0 from "@alloy-js/core";
2
1
  import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
3
2
 
4
3
  //#region src/components/features-builtin.d.ts
@@ -6,7 +5,7 @@ type FeaturesBuiltinProps = Omit<BuiltinFileProps, "id">;
6
5
  /**
7
6
  * Generates the feature flags module for the Powerlines project.
8
7
  */
9
- declare function FeaturesBuiltin(props: FeaturesBuiltinProps): _$_alloy_js_core0.Children;
8
+ declare function FeaturesBuiltin(props: FeaturesBuiltinProps): import("@alloy-js/core").Children;
10
9
  //#endregion
11
10
  export { FeaturesBuiltin, FeaturesBuiltinProps };
12
11
  //# sourceMappingURL=features-builtin.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"features-builtin.d.cts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":";;;;KA+BY,oBAAA,GAAuB,IAAA,CAAK,gBAAA;;;AAAxC;iBAKgB,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,iBAAA,CAAA,QAAA"}
1
+ {"version":3,"file":"features-builtin.d.cts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":";;;KA+BY,oBAAA,GAAuB,IAAI,CAAC,gBAAA;;AAAxC;;iBAKgB,eAAA,CAAgB,KAAA,EAAO,oBAAoB,4BAAA,QAAA"}
@@ -1,4 +1,3 @@
1
- import * as _$_alloy_js_core0 from "@alloy-js/core";
2
1
  import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
3
2
 
4
3
  //#region src/components/features-builtin.d.ts
@@ -6,7 +5,7 @@ type FeaturesBuiltinProps = Omit<BuiltinFileProps, "id">;
6
5
  /**
7
6
  * Generates the feature flags module for the Powerlines project.
8
7
  */
9
- declare function FeaturesBuiltin(props: FeaturesBuiltinProps): _$_alloy_js_core0.Children;
8
+ declare function FeaturesBuiltin(props: FeaturesBuiltinProps): import("@alloy-js/core").Children;
10
9
  //#endregion
11
10
  export { FeaturesBuiltin, FeaturesBuiltinProps };
12
11
  //# sourceMappingURL=features-builtin.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"features-builtin.d.mts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":";;;;KA+BY,oBAAA,GAAuB,IAAA,CAAK,gBAAA;;;AAAxC;iBAKgB,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,iBAAA,CAAA,QAAA"}
1
+ {"version":3,"file":"features-builtin.d.mts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":";;;KA+BY,oBAAA,GAAuB,IAAI,CAAC,gBAAA;;AAAxC;;iBAKgB,eAAA,CAAgB,KAAA,EAAO,oBAAoB,4BAAA,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"features-builtin.mjs","names":[],"sources":["../../src/components/features-builtin.tsx"],"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 { code, Show, splitProps } from \"@alloy-js/core\";\nimport { FunctionDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport {\n TSDoc,\n TSDocParam\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport defu from \"defu\";\n\nexport type FeaturesBuiltinProps = Omit<BuiltinFileProps, \"id\">;\n\n/**\n * Generates the feature flags module for the Powerlines project.\n */\nexport function FeaturesBuiltin(props: FeaturesBuiltinProps) {\n const [{ children, imports }, rest] = splitProps(props, [\n \"children\",\n \"imports\"\n ]);\n\n // const context = usePowerlines<OpenFeaturePluginContext>();\n\n return (\n <BuiltinFile\n id=\"features\"\n description=\"The runtime feature flags module provides an interface to define environment configuration parameters.\"\n {...rest}\n imports={defu(\n {\n \"@openfeature/server-sdk\": [\n { name: \"OpenFeature\" },\n { name: \"Provider\", type: true },\n { name: \"ProviderWrapper\", type: true },\n { name: \"ServerProviderStatus\", type: true }\n ]\n },\n imports ?? {}\n )}>\n <TSDoc heading=\"A function to set the OpenFeature providers to be used in the application. This function should be called at the entry point of the application to ensure that the providers are registered before any feature flag evaluations occur.\">\n <TSDocParam name=\"provider\">\n {`The provider wrapper containing the OpenFeature provider to set. The provider should be an instance of a class that implements the OpenFeature Provider interface, wrapped in a ProviderWrapper to include any necessary metadata about the provider's status.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n name=\"setFeatureProvider\"\n export\n async\n parameters={[\n {\n name: \"provider\",\n type: \"ProviderWrapper<Provider, ServerProviderStatus>\"\n }\n ]}>\n {code`try {\n await OpenFeature.setProviderAndWait(provider);\n } catch (error) {\n console.error(\"Failed to initialize provider: \", error);\n } `}\n </FunctionDeclaration>\n <Spacing />\n <VarDeclaration\n name=\"client\"\n export\n const\n doc=\"The Open Feature runtime client to provide feature flag evaluations.\"\n type=\"ReturnType<typeof OpenFeature.getClient>\">\n {code`OpenFeature.getClient(); `}\n </VarDeclaration>\n <Spacing />\n <FunctionDeclaration\n name=\"feature\"\n export\n async\n parameters={[\n {\n name: \"featureId\",\n type: \"string\"\n }\n ]}\n returnType=\"Promise<boolean>\">\n {code`try {\n return client.getBooleanValue(featureId);\n } catch (error) {\n console.error(\"Failed to evaluate feature flag: \", error);\n } `}\n </FunctionDeclaration>\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;AA4BA,SAAS,gBAAuB,OAAC;CACjC,MAAO,CAAA,YAEP;AAKA,QAAO,gBAAS,aAAuB,WAAA;EACrC,IAAM;EACJ,aAAU;EACX,EAAE,MAAA;EACD,IAAA,UAAA;iBAEC,2BAA8B;IAAA,uBAE1B;IAAA;KACJ,MAAA;KACK,MAAA;KACJ;IAAA;KACI,MAAI;KACR,MAAS;KACP;IAAA;KACE,MAAE;KACF,MAAI;KACL;IAAC,EACH,EAAE,WAAW,EAAC,CAAA;;EAEjB,IAAI,WAAE;AACJ,UAAG;IAAA,gBAAA,OAAA;KACD,SAAS;KACT,IAAA,WAAA;AACD,aAAM,gBAAsB,YAAS;OACnC,MAAA;OACG,UAAI;OACN,CAAA;;KAEH,CAAA;IAAA,gBAAA,qBAAA;KACC,MAAM;KACN,UAAA;KACA,OAAA;KACA,YAAY,CAAA;MACV,MAAA;MACA,MAAM;MACP,CAAC;KACF,UAAE,IAAA;;;;;KAKH,CAAC;IAAE,gBAAe,SAAU,EAAA,CAAA;IAAA,gBAAwB,gBAAM;KACzD,MAAG;KACH,UAAA;KACD,SAAS;KACT,KAAA;KACC,MAAM;KACN,UAAA,IAAA;KACD,CAAC;IAAA,gBAAA,SAAA,EAAA,CAAA;IAAA,gBAAA,qBAAA;KACA,MAAK;KACL,UAAM;KACN,OAAM;KACN,YAAA,CAAA;MACD,MAAS;MACT,MAAA;MACC,CAAA;KACA,YAAA;KACA,UAAA,IAAA;;;;;KAKD,CAAC;IAAE,gBAAA,SAAA,EAAA,CAAA;IAAA,gBAAA,MAAA;KACF,IAAC,OAAA;AACD,aAAA,QAAY,SAAQ;;KAEX;KACV,CAAC;IAAC;;EAEN,CAAC,CAAC"}
1
+ {"version":3,"file":"features-builtin.mjs","names":[],"sources":["../../src/components/features-builtin.tsx"],"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 { code, Show, splitProps } from \"@alloy-js/core\";\nimport { FunctionDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport {\n TSDoc,\n TSDocParam\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport defu from \"defu\";\n\nexport type FeaturesBuiltinProps = Omit<BuiltinFileProps, \"id\">;\n\n/**\n * Generates the feature flags module for the Powerlines project.\n */\nexport function FeaturesBuiltin(props: FeaturesBuiltinProps) {\n const [{ children, imports }, rest] = splitProps(props, [\n \"children\",\n \"imports\"\n ]);\n\n // const context = usePowerlines<OpenFeaturePluginContext>();\n\n return (\n <BuiltinFile\n id=\"features\"\n description=\"The runtime feature flags module provides an interface to define environment configuration parameters.\"\n {...rest}\n imports={defu(\n {\n \"@openfeature/server-sdk\": [\n { name: \"OpenFeature\" },\n { name: \"Provider\", type: true },\n { name: \"ProviderWrapper\", type: true },\n { name: \"ServerProviderStatus\", type: true }\n ]\n },\n imports ?? {}\n )}>\n <TSDoc heading=\"A function to set the OpenFeature providers to be used in the application. This function should be called at the entry point of the application to ensure that the providers are registered before any feature flag evaluations occur.\">\n <TSDocParam name=\"provider\">\n {`The provider wrapper containing the OpenFeature provider to set. The provider should be an instance of a class that implements the OpenFeature Provider interface, wrapped in a ProviderWrapper to include any necessary metadata about the provider's status.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n name=\"setFeatureProvider\"\n export\n async\n parameters={[\n {\n name: \"provider\",\n type: \"ProviderWrapper<Provider, ServerProviderStatus>\"\n }\n ]}>\n {code`try {\n await OpenFeature.setProviderAndWait(provider);\n } catch (error) {\n console.error(\"Failed to initialize provider: \", error);\n } `}\n </FunctionDeclaration>\n <Spacing />\n <VarDeclaration\n name=\"client\"\n export\n const\n doc=\"The Open Feature runtime client to provide feature flag evaluations.\"\n type=\"ReturnType<typeof OpenFeature.getClient>\">\n {code`OpenFeature.getClient(); `}\n </VarDeclaration>\n <Spacing />\n <FunctionDeclaration\n name=\"feature\"\n export\n async\n parameters={[\n {\n name: \"featureId\",\n type: \"string\"\n }\n ]}\n returnType=\"Promise<boolean>\">\n {code`try {\n return client.getBooleanValue(featureId);\n } catch (error) {\n console.error(\"Failed to evaluate feature flag: \", error);\n } `}\n </FunctionDeclaration>\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;AA4BA,SAAS,gBAAuB,OAAC;CACjC,MAAO,CAAA,YAEP;CAKA,OAAO,gBAAS,aAAuB,WAAA;EACrC,IAAM;EACJ,aAAU;CACZ,GAAG,MAAA;EACD,IAAA,UAAA;iBAEC,2BAA8B;IAAA,sBAE3B;IAAC;KACJ,MAAA;KACK,MAAA;IACJ;IAAA;KACI,MAAI;KACR,MAAS;IACP;IAAA;KACE,MAAE;KACF,MAAI;IACN;GAAC,EACH,GAAG,WAAW,CAAC,CAAA;EACjB;EACA,IAAI,WAAE;GACJ,OAAG;IAAA,gBAAA,OAAA;KACD,SAAS;KACT,IAAA,WAAA;MACD,OAAM,gBAAsB,YAAS;OACnC,MAAA;OACG,UAAI;MACN,CAAA;KACF;IACF,CAAC;IAAA,gBAAA,qBAAA;KACC,MAAM;KACN,UAAA;KACA,OAAA;KACA,YAAY,CAAA;MACV,MAAA;MACA,MAAM;KACR,CAAC;KACD,UAAE,IAAA;;;;;IAKJ,CAAC;IAAG,gBAAe,SAAU,CAAA,CAAA;IAAA,gBAAwB,gBAAM;KACzD,MAAG;KACH,UAAA;KACD,SAAS;KACT,KAAA;KACC,MAAM;KACN,UAAA,IAAA;IACF,CAAC;IAAC,gBAAA,SAAA,CAAA,CAAA;IAAA,gBAAA,qBAAA;KACA,MAAK;KACL,UAAM;KACN,OAAM;KACN,YAAA,CAAA;MACD,MAAS;MACT,MAAA;KACC,CAAA;KACA,YAAA;KACA,UAAA,IAAA;;;;;IAKF,CAAC;IAAG,gBAAA,SAAA,CAAA,CAAA;IAAA,gBAAA,MAAA;KACF,IAAC,OAAA;MACD,OAAA,QAAY,QAAQ;KACpB;KACS;IACX,CAAC;GAAC;EACJ;CACF,CAAC,CAAC;AACJ"}
@@ -1,4 +1,3 @@
1
- import * as _$automd from "automd";
2
1
  import { UnresolvedContext } from "powerlines";
3
2
 
4
3
  //#region src/helpers/automd-generator.d.ts
@@ -8,7 +7,7 @@ import { UnresolvedContext } from "powerlines";
8
7
  * @param context - The generator context.
9
8
  * @returns The generated documentation content.
10
9
  */
11
- declare const features: (context: UnresolvedContext) => _$automd.Generator;
10
+ declare const features: (context: UnresolvedContext) => import("automd").Generator;
12
11
  //#endregion
13
12
  export { features };
14
13
  //# sourceMappingURL=automd-generator.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;;;AA6BA;;;cAAa,QAAA,GAAY,OAAA,EAAS,iBAAA,KAAiB,QAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;AA6BA;;;;cAAa,QAAA,GAAY,OAAA,EAAS,iBAAiB,sBAAA,SAAA"}
@@ -1,4 +1,3 @@
1
- import * as _$automd from "automd";
2
1
  import { UnresolvedContext } from "powerlines";
3
2
 
4
3
  //#region src/helpers/automd-generator.d.ts
@@ -8,7 +7,7 @@ import { UnresolvedContext } from "powerlines";
8
7
  * @param context - The generator context.
9
8
  * @returns The generated documentation content.
10
9
  */
11
- declare const features: (context: UnresolvedContext) => _$automd.Generator;
10
+ declare const features: (context: UnresolvedContext) => import("automd").Generator;
12
11
  //#endregion
13
12
  export { features };
14
13
  //# sourceMappingURL=automd-generator.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"automd-generator.d.mts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;;;AA6BA;;;cAAa,QAAA,GAAY,OAAA,EAAS,iBAAA,KAAiB,QAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"automd-generator.d.mts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;AA6BA;;;;cAAa,QAAA,GAAY,OAAA,EAAS,iBAAiB,sBAAA,SAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"automd-generator.mjs","names":[],"sources":["../../src/helpers/automd-generator.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 { joinPaths } from \"@stryke/path/join-paths\";\nimport { defineGenerator } from \"automd\";\nimport { UnresolvedContext } from \"powerlines\";\nimport { getDocsOutputPath } from \"powerlines/plugin-utils\";\n\n/**\n * AutoMD generator to generate feature flags documentation\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const features = (context: UnresolvedContext) =>\n defineGenerator({\n name: \"features\",\n async generate() {\n const featuresDocFile = joinPaths(\n getDocsOutputPath(context.config.root),\n \"features.md\"\n );\n\n if (!context.fs.existsSync(featuresDocFile)) {\n return {\n contents: \"\"\n };\n }\n\n const contents = await context.fs.read(featuresDocFile);\n\n return {\n contents: contents || \"\"\n };\n }\n });\n"],"mappings":";;;;;;;;;;;AA6BA,MAAa,YAAW,YAAU,gBAAiB;CACjD,MAAA;CACA,MAAM,WAAW;EACf,MAAM,kBAAW,UAAA,kBAAA,QAAA,OAAA,KAAA,EAAA,cAAA;AACjB,MAAE,CAAA,QAAM,GAAA,WAAkB,gBAAS,CACjC,QAAE,EACA,UAAU,IACX;AAGH,SAAI,EACF,UAAI,MAFY,QAAW,GAAA,KAAA,gBAAkB,IAE9B,IAChB"}
1
+ {"version":3,"file":"automd-generator.mjs","names":[],"sources":["../../src/helpers/automd-generator.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 { joinPaths } from \"@stryke/path/join-paths\";\nimport { defineGenerator } from \"automd\";\nimport { UnresolvedContext } from \"powerlines\";\nimport { getDocsOutputPath } from \"powerlines/plugin-utils\";\n\n/**\n * AutoMD generator to generate feature flags documentation\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const features = (context: UnresolvedContext) =>\n defineGenerator({\n name: \"features\",\n async generate() {\n const featuresDocFile = joinPaths(\n getDocsOutputPath(context.config.root),\n \"features.md\"\n );\n\n if (!context.fs.existsSync(featuresDocFile)) {\n return {\n contents: \"\"\n };\n }\n\n const contents = await context.fs.read(featuresDocFile);\n\n return {\n contents: contents || \"\"\n };\n }\n });\n"],"mappings":";;;;;;;;;;;AA6BA,MAAa,YAAW,YAAU,gBAAiB;CACjD,MAAA;CACA,MAAM,WAAW;EACf,MAAM,kBAAW,UAAA,kBAAA,QAAA,OAAA,IAAA,GAAA,aAAA;EACjB,IAAE,CAAA,QAAM,GAAA,WAAkB,eAAS,GACjC,OAAE,EACA,UAAU,GACZ;EAGF,OAAI,EACF,UAAI,MAFY,QAAW,GAAA,KAAA,eAAkB,KAE9B,GACjB;CACF"}
package/dist/index.d.cts CHANGED
@@ -12,5 +12,5 @@ declare module "powerlines" {
12
12
  */
13
13
  declare const plugin: <TContext extends OpenFeaturePluginContext = OpenFeaturePluginContext>(options?: OpenFeaturePluginOptions) => Plugin<TContext>[];
14
14
  //#endregion
15
- export { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig, plugin as default, plugin };
15
+ export { type OpenFeaturePluginContext, type OpenFeaturePluginOptions, type OpenFeaturePluginResolvedConfig, type OpenFeaturePluginUserConfig, plugin as default, plugin };
16
16
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAgCY,MAAA;IACR,WAAA,GAAc,wBAAA;EAAA;AAAA;;;;cAOL,MAAA,oBACM,wBAAA,GAA2B,wBAAA,EAE5C,OAAA,GAAS,wBAAA,KA0BJ,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAgCY,MAAA;IACR,WAAA,GAAc,wBAAwB;EAAA;AAAA;;;;cAO7B,MAAA,oBACM,wBAAA,GAA2B,wBAAA,EAE5C,OAAA,GAAS,wBAAA,KA0BJ,MAAA,CAAO,QAAA"}
package/dist/index.d.mts CHANGED
@@ -12,5 +12,5 @@ declare module "powerlines" {
12
12
  */
13
13
  declare const plugin: <TContext extends OpenFeaturePluginContext = OpenFeaturePluginContext>(options?: OpenFeaturePluginOptions) => Plugin<TContext>[];
14
14
  //#endregion
15
- export { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig, plugin as default, plugin };
15
+ export { type OpenFeaturePluginContext, type OpenFeaturePluginOptions, type OpenFeaturePluginResolvedConfig, type OpenFeaturePluginUserConfig, plugin as default, plugin };
16
16
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAgCY,MAAA;IACR,WAAA,GAAc,wBAAA;EAAA;AAAA;;;;cAOL,MAAA,oBACM,wBAAA,GAA2B,wBAAA,EAE5C,OAAA,GAAS,wBAAA,KA0BJ,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YAgCY,MAAA;IACR,WAAA,GAAc,wBAAwB;EAAA;AAAA;;;;cAO7B,MAAA,oBACM,wBAAA,GAA2B,wBAAA,EAE5C,OAAA,GAAS,wBAAA,KA0BJ,MAAA,CAAO,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"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 { render } from \"@powerlines/plugin-alloy/render\";\nimport automd from \"@powerlines/plugin-automd\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { FeaturesBuiltin } from \"./components/features-builtin\";\nimport { features } from \"./helpers/automd-generator\";\nimport type {\n OpenFeaturePluginContext,\n OpenFeaturePluginOptions\n} from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n openFeature?: OpenFeaturePluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to inject environment variables into the source code.\n */\nexport const plugin = <\n TContext extends OpenFeaturePluginContext = OpenFeaturePluginContext\n>(\n options: OpenFeaturePluginOptions = {}\n) => {\n return [\n {\n name: \"open-feature\",\n async prepare() {\n this.debug(\n `Preparing the Feature Flags runtime artifacts for the Powerlines project.`\n );\n\n return render(this, <FeaturesBuiltin />);\n }\n },\n {\n name: \"open-feature:automd-generator\",\n config() {\n return {\n automd: defu(options.automd ?? {}, {\n generators: {\n features: features(this)\n }\n })\n };\n }\n },\n automd(options.automd)\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AA6BA,QAAO;EAAA;;GAEP,MAAQ,UAAQ;AACd,SAAS,MAAC,4EAAO;AACf,WAAA,OAAc,MAAA,gBAAwB,iBAAA,EAAA,CAAA,CAAA;;GAE1C;EAAA;;GAEE,SAAA;AACG,WAAA,EACH,QAAA,KAAA,QAAA,UAAA,EAAA,EAAA,EACK,YAAe,EACX,UAAQ,SAAA,KAAA,EAClB,EACQ,CAAC,EACL;;GAEF;EAAC,OAAA,QAAA,OAAA;EAAA"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"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 { render } from \"@powerlines/plugin-alloy/render\";\nimport automd from \"@powerlines/plugin-automd\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { FeaturesBuiltin } from \"./components/features-builtin\";\nimport { features } from \"./helpers/automd-generator\";\nimport type {\n OpenFeaturePluginContext,\n OpenFeaturePluginOptions\n} from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n openFeature?: OpenFeaturePluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to inject environment variables into the source code.\n */\nexport const plugin = <\n TContext extends OpenFeaturePluginContext = OpenFeaturePluginContext\n>(\n options: OpenFeaturePluginOptions = {}\n) => {\n return [\n {\n name: \"open-feature\",\n async prepare() {\n this.debug(\n `Preparing the Feature Flags runtime artifacts for the Powerlines project.`\n );\n\n return render(this, <FeaturesBuiltin />);\n }\n },\n {\n name: \"open-feature:automd-generator\",\n config() {\n return {\n automd: defu(options.automd ?? {}, {\n generators: {\n features: features(this)\n }\n })\n };\n }\n },\n automd(options.automd)\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;CA6BA,OAAO;EAAA;;GAEP,MAAQ,UAAQ;IACd,KAAS,MAAC,2EAAO;IACf,OAAA,OAAc,MAAA,gBAAwB,iBAAA,CAAA,CAAA,CAAA;GACxC;EACF;EAAA;;GAEE,SAAA;IACG,OAAA,EACH,QAAA,KAAA,QAAA,UAAA,CAAA,GAAA,EACK,YAAe,EACX,UAAQ,SAAA,IAAA,EAClB,EACC,CAAO,EACJ;GACH;EACA;EAAE,OAAA,QAAA,MAAA;CAAA;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-open-feature",
3
- "version": "0.1.128",
3
+ "version": "0.1.130",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for managing Open Feature feature flags at runtime.",
6
6
  "keywords": [
@@ -84,9 +84,9 @@
84
84
  "@alloy-js/typescript": "^0.23.0",
85
85
  "@openfeature/core": "^1.10.0",
86
86
  "@openfeature/server-sdk": "^1.21.0",
87
- "@powerlines/plugin-alloy": "^0.26.123",
88
- "@powerlines/plugin-automd": "^0.1.501",
89
- "@powerlines/plugin-plugin": "^0.12.452",
87
+ "@powerlines/plugin-alloy": "^0.26.125",
88
+ "@powerlines/plugin-automd": "^0.1.503",
89
+ "@powerlines/plugin-plugin": "^0.12.454",
90
90
  "@storm-software/config-tools": "^1.190.20",
91
91
  "@stryke/convert": "^0.7.7",
92
92
  "@stryke/env": "^0.20.93",
@@ -98,14 +98,14 @@
98
98
  "@stryke/types": "^0.12.4",
99
99
  "automd": "^0.4.3",
100
100
  "defu": "^6.1.7",
101
- "powerlines": "^0.47.40",
101
+ "powerlines": "^0.47.42",
102
102
  "c12": "^3.3.4"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@openfeature/flagd-provider": "^0.14.0",
106
106
  "@openfeature/server-sdk": "^1.21.0",
107
- "@types/node": "^25.8.0"
107
+ "@types/node": "^25.9.0"
108
108
  },
109
109
  "publishConfig": { "access": "public" },
110
- "gitHead": "c5c293e753d59ab690265988c77bd535680ac71b"
110
+ "gitHead": "2dbbdb2f6fde8f0f49208757c7c1b18deb96ff97"
111
111
  }