Skip to content

Releases: firebase/superstatic

v5.0.1

22 Aug 18:23

Choose a tag to compare

  • Removed unused iltorb dependency.

v5.0.0

21 Aug 21:24

Choose a tag to compare

  • Due to excessive compiler warnings on many platforms, we've decided to remove the new dependency on shrink-ray and allow for custom compression middleware.
  • No longer include shrink-ray advanced compression by default.
  • compression option now takes custom middleware or boolean.
  • gzip option is deprecated in favor of compression.

v4.3.0

15 Aug 18:32

Choose a tag to compare

  • 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

07 Aug 18:52

Choose a tag to compare

  • Silence warning when falling back to gzip compression.

v4.2.0

04 Aug 21:12

Choose a tag to compare

  • Support brotli, zopfli compression via compression option.
  • gzip option is deprecated in favor of compression.

v4.1.1

25 Jul 17:53

Choose a tag to compare

  • Updated outdated dependencies.
  • Normalize double-slashes to single slashes.

4.1.0

27 Apr 17:39

Choose a tag to compare

  • Adds support for extensible rewriters. (#229)
  • Redirects now preserve query parameters. (#228)
  • Superstatic now supports hosting-nested config to support current firebase.json format. (#222, #227)

4.0.2

22 Feb 18:24

Choose a tag to compare

  • #207 - don't allow the filesystem provider to reach directories above the root using relative ../ URLs

4.0.1

29 Dec 19:32

Choose a tag to compare

  • #198 - Allow rewrite globs to match paths with extensions different from destination file.
  • Remove CHANGELOG.md in favor of release list.

4.0.0 (Major Release)

15 Dec 19:52

Choose a tag to compare

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.