CHANGELOG.md in hanami-assets-1.3.5 vs CHANGELOG.md in hanami-assets-2.1.0.beta2
- old
+ new
@@ -1,7 +1,29 @@
# Hanami::Assets
Assets management for Ruby web applications
+## v2.1.0.beta2 - 2023-10-04
+### Added
+- [Luca Guidi] Official support for Ruby: Ruby 3.1, and 3.2
+
+### Changed
+- [Luca Guidi] Drop support for Ruby: MRI 2 and JRuby
+- [Luca Guidi] This gem now requires a working Node and Yarn installation
+- [Tim Riley] Changed the gem to load using Zeitwerk, via `require "hanami/assets"`
+- [Tim Riley] Changed `Hanami::Assets` to a class, initialized with a `Hanami::Assets::Config` (see below) and providing a `#[]` method returning a `Hanami::Assets::Asset` instance per asset.
+- [Tim Riley] Moved `Hanami::Assets::Helpers` to `Hanami::Helpers::AssetsHelper` in the hanami gem (along with various helper methods renamed; see the hanami CHANGELOG for details)
+- [Luca Guidi] Renamed `Hanami::Assets::Configuration` to `Config`
+- [Luca Guidi] Removed `Hanami::Assets.configure`, use `Hanami::Assets::Config.new`
+- [Luca Guidi] Removed `Hanami::Assets.deploy`, `.precompile`, `.load!` as precompile process is now handled via JavaScript
+- [Luca Guidi] Removed `Hanami::Assets.sources`, as third-party libraries should be handled via Yarn
+- [Luca Guidi] Removed `Hanami::Assets::Config#fingerprint`, as fingerprinting will be always activated
+- [Luca Guidi] Changed `Hanami::Assets::Config#subresource_integrity`. To activate the feature, pass an array of algorithms to use (e.g. `config.subresource_integrity = ["sha-384"]`)
+- [Luca Guidi] Removed `Hanami::Assets::Config#cdn`. To activate the feature, pass the CDN base URL to the initializer of the configuration (`base_url` keyword argument).
+- [Luca Guidi] Removed `Hanami::Assets::Config#javascript_compressor` and `stylesheet_compressor`, as the compression is now handled via JavaScript
+- [Luca Guidi] Removed `Hanami::Assets::Config#scheme`, `#host`, `#port`, and `#prefix`. Use `base_url` keyword argument to pass to configuration initializer
+- [Luca Guidi] Removed `Hanami::Assets::Config#root`, `#public_directory`, `#destination_directory`, and `#manifest` as they will now looked up via conventions
+- [Luca Guidi] Moved `Hanami::Assets::Precompiler` and `Watcher` to `hanami-cli`
+
## v1.3.5 - 2021-01-14
### Added
- [Luca Guidi] Official support for Ruby: MRI 3.0
- [Luca Guidi] Official support for Ruby: MRI 2.7