Closed alexeyr-ci closed 4 days ago
The changes in this pull request detail the upgrade from Shakapacker v7 to v8, highlighting the removal of deprecated functions, a shift to package manager-agnostic dependency management, and the discontinuation of support for Ruby 2.6 and Node v12. Key updates include the necessity of setting the SHAKAPACKER_ASSET_HOST
environment variable, the renaming of the check_yarn
rake task to check_manager
, and the removal of all references to webpacker
. Additionally, automatic installation of JavaScript dependencies during asset precompilation has been eliminated, requiring users to manage dependencies manually.
File | Change Summary |
---|---|
docs/v8_upgrade.md | - Removed deprecated functions and features. - Transitioned to package manager-agnostic approach. - Discontinued support for Ruby 2.6 and Node v12. - Retained behavior of omitting CDN asset host but requires careful asset compilation management. - packageManager property in package.json is now essential.- Renamed check_yarn to check_manager .- Removed all references to webpacker .- JavaScript dependencies no longer installed automatically during assets:precompile .- Enabled ensure_consistent_versioning by default.- Updated function usage: globalMutableWebpackConfig → generateWebpackConfig() .- Stripped additional_paths and removed several miscellaneous functions. |
🐰 In the garden, changes bloom,
Shakapacker sheds its gloom.
From v7 to v8, we leap and bound,
With new paths and tasks profound.
Dependencies we now must tend,
A brighter future, around the bend! 🌸
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary
The install command given for Yarn Classic only works for Yarn Berry. The command given for Yarn Berry works, but only due to backward compatibility. See https://yarnpkg.com/cli/install:
Separately, removed a duplicate sentence.
Pull Request checklist
Other Information
Summary by CodeRabbit
SHAKAPACKER_ASSET_HOST
environment variable.packageManager
property inpackage.json
.check_yarn
rake task tocheck_manager
.