@mark1russell7/service 0.5.9 → 0.5.11

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,4 @@
1
- import { n as Clock } from "./clock-D-38uH_z.js";
1
+ import { n as Clock } from "./clock-mVqhXD0b.js";
2
2
  import { o as Limiter } from "./policy-G4QJ1ZZq.js";
3
3
  import { Extent, Quantity } from "@mark1russell7/quantity";
4
4
  //#region src/operation.d.ts
@@ -702,4 +702,4 @@ interface Lifecycle {
702
702
  }
703
703
  //#endregion
704
704
  export { failSpan as $, LifecycleEvent as A, Gate as B, ProbeAnswer as C, Operation as Ct, Outcome as D, CheckFn as E, CooperativeFloor as F, Step as G, Phase as H, Coupling as I, Poll as J, Transport as K, Dependency as L, Recorder as M, Check as N, Result as O, Controller as P, asWindow as Q, ExitCodes as R, HealthVerdict as S, Idempotency as St, StartOptions as T, RepeatSignal as U, MessageTrigger as V, ServiceDescription as W, Timing as X, Span as Y, asDebounce as Z, RequestOptions as _, isExitSignal as _t, PhaseContext as a, EXIT_SIGNALS as at, CheckVerdict as b, nodeProcess as bt, STAGES as c, ExitTrigger as ct, TransportImpl as d, PROCESS_TRIGGERS as dt, heartbeatDetection as et, cooperativeAbortAt as f, ProcessHost as ft, RequestFn as g, isExitCode as gt, RequestEvent as h, embeddedProcess as ht, LifecycleState as i, RouteRequest as it, MachineName as j, Trace as k, ShutdownOptions as l, HostStream as lt, RequestEnd as m, ProcessTrigger as mt, HealthServer as n, OperationOf as nt, PhaseWork as o, EmbeddedProcess as ot, stageRank as p, ProcessPort as pt, FailsBy as q, Lifecycle as r, RoutePattern as rt, RunOptions as s, ExitSignal as st, DependencyHandle as t, recoverSpan as tt, Stage as u, MessageShape as ut, RequestStream as v, isMessageShape as vt, ProbeKind as w, mayReissue as wt, Health as x, processPortOf as xt, RequestWork as y, matchesMessage as yt, FORMAT as z };
705
- //# sourceMappingURL=lifecycle-Chu9Pri2.d.ts.map
705
+ //# sourceMappingURL=lifecycle-CGEegMI0.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { a as LimitRule, i as LimitPolicy, r as KeyState } from "./policy-G4QJ1ZZq.js";
2
- import "./store-DzTyosou.js";
2
+ import "./store-D5HLgBnW.js";
3
3
  import { Machine } from "@mark1russell7/algebra";
4
4
  //#region src/limiter/machine.d.ts
