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
//= includedirective support. - Deprecated
BundledAsset#to_a. UseBundledAsset#includedto 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_classis deprecated. - Rename
Asset#digesttoAsset#hexdigest.Asset#digestis 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: trueand 4.x withcompat: false manifest-abc123.jsonrenamed to.sprockets-abc123.json