-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to Fiber v3 beta #382
base: master
Are you sure you want to change the base?
Conversation
WalkthroughThe overall change involves updating the import path for the Changes
Possibly related issues
Recent Review DetailsConfiguration used: CodeRabbit UI Files ignored due to path filters (9)
Files selected for processing (7)
Files skipped from review due to trivial changes (6)
Additional comments not posted (2)
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Out of diff range and nitpick comments (2)
jet/jet.go (2)
Line range hint
25-34
: Consider improving error handling strategy.Instead of using
log.Fatalf
, which terminates the program, return an error to allow the caller to handle it gracefully. This approach improves the testability and robustness of the application.- log.Fatalf("%s Extension is not a valid jet engine ['.html.jet', .jet.html', '.jet']", extension) + return nil, fmt.Errorf("%s Extension is not a valid jet engine ['.html.jet', .jet.html', '.jet']", extension)
Line range hint
106-106
: Add a type assertion check to prevent runtime panics.The type assertion
l := loader.(*jet.InMemLoader)
could cause a runtime panic ifloader
is not actually of type*jet.InMemLoader
. It's safer to add a check:- l := loader.(*jet.InMemLoader) //nolint:errcheck,forcetypeassert + l, ok := loader.(*jet.InMemLoader) + if !ok { + return fmt.Errorf("unexpected loader type: %T", loader) + }
thx but lets wait for the RC version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets wait for the RC release
@@ -1,3 +1,3 @@ | |||
module github.com/gofiber/template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a breaking change, we need to change the version of this sub-package
@@ -1,30 +1,31 @@ | |||
module github.com/gofiber/template/handlebars/v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a breaking change, we need to change the version of this sub-package
@@ -1,30 +1,31 @@ | |||
module github.com/gofiber/template/jet/v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a breaking change, we need to change the version of this sub-package
@@ -1,29 +1,30 @@ | |||
module github.com/gofiber/template/mustache/v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a breaking change, we need to change the version of this sub-package
Fix for #333
Main issue was the fiber.Map type not coming from gofiber/fiber/v3 but gofiber/fiber/v2.
Summary by CodeRabbit