Releases: firebase/superstatic
Releases · firebase/superstatic
v4.3.0
- Superstatic will now pass through configuration objects provided as the
compression
paramenter 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
compression
option. gzip
option 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.
routes
isrewrites
clean_urls
iscleanUrls
trailing_slash
istrailingSlash
routes
andrewrites
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
andafter
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.
- An in-memory provider has been implemented at
.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.