Skip to content

API Breaking Change in Minor Release: Route.Handler -> Route.Name? #994

@splittingfield

Description

@splittingfield

/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/ / / / / / / / / / / / / / / / / /

Please use forum https://forum.labstack.com to ask questions!

/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/ / / / / / / / / / / / / / / / / /

Issue Description

In 3.2.2, the Route struct was changed to have a Name method as opposed to Handler.

In 3.2.1,

Route struct {
		Method  string `json:"method"`
		Path    string `json:"path"`
		Handler string `json:"handler"`
	}

In 3.2.2,

	// Route contains a handler and information for matching against requests.
	Route struct {
		Method string `json:"method"`
		Path   string `json:"path"`
		Name   string `json:"name"`
	}

Checklist

  • [ x] Dependencies installed
  • [ x] No typos
  • [ x] Searched existing issues and docs

Expected behaviour

No API breaking changed in minor releases.

Actual behaviour

API breaking changes in a minor release.

Steps to reproduce

Pin Echo to a SemVer range 3.2.x and see API breaking behavior within hours of a new release in which this change was pulled by our build servers.

Version/commit

This change happened in commit
c04b028#diff-252e46e448f4e037d84d69193c8fdf79

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions