Breaking changes:
- upgrade ajv validation from v6 to v8
- drop Node.js v10.x support
Features:
- add
delay
method to express response object to allow delaying individual responses
Breaking changes:
- require node >= v10
Features:
- support validating requests and responses with schema files
Features:
- support using custom middleware
Features:
- support parsing and setting cookies in handlers
Fixes:
- correctly declare
@staticdeploy/app-config
as dependency
Features:
- when serving
/app-config.js
, auto-import variables defined in.env
Chores:
- use
@staticdeploy/app-config
instead of@staticdeploy/app-server
Features:
- parse json request bodies in non-strict mode
Fixes:
- don't filter files starting with a dot (issue #5)
Fixes:
- publish
ssl
folder to npm
Features:
- add option (
--useHttps
) to serve via https
Features:
- add option (
--serveConfig
) to serve config script generated by app-server
Rename package from sd-mock-server
to @staticdeploy/mock-server
.
Features:
- support non-json bodies
Features:
- support non
.js
handler files - throw an informative error when a handler file doesn't export a function
Features:
- add
--require
option - increase body length limit for json requests
First stable, acceptably-bug-free release.