|
1 | 1 | { |
2 | 2 | "name": "builder", |
3 | 3 | "specifier": "@probitas/builder", |
4 | | - "version": "0.4.2", |
| 4 | + "version": "0.4.4", |
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/probitas-test/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.4.2/scenario_builder.ts", |
| 11 | + "filename": "https://jsr.io/@probitas/builder/0.4.4/scenario_builder.ts", |
12 | 12 | "line": 644, |
13 | 13 | "col": 0, |
14 | 14 | "byteIndex": 20517 |
|
102 | 102 | "name": "BuilderStepContext", |
103 | 103 | "isDefault": false, |
104 | 104 | "location": { |
105 | | - "filename": "https://jsr.io/@probitas/builder/0.4.2/types.ts", |
| 105 | + "filename": "https://jsr.io/@probitas/builder/0.4.4/types.ts", |
106 | 106 | "line": 44, |
107 | 107 | "col": 0, |
108 | 108 | "byteIndex": 1337 |
|
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.4.2/types.ts", |
| 166 | + "filename": "https://jsr.io/@probitas/builder/0.4.4/types.ts", |
167 | 167 | "line": 55, |
168 | 168 | "col": 2, |
169 | 169 | "byteIndex": 1678 |
|
188 | 188 | "doc": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n- `ctx.results[0]` - First step's result\n- `ctx.results[1]` - Second step's result" |
189 | 189 | }, |
190 | 190 | "location": { |
191 | | - "filename": "https://jsr.io/@probitas/builder/0.4.2/types.ts", |
| 191 | + "filename": "https://jsr.io/@probitas/builder/0.4.4/types.ts", |
192 | 192 | "line": 64, |
193 | 193 | "col": 2, |
194 | 194 | "byteIndex": 1912 |
|
213 | 213 | "doc": "Named resources registered with `.resource()`.\n\nResources are typed based on their registration:\n```ts\nimport { scenario } from \"@probitas/builder\";\n\n// Mock database connection for example\nconst createDbConnection = () => ({ query: (_sql: string) => [{ id: 1 }] });\n\nscenario(\"test\")\n .resource(\"db\", () => createDbConnection())\n .step((ctx) => ctx.resources.db.query(\"SELECT 1\"))\n .build();\n```" |
214 | 214 | }, |
215 | 215 | "location": { |
216 | | - "filename": "https://jsr.io/@probitas/builder/0.4.2/types.ts", |
| 216 | + "filename": "https://jsr.io/@probitas/builder/0.4.4/types.ts", |
217 | 217 | "line": 82, |
218 | 218 | "col": 2, |
219 | 219 | "byteIndex": 2415 |
|
331 | 331 | "name": "BuilderStepFunction", |
332 | 332 | "isDefault": false, |
333 | 333 | "location": { |
334 | | - "filename": "https://jsr.io/@probitas/builder/0.4.2/types.ts", |
| 334 | + "filename": "https://jsr.io/@probitas/builder/0.4.4/types.ts", |
335 | 335 | "line": 117, |
336 | 336 | "col": 0, |
337 | 337 | "byteIndex": 3428 |
|
551 | 551 | "name": "BuilderStepDefinition", |
552 | 552 | "isDefault": false, |
553 | 553 | "location": { |
554 | | - "filename": "https://jsr.io/@probitas/builder/0.4.2/types.ts", |
| 554 | + "filename": "https://jsr.io/@probitas/builder/0.4.4/types.ts", |
555 | 555 | "line": 139, |
556 | 556 | "col": 0, |
557 | 557 | "byteIndex": 4203 |
|
613 | 613 | "doc": "Step function to execute" |
614 | 614 | }, |
615 | 615 | "location": { |
616 | | - "filename": "https://jsr.io/@probitas/builder/0.4.2/types.ts", |
| 616 | + "filename": "https://jsr.io/@probitas/builder/0.4.4/types.ts", |
617 | 617 | "line": 146, |
618 | 618 | "col": 2, |
619 | 619 | "byteIndex": 4443 |
|
0 commit comments