go-wrap v2.0 Release Notes

Release Date: 2014-08-06 // over 9 years ago
  • ๐Ÿ’ฅ Breaking changes

    Some adapters had some confusing namings around combinations of the words ๐Ÿ– Handle(r) Serve(r) and Wrapper.

    The following adapters were renamed, since there were confusing:

    ServeWrapper => NextHandler ServeHandlerFunc => NextHandlerFunc

    ๐Ÿšš The ServeHandler interface and the ServeHandleFunc were removed.

    โœ… These changes affect the go-on/wrap-contrib and go-on/wrap-contrib-testing repositories which have been changed to be again compatible with wrap.

    Apart from that not many users should be affected.

    ๐Ÿ†• New features

    • Contexter interface for unified context sharing between middleware
    • ๐Ÿ‘Œ support for debugging
    • ๐Ÿ‘Œ improved documentation with examples
    • response writer wrappers to help the creation of middlewares
    • helpers to extract the original ResponseWriter out of a Contexter