Skip to content

0.13.0 - Module Stacker

Choose a tag to compare

@scottcorgan scottcorgan released this 14 Aug 21:53
· 427 commits to master since this release

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