@dr-sentry/sdk 1.1.0 → 1.2.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.
Files changed (70) hide show
  1. package/README.md +103 -5
  2. package/dist/cjs/cache.d.ts +30 -3
  3. package/dist/cjs/cache.d.ts.map +1 -1
  4. package/dist/cjs/cache.js +32 -5
  5. package/dist/cjs/cache.js.map +1 -1
  6. package/dist/cjs/client.d.ts +55 -1
  7. package/dist/cjs/client.d.ts.map +1 -1
  8. package/dist/cjs/client.js +297 -37
  9. package/dist/cjs/client.js.map +1 -1
  10. package/dist/cjs/defaults.d.ts +58 -0
  11. package/dist/cjs/defaults.d.ts.map +1 -0
  12. package/dist/cjs/defaults.js +175 -0
  13. package/dist/cjs/defaults.js.map +1 -0
  14. package/dist/cjs/index.d.ts +2 -1
  15. package/dist/cjs/index.d.ts.map +1 -1
  16. package/dist/cjs/index.js +4 -1
  17. package/dist/cjs/index.js.map +1 -1
  18. package/dist/cjs/persistence.d.ts +26 -0
  19. package/dist/cjs/persistence.d.ts.map +1 -0
  20. package/dist/cjs/persistence.js +74 -0
  21. package/dist/cjs/persistence.js.map +1 -0
  22. package/dist/cjs/status-reporter.d.ts +42 -0
  23. package/dist/cjs/status-reporter.d.ts.map +1 -0
  24. package/dist/cjs/status-reporter.js +153 -0
  25. package/dist/cjs/status-reporter.js.map +1 -0
  26. package/dist/cjs/streaming.d.ts +10 -0
  27. package/dist/cjs/streaming.d.ts.map +1 -1
  28. package/dist/cjs/streaming.js +9 -1
  29. package/dist/cjs/streaming.js.map +1 -1
  30. package/dist/cjs/sync.d.ts +105 -0
  31. package/dist/cjs/sync.d.ts.map +1 -0
  32. package/dist/cjs/sync.js +191 -0
  33. package/dist/cjs/sync.js.map +1 -0
  34. package/dist/cjs/types.d.ts +78 -1
  35. package/dist/cjs/types.d.ts.map +1 -1
  36. package/dist/esm/cache.d.ts +30 -3
  37. package/dist/esm/cache.d.ts.map +1 -1
  38. package/dist/esm/cache.js +32 -5
  39. package/dist/esm/cache.js.map +1 -1
  40. package/dist/esm/client.d.ts +55 -1
  41. package/dist/esm/client.d.ts.map +1 -1
  42. package/dist/esm/client.js +297 -37
  43. package/dist/esm/client.js.map +1 -1
  44. package/dist/esm/defaults.d.ts +58 -0
  45. package/dist/esm/defaults.d.ts.map +1 -0
  46. package/dist/esm/defaults.js +136 -0
  47. package/dist/esm/defaults.js.map +1 -0
  48. package/dist/esm/index.d.ts +2 -1
  49. package/dist/esm/index.d.ts.map +1 -1
  50. package/dist/esm/index.js +1 -0
  51. package/dist/esm/index.js.map +1 -1
  52. package/dist/esm/persistence.d.ts +26 -0
  53. package/dist/esm/persistence.d.ts.map +1 -0
  54. package/dist/esm/persistence.js +70 -0
  55. package/dist/esm/persistence.js.map +1 -0
  56. package/dist/esm/status-reporter.d.ts +42 -0
  57. package/dist/esm/status-reporter.d.ts.map +1 -0
  58. package/dist/esm/status-reporter.js +148 -0
  59. package/dist/esm/status-reporter.js.map +1 -0
  60. package/dist/esm/streaming.d.ts +10 -0
  61. package/dist/esm/streaming.d.ts.map +1 -1
  62. package/dist/esm/streaming.js +9 -1
  63. package/dist/esm/streaming.js.map +1 -1
  64. package/dist/esm/sync.d.ts +105 -0
  65. package/dist/esm/sync.d.ts.map +1 -0
  66. package/dist/esm/sync.js +187 -0
  67. package/dist/esm/sync.js.map +1 -0
  68. package/dist/esm/types.d.ts +78 -1
  69. package/dist/esm/types.d.ts.map +1 -1
  70. package/package.json +1 -1
