Breaking changes:
- upgrade ajv validation from v6 to v8
- drop Node.js v10.x support
Features:
- add
delaymethod 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-configas dependency
Features:
- when serving
/app-config.js, auto-import variables defined in.env
Chores:
- use
@staticdeploy/app-configinstead 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
sslfolder 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
.jshandler files - throw an informative error when a handler file doesn't export a function
Features:
- add
--requireoption - increase body length limit for json requests
First stable, acceptably-bug-free release.