KEMBAR78
Comparing v5.2.2...v5.2.3 · go-chi/chi · GitHub
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.3
Choose a head ref
  • 8 commits
  • 13 files changed
  • 8 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 <m.korotkov@postgrespro.ru>
    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 <srpvpn@users.noreply.github.com>
    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
Loading