Releases: firebase/superstatic
Releases · firebase/superstatic
v5.0.1
- Removed unused
iltorbdependency.
v5.0.0
- Due to excessive compiler warnings on many platforms, we've decided to remove the new dependency on
shrink-rayand allow for custom compression middleware. - No longer include
shrink-rayadvanced compression by default. compressionoption now takes custom middleware or boolean.gzipoption is deprecated in favor ofcompression.
v4.3.0
- Superstatic will now pass through configuration objects provided as the
compressionparamenter to the underlying compression library, allowing tuning of compression quality/behavior.
v4.2.1
- Silence warning when falling back to gzip compression.
v4.2.0
- Support brotli, zopfli compression via
compressionoption. gzipoption is deprecated in favor ofcompression.
v4.1.1
- Updated outdated dependencies.
- Normalize double-slashes to single slashes.
4.1.0
4.0.2
4.0.1
4.0.0 (Major Release)
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.
routesisrewritesclean_urlsiscleanUrlstrailing_slashistrailingSlashroutesandrewritesnow 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
beforeandafteroptions. - 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.jsas a useful small example and test harness.
- An in-memory provider has been implemented at
.env.jsonis now only loaded when executing via CLI; otherwise env must be specified as a configuration object when calling the middleware.- Added the
stackoption 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.