Skip to content

Releases: rails/sprockets

3.3.0

03 Dec 21:41
Compare
Choose a tag to compare
  • Change internal cache key to use relative asset paths instead of absolute paths.

3.2.0

03 Dec 21:42
Compare
Choose a tag to compare
  • Updated SRI integrity to align with spec changes
  • Deprecated Manifest integrity attribute
  • Cleanup concatenating JS sources with newlines

3.1.0

03 Dec 21:42
Compare
Choose a tag to compare
  • Removed "index" logical path normalization. Asset#logical_path is always the full logical path to the index file.
  • Fixed static asset mtimes
  • Fix manifest cleanup by age
  • Removed redundant minifier level cache
  • Updated SRI format according to spec changes

3.0.3

03 Dec 21:45
Compare
Choose a tag to compare
  • Fix static asset mtime fallback
  • Only warn when specified asset version can not be loaded.

3.0.2

03 Dec 21:46
Compare
Choose a tag to compare
  • Ensure legacy Tilt handlers return String class data. Fixes issues with Haml Tilt handler.
  • Type check and improve error messages raised on bad processor returned results.
  • Improve error message for relative paths not under load path.
  • Changed HTML encoding fallback from ISO-8859-1 to default external.
  • Avoid falling back to 0 mtimes which may cause warnings with tar

3.0.1

03 Dec 21:48
Compare
Choose a tag to compare
  • Fixed Context#depend_on with paths outside the load path.

3.0.0

03 Dec 21:48
Compare
Choose a tag to compare

Guide to upgrading from Sprockets 2.x to 3.x

  • New processor API. Tilt interface is deprecated.
  • Improved file store caching backend.
  • MIME Types now accept charset custom charset detecters. Improves support for UTF-16/32 files.
  • Environment#version no longer affects asset digests. Only used for busting the asset cache.
  • Removed builtin support for LESS.
  • Removed //= include directive support.
  • Deprecated BundledAsset#to_a. Use BundledAsset#included to access debugging subcomponents.
  • Support circular dependencies. For parity with ES6 modules.
  • Manifest compilation will no longer generate .gz files by default. Mixing
    Content-Encoding and ETags is just a bad
    idea
  • Added linked or referenced assets. When an asset is compiled, any of its links will be compiled as well.
  • Introduce some limitations around enumerating all logical paths. 4.x will deprecate it and favor linked manifests for compliation.
  • Add Asset integrity attribute for Subresource Integrity
  • Default digest changed to SHA256. Configuring digest_class is deprecated.
  • Rename Asset#digest to Asset#hexdigest. Asset#digest is deprecated and will
    return a raw byte String in 4.x.
  • Added transitional compatibility flag to Environment#resolve(path, compat: true). 2.x mode operates with compat: true and 4.x with compat: false
  • manifest-abc123.json renamed to .sprockets-abc123.json