Releases: suzuki-shunsuke/flute
Releases · suzuki-shunsuke/flute
v2.0.0
#47 refactor: change pointer to struct
#48 feat: upgrade go module to v2
Breaking Changes
the signature of structs are changed
Migration
- import path:
github.com/suzuki-shunsuke/flute
->github.com/suzuki-shunsuke/flute/v2
github.com/suzuki-shunsuke/flute/flute
->github.com/suzuki-shunsuke/flute/v2/flute
- Route.Matcher: *Matcher -> Matcher
- Route.Tester: *Tester -> Tester
- Route.Response: *Response -> Response
- Tester.Test:
func(*testing.T, *http.Request, *Service, *Route)
->func(*testing.T, *http.Request, Service, Route)
&Transport
->Transport
v2.0.0-0
#47 refactor: change pointer to struct
#48 feat: upgrade go module to v2
Breaking Changes
the signature of structs are changed
Migration
- import path:
github.com/suzuki-shunsuke/flute
->github.com/suzuki-shunsuke/flute/v2
github.com/suzuki-shunsuke/flute/flute
->github.com/suzuki-shunsuke/flute/v2/flute
- Route.Matcher: *Matcher -> Matcher
- Route.Tester: *Tester -> Tester
- Route.Response: *Response -> Response
- Tester.Test:
func(*testing.T, *http.Request, *Service, *Route)
->func(*testing.T, *http.Request, Service, Route)
&Transport
->Transport
v1.0.1
Add example code to GoDoc
v1.0.0
- Upgrade dependencies
- Add linters and refactor: #44
v0.7.0
v0.6.1
v0.6.0
v0.5.1
v0.5.0
Breaking Changes
#14 feat: change default behavior when no route matches
the default behavior when no route matches the request is changed.
AS-IS:
When no route matches the request and Transport.Transport is nil,
http.DefaultClient.Transport.RoundTrip or http.DefaultTransport.RoundTrip are called.
TO-BE:
When no route matches the request and Transport.Transport is nil,
the test fails and exit and the detail of the request parameters is outputted.
v0.4.0
Features
#13 feat: add the condition about query and header
- matcher
- PartOfHeader
- PartOfQuery
- tester
- PartOfHeader
- PartOfQuery