Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Update module urfave/negroni to v0.3.0 #114

Merged
merged 1 commit into from
Jun 30, 2019

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jun 30, 2019

This PR contains the following updates:

Package Type Update Change
github.com/urfave/negroni require minor v0.0.0-20180105164225-ff85fb036d90 -> v0.3.0

Release Notes

urfave/negroni

v0.3.0

Compare Source

Added
  • With() helper for building a new Negroni struct chaining handlers from
    existing Negroni structs
  • Format log output in Logger middleware via a configurable text/template
    string injectable via .SetFormat. Added LoggerDefaultFormat and
    LoggerDefaultDateFormat to configure the default template and date format
    used by the Logger middleware.
  • Support for HTTP/2 pusher support via http.Pusher interface for Go 1.8+.
  • WrapFunc to convert http.HandlerFunc into a negroni.Handler
  • Formatter field added to Recovery middleware to allow configuring how
    panics are output. Default of TextFormatter (how it was output in
    0.2.0) used. HTMLPanicFormatter also added to allow easy outputing of
    panics as HTML.
Fixed
  • Written() correct returns false if no response header has been written
  • Only implement http.CloseNotifier with the negroni.ResponseWriter if the
    underlying http.ResponseWriter implements it (previously would always
    implement it and panic if the underlying http.ResponseWriter did not.
Changed
  • Set default status to 0 in the case that no handler writes status -- was
    previously 200 (in 0.2.0, before that it was 0 so this reestablishes that
    behavior)
  • Catch panics thrown by callbacks provided to the Recovery handler
  • Recovery middleware will set text/plain content-type if none is set
  • ALogger interface to allow custom logger outputs to be used with the
    Logger middleware. Changes embeded field in negroni.Logger from Logger
    to ALogger.
  • Default Logger middleware output changed to be more structure and verbose
    (also now configurable, see Added)
  • Automatically bind to port specified in $PORT in .Run() if an address is
    not passed in. Fall back to binding to :8080 if no address specified
    (configuable via DefaultAddress).
  • PanicHandlerFunc added to Recovery middleware to enhance custom handling
    of panics by providing additional information to the handler including the
    stack and the http.Request. Recovery.ErrorHandlerFunc was also added, but
    deprecated in favor of the new PanicHandlerFunc.

v0.2.0

Compare Source

Added
  • Support for variadic handlers in New()
  • Added Negroni.Handlers() to fetch all of the handlers for a given chain
  • Allowed size in Recovery handler was bumped to 8k
  • Negroni.UseFunc to push another handler onto the chain
Changed
  • Set the status before calling beforeFuncs so the information is available to them
  • Set default status to 200 in the case that no handler writes status -- was previously 0
  • Panic if nil handler is given to negroni.Use

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@jirfag jirfag merged commit 4e5be2a into master Jun 30, 2019
@jirfag jirfag deleted the renovate/jiasu.xzqcsaa.nyc.mn-urfave-negroni-0.x branch June 30, 2019 12:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants