3.0.0
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
. UseBundledAsset#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
toAsset#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 withcompat: true
and 4.x withcompat: false
manifest-abc123.json
renamed to.sprockets-abc123.json