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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰Backwards Incompatible Change to fiber.Error #1767
Comments
Thanks for opening your first issue here! 馃帀 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
thanks for issue, I have thought. Message is going to be string and I will add new property for Error struct. It is going to be interface so you can use if you want string or interface. |
@golangaddict #1768 |
Fiber version
2.26.0
Issue description
The change referenced here CLICK HERE in #1728 which was applied to a MINOR update is backwards incompatible. This change will break underlying structures that reference fiber.Error.Message using the concrete type "string".
One cannot simply imply that although the string can now be accessed via
fiber.Message.Error()
that this is a backwards-compatible change. The fact that code modification is needed by consumers in order to recorrect this issue is the exact representation of incompatibility.This is not an argument of the effort required to fix or resolve this issue. It is merely a statement that semantic versioning is not being followed by this project if decisions/actions like this are being supported by the maintaining contributors.
Symantic versioning implies that both MINOR & PATCH updates must be done in a backwards compatible manner. This change is not backwards compatible in a typical scenario.
Changing the concrete type of publicly exposed API struct fields is bad practice for anything other than MAJOR backwards incompatible updates.
Code snippet
The text was updated successfully, but these errors were encountered: