@powerlines/plugin-open-feature 0.1.317 → 0.1.319
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/components/features-builtin.cjs +2 -3
- package/dist/components/features-builtin.d.cts +0 -2
- package/dist/components/features-builtin.d.cts.map +1 -1
- package/dist/components/features-builtin.d.mts +0 -2
- package/dist/components/features-builtin.mjs +1 -2
- package/dist/components/index.cjs +1 -1
- package/dist/helpers/automd-generator.cjs +1 -2
- package/dist/helpers/automd-generator.d.cts +0 -2
- package/dist/helpers/automd-generator.d.cts.map +1 -1
- package/dist/helpers/automd-generator.d.mts +0 -2
- package/dist/helpers/automd-generator.mjs +1 -2
- package/dist/helpers/index.cjs +1 -1
- package/dist/index.cjs +4 -5
- package/dist/index.d.cts +0 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -2
- package/dist/index.mjs +1 -2
- package/dist/{rolldown-runtime-C24Yb2bl.cjs → rolldown-runtime-xuxB8TGW.cjs} +2 -3
- package/dist/types/index.cjs +1 -1
- package/dist/types/plugin.d.cts +0 -2
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +0 -2
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_rolldown_runtime = require(
|
|
2
|
+
const require_rolldown_runtime = require("../rolldown-runtime-xuxB8TGW.cjs");
|
|
3
3
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
4
|
let _alloy_js_core = require("@alloy-js/core");
|
|
5
5
|
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
@@ -9,7 +9,7 @@ let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powe
|
|
|
9
9
|
let defu = require("defu");
|
|
10
10
|
defu = require_rolldown_runtime.__toESM(defu, 1);
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/components/features-builtin.tsx
|
|
13
13
|
/**
|
|
14
14
|
* Generates the feature flags module for the Powerlines project.
|
|
15
15
|
*/
|
|
@@ -98,5 +98,4 @@ function FeaturesBuiltin(props) {
|
|
|
98
98
|
}));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
//#endregion
|
|
102
101
|
exports.FeaturesBuiltin = FeaturesBuiltin;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
2
|
-
//#region src/components/features-builtin.d.ts
|
|
3
2
|
type FeaturesBuiltinProps = Omit<BuiltinFileProps, "id">;
|
|
4
3
|
/**
|
|
5
4
|
* Generates the feature flags module for the Powerlines project.
|
|
6
5
|
*/
|
|
7
6
|
declare function FeaturesBuiltin(props: FeaturesBuiltinProps): import("@alloy-js/core").Children;
|
|
8
|
-
//#endregion
|
|
9
7
|
export { FeaturesBuiltin, FeaturesBuiltinProps };
|
|
10
8
|
//# sourceMappingURL=features-builtin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features-builtin.d.cts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"features-builtin.d.cts","names":[],"sources":["../../src/components/features-builtin.tsx"],"mappings":";KA+BY,uBAAuB,KAAK;;;;iBAKxB,gBAAgB,OAAO,gDAAoB"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
2
|
-
//#region src/components/features-builtin.d.ts
|
|
3
2
|
type FeaturesBuiltinProps = Omit<BuiltinFileProps, "id">;
|
|
4
3
|
/**
|
|
5
4
|
* Generates the feature flags module for the Powerlines project.
|
|
6
5
|
*/
|
|
7
6
|
declare function FeaturesBuiltin(props: FeaturesBuiltinProps): import("@alloy-js/core").Children;
|
|
8
|
-
//#endregion
|
|
9
7
|
export { FeaturesBuiltin, FeaturesBuiltinProps };
|
|
10
8
|
//# sourceMappingURL=features-builtin.d.mts.map
|
|
@@ -6,7 +6,7 @@ import { TSDoc, TSDocParam } from "@power-plant/alloy-js/typescript/components/t
|
|
|
6
6
|
import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
7
7
|
import defu from "defu";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/components/features-builtin.tsx
|
|
10
10
|
/**
|
|
11
11
|
* Generates the feature flags module for the Powerlines project.
|
|
12
12
|
*/
|
|
@@ -95,6 +95,5 @@ function FeaturesBuiltin(props) {
|
|
|
95
95
|
}));
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
//#endregion
|
|
99
98
|
export { FeaturesBuiltin };
|
|
100
99
|
//# sourceMappingURL=features-builtin.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_components_features_builtin = require(
|
|
2
|
+
const require_components_features_builtin = require("./features-builtin.cjs");
|
|
3
3
|
|
|
4
4
|
exports.FeaturesBuiltin = require_components_features_builtin.FeaturesBuiltin;
|
|
@@ -3,7 +3,7 @@ let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
|
3
3
|
let automd = require("automd");
|
|
4
4
|
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/helpers/automd-generator.ts
|
|
7
7
|
/**
|
|
8
8
|
* AutoMD generator to generate feature flags documentation
|
|
9
9
|
*
|
|
@@ -19,5 +19,4 @@ const features = (context) => (0, automd.defineGenerator)({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
//#endregion
|
|
23
22
|
exports.features = features;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UnresolvedContext } from "powerlines";
|
|
2
|
-
//#region src/helpers/automd-generator.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* AutoMD generator to generate feature flags documentation
|
|
5
4
|
*
|
|
@@ -7,6 +6,5 @@ import { UnresolvedContext } from "powerlines";
|
|
|
7
6
|
* @returns The generated documentation content.
|
|
8
7
|
*/
|
|
9
8
|
declare const features: (context: UnresolvedContext) => import("automd").Generator;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { features };
|
|
12
10
|
//# sourceMappingURL=automd-generator.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;;;cA6Ba,WAAY,SAAS,uCAAiB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UnresolvedContext } from "powerlines";
|
|
2
|
-
//#region src/helpers/automd-generator.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* AutoMD generator to generate feature flags documentation
|
|
5
4
|
*
|
|
@@ -7,6 +6,5 @@ import { UnresolvedContext } from "powerlines";
|
|
|
7
6
|
* @returns The generated documentation content.
|
|
8
7
|
*/
|
|
9
8
|
declare const features: (context: UnresolvedContext) => import("automd").Generator;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { features };
|
|
12
10
|
//# sourceMappingURL=automd-generator.d.mts.map
|
|
@@ -2,7 +2,7 @@ import { joinPaths } from "@stryke/path/join-paths";
|
|
|
2
2
|
import { defineGenerator } from "automd";
|
|
3
3
|
import { getDocsOutputPath } from "powerlines/plugin-utils";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/helpers/automd-generator.ts
|
|
6
6
|
/**
|
|
7
7
|
* AutoMD generator to generate feature flags documentation
|
|
8
8
|
*
|
|
@@ -18,6 +18,5 @@ const features = (context) => defineGenerator({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { features };
|
|
23
22
|
//# sourceMappingURL=automd-generator.mjs.map
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers_automd_generator = require(
|
|
2
|
+
const require_helpers_automd_generator = require("./automd-generator.cjs");
|
|
3
3
|
|
|
4
4
|
exports.features = require_helpers_automd_generator.features;
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_rolldown_runtime = require(
|
|
3
|
-
const require_helpers_automd_generator = require(
|
|
4
|
-
const require_components_features_builtin = require(
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-xuxB8TGW.cjs");
|
|
3
|
+
const require_helpers_automd_generator = require("./helpers/automd-generator.cjs");
|
|
4
|
+
const require_components_features_builtin = require("./components/features-builtin.cjs");
|
|
5
5
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let defu = require("defu");
|
|
7
7
|
defu = require_rolldown_runtime.__toESM(defu, 1);
|
|
8
8
|
let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
|
|
9
9
|
let _powerlines_plugin_automd = require("@powerlines/plugin-automd");
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/index.tsx
|
|
12
12
|
/**
|
|
13
13
|
* A Powerlines plugin to inject environment variables into the source code.
|
|
14
14
|
*/
|
|
@@ -31,6 +31,5 @@ const plugin = (options = {}) => {
|
|
|
31
31
|
];
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
//#endregion
|
|
35
34
|
exports.default = plugin;
|
|
36
35
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig } from "./types/plugin.cjs";
|
|
2
2
|
import "./types/index.cjs";
|
|
3
3
|
import { Plugin } from "powerlines";
|
|
4
|
-
//#region src/index.d.ts
|
|
5
4
|
declare module "powerlines" {
|
|
6
5
|
interface Config {
|
|
7
6
|
openFeature?: OpenFeaturePluginOptions;
|
|
@@ -11,6 +10,5 @@ declare module "powerlines" {
|
|
|
11
10
|
* A Powerlines plugin to inject environment variables into the source code.
|
|
12
11
|
*/
|
|
13
12
|
declare const plugin: <TContext extends OpenFeaturePluginContext = OpenFeaturePluginContext>(options?: OpenFeaturePluginOptions) => Plugin<TContext>[];
|
|
14
|
-
//#endregion
|
|
15
13
|
export { type OpenFeaturePluginContext, type OpenFeaturePluginOptions, type OpenFeaturePluginResolvedConfig, type OpenFeaturePluginUserConfig, plugin as default, plugin };
|
|
16
14
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;YAgCY;IACR,cAAc;;;;;;cAOL,SACX,iBAAiB,2BAA2B,0BAE5C,UAAS,6BA0BJ,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig } from "./types/plugin.mjs";
|
|
2
2
|
import "./types/index.mjs";
|
|
3
3
|
import { Plugin } from "powerlines";
|
|
4
|
-
//#region src/index.d.ts
|
|
5
4
|
declare module "powerlines" {
|
|
6
5
|
interface Config {
|
|
7
6
|
openFeature?: OpenFeaturePluginOptions;
|
|
@@ -11,6 +10,5 @@ declare module "powerlines" {
|
|
|
11
10
|
* A Powerlines plugin to inject environment variables into the source code.
|
|
12
11
|
*/
|
|
13
12
|
declare const plugin: <TContext extends OpenFeaturePluginContext = OpenFeaturePluginContext>(options?: OpenFeaturePluginOptions) => Plugin<TContext>[];
|
|
14
|
-
//#endregion
|
|
15
13
|
export { type OpenFeaturePluginContext, type OpenFeaturePluginOptions, type OpenFeaturePluginResolvedConfig, type OpenFeaturePluginUserConfig, plugin as default, plugin };
|
|
16
14
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import defu from "defu";
|
|
|
5
5
|
import { render } from "@powerlines/plugin-alloy/render";
|
|
6
6
|
import { plugin as plugin$1 } from "@powerlines/plugin-automd";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/index.tsx
|
|
9
9
|
/**
|
|
10
10
|
* A Powerlines plugin to inject environment variables into the source code.
|
|
11
11
|
*/
|
|
@@ -28,6 +28,5 @@ const plugin = (options = {}) => {
|
|
|
28
28
|
];
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { plugin as default, plugin };
|
|
33
32
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -24,8 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
Object.defineProperty(exports, '__toESM', {
|
|
27
|
+
Object.defineProperty(exports, "__toESM", {
|
|
29
28
|
enumerable: true,
|
|
30
29
|
get: function () {
|
|
31
30
|
return __toESM;
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require("./plugin.cjs");
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -2,7 +2,6 @@ import { Provider, ProviderWrapper, ServerProviderStatus } from "@openfeature/se
|
|
|
2
2
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
|
|
3
3
|
import { AutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
|
|
4
4
|
import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel";
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
5
|
interface OpenFeaturePluginOptions {
|
|
7
6
|
/**
|
|
8
7
|
* 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"`.
|
|
@@ -30,6 +29,5 @@ type OpenFeaturePluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginRe
|
|
|
30
29
|
openFeature: OpenFeaturePluginOptions;
|
|
31
30
|
};
|
|
32
31
|
interface OpenFeaturePluginContext<TResolvedConfig extends OpenFeaturePluginResolvedConfig = OpenFeaturePluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {}
|
|
33
|
-
//#endregion
|
|
34
32
|
export { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig };
|
|
35
33
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UAoCiB;;;;EAIf,YAAY,YAAY,gBAAgB,UAAU;;;;;;;EAQlD,SAAS;;;;;;;EAQT,QAAQ;;KAGE,8BAA8B,wBACxC;EACE,aAAa;;KAGL,kCAAkC,4BAC5C;EACE,aAAa;;UAGA,yBACf,wBAAwB,kCACtB,yCAGA,mBAAmB,kBACnB,mBAAmB"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ import { Provider, ProviderWrapper, ServerProviderStatus } from "@openfeature/se
|
|
|
2
2
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
|
|
3
3
|
import { AutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
|
|
4
4
|
import { BabelPluginContext, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel";
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
5
|
interface OpenFeaturePluginOptions {
|
|
7
6
|
/**
|
|
8
7
|
* 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"`.
|
|
@@ -30,6 +29,5 @@ type OpenFeaturePluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginRe
|
|
|
30
29
|
openFeature: OpenFeaturePluginOptions;
|
|
31
30
|
};
|
|
32
31
|
interface OpenFeaturePluginContext<TResolvedConfig extends OpenFeaturePluginResolvedConfig = OpenFeaturePluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {}
|
|
33
|
-
//#endregion
|
|
34
32
|
export { OpenFeaturePluginContext, OpenFeaturePluginOptions, OpenFeaturePluginResolvedConfig, OpenFeaturePluginUserConfig };
|
|
35
33
|
//# sourceMappingURL=plugin.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-open-feature",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.319",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for managing Open Feature feature flags at runtime.",
|
|
6
6
|
"keywords": [
|
|
@@ -157,11 +157,11 @@
|
|
|
157
157
|
"@alloy-js/typescript": "^0.24.0",
|
|
158
158
|
"@openfeature/core": "^1.12.0",
|
|
159
159
|
"@openfeature/server-sdk": "^1.23.0",
|
|
160
|
-
"@power-plant/alloy-js": "^0.0.
|
|
161
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
162
|
-
"@powerlines/plugin-babel": "^0.13.
|
|
163
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
164
|
-
"@storm-software/config-tools": "^1.190.
|
|
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",
|
|
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.
|
|
176
|
+
"powerlines": "^0.47.216"
|
|
177
177
|
},
|
|
178
178
|
"devDependencies": {
|
|
179
179
|
"@openfeature/flagd-provider": "^0.14.0",
|
|
180
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
180
|
+
"@powerlines/plugin-plugin": "^0.12.629",
|
|
181
181
|
"@types/node": "^25.9.9"
|
|
182
182
|
},
|
|
183
183
|
"publishConfig": { "access": "public" },
|
|
184
|
-
"gitHead": "
|
|
184
|
+
"gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
|
|
185
185
|
}
|