@@ -0,0 +1,105 @@
1
+ import { Flag } from './types.js';
2
+ /** Timing knobs for the resilient sync engine. All values in milliseconds. */
3
+ export interface SyncTiming {
4
+ /** Steady-state full-resync interval while the SSE stream is healthy. */
5
+ steadyIntervalMs: number;
6
+ /** Resync interval while the stream is down but the server is reachable. */
7
+ streamDownResyncMs: number;
8
+ /** First retry delay after a failed full fetch (escalates to max). */
9
+ retryInitialMs: number;
10
+ /** Cap on the escalating retry delay after repeated fetch failures. */
11
+ retryMaxMs: number;
12
+ /** No stream activity within this window marks the stream unhealthy. */
13
+ streamStaleAfterMs: number;
14
+ }
15
+ export declare const DEFAULT_SYNC_TIMING: SyncTiming;
16
+ interface SyncManagerOptions {
17
+ /** Fetch the full flag set from the server. Throws on failure. */
18
+ fetchAll: () => Promise<Flag[]>;
19
+ /** Called with the authoritative full flag set after every successful sync. */
20
+ onSynced: (flags: Flag[]) => void;
21
+ timing?: Partial<SyncTiming>;
22
+ /** Returns epoch-ms; injectable for tests. Defaults to Date.now. */
23
+ now?: () => number;
24
+ log?: (msg: string) => void;
25
+ }
26
+ /**
27
+ * Drives full flag resynchronisation so the local copy is never out of sync
28
+ * with the server unless the connection is completely down.
29
+ *
30
+ * Cadence is chosen each tick from observed health:
31
+ *
32
+ * - **Last fetch failed** → aggressive retry (escalating {@link SyncTiming.retryInitialMs}
33
+ * → {@link SyncTiming.retryMaxMs}). Covers both boot and mid-flight outages:
34
+ * "retry frequently until successful".
35
+ * - **Stream healthy** (recent ping) → steady 10-minute safety-net resync;
36
+ * SSE delivers individual changes in between.
37
+ * - **Stream down but server reachable** → fast 30-second resync so flags
38
+ * cannot drift while the realtime channel is dead.
39
+ *
40
+ * A stream reconnect triggers an immediate resync to recover any change events
41
+ * missed while disconnected.
42
+ */
43
+ export declare class SyncManager {
44
+ private readonly fetchAll;
45
+ private readonly onSynced;
46
+ private readonly timing;
47
+ private readonly now;
48
+ private readonly log;
49
+ private timer;
50
+ private stopped;
51
+ private running;
52
+ private lastFetchOk;
53
+ private retryMs;
54
+ private streamConnected;
55
+ private lastStreamActivity;
56
+ private streamDropped;
57
+ /** Resolves once the first successful full sync completes. */
58
+ readonly firstSync: Promise<void>;
59
+ private resolveFirstSync;
60
+ constructor(options: SyncManagerOptions);
61
+ /** True once at least one full sync has succeeded. */
62
+ get isSynced(): boolean;
63
+ /**
64
+ * Begin the sync loop. Runs one sync immediately, then self-schedules.
65
+ * Returns when the loop is armed (does not wait for the first sync — await
66
+ * {@link firstSync} for that).
67
+ */
68
+ start(): void;
69
+ /**
70
+ * Seed the engine with an already-fetched flag set (e.g. the boot fetch) so
71
+ * it applies it via {@link SyncManagerOptions.onSynced} and schedules the
72
+ * next resync, avoiding an immediate duplicate fetch.
73
+ */
74
+ seed(flags: Flag[]): void;
75
+ /** Stop all scheduled syncs. */
76
+ stop(): void;
77
+ /**
78
+ * Record that the SSE stream connected.
79
+ *
80
+ * On a reconnect after a drop, resync immediately to recover change events
81
+ * missed while disconnected. The first-ever open is benign — boot already
82
+ * loaded the full set (via {@link seed} or the initial fetch) — so it only
83
+ * reschedules the next tick to reflect the now-healthy steady cadence
84
+ * instead of forcing a redundant fetch.
85
+ */
86
+ noteStreamOpen(): void;
87
+ /** Record inbound stream activity (heartbeat or data event). */
88
+ noteStreamActivity(): void;
89
+ /** Record that the SSE stream errored / closed. */
90
+ noteStreamError(): void;
91
+ private streamHealthy;
92
+ /** Force a resync as soon as possible without waiting for the next tick. */
93
+ private triggerNow;
94
+ /**
95
+ * Recompute the next tick's delay from current health without fetching.
96
+ * Used when stream health changes (e.g. the first open turns an unhealthy
97
+ * 30s cadence into the steady 10-minute one) but no immediate resync is
98
+ * warranted.
99
+ */
100
+ private reschedule;
101
+ private tick;
102
+ private schedule;
103
+ }
104
+ export {};
105
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,8EAA8E;AAC9E,MAAM,WAAW,UAAU;IACzB,yEAAyE;IACzE,gBAAgB,EAAE,MAAM,CAAC;IACzB,4EAA4E;IAC5E,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sEAAsE;IACtE,cAAc,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,UAAU,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,kBAAkB,EAAE,MAAM,CAAC;CAC5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IASzB,gCAAgC;IAChC,IAAI,IAAI,IAAI;IAQZ;;;;;;;;OAQG;IACH,cAAc,IAAI,IAAI;IAWtB,gEAAgE;IAChE,kBAAkB,IAAI,IAAI;IAI1B,mDAAmD;IACnD,eAAe,IAAI,IAAI;IAKvB,OAAO,CAAC,aAAa;IAOrB,4EAA4E;IAC5E,OAAO,CAAC,UAAU;IASlB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;YASJ,IAAI;IAkBlB,OAAO,CAAC,QAAQ;CAkBjB"}
@@ -0,0 +1,187 @@
1
+ export const DEFAULT_SYNC_TIMING = {
2
+ steadyIntervalMs: 600_000, // 10 minutes — safety net while SSE keeps us live.
3
+ streamDownResyncMs: 30_000, // poll every 30s when the stream is dead.
4
+ retryInitialMs: 1_000,
5
+ retryMaxMs: 15_000,
6
+ streamStaleAfterMs: 30_000, // server pings every ~10s; 30s = three missed.
7
+ };
8
+ /**
9
+ * Drives full flag resynchronisation so the local copy is never out of sync
10
+ * with the server unless the connection is completely down.
11
+ *
12
+ * Cadence is chosen each tick from observed health:
13
+ *
14
+ * - **Last fetch failed** → aggressive retry (escalating {@link SyncTiming.retryInitialMs}
15
+ * → {@link SyncTiming.retryMaxMs}). Covers both boot and mid-flight outages:
16
+ * "retry frequently until successful".
17
+ * - **Stream healthy** (recent ping) → steady 10-minute safety-net resync;
18
+ * SSE delivers individual changes in between.
19
+ * - **Stream down but server reachable** → fast 30-second resync so flags
20
+ * cannot drift while the realtime channel is dead.
21
+ *
22
+ * A stream reconnect triggers an immediate resync to recover any change events
23
+ * missed while disconnected.
24
+ */
25
+ export class SyncManager {
26
+ fetchAll;
27
+ onSynced;
28
+ timing;
29
+ now;
30
+ log;
31
+ timer = null;
32
+ stopped = false;
33
+ running = false;
34
+ lastFetchOk = false;
35
+ retryMs;
36
+ streamConnected = false;
37
+ lastStreamActivity = 0;
38
+ streamDropped = false;
39
+ /** Resolves once the first successful full sync completes. */
40
+ firstSync;
41
+ resolveFirstSync;
42
+ constructor(options) {
43
+ this.fetchAll = options.fetchAll;
44
+ this.onSynced = options.onSynced;
45
+ this.timing = { ...DEFAULT_SYNC_TIMING, ...(options.timing ?? {}) };
46
+ this.now = options.now ?? Date.now;
47
+ this.log = options.log ?? (() => { });
48
+ this.retryMs = this.timing.retryInitialMs;
49
+ this.firstSync = new Promise((resolve) => {
50
+ this.resolveFirstSync = resolve;
51
+ });
52
+ }
53
+ /** True once at least one full sync has succeeded. */
54
+ get isSynced() {
55
+ return this.lastFetchOk;
56
+ }
57
+ /**
58
+ * Begin the sync loop. Runs one sync immediately, then self-schedules.
59
+ * Returns when the loop is armed (does not wait for the first sync — await
60
+ * {@link firstSync} for that).
61
+ */
62
+ start() {
63
+ if (this.stopped)
64
+ return;
65
+ void this.tick();
66
+ }
67
+ /**
68
+ * Seed the engine with an already-fetched flag set (e.g. the boot fetch) so
69
+ * it applies it via {@link SyncManagerOptions.onSynced} and schedules the
70
+ * next resync, avoiding an immediate duplicate fetch.
71
+ */
72
+ seed(flags) {
73
+ if (this.stopped)
74
+ return;
75
+ this.lastFetchOk = true;
76
+ this.retryMs = this.timing.retryInitialMs;
77
+ this.onSynced(flags);
78
+ this.resolveFirstSync();
79
+ this.schedule();
80
+ }
81
+ /** Stop all scheduled syncs. */
82
+ stop() {
83
+ this.stopped = true;
84
+ if (this.timer) {
85
+ clearTimeout(this.timer);
86
+ this.timer = null;
87
+ }
88
+ }
89
+ /**
90
+ * Record that the SSE stream connected.
91
+ *
92
+ * On a reconnect after a drop, resync immediately to recover change events
93
+ * missed while disconnected. The first-ever open is benign — boot already
94
+ * loaded the full set (via {@link seed} or the initial fetch) — so it only
95
+ * reschedules the next tick to reflect the now-healthy steady cadence
96
+ * instead of forcing a redundant fetch.
97
+ */
98
+ noteStreamOpen() {
99
+ this.streamConnected = true;
100
+ this.lastStreamActivity = this.now();
101
+ if (this.streamDropped) {
102
+ this.streamDropped = false;
103
+ this.triggerNow();
104
+ }
105
+ else {
106
+ this.reschedule();
107
+ }
108
+ }
109
+ /** Record inbound stream activity (heartbeat or data event). */
110
+ noteStreamActivity() {
111
+ this.lastStreamActivity = this.now();
112
+ }
113
+ /** Record that the SSE stream errored / closed. */
114
+ noteStreamError() {
115
+ this.streamConnected = false;
116
+ this.streamDropped = true;
117
+ }
118
+ streamHealthy() {
119
+ return (this.streamConnected &&
120
+ this.now() - this.lastStreamActivity <= this.timing.streamStaleAfterMs);
121
+ }
122
+ /** Force a resync as soon as possible without waiting for the next tick. */
123
+ triggerNow() {
124
+ if (this.stopped || this.running)
125
+ return;
126
+ if (this.timer) {
127
+ clearTimeout(this.timer);
128
+ this.timer = null;
129
+ }
130
+ void this.tick();
131
+ }
132
+ /**
133
+ * Recompute the next tick's delay from current health without fetching.
134
+ * Used when stream health changes (e.g. the first open turns an unhealthy
135
+ * 30s cadence into the steady 10-minute one) but no immediate resync is
136
+ * warranted.
137
+ */
138
+ reschedule() {
139
+ if (this.stopped || this.running)
140
+ return;
141
+ if (this.timer) {
142
+ clearTimeout(this.timer);
143
+ this.timer = null;
144
+ }
145
+ this.schedule();
146
+ }
147
+ async tick() {
148
+ if (this.stopped || this.running)
149
+ return;
150
+ this.running = true;
151
+ try {
152
+ const flags = await this.fetchAll();
153
+ this.lastFetchOk = true;
154
+ this.retryMs = this.timing.retryInitialMs;
155
+ this.onSynced(flags);
156
+ this.resolveFirstSync();
157
+ }
158
+ catch (err) {
159
+ this.lastFetchOk = false;
160
+ this.log(`full resync failed: ${String(err)}`);
161
+ }
162
+ finally {
163
+ this.running = false;
164
+ this.schedule();
165
+ }
166
+ }
167
+ schedule() {
168
+ if (this.stopped)
169
+ return;
170
+ let delay;
171
+ if (!this.lastFetchOk) {
172
+ delay = this.retryMs;
173
+ this.retryMs = Math.min(this.retryMs * 2, this.timing.retryMaxMs);
174
+ }
175
+ else if (this.streamHealthy()) {
176
+ delay = this.timing.steadyIntervalMs;
177
+ }
178
+ else {
179
+ delay = this.timing.streamDownResyncMs;
180
+ }
181
+ this.timer = setTimeout(() => {
182
+ this.timer = null;
183
+ void this.tick();
184
+ }, delay);
185
+ }
186
+ }
187
+ //# sourceMappingURL=sync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.js","sourceRoot":"","sources":["../../src/sync.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,gBAAgB,EAAE,OAAO,EAAE,mDAAmD;IAC9E,kBAAkB,EAAE,MAAM,EAAE,0CAA0C;IACtE,cAAc,EAAE,KAAK;IACrB,UAAU,EAAE,MAAM;IAClB,kBAAkB,EAAE,MAAM,EAAE,+CAA+C;CAC5E,CAAC;AAaF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,WAAW;IACL,QAAQ,CAAwB;IAChC,QAAQ,CAA0B;IAClC,MAAM,CAAa;IACnB,GAAG,CAAe;IAClB,GAAG,CAAwB;IAEpC,KAAK,GAAyC,IAAI,CAAC;IACnD,OAAO,GAAG,KAAK,CAAC;IAChB,OAAO,GAAG,KAAK,CAAC;IAChB,WAAW,GAAG,KAAK,CAAC;IACpB,OAAO,CAAS;IAEhB,eAAe,GAAG,KAAK,CAAC;IACxB,kBAAkB,GAAG,CAAC,CAAC;IACvB,aAAa,GAAG,KAAK,CAAC;IAE9B,8DAA8D;IACrD,SAAS,CAAgB;IAC1B,gBAAgB,CAAc;IAEtC,YAAY,OAA2B;QACrC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,mBAAmB,EAAE,GAAG,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,CAAC;QACpE,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC;QACnC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,E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"}
@@ -2,7 +2,7 @@
2
2
  * DeploySentry SDK type definitions.
