@yolk-sdk/conformance 0.1.0-canary.115 → 0.1.0-canary.116

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/README.md CHANGED
@@ -14,7 +14,7 @@ Canary APIs are unstable. Keep all `@yolk-sdk/*` packages on the same version.
14
14
  ## Install
15
15
 
16
16
  ```bash
17
- pnpm add -D @yolk-sdk/conformance@canary effect@4.0.0
17
+ pnpm add -D @yolk-sdk/conformance@canary effect@4.0.5
18
18
  ```
19
19
 
20
20
  ## Subpaths
@@ -281,7 +281,10 @@ targets, so every case runs there.
281
281
  their union.
282
282
  - Each case runs under `Effect.exit`: typed failures, layer build failures, a throwing `layer`
283
283
  factory, and defects become `failed` results and the run continues. Interruption is not captured:
284
- interrupting the run, or a case interrupting itself, interrupts the whole run.
284
+ interrupting the run, or a case interrupting itself, interrupts the whole run. A typed failure a
285
+ case raises while the run is being interrupted (for example from an uninterruptible cleanup) is
286
+ dropped by Effect: the run ends interrupt-only, with no result for it, so report such problems
287
+ through a side channel.
285
288
  - `concurrency` defaults to 1 (live accounts are shared); results keep case order.
286
289
  - `now` defaults to the Effect `Clock`; `maxFixtureAgeDays` defaults to 30.
287
290
 
@@ -166,6 +166,7 @@ declare const WireFixture: Schema.Struct<{
166
166
  type WireFixture = typeof WireFixture.Type;
167
167
  /** Decode unknown input (for example a JSON file) into a `WireFixture`. */
168
168
  declare const decodeWireFixture: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
169
+ readonly account: string;
169
170
  readonly exchanges: readonly [{
170
171
  readonly request: {
171
172
  readonly method: string;
@@ -176,26 +177,26 @@ declare const decodeWireFixture: (input: unknown, options?: import("effect/Schem
176
177
  readonly body?: Schema.Json | undefined;
177
178
  };
178
179
  readonly response: {
180
+ readonly status: number;
179
181
  readonly headers: {
180
182
  readonly [x: string]: string;
181
183
  };
182
184
  readonly body: string;
183
- readonly status: number;
184
- readonly bodyBase64?: undefined;
185
185
  readonly chunks?: undefined;
186
+ readonly bodyBase64?: undefined;
186
187
  } | {
188
+ readonly status: number;
187
189
  readonly headers: {
188
190
  readonly [x: string]: string;
189
191
  };
190
- readonly status: number;
191
192
  readonly bodyBase64: string;
192
193
  readonly body?: undefined;
193
194
  readonly chunks?: undefined;
194
195
  } | {
196
+ readonly status: number;
195
197
  readonly headers: {
196
198
  readonly [x: string]: string;
197
199
  };
198
- readonly status: number;
199
200
  readonly chunks: readonly (string | {
200
201
  readonly base64: string;
201
202
  })[];
@@ -212,26 +213,26 @@ declare const decodeWireFixture: (input: unknown, options?: import("effect/Schem
212
213
  readonly body?: Schema.Json | undefined;
213
214
  };
214
215
  readonly response: {
216
+ readonly status: number;
215
217
  readonly headers: {
216
218
  readonly [x: string]: string;
217
219
  };
218
220
  readonly body: string;
219
- readonly status: number;
220
- readonly bodyBase64?: undefined;
221
221
  readonly chunks?: undefined;
222
+ readonly bodyBase64?: undefined;
222
223
  } | {
224
+ readonly status: number;
223
225
  readonly headers: {
224
226
  readonly [x: string]: string;
225
227
  };
226
- readonly status: number;
227
228
  readonly bodyBase64: string;
228
229
  readonly body?: undefined;
229
230
  readonly chunks?: undefined;
230
231
  } | {
232
+ readonly status: number;
231
233
  readonly headers: {
232
234
  readonly [x: string]: string;
233
235
  };
234
- readonly status: number;
235
236
  readonly chunks: readonly (string | {
236
237
  readonly base64: string;
237
238
  })[];
@@ -243,7 +244,6 @@ declare const decodeWireFixture: (input: unknown, options?: import("effect/Schem
243
244
  readonly caseId: string;
244
245
  readonly evidence: "verified" | "unverified";
245
246
  readonly recordedAt: string;
246
- readonly account: string;
247
247
  readonly endpoint: string;
248
248
  readonly model?: string | undefined;
249
249
  readonly note?: string | undefined;
@@ -367,11 +367,11 @@ declare const decodePortFixture: (input: unknown, options?: import("effect/Schem
367
367
  readonly id: string;
368
368
  readonly port: string;
369
369
  readonly note?: string | undefined;
370
- readonly failure?: undefined;
371
370
  readonly observed?: {
372
371
  readonly account: string;
373
372
  readonly date: string;
374
373
  } | undefined;
374
+ readonly failure?: undefined;
375
375
  } | {
376
376
  readonly method: string;
377
377
  readonly request: Schema.Json;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolk-sdk/conformance",
3
- "version": "0.1.0-canary.115",
3
+ "version": "0.1.0-canary.116",
4
4
  "description": "Experimental Effect toolkit to record, replay, and fault-inject HTTP wire fixtures, and to define and run conformance cases.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -64,7 +64,7 @@
64
64
  "provenance": true
65
65
  },
66
66
  "dependencies": {
67
- "effect": "4.0.0"
67
+ "effect": "4.0.5"
68
68
  },
69
69
  "scripts": {
70
70
  "build": "tsdown",