Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-chi/chi
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.2.2
Choose a base ref
...
head repository: go-chi/chi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.2.5
Choose a head ref
  • 15 commits
  • 27 files changed
  • 13 contributors

Commits on Aug 15, 2025

  1. Configuration menu
    Copy the full SHA
    80d8da2 View commit details
    Browse the repository at this point in the history
  2. Allow multiple whitespace between method & pattern (#1013)

    Allow separating the method and pattern with [ \t]+, this matches the
    stdlib change that was made in golang/go@7b583fd
    
    The rationale is the same as the stdlib issue, it allows you to visually
    line up patterns with variable-width methods:
    
      r.Handle("GET    /my-route", handler1)
      r.Handle("POST   /my-route", handler2)
      r.Handle("DELETE /my-route", handler3)
    
    In general aligning ourselves with the stdlib brings less surprise for
    end users.
    JRaspass authored Aug 15, 2025
    Configuration menu
    Copy the full SHA
    7859137 View commit details
    Browse the repository at this point in the history
  3. Avoid potential nil dereference (#1008)

    Fixes: 0fe6bf1 ("Use RoutePath in URLFormat middleware (#718)")
    Found by PostgresPro with Svace Static Analyzer
    
    Signed-off-by: Maksim Korotkov <[email protected]>
    ProjectMutilation authored Aug 15, 2025
    Configuration menu
    Copy the full SHA
    1c2d011 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2025

  1. feat(mux): support http.Request.Pattern in Go 1.23 (#986)

    Similar to #901
    
    Adds support to get the pattern that was used by Chi to match the route,
    without needing to call the Chi context.
    Gusted authored Aug 26, 2025
    Configuration menu
    Copy the full SHA
    d12cc49 View commit details
    Browse the repository at this point in the history
  2. fix/608 - Fix flaky Throttle middleware test by synchronizing token u…

    …sage (#1016)
    
    * chore: remove comment from TestThrottleRetryAfter test
    
    * test: fix flaky TestThrottleRetryAfter by synchronizing token usage
    OtavioBernardes authored Aug 26, 2025
    Configuration menu
    Copy the full SHA
    9040e95 View commit details
    Browse the repository at this point in the history
  3. Optimize throttle middleware by avoiding unnecessary timer creation (#…

    …1011)
    
    - Only create time.NewTimer() when actually needed to wait
    - Reduces allocations from 7 to 4 and memory usage by ~54%
    - Improves performance by ~50% in high-throughput scenarios
    vasayxtx authored Aug 26, 2025
    Configuration menu
    Copy the full SHA
    cf537d4 View commit details
    Browse the repository at this point in the history
  4. refactor: iterative wildcard collapsing and add test for consecutive …

    …wildcards (#1012)
    
    Co-authored-by: srpvpn <[email protected]>
    srpvpn and srpvpn authored Aug 26, 2025
    Configuration menu
    Copy the full SHA
    0265fcd View commit details
    Browse the repository at this point in the history
  5. Replace methodTypString func with reverseMethodMap (#1018)

    This code predates the introduction of the reverseMethodMap.
    JRaspass authored Aug 26, 2025
    Configuration menu
    Copy the full SHA
    9b9fb55 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2025

  1. Bump minimum Go and use new features (#1017)

    Go 1.21 brings us the builtin min func and slices.Contains.
    
    Go 1.22 brings us range over int and fixed for loop scoping.
    
    We were also able to drop the build tags from the path value code and
    inline the three-line function directly. This should still work on
    tinygo as they claim to support Go 1.24.
    JRaspass authored Sep 17, 2025
    Configuration menu
    Copy the full SHA
    a52c582 View commit details
    Browse the repository at this point in the history
  2. Refactor graceful shutdown example (#994)

    Simplify server shutdown by replacing manual signal handling with `signal.NotifyContext`.
    mikereid1 authored Sep 17, 2025
    Configuration menu
    Copy the full SHA
    563ab11 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    51c977c View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2025

  1. Configuration menu
    Copy the full SHA
    9fb4a15 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2025

  1. Update comment about min Go version (#1023)

    This wasn't updated in either #969 or #1017 and is the first thing people read on pkg.go.dev.
    JRaspass authored Oct 9, 2025
    Configuration menu
    Copy the full SHA
    de0d16e View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2026

  1. Configuration menu
    Copy the full SHA
    6eb3588 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2026

  1. fix(middleware): add missing return in RouteHeaders empty check (#1045)

    The RouteHeaders middleware was missing a return statement after calling
    next.ServeHTTP when the router had no routes configured. This caused the
    next handler to be called twice - once in the empty check and again at
    the end of the function.
    
    Also adds comprehensive test coverage for the RouteHeaders middleware
    and Pattern matching functionality.
    mahanadh authored Feb 5, 2026
    Configuration menu
    Copy the full SHA
    05f1ef7 View commit details
    Browse the repository at this point in the history
Loading