You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phase 7 — Programmatic API:createYrestServer factory to embed the mock server directly in test suites (Vitest, Playwright, Cypress) without touching the CLI
yrest tagged template literal: define inline YAML data in TypeScript with automatic dedent and interpolation support — const data = yrest\users: [...]``
In-memory storage:createYrestServer({ data }) runs fully in-memory with no db.yml file required; each test instance is isolated and stateless
port: 0 support: assigns a random available port at startup — no port conflicts between parallel test workers
src/server/index.ts barrel: unified import point for createServer and createYrestServerFromStorage
GitHub Release notes now populated from CHANGELOG.md instead of auto-generated commit list
createYrestServerFromStorage extracted to src/server/yrestServer.ts as shared lifecycle core used by both CLI and programmatic API — eliminates duplicated Fastify listen/close logic
Public exports in src/index.ts reorganised into two sections: Programmatic API and low-level building blocks
Fixed
start() called twice no longer leaks an orphaned Fastify instance — idempotent by guard
yrest template now throws a descriptive [yrest] error when interpolating an object or array instead of silently producing invalid YAML