Skip to content

Specbook 0.5.0

Choose a tag to compare

@ajaishankar ajaishankar released this 18 Oct 13:52
· 34 commits to main since this release

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/ui no 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.json files are removed when you regenerate.
  • Faker is always there for projects. specbook init adds @faker-js/faker, and faker from @specbook/core/faker is now typed, so a misspelt generator fails tsc. 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 test and specbook bundle leave 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 --seed repeats 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