From aed04a37a96b7344057c423cd7fae4475f37d32a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 01:58:54 +0000 Subject: [PATCH] chore(deps): bump github.com/go-chi/chi/v5 in /server Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.3.0 to 5.3.1. - [Release notes](https://github.com/go-chi/chi/releases) - [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md) - [Commits](https://github.com/go-chi/chi/compare/v5.3.0...v5.3.1) --- updated-dependencies: - dependency-name: github.com/go-chi/chi/v5 dependency-version: 5.3.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- server/go.mod | 2 +- server/go.sum | 4 ++-- server/vendor/github.com/go-chi/chi/v5/README.md | 1 + server/vendor/github.com/go-chi/chi/v5/chi.go | 1 + server/vendor/github.com/go-chi/chi/v5/mux.go | 6 ++++++ server/vendor/github.com/go-chi/chi/v5/tree.go | 10 +++++++++- server/vendor/modules.txt | 2 +- 7 files changed, 21 insertions(+), 5 deletions(-) diff --git a/server/go.mod b/server/go.mod index c0898df..897fb47 100644 --- a/server/go.mod +++ b/server/go.mod @@ -3,7 +3,7 @@ module github.com/nimzshafie/airgap-devkit/server go 1.26.4 require ( - github.com/go-chi/chi/v5 v5.3.0 + github.com/go-chi/chi/v5 v5.3.1 golang.org/x/text v0.40.0 ) diff --git a/server/go.sum b/server/go.sum index 4dbde17..0f78a48 100644 --- a/server/go.sum +++ b/server/go.sum @@ -2,8 +2,8 @@ github.com/Acconut/go-httptest-recorder v1.0.0 h1:TAv2dfnqp/l+SUvIaMAUK4GeN4+wqb github.com/Acconut/go-httptest-recorder v1.0.0/go.mod h1:CwQyhTH1kq/gLyWiRieo7c0uokpu3PXeyF/nZjUNtmM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-chi/chi/v5 v5.3.0 h1:halUjDxhshgXHMrao5bB8eNBXo/rnzwr8m5m36glehM= -github.com/go-chi/chi/v5 v5.3.0/go.mod h1:R+tYY2hNuVUUjxoPtqUdgBqevM9s9njzkTLutVsOCto= +github.com/go-chi/chi/v5 v5.3.1 h1:3j4HZLGZQ3JpMCrPJF/Jl3mYJfWLKBfNJ6quurUGCf8= +github.com/go-chi/chi/v5 v5.3.1/go.mod h1:R+tYY2hNuVUUjxoPtqUdgBqevM9s9njzkTLutVsOCto= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= diff --git a/server/vendor/github.com/go-chi/chi/v5/README.md b/server/vendor/github.com/go-chi/chi/v5/README.md index a116596..e668e20 100644 --- a/server/vendor/github.com/go-chi/chi/v5/README.md +++ b/server/vendor/github.com/go-chi/chi/v5/README.md @@ -221,6 +221,7 @@ type Router interface { Patch(pattern string, h http.HandlerFunc) Post(pattern string, h http.HandlerFunc) Put(pattern string, h http.HandlerFunc) + Query(pattern string, h http.HandlerFunc) Trace(pattern string, h http.HandlerFunc) // NotFound defines a handler to respond whenever a route could diff --git a/server/vendor/github.com/go-chi/chi/v5/chi.go b/server/vendor/github.com/go-chi/chi/v5/chi.go index ad0ca74..cb129e3 100644 --- a/server/vendor/github.com/go-chi/chi/v5/chi.go +++ b/server/vendor/github.com/go-chi/chi/v5/chi.go @@ -102,6 +102,7 @@ type Router interface { Patch(pattern string, h http.HandlerFunc) Post(pattern string, h http.HandlerFunc) Put(pattern string, h http.HandlerFunc) + Query(pattern string, h http.HandlerFunc) Trace(pattern string, h http.HandlerFunc) // NotFound defines a handler to respond whenever a route could diff --git a/server/vendor/github.com/go-chi/chi/v5/mux.go b/server/vendor/github.com/go-chi/chi/v5/mux.go index 3da7f3f..37cd500 100644 --- a/server/vendor/github.com/go-chi/chi/v5/mux.go +++ b/server/vendor/github.com/go-chi/chi/v5/mux.go @@ -186,6 +186,12 @@ func (mx *Mux) Put(pattern string, handlerFn http.HandlerFunc) { mx.handle(mPUT, pattern, handlerFn) } +// Query adds the route `pattern` that matches a QUERY http method to +// execute the `handlerFn` http.HandlerFunc. +func (mx *Mux) Query(pattern string, handlerFn http.HandlerFunc) { + mx.handle(mQUERY, pattern, handlerFn) +} + // Trace adds the route `pattern` that matches a TRACE http method to // execute the `handlerFn` http.HandlerFunc. func (mx *Mux) Trace(pattern string, handlerFn http.HandlerFunc) { diff --git a/server/vendor/github.com/go-chi/chi/v5/tree.go b/server/vendor/github.com/go-chi/chi/v5/tree.go index 95f31d4..74ff43d 100644 --- a/server/vendor/github.com/go-chi/chi/v5/tree.go +++ b/server/vendor/github.com/go-chi/chi/v5/tree.go @@ -26,11 +26,17 @@ const ( mPATCH mPOST mPUT + mQUERY mTRACE ) var mALL = mCONNECT | mDELETE | mGET | mHEAD | - mOPTIONS | mPATCH | mPOST | mPUT | mTRACE + mOPTIONS | mPATCH | mPOST | mPUT | mQUERY | mTRACE + +// methodQuery is the HTTP QUERY method (RFC 10008), a safe, idempotent +// method that conveys a request body. It is defined here until net/http +// provides an equivalent constant, at which point this is a 1-1 swap. +const methodQuery = "QUERY" var methodMap = map[string]methodTyp{ http.MethodConnect: mCONNECT, @@ -41,6 +47,7 @@ var methodMap = map[string]methodTyp{ http.MethodPatch: mPATCH, http.MethodPost: mPOST, http.MethodPut: mPUT, + methodQuery: mQUERY, http.MethodTrace: mTRACE, } @@ -53,6 +60,7 @@ var reverseMethodMap = map[methodTyp]string{ mPATCH: http.MethodPatch, mPOST: http.MethodPost, mPUT: http.MethodPut, + mQUERY: methodQuery, mTRACE: http.MethodTrace, } diff --git a/server/vendor/modules.txt b/server/vendor/modules.txt index 6587ca0..2ea029c 100644 --- a/server/vendor/modules.txt +++ b/server/vendor/modules.txt @@ -1,4 +1,4 @@ -# github.com/go-chi/chi/v5 v5.3.0 +# github.com/go-chi/chi/v5 v5.3.1 ## explicit; go 1.23 github.com/go-chi/chi/v5 # github.com/tus/tusd/v2 v2.10.0