Skip to content

Releases: suzuki-shunsuke/flute

v2.0.0

15 Jun 10:35
02f6978
Compare
Choose a tag to compare

v1.0.1...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

15 Jun 07:20
02f6978
Compare
Choose a tag to compare
v2.0.0-0 Pre-release
Pre-release

v1.0.1...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

15 Jun 01:45
baf7f86
Compare
Choose a tag to compare

v1.0.0...v1.0.1

Add example code to GoDoc

v1.0.0

13 Jun 01:41
834a2b6
Compare
Choose a tag to compare

v0.7.0...v1.0.0

  • Upgrade dependencies
  • Add linters and refactor: #44

v0.7.0

13 Jun 01:41
0eaa9ad
Compare
Choose a tag to compare

v0.6.1...v0.7.0

Bug fixes

#30 fix: response's status code can't be set

Others

#31

v0.6.1

13 Jun 01:41
a6094e2
Compare
Choose a tag to compare

v0.6.0...v0.6.1

Bug fixes

#29 fix: set the resnpose body to non-nil

v0.6.0

13 Jun 01:40
955f4eb
Compare
Choose a tag to compare

v0.5.1...v0.6.0

Project is renamed

#20 #21

v0.5.1

13 Jun 01:40
57d3078
Compare
Choose a tag to compare

v0.5.0...v0.5.1

Bug fixes

#16 fix: allow matcher and tester is nil

v0.5.0

13 Jun 01:40
73c50e3
Compare
Choose a tag to compare

v0.4.0...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

13 Jun 01:39
30b99ae
Compare
Choose a tag to compare

v0.3.1...v0.4.0

Features

#13 feat: add the condition about query and header

  • matcher
    • PartOfHeader
    • PartOfQuery
  • tester
    • PartOfHeader
    • PartOfQuery