3
3
  */
4
4
  /** Categories that classify the intent and lifecycle of a feature flag. */
5
- export type FlagCategory = 'release' | 'feature' | 'experiment' | 'ops' | 'permission';
5
+ export type FlagCategory = 'release' | 'feature' | 'experiment' | 'ops' | 'permission' | 'envvar';
6
6
  /** Rich metadata attached to every feature flag. */
7
7
  export interface FlagMetadata {
8
8
  /** Categorisation that drives lifecycle policies. */
@@ -31,6 +31,40 @@ export interface Flag {
31
31
  /** ISO-8601 timestamp of the last update. */
32
32
  updatedAt: string;
33
33
  }
34
+ /**
35
+ * Where an inspected flag's current value originated.
36
+ *
37
+ * - `server` — fetched live from the API and still within its cache TTL.
38
+ * - `cache` — a previously-fetched server value whose TTL has elapsed but
39
+ * is still being served (server currently unreachable).
40
+ * - `file` — an offline file: a `mode: 'file'` config, or the offline
41
+ * defaults loaded via `loadDefaults*()` used as a fallback.
42
+ * - `default`— no value from any source; callers receive their coded default.
43
+ */
44
+ export type FlagSource = 'server' | 'cache' | 'file' | 'default';
45
+ /**
46
+ * A read-only view of a single flag's resolved value and provenance,
47
+ * suitable for wiring into an admin or support panel. Produced by
48
+ * {@link DeploySentryClient.inspect}.
49
+ */
50
+ export interface FlagInspection {
51
+ /** The flag key. */
52
+ key: string;
53
+ /** The currently-resolved value (parsed to its declared type). */
54
+ value: unknown;
55
+ /** The flag's value type. `unknown` when it cannot be determined. */
56
+ type: 'boolean' | 'integer' | 'number' | 'string' | 'json' | 'unknown';
57
+ /** Whether the flag is enabled in the resolved environment. */
58
+ enabled: boolean;
59
+ /** Where {@link value} came from. */
60
+ source: FlagSource;
61
+ /** Evaluation reason code (e.g. LIVE, CACHE, OFFLINE_FILE, OFFLINE_DEFAULT, DEFAULT). */
62
+ reason: string;
63
+ /** ISO-8601 timestamp the value was last fetched / loaded. Undefined for `default`. */
64
+ fetchedAt?: string;
65
+ /** True when {@link source} is `cache` and the entry is past its TTL. */
66
+ stale: boolean;
67
+ }
34
68
  /** Contextual information sent with every evaluation request. */
35
69
  export interface EvaluationContext {
36
70
  /** Identifier of the user being evaluated. */
@@ -79,6 +113,49 @@ export interface ClientOptions {
79
113
  flagFilePath?: string;
80
114
  /** Called whenever the flag cache is refreshed from an SSE change event. */
81
115
  onFlagChange?: (flags: Flag[]) => void;
116
+ /**
117
+ * Path to a local JSON file where the SDK persists the last fully-synced
118
+ * flag set. When set, the client survives a server outage on boot by
119
+ * restoring this snapshot, and the resilient sync engine retries the initial
120
+ * fetch in the background until it succeeds instead of throwing. Omit to keep
121
+ * the legacy in-memory-only behaviour (boot fetch failure throws).
122
+ */
123
+ persistencePath?: string;
124
+ /**
125
+ * Steady-state full-resync interval in ms while the SSE stream is healthy.
126
+ * Default: 600_000 (10 minutes). When the stream goes quiet the engine
127
+ * resyncs far more aggressively regardless of this value.
128
+ */
129
+ resyncIntervalMs?: number;
130
+ /**
131
+ * Application UUID. Required when `reportStatus` is true. Distinct from
132
+ * `application` (the slug used for flag evaluation) because the status
133
+ * endpoint is keyed on the UUID.
134
+ */
135
+ applicationId?: string;
136
+ /** Enable the status reporter. Default: false. */
137
+ reportStatus?: boolean;
138
+ /** Interval in ms between status reports. Default: 30_000. 0 = send once on init. */
139
+ reportStatusIntervalMs?: number;
140
+ /** Override the auto-detected version string. */
141
+ reportStatusVersion?: string;
142
+ /** Commit SHA reported alongside the version. */
143
+ reportStatusCommitSha?: string;
144
+ /** Optional deploy-slot tag (`stable` / `canary`). */
145
+ reportStatusDeploySlot?: string;
146
+ /** Arbitrary tags attached to every report. */
147
+ reportStatusTags?: Record<string, string>;
148
+ /**
149
+ * Optional callback resolving the current health. If omitted the reporter
150
+ * sends `state: 'healthy'` on every tick (the "process alive" floor).
151
+ */
152
+ reportStatusHealthProvider?: () => HealthReport | Promise<HealthReport>;
153
+ }
154
+ /** Shape returned by a status reporter's health provider. */
155
+ export interface HealthReport {
156
+ state: 'healthy' | 'degraded' | 'unhealthy' | 'unknown';
157
+ score?: number;
158
+ reason?: string;
82
159
  }
83
160
  export interface FlagConfig {
84
161
  version: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,KAAK,GAAG,YAAY,CAAC;AAEvF,oDAAoD;AACpD,MAAM,WAAW,YAAY;IAC3B,qDAAqD;IACrD,QAAQ,EAAE,YAAY,CAAC;IACvB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,wDAAwD;IACxD,WAAW,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,0DAA0D;AAC1D,MAAM,WAAW,IAAI;IACnB,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,oEAAoE;IACpE,KAAK,EAAE,OAAO,CAAC;IACf,yCAAyC;IACzC,QAAQ,EAAE,YAAY,CAAC;IACvB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,iEAAiE;AACjE,MAAM,WAAW,iBAAiB;IAChC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,wEAAwE;AACxE,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO;IAC3C,uCAAuC;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,2CAA2C;IAC3C,KAAK,EAAE,CAAC,C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AM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClE,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1B;AACD,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC;AAED,wDAAwD;AACxD,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;IACvF,OAAO,EAAE,CAAC,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dr-sentry/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Official Node.js SDK for the DeploySentry platform – feature flag evaluation with rich metadata",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",