feat: [#650] refactor package management to support fluent method#1010
Merged
feat: [#650] refactor package management to support fluent method#1010
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1010 +/- ##
==========================================
+ Coverage 70.23% 70.76% +0.53%
==========================================
Files 169 170 +1
Lines 11456 11575 +119
==========================================
+ Hits 8046 8191 +145
+ Misses 3059 3034 -25
+ Partials 351 350 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.50.
| Benchmark suite | Current: 3e75ae1 | Previous: 6baccbc | Ratio |
|---|---|---|---|
BenchmarkFile_ReadWrite |
315102 ns/op 2072 B/op 28 allocs/op |
203967 ns/op 2073 B/op 28 allocs/op |
1.54 |
BenchmarkFile_ReadWrite - ns/op |
315102 ns/op |
203967 ns/op |
1.54 |
This comment was automatically generated by workflow using github-action-benchmark.
hwbrzzl
reviewed
Apr 16, 2025
Contributor
hwbrzzl
left a comment
There was a problem hiding this comment.
Amazing PR 👍 left some nitpicks. Will make a test locally.
hwbrzzl
reviewed
Apr 16, 2025
hwbrzzl
reviewed
Apr 16, 2025
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.
📑 Description
Closes goravel/goravel#650
This PR refactors the package management module to support a more fluent and expressive API, enhancing both readability and developer experience.
🧾 Before
Previously, package installation and uninstallation were handled with verbose struct-based configurations:
✨ After
The new approach introduces fluent method chaining, allowing a cleaner and more declarative setup:
💡 Benefits
Fluent API: Allows method chaining for clearer, more concise configuration
Improved readability: Code is easier to follow and maintain
Modular structure: Clear separation of matching and modifying logic via match and modify packages
Extensibility: Future enhancements can be integrated more easily thanks to the new design
✅ Checks