You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove PackerUtils.packer abstraction and use Shakapacker directly (#1801)
- Remove unnecessary packer method that was an abstraction layer
- Replace all ReactOnRails::PackerUtils.packer calls with ::Shakapacker
- Update all tests to mock ::Shakapacker directly instead of packer method
- Fix configuration_spec.rb to use direct Shakapacker mocks
- Update documentation to consistently use bundle exec rubocop
- Simplifies codebase by removing abstraction that's no longer needed
- All tests passing, functionality preserved
This removes the abstraction layer that was originally created to support
multiple webpack tools but is no longer necessary since we only support
Shakapacker. The code is now cleaner and more direct.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,11 @@ Changes since the last non-beta release.
32
32
#### Bug Fixes
33
33
34
34
-**Doctor rake task**: Fixed LoadError in `rake react_on_rails:doctor` when using packaged gem. The task was trying to require excluded `rakelib/task_helpers` file. [PR 1795](https://github.com/shakacode/react_on_rails/pull/1795)
35
+
-**Shakapacker version requirements**: Fixed inconsistent version requirements between basic pack generation (6.5.1+) and advanced auto-registration features (7.0.0+). Added backward compatibility for users on Shakapacker 6.5.1-6.9.x while providing clear upgrade guidance for advanced features. Added new constants `MINIMUM_SHAKAPACKER_VERSION_FOR_AUTO_REGISTRATION` and improved version checking performance with caching. [PR 1798](https://github.com/shakacode/react_on_rails/pull/1798)
36
+
37
+
#### Code Cleanup
38
+
39
+
-**PackerUtils abstraction removal**: Removed unnecessary `PackerUtils.packer` abstraction method and replaced all calls with direct `::Shakapacker` usage. This simplifies the codebase by eliminating an abstraction layer that was originally created to support multiple webpack tools but is no longer needed since we only support Shakapacker. All tests updated accordingly. [PR 1798](https://github.com/shakacode/react_on_rails/pull/1798) by [claude-code](https://claude.ai/code)
0 commit comments