|
1 | 1 | { |
2 | 2 | "name": "builder", |
3 | 3 | "specifier": "@probitas/builder", |
4 | | - "version": "0.3.0", |
| 4 | + "version": "0.3.1", |
5 | 5 | "moduleDoc": "Builder module for creating scenario definitions with a fluent, type-safe API.\n\nThis package provides the {@linkcode scenario} fn function that returns a builder\nfor constructing scenario definitions. The builder uses method chaining to define\nresources, setup functions, and test steps with full TypeScript type inference.\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas)\n- [@probitas/probitas](https://jsr.io/@probitas/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas/core](https://jsr.io/@probitas/core) | Core type definitions used by this builder |\n| [@probitas/runner](https://jsr.io/@probitas/runner) | Executes scenarios built with this package |\n\n## Key Features\n\n- **Fluent API**: Chain methods naturally to build complex scenarios\n- **Type-safe context**: Each step receives typed access to previous step results\n- **Resource management**: Register resources with automatic lifecycle handling\n- **Setup/Cleanup**: Define setup functions with automatic cleanup support\n- **Configurable defaults**: Override timeout and retry settings at any level\n\n## Core Exports\n\n- {@linkcode scenario} - Factory function to create a new scenario builder\n- {@linkcode StepContext} - Type representing the context passed to step functions\n- {@linkcode StepFunction} - Type signature for step functions\n- {@linkcode SetupFunction} - Type signature for setup functions\n- {@linkcode ResourceFunction} - Type signature for resource fn functions\n- {@linkcode BuilderScenarioOptions} - Partial options for scenario configuration\n- {@linkcode BuilderStepOptions} - Partial options for step configuration\n- {@linkcode DEFAULT_SCENARIO_OPTIONS} - Default values for scenario options\n- {@linkcode DEFAULT_STEP_OPTIONS} - Default values for step options\n", |
6 | 6 | "exports": [ |
7 | 7 | { |
8 | 8 | "name": "scenario", |
9 | 9 | "isDefault": false, |
10 | 10 | "location": { |
11 | | - "filename": "https://jsr.io/@probitas/builder/0.3.0/scenario_builder.ts", |
| 11 | + "filename": "https://jsr.io/@probitas/builder/0.3.1/scenario_builder.ts", |
12 | 12 | "line": 571, |
13 | 13 | "col": 0, |
14 | 14 | "byteIndex": 18358 |
|
102 | 102 | "name": "BuilderStepContext", |
103 | 103 | "isDefault": false, |
104 | 104 | "location": { |
105 | | - "filename": "https://jsr.io/@probitas/builder/0.3.0/types.ts", |
| 105 | + "filename": "https://jsr.io/@probitas/builder/0.3.1/types.ts", |
106 | 106 | "line": 40, |
107 | 107 | "col": 0, |
108 | 108 | "byteIndex": 1233 |
|
163 | 163 | "doc": "Result from the previous step.\n\nFully typed based on what the previous step returned.\nFor the first step, this is `unknown`." |
164 | 164 | }, |
165 | 165 | "location": { |
166 | | - "filename": "https://jsr.io/@probitas/builder/0.3.0/types.ts", |
| 166 | + "filename": "https://jsr.io/@probitas/builder/0.3.1/types.ts", |
167 | 167 | "line": 51, |
168 | 168 | "col": 2, |
169 | 169 | "byteIndex": 1574 |
|
188 | 188 | "doc": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n```ts\nctx.results[0] // First step's result\nctx.results[1] // Second step's result\n```" |
189 | 189 | }, |
190 | 190 | "location": { |
191 | | - "filename": "https://jsr.io/@probitas/builder/0.3.0/types.ts", |
| 191 | + "filename": "https://jsr.io/@probitas/builder/0.3.1/types.ts", |
192 | 192 | "line": 62, |
193 | 193 | "col": 2, |
194 | 194 | "byteIndex": 1824 |
|
213 | 213 | "doc": "Named resources registered with `.resource()`.\n\nResources are typed based on their registration:\n```ts\n.resource(\"db\", () => createDbConnection())\n.step((ctx) => ctx.resources.db.query(...))\n```" |
214 | 214 | }, |
215 | 215 | "location": { |
216 | | - "filename": "https://jsr.io/@probitas/builder/0.3.0/types.ts", |
| 216 | + "filename": "https://jsr.io/@probitas/builder/0.3.1/types.ts", |
217 | 217 | "line": 73, |
218 | 218 | "col": 2, |
219 | 219 | "byteIndex": 2089 |
|
331 | 331 | "name": "BuilderStepFunction", |
332 | 332 | "isDefault": false, |
333 | 333 | "location": { |
334 | | - "filename": "https://jsr.io/@probitas/builder/0.3.0/types.ts", |
| 334 | + "filename": "https://jsr.io/@probitas/builder/0.3.1/types.ts", |
335 | 335 | "line": 102, |
336 | 336 | "col": 0, |
337 | 337 | "byteIndex": 2903 |
|
551 | 551 | "name": "BuilderStepDefinition", |
552 | 552 | "isDefault": false, |
553 | 553 | "location": { |
554 | | - "filename": "https://jsr.io/@probitas/builder/0.3.0/types.ts", |
| 554 | + "filename": "https://jsr.io/@probitas/builder/0.3.1/types.ts", |
555 | 555 | "line": 124, |
556 | 556 | "col": 0, |
557 | 557 | "byteIndex": 3678 |
|
613 | 613 | "doc": "Step function to execute" |
614 | 614 | }, |
615 | 615 | "location": { |
616 | | - "filename": "https://jsr.io/@probitas/builder/0.3.0/types.ts", |
| 616 | + "filename": "https://jsr.io/@probitas/builder/0.3.1/types.ts", |
617 | 617 | "line": 131, |
618 | 618 | "col": 2, |
619 | 619 | "byteIndex": 3918 |
|
769 | 769 | } |
770 | 770 | } |
771 | 771 | ], |
772 | | - "generatedAt": "2025-12-16T07:16:29.870Z" |
| 772 | + "generatedAt": "2025-12-16T18:17:30.878Z" |
773 | 773 | } |
0 commit comments