refactor: improve code quality and modernize toolchain#50
Merged
Conversation
- Create _BaseHookResult<T> base class for common functionality - Extract _applyWrapper helper function for wrapper logic - Add _kEmptyWidget and _kDeprecationMessage constants
- Remove empty debug() implementation from HookResult - Remove empty debug() implementation from _HookTestingAction - Update test to focus on actual functionality instead of debug calls
- Fix React terminology (component → widget) for Flutter context - Update error message to actual Flutter hooks error - Improve installation example with proper YAML syntax and version - Remove overly promotional language
- Add GitHub Actions for automated releases with pub.dev publishing - Configure git-cliff for conventional commit changelog generation - Update CI workflow to use bun instead of npm
- Replace npm with bun for package management - Switch from Husky to Lefthook for git hooks - Update package.json scripts and dependencies
- Update melos and pubspec configurations - Add project documentation and guidelines - Update renovate and prettier configurations
a53b89f to
7c4ac66
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves code quality and modernizes the project toolchain through several key changes:
Code Quality Improvements
_BaseHookResult<T>base class to consolidate shared functionality between hook result classes_kEmptyWidget,_kDeprecationMessageconstants and_applyWrapperhelper functiondebug()methods that provided no actual debugging functionalityToolchain Modernization
Documentation Improvements
Test Plan
Breaking Changes
None. All changes are internal refactoring and toolchain updates that maintain full API compatibility.