Skip to content

@simulacrum/foundation-simulator v0.2.0

Latest
Compare
Choose a tag to compare
@frontsidejack frontsidejack released this 16 Sep 14:28
57eb23a

[0.2.0]

New Features

  • ab1c616 All routes now add a log to the simulation state on every visit. This assists in tracking hits on each simulation route.
  • ad2dbc9 To improve transparency and flexibility, we now include a page at the root that lists all of the routes, and the ability to signal which response to return.
  • f20a3a6 (#283) We now support serving a directly of JSON files through file path routing. Use serveJsonFiles to specify the folder which contains the files to serve.

Enhancements

  • 209ffa5 Add API to configure a delay of all responses with a set interval. Using this in a simulator would enable a feel closer to a real external endpoint.
  • e9c7fed Add option the proxy to real API and save JSON responses in ./src/serve directory.