5
5
  /**
@@ -42,4 +42,4 @@ declare const limiterMachine: (policy: LimitPolicy) => Machine;
42
42
  declare const limiterStateOf: (rule: LimitRule, state: KeyState | undefined, now: number) => LimiterState;
43
43
  //#endregion
44
44
  export { limiterStateOf as a, limiterMachine as i, SLIDING_WINDOW_MACHINE as n, TOKEN_BUCKET_MACHINE as r, LimiterState as t };
45
- //# sourceMappingURL=limiter-DCDdzVwe.d.ts.map
45
+ //# sourceMappingURL=limiter-B0849Vhp.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import { S as retryAfterSeconds, _ as freeAt, a as LimitRule, b as limiterProblems, c as LimiterSpec, d as Refused, f as SlidingWindow, g as decide, h as TokenBucket, i as LimitPolicy, l as LimiterStoreSpec, m as TakeStep, n as Decision, o as Limiter, p as StoreFailure, r as KeyState, s as LimiterEviction, t as Allowed, u as RefusalCause, v as idleSpan, x as longestRetryAfter, y as limitRule } from "./policy-G4QJ1ZZq.js";
2
- import { a as keyedLimiter, i as TakeRequest, n as LimiterStore, o as memoryStore, r as MemoryStore, t as KeyedLimiter } from "./store-DzTyosou.js";
3
- import { a as limiterStateOf, i as limiterMachine, n as SLIDING_WINDOW_MACHINE, r as TOKEN_BUCKET_MACHINE, t as LimiterState } from "./limiter-DCDdzVwe.js";
2
+ import { a as keyedLimiter, i as TakeRequest, n as LimiterStore, o as memoryStore, r as MemoryStore, t as KeyedLimiter } from "./store-D5HLgBnW.js";
3
+ import { a as limiterStateOf, i as limiterMachine, n as SLIDING_WINDOW_MACHINE, r as TOKEN_BUCKET_MACHINE, t as LimiterState } from "./limiter-B0849Vhp.js";
4
4
  export { type Allowed, type Decision, type KeyState, type KeyedLimiter, type LimitPolicy, type LimitRule, type Limiter, type LimiterEviction, type LimiterSpec, type LimiterState, type LimiterStore, type LimiterStoreSpec, type MemoryStore, type RefusalCause, type Refused, SLIDING_WINDOW_MACHINE, type SlidingWindow, type StoreFailure, TOKEN_BUCKET_MACHINE, type TakeRequest, type TakeStep, type TokenBucket, decide, freeAt, idleSpan, keyedLimiter, limitRule, limiterMachine, limiterProblems, limiterStateOf, longestRetryAfter, memoryStore, retryAfterSeconds };
package/build/redis.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as Backoff } from "./backoff-B-jGWVDm.js";
2
- import { n as Clock } from "./clock-D-38uH_z.js";
3
- import { B as Gate, Ct as Operation, E as CheckFn, G as Step, J as Poll, L as Dependency, M as Recorder, N as Check, W as ServiceDescription, et as heartbeatDetection, t as DependencyHandle } from "./lifecycle-Chu9Pri2.js";
4
- import { n as ServiceBuilder } from "./builder-DyDB7zM9.js";
5
- import { n as LimiterStore } from "./store-DzTyosou.js";
2
+ import { n as Clock } from "./clock-mVqhXD0b.js";
3
+ import { B as Gate, Ct as Operation, E as CheckFn, G as Step, J as Poll, L as Dependency, M as Recorder, N as Check, W as ServiceDescription, et as heartbeatDetection, t as DependencyHandle } from "./lifecycle-CGEegMI0.js";
4
+ import { n as ServiceBuilder } from "./builder-Dn0cby6Q.js";
5
+ import { n as LimiterStore } from "./store-D5HLgBnW.js";
6
6
  import { Extent, Quantity } from "@mark1russell7/quantity";
7
7
  import { Machine } from "@mark1russell7/algebra";
8
8
  //#region src/redis/connection.d.ts
@@ -1,4 +1,4 @@
1
- import { n as Clock } from "./clock-D-38uH_z.js";
1
+ import { n as Clock } from "./clock-mVqhXD0b.js";
2
2
  import { a as LimitRule, c as LimiterSpec, n as Decision } from "./policy-G4QJ1ZZq.js";
3
3
  //#region src/limiter/store.d.ts
4
4
  /** A take request is one take of one key, with the rule and the cap of its limiter in numbers. */
@@ -69,4 +69,4 @@ interface KeyedLimiter {
69
69
  declare const keyedLimiter: (name: string, spec: LimiterSpec, store: LimiterStore) => KeyedLimiter;
70
70
  //#endregion
71
71
  export { keyedLimiter as a, TakeRequest as i, LimiterStore as n, memoryStore as o, MemoryStore as r, KeyedLimiter as t };
72
- //# sourceMappingURL=store-DzTyosou.d.ts.map
72
+ //# sourceMappingURL=store-D5HLgBnW.d.ts.map
@@ -1,6 +1,6 @@
1
- import { n as Clock } from "./clock-D-38uH_z.js";
2
- import { D as Outcome, E as CheckFn, ct as ExitTrigger, d as TransportImpl, pt as ProcessPort, r as Lifecycle, st as ExitSignal } from "./lifecycle-Chu9Pri2.js";
3
- import { n as ServiceBuilder } from "./builder-DyDB7zM9.js";
1
+ import { n as Clock } from "./clock-mVqhXD0b.js";
2
+ import { D as Outcome, E as CheckFn, ct as ExitTrigger, d as TransportImpl, pt as ProcessPort, r as Lifecycle, st as ExitSignal } from "./lifecycle-CGEegMI0.js";
3
+ import { n as ServiceBuilder } from "./builder-Dn0cby6Q.js";
4
4
  //#region src/fakes.d.ts
5
5
  /** A fake clock moves only when a test tells it to. */
6
6
  interface FakeClock extends Clock {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@mark1russell7/service",
4
- "version": "0.5.9",
4
+ "version": "0.5.11",
5
5
  "description": "A service declared as data before it starts, and its runtime: checks on jittered loops, a latch for each policy, probes from the cache, the startup in its sequence, and a staged, capped drain. The timer-ordering law checks the declaration. Its clock, heartbeat and backoff also work alone, in a browser too.",
6
6
  "keywords": [
7
7
  "service",
@@ -73,7 +73,7 @@
73
73
  "node": ">=22.19"
74
74
  },
75
75
  "dependencies": {
76
- "@mark1russell7/algebra": "^0.7.3",
76
+ "@mark1russell7/algebra": "^0.7.4",
77
77
  "@mark1russell7/quantity": "^0.2.0"
78
78
  },
79
79
  "peerDependencies": {
@@ -90,7 +90,7 @@
90
90
  },
91
91
  "devDependencies": {
92
92
  "@mark1russell7/cue": "github:mark1russell7/cue",
93
- "@mark1russell7/harness": "^0.12.3",
93
+ "@mark1russell7/harness": "^0.12.4",
94
94
  "@types/node": "^26.6.4",
95
95
  "ioredis": "6.0.0",
96
96
  "testcontainers": "12.2.0",