Superstatic Versions Save

Superstatic: a static file server for fancy apps.

2.1.3

8 years ago

Released on 3-16-2015

  • #151 - Fix flawed ETag when generating with fs.Stats instance

2.2.0

8 years ago

Released on 4-1-2015

  • #131 - NEW - Configuration option to disable/enable trailing slashes
  • #156 - FIXED - High CPU usage with LiveReload enabled
  • #159 - Update Nash to 2.x
  • #162 - FIXED - Automatic install of services doesn't try to instantiate missing service

4.0.0

8 years ago

This is a major release and contains significant API changes and substantial rewrites throughout Superstatic.

  • All config is now camel-cased and only supports Firebase Hosting-style configuration.
    • routes is rewrites
    • clean_urls is cleanUrls
    • trailing_slash is trailingSlash
    • routes and rewrites now use array syntax (see README)
  • The package has been slimmed down considerably to minimize external dependencies. LiveReload has been removed as a built-in option.
  • Superstatic services have been removed. It is possible to inject middleware before and after any of the existing Superstatic stack middlewares using before and after options.
  • The provider system has been completely rewritten. A provider is now just a simple Promise-returning function that takes a request and a path and returns a Promise resolving to an object including a stream, modified time, size, and etag.
    • An in-memory provider has been implemented at lib/providers/memory.js as a useful small example and test harness.
  • .env.json is now only loaded when executing via CLI; otherwise env must be specified as a configuration object when calling the middleware.
  • Added the stack option to the middleware to allow for custom feature sets. Specifying {stack: 'strict'} will guarantee to only use features that are available in Firebase Hosting production.

1.0.0

9 years ago

Superstatic 0.13.x was 1.0.0 release candidate. It's been out in the wild for a while now and is SOLID.

Superstatic 1.0.0 brings a 1.x unchanging API and the foundation for AMAZING features we have planned for the future.

Enjoy 1.0.0 as a solid, trusted static file server!

0.13.0

9 years ago

View the 0.13.0 milestone for details.

The biggest change in this release is the new dynamic request stacking. By building the app's request middleware stack per request, we gained code flexibility and maintainability through abstracted NPM modules with minimal impact on performance (in fact, that performance was gained back and more by using a faster url parser).

The modules we were able to abstract are the features that end up making Divshot awesome! They are the following:

  • set-headers - Express/Connect middleware to set response headers based on globs
  • cache-control - Express/Connect middleware to set url cache options with globs
  • redirects - Express/Connect middleware for segment-able url redirects
  • not-found - Express/Connect middleware to serve a default not found/404 page
  • broker - Express/Connect middleware that serves local or remote static files
  • clean-urls - Express/Connect middleware to serve static files from cleaner, extensionless urls
  • slashify - Express/Connect middleware to handle trailing slashes with options
  • _GNARLIEST!_ static-router - Express/Connect middleware to server static files based on glob-like routes

Other Updates

  • NEW: #105 - now optionally runs with https
  • NEW: #108 - -o is an alias for --host with cli
  • PERF: #95 - faster url parser increases performance
  • FIXED: #102 - command line config values now override config values in config file
  • FIXED: #97 - hanging requests and memory leak form undrained middleware stack

0.12.0

9 years ago

View the 0.12.0 milestone for details.

Updates

Breaking Changes

0.11.0

9 years ago

A few breaking changes in this release. View the 0.11.0 milestone for details.

Major updates

  • DEPRECATES createServer() - please use superstatic() to create a new instance (similar to Connect)
  • Connect compatible - the instance returned from the superstatic() factory method now returns an instance of Connect with all the Superstatic magic built in
  • CLI update notifier - get notified if there is an update to Superstatic when using the Superstatic CLI
  • Connect 3.0 - Upgraded to Connect 3.0. It forced us to use all the standalone modules that were once Connect modules
  • And again, lots of tests, refactors, and performance improvements!

0.10.0

10 years ago

Lots of updates for this release. View the 0.10.0 milestone for details.

Major updates

  • Redirects - configure redirects with globs, paths, and segements
  • CLI help command - use -h and --help for Superstatic help
  • Lots of tests, refactors, and performance improvements!