Skip to content

Commit e3d5d99

Browse files
authored
Upgrade dependencies (#113)
* Upgrade dependencies * Add note about supported versions * update ci versions
1 parent 7605e2a commit e3d5d99

File tree

4 files changed

+85
-103
lines changed

4 files changed

+85
-103
lines changed

.github/workflows/echo-contrib.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ permissions:
1414

1515
env:
1616
# run coverage and benchmarks only with the latest Go version
17-
LATEST_GO_VERSION: "1.20"
17+
LATEST_GO_VERSION: "1.22"
1818

1919
jobs:
2020
test:
2121
strategy:
2222
matrix:
2323
os: [ubuntu-latest, macos-latest, windows-latest]
2424
# Each major Go release is supported until there are two newer major releases. https://golang.org/doc/devel/release.html#policy
25-
# Echo tests with last four major releases (unless there are pressing vulnerabilities)
26-
# As we depend on `golang.org/x/` libraries which only support last 2 Go releases we could have situations when
25+
# Echo CORE tests with last four major releases (unless there are pressing vulnerabilities)
26+
# As we depend on MANY DIFFERENT libraries which of SOME support last 2 Go releases we could have situations when
2727
# we derive from last four major releases promise.
28-
go: ["1.18", "1.19", "1.20"]
28+
go: ["1.21", "1.22"]
2929
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
3030
runs-on: ${{ matrix.os }}
3131
steps:
3232
- name: Checkout Code
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434

3535
- name: Set up Go ${{ matrix.go }}
3636
uses: actions/setup-go@v4
@@ -53,13 +53,13 @@ jobs:
5353
runs-on: ubuntu-latest
5454
steps:
5555
- name: Checkout Code (Previous)
56-
uses: actions/checkout@v3
56+
uses: actions/checkout@v4
5757
with:
5858
ref: ${{ github.base_ref }}
5959
path: previous
6060

6161
- name: Checkout Code (New)
62-
uses: actions/checkout@v3
62+
uses: actions/checkout@v4
6363
with:
6464
path: new
6565

README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
[![Codecov](https://img.shields.io/codecov/c/github/labstack/echo-contrib.svg?style=flat-square)](https://codecov.io/gh/labstack/echo-contrib)
77
[![Twitter](https://img.shields.io/badge/[email protected]?style=flat-square)](https://twitter.com/labstack)
88

9-
## Packages
9+
# Supported Go version
1010

11-
Name | Description | Author
12-
--- | --- | ---
13-
[casbin](https://github.com/casbin/casbin) | Access control library | [hsluoyz](https://github.com/hsluoyz)
14-
session | Session middleware backed by [gorilla/sessions](https://github.com/gorilla/sessions) | [vishr](https://github.com/vishr)
15-
jaegertracing | Jaeger tracer middleware | [carlosedp](https://github.com/carlosedp)
16-
prometheus | Prometheus metrics | [carlosedp](https://github.com/carlosedp)
17-
pprof | pprof middlware | [arun0009](https://github.com/arun0009)
18-
zipkin | [Zipkin](https://github.com/openzipkin/zipkin-go) middleware | [arun0009](https://github.com/arun0009)
11+
Each major Go release is supported until there are two newer major releases. https://golang.org/doc/devel/release.html#policy
12+
[Echo CORE](https://github.com/labstack/echo) tests with last FOUR major releases (unless there are pressing vulnerabilities)
13+
As this library depends on MANY DIFFERENT libraries which of SOME support only last 2 Go releases we could have situations when
14+
we derive from last four major releases promise.
15+
16+
p.s. you really should use latest versions of Go as there are many vulnerebilites fixed only in supported versions. Please see https://pkg.go.dev/vuln/

go.mod

+20-24
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,46 @@
11
module github.com/labstack/echo-contrib
22

3-
go 1.18
3+
go 1.21
44

55
require (
6-
github.com/casbin/casbin/v2 v2.77.2
7-
github.com/gorilla/context v1.1.1
8-
github.com/gorilla/sessions v1.2.1
9-
github.com/labstack/echo/v4 v4.11.2
10-
github.com/labstack/gommon v0.4.0
6+
github.com/casbin/casbin/v2 v2.85.0
7+
github.com/gorilla/context v1.1.2
8+
github.com/gorilla/sessions v1.2.2
9+
github.com/labstack/echo/v4 v4.11.4
10+
github.com/labstack/gommon v0.4.2
1111
github.com/opentracing/opentracing-go v1.2.0
1212
github.com/openzipkin/zipkin-go v0.4.2
13-
github.com/prometheus/client_golang v1.17.0
14-
github.com/prometheus/common v0.44.0
15-
github.com/stretchr/testify v1.8.4
13+
github.com/prometheus/client_golang v1.19.0
14+
github.com/prometheus/common v0.50.0
15+
github.com/stretchr/testify v1.9.0
1616
github.com/uber/jaeger-client-go v2.30.0+incompatible
1717
)
1818

1919
require (
2020
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
21-
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect
2221
github.com/beorn7/perks v1.0.1 // indirect
22+
github.com/casbin/govaluate v1.1.1 // indirect
2323
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2424
github.com/davecgh/go-spew v1.1.1 // indirect
2525
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
26-
github.com/golang/protobuf v1.5.3 // indirect
27-
github.com/gorilla/securecookie v1.1.1 // indirect
26+
github.com/golang/protobuf v1.5.4 // indirect
27+
github.com/gorilla/securecookie v1.1.2 // indirect
2828
github.com/mattn/go-colorable v0.1.13 // indirect
2929
github.com/mattn/go-isatty v0.0.20 // indirect
30-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
3130
github.com/pkg/errors v0.9.1 // indirect
3231
github.com/pmezard/go-difflib v1.0.0 // indirect
33-
github.com/prometheus/client_model v0.5.0 // indirect
34-
github.com/prometheus/procfs v0.12.0 // indirect
35-
github.com/tidwall/gjson v1.17.0 // indirect
36-
github.com/tidwall/match v1.1.1 // indirect
37-
github.com/tidwall/pretty v1.2.1 // indirect
32+
github.com/prometheus/client_model v0.6.0 // indirect
33+
github.com/prometheus/procfs v0.13.0 // indirect
3834
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
3935
github.com/valyala/bytebufferpool v1.0.0 // indirect
4036
github.com/valyala/fasttemplate v1.2.2 // indirect
4137
go.uber.org/atomic v1.11.0 // indirect
42-
golang.org/x/crypto v0.17.0 // indirect
43-
golang.org/x/net v0.17.0 // indirect
44-
golang.org/x/sys v0.15.0 // indirect
38+
golang.org/x/crypto v0.21.0 // indirect
39+
golang.org/x/net v0.22.0 // indirect
40+
golang.org/x/sys v0.18.0 // indirect
4541
golang.org/x/text v0.14.0 // indirect
46-
golang.org/x/time v0.3.0 // indirect
47-
google.golang.org/grpc v1.59.0 // indirect
48-
google.golang.org/protobuf v1.31.0 // indirect
42+
golang.org/x/time v0.5.0 // indirect
43+
google.golang.org/grpc v1.62.1 // indirect
44+
google.golang.org/protobuf v1.33.0 // indirect
4945
gopkg.in/yaml.v3 v3.0.1 // indirect
5046
)

0 commit comments

Comments
 (0)