2.0.0
Released on 1-26-2015
Breaking Changes
- CLI
- Network stdout is off by default. To enable, use the
--debugflag to enable. --quietflag has been removed in favor of--debug- Gzip is off by default. Use the
--gzipflag to enable.
- Network stdout is off by default. To enable, use the
- API
- By default, Superstatic is a middleware now for an Express/Connect or barebones Node server. See the API docs for more info on options for the middleware
- Since Superstatic gets required as a middleware by default now, this means that if you want Superstatic as a standalone server via the API, then you need to require the server via
var server = require('superstatic/lib/server');. See the API docs for options when instantiating the server. loggeroptions on server is no longer available. Since Superstatic can be required as a middleware and debug is off by default, you can inject your own logger.localEnvis nowenvin middleware/server options- Server methods
listen()andclose()now behave like the bare/default Node http server methods.