@voltro/plugin-flags 0.83.1 → 0.85.0

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/rpc.d.ts CHANGED
@@ -14,13 +14,13 @@ import { Schema } from 'effect';
14
14
  */
15
15
  export declare const BASE_NAME = "@voltro/plugin-flags";
16
16
 
17
- export declare const evaluateDescriptor: QueryProcedureDescriptor<"flags.evaluate", Schema.Struct<{}>, Schema.Record$<typeof Schema.String, typeof Schema.Boolean>, typeof Schema.Never>;
17
+ export declare const evaluateDescriptor: QueryProcedureDescriptor<"flags.evaluate", Schema.Struct<{}>, Schema.$Record<Schema.String, Schema.Boolean>, Schema.Never>;
18
18
 
19
- export declare const evaluateVariantsDescriptor: QueryProcedureDescriptor<"flags.variants", Schema.Struct<{}>, Schema.Record$<typeof Schema.String, Schema.Struct<{
20
- name: typeof Schema.String;
21
- value: typeof Schema.Unknown;
22
- enabled: typeof Schema.Boolean;
23
- }>>, typeof Schema.Never>;
19
+ export declare const evaluateVariantsDescriptor: QueryProcedureDescriptor<"flags.variants", Schema.Struct<{}>, Schema.$Record<Schema.String, Schema.Struct<{
20
+ readonly name: Schema.String;
21
+ readonly value: Schema.Unknown;
22
+ readonly enabled: Schema.Boolean;
23
+ }>>, Schema.Never>;
24
24
 
25
25
  /** Declared for the codegen (`VoltroPlugin.rpcClientDescriptors`) so each tag is
26
26
  * emitted into the generated client group. Kept in lockstep with the exports. */
package/dist/rpc.js CHANGED
@@ -4,10 +4,7 @@ import { defineQuery as t } from "@voltro/protocol";
4
4
  var n = "@voltro/plugin-flags", r = t({
5
5
  name: "flags.evaluate",
6
6
  input: e.Struct({}),
7
- output: e.Record({
8
- key: e.String,
9
- value: e.Boolean
10
- }),
7
+ output: e.Record(e.String, e.Boolean),
11
8
  openAccess: "per-caller flag evaluation: returns only the values computed for the calling subject; every session (incl. anonymous) evaluates its own flags"
12
9
  }), i = e.Struct({
13
10
  name: e.String,
@@ -16,10 +13,7 @@ var n = "@voltro/plugin-flags", r = t({
16
13
  }), a = t({
17
14
  name: "flags.variants",
18
15
  input: e.Struct({}),
19
- output: e.Record({
20
- key: e.String,
21
- value: i
22
- }),
16
+ output: e.Record(e.String, i),
23
17
  openAccess: "per-caller variant resolution: returns only the variants served to the calling subject; every session (incl. anonymous) evaluates its own flags"
24
18
  }), o = [{
25
19
  tag: "flags.evaluate",
package/dist/web.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BASE_NAME as e } from "./rpc.js";
2
- import { i as t } from "./define-D9Eet7wA.js";
2
+ import { i as t } from "./define-BHpLJh1F.js";
3
3
  import { pluginTag as n } from "@voltro/protocol";
4
4
  import { useSubscription as r } from "@voltro/client";
5
5
  //#region src/web.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-flags",
3
- "version": "0.83.1",
3
+ "version": "0.85.0",
4
4
  "description": "Feature flags — per-subject / per-tenant targeting, deterministic % rollouts, kill-switch. Gate mutations/queries/actions declaratively or guard in-handler; evaluate flags client-side for UI gating. Config-as-code (memory) or runtime-toggleable (postgres).",
5
5
  "keywords": [
6
6
  "voltro",
@@ -48,13 +48,13 @@
48
48
  "node": ">=24.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@voltro/client": "0.83.1",
52
- "@voltro/database": "0.83.1",
53
- "@voltro/logger": "0.83.1",
54
- "@voltro/protocol": "0.83.1"
51
+ "@voltro/client": "0.85.0",
52
+ "@voltro/database": "0.85.0",
53
+ "@voltro/logger": "0.85.0",
54
+ "@voltro/protocol": "0.85.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "effect": "^3.22.2"
57
+ "effect": "4.0.1"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"