Skip to content
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

Bump github.com/go-fuego/fuego from 0.14.0 to 0.17.0 #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Dec 30, 2024

Bumps github.com/go-fuego/fuego from 0.14.0 to 0.17.0.

Release notes

Sourced from github.com/go-fuego/fuego's releases.

v0.17.0: 🎄 Experimental Gin support

v0.17 Highlights 🔥

Merry Christmas! 🎄 And thank you to my little sister that was the 1000th star of this repo ❤️

Experimental Gin support

We're happy to tell you that Fuego now supports Gin router !!!

For the moment, only a subset of Fuego's features are enabled (OpenAPI mostly). We don't have plugged validation, transformation... yet, but this will be available on the next release in January. For the moment, don't hesitate to play with this module and raise issues if you spot a bug.

Middlewares

Are now explicited and declared in the spec! Middlewares were often described in Go as opaque, magic and error-prone. Not with Fuego: they cannot hide anymore!

OpenAPI Responses

With option.DefaultStatusCode, you can change the default status code for the happy path.

And with AddResponse, you can declare your custom "non-happy-path" responses! You can also easily declare responses of the pure net/http controllers if you're using these instead of Fuego controllers. Can be a first step towards type safety while keeping flexibility while migrating, for example.

BREAKING: if you were using AddError, switch to AddResponse please!

BREAKING: Context update

We're changing Fuego's signature from "generic type constrained by interface" to an interface. Now, you can more easily stub it in your tests!

Simply replace *fuego.ContextNoBody by fuego.ContextNoBody and *fuego.ContextWithBody by fuego.ContextWithBody

Automatically make all required changes:

For macOS (BSD sed):

find . -type f -exec sed -i '' 's/\*fuego\.ContextNoBody/fuego\.ContextNoBody/g; s/\*fuego\.ContextWithBody/fuego\.ContextWithBody/g' {} +

For Linux (GNU sed):

find . -type f -exec sed -i 's/\*fuego\.ContextNoBody/fuego\.ContextNoBody/g; s/\*fuego\.ContextWithBody/fuego\.ContextWithBody/g' {} +

What's Changed

... (truncated)

Commits
  • c93b8d1 Gin compat (#260)
  • a0f00d5 Removes confusing handler field in BaseRoute
  • d556b3b Moves route.Hidden check to RegisterOpenAPIOperation
  • ab8f736 Makes BaseRoute non-optional in HTTPHandler
  • c10561b Generic main handler (#300)
  • 3593d75 Updated all dependencies and requires Go 1.23
  • 3dc77c6 Fixes tests from /cmd package
  • b4be136 Make ValidateParams take an interface instead of netHttpContext only
  • 0a1f2a2 Updated the documentation for the ContextWithBody interface.
  • 6b04996 Replace “...” by ellipsis “…”
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/go-fuego/fuego](https://github.com/go-fuego/fuego) from 0.14.0 to 0.17.0.
- [Release notes](https://github.com/go-fuego/fuego/releases)
- [Commits](go-fuego/fuego@v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: github.com/go-fuego/fuego
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants