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.1
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
  • 20 commits
  • 31 files changed
  • 18 contributors

Commits on Feb 4, 2025

  1. Use strings.Cut in a few places (#971)

    Now that we're 1.20+ instead of 1.14+ we can use 1.18's strings.Cut in a
    few places to simplify code.
    JRaspass authored Feb 4, 2025
    Configuration menu
    Copy the full SHA
    877e876 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2025

  1. Fix non-constant format strings in t.Fatalf (#972)

    This is a new go vet analysis pass that fires under go 1.24:
    
      $ go1.24rc2 vet ./...
      # github.com/go-chi/chi/v5
      # [github.com/go-chi/chi/v5]
      ./mux_test.go:236:12: non-constant format string in call to (*testing.common).Fatalf
      ...
    
    The strings would be parsed as format strings which is not intended.
    See golang/go#60529 for details.
    JRaspass authored Feb 5, 2025
    Configuration menu
    Copy the full SHA
    72fbe46 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e846b83 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2025

  1. go 1.24 (#977)

    pkieltyka authored Feb 11, 2025
    Configuration menu
    Copy the full SHA
    c6225e3 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2025

  1. chore: delint ioutil usage (#962)

    This also bumps the minimum supported version of Go to 1.16 (which itself has beel EOL for almost 3 years now)
    
    Co-authored-by: Vojtech Vitek (golang.cz) <[email protected]>
    costela and VojtechVitek authored Feb 12, 2025
    Configuration menu
    Copy the full SHA
    1aae5b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe2c065 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2025

  1. support tinygo (#978)

    efraimbart authored Feb 18, 2025
    Configuration menu
    Copy the full SHA
    d047034 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7034fd View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2025

  1. Merge commit from fork

    GHSA-vrw8-fxc6-2r93
    
    Advisory reported by Anuraag Baishya, @anuraagbaishya. Thank you!
    VojtechVitek authored Jun 20, 2025
    Configuration menu
    Copy the full SHA
    1be7ad9 View commit details
    Browse the repository at this point in the history
  2. Make use of strings.Cut (#1005)

    scop authored Jun 20, 2025
    Configuration menu
    Copy the full SHA
    e235052 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5516d14 View commit details
    Browse the repository at this point in the history
  4. Correct documentation (#992)

    It appears as though regular expression quantity support was added by
    #245. This updates the documentation to reflect that.
    mrdomino authored Jun 20, 2025
    Configuration menu
    Copy the full SHA
    23c395f View commit details
    Browse the repository at this point in the history

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
Loading