Repository navigation
Specbook 0.5.0
Generated values now appear only when you write them, and the hosted viewer no longer downloads faker.
What's new
- Hosted viewer and embed ship no faker. ui.specbook.dev and the
dist-viewer/folder in@specbook/uino longer include the 422 KB faker chunk. A{{faker.…}}typed there stops the run with a clear message instead of being sent as text. - No more "Dynamic" example. Each operation has one generated Default; old
dynamic.example.jsonfiles are removed when you regenerate. - Faker is always there for projects.
specbook initadds@faker-js/faker, andfakerfrom@specbook/core/fakeris now typed, so a misspelt generator failstsc. QA can type{{faker.person.firstName}}into any field in the portal. - Smaller builds. A portal ships only the faker locales listed in your config (plus
en), and a browser downloads faker only when a run uses it.specbook testandspecbook bundleleave it out when nothing uses it. - Generated values control. "Synthetic data" is now "Generated values" and is on while the open request or flow uses faker.
specbook test --seedrepeats a run.
Fixes
- A misspelt
{{faker.…}}, or one with arguments, now stops the run and names the placeholder instead of reporting a missing variable or being sent as it is. - The command line reference lists every flag.
Full changelog: v0.4.0...v0.5.0