Closed Judahmeek closed 4 months ago
Reminding about the CHANGELOG step in the PR checklist just in case.
@Judahmeek let's get a release out for this ASAP.
@Judahmeek merge if you're confident
This update to React on Rails enhances the pack generation process, ensuring the import statement is added to the server bundle entrypoint even when packs already exist. It also includes documentation updates, codebase refinements, and a new dependency addition, improving clarity and functionality across the board.
File Path | Change Summary |
---|---|
CHANGELOG.md , docs/.../file-system-based-automated-bundle-generation.md , spec/dummy/client/app/packs/server-bundle.js |
Added and clarified import statements for generated packs, updated documentation for file locations and .gitignore . |
lib/.../helper.rb , lib/.../packs_generator.rb |
Modified function order and method names; added function calls related to pack generation. |
react_on_rails.gemspec |
Added sqlite3 version 1.6 as a dependency. |
spec/dummy/spec/packs_generator_spec.rb |
Added a test to ensure import statements are correctly added in the server bundle. |
Objective | Addressed | Explanation |
---|---|---|
Ensure react_on_rails:generate_packs adds the import statement to the entry point even if packs exist (#1609) |
✅ | |
Prevent duplicate import statements if already present (#1609) | ✅ |
🐰✨ In the lands of code where the bunnies hop, A new update rolls, non-stop. With a tweak and a twist, the packs align, 🌟 Import statements in their prime. Cheers to the devs, with ears so long, In the burrows of Rails, they sing their song. 🎶 🐰✨
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?
when can I merge and ship, @Judahmeek ?
Will resolve #1609
Summary
This PR clarifies what sort of files are generated by ReactOnRails' pack generation & that pack generation users can commit the import statement that the pack generator adds to their server bundle entrypoint.
This PR also addresses the possible edge case of users who have removed the import statement from their server bunle entrypoint, but still have the generated files in their local file system.
Pull Request checklist
Remove this line after checking all the items here. If the item is not applicable to the PR, both check it out and wrap it by
~
.Add the CHANGELOG entry at the top of the file.
This change is
Summary by CodeRabbit
New Features
sqlite3
version1.6
as a dependency to improve database interactions.Documentation
Bug Fixes
Tests