Skip to content

Commit 9080cbf

Browse files
committed
Bump deps.
- htmx v2.0.3 - hyperscript v0.9.13 - fiber v2.52.5 - fiber storage/memory v2.0.1 - fiber storage/redis v3.1.2 - fiber storage/sqlite3 v2.1.1 - essentialkaos/branca v2.0.5
1 parent 38bec5f commit 9080cbf

10 files changed

+101
-106
lines changed

go.mod

+27-27
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@ require (
55
github.com/coreos/go-oidc v2.2.1+incompatible
66
github.com/dchest/captcha v1.0.0
77
github.com/dustin/go-humanize v1.0.1
8-
github.com/essentialkaos/branca v1.3.4
9-
github.com/gofiber/fiber/v2 v2.52.4
10-
github.com/gofiber/storage/memory v1.3.4
11-
github.com/gofiber/storage/redis v1.3.4
12-
github.com/gofiber/storage/sqlite3 v1.3.8
13-
github.com/gorilla/mux v1.8.0
14-
github.com/mileusna/useragent v1.3.4
8+
github.com/essentialkaos/branca/v2 v2.0.5
9+
github.com/gofiber/fiber/v2 v2.52.5
10+
github.com/gofiber/storage/memory/v2 v2.0.1
11+
github.com/gofiber/storage/redis/v3 v3.1.2
12+
github.com/gofiber/storage/sqlite3/v2 v2.1.1
13+
github.com/gorilla/mux v1.8.1
14+
github.com/mileusna/useragent v1.3.5
1515
github.com/ory/hydra-client-go v1.10.6
1616
github.com/pkg/errors v0.9.1
1717
github.com/pquerna/otp v1.4.0
1818
github.com/prometheus/client_golang v1.19.1
1919
github.com/sirupsen/logrus v1.9.3
20-
github.com/spf13/cobra v1.8.0
21-
github.com/spf13/viper v1.18.2
20+
github.com/spf13/cobra v1.8.1
21+
github.com/spf13/viper v1.19.0
2222
github.com/stretchr/testify v1.9.0
2323
github.com/ubccr/goipa v0.0.7
2424
github.com/urfave/negroni v1.0.0
25-
github.com/valyala/fasthttp v1.53.0
26-
golang.org/x/net v0.25.0
25+
github.com/valyala/fasthttp v1.56.0
26+
golang.org/x/net v0.29.0
2727
golang.org/x/oauth2 v0.18.0
2828
)
2929

3030
require (
31-
github.com/andybalholm/brotli v1.1.0 // indirect
31+
github.com/andybalholm/brotli v1.1.1 // indirect
3232
github.com/beorn7/perks v1.0.1 // indirect
3333
github.com/boombuler/barcode v1.0.1 // indirect
3434
github.com/cespare/xxhash/v2 v2.3.0 // indirect
@@ -60,30 +60,30 @@ require (
6060
github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect
6161
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
6262
github.com/josharian/intern v1.0.0 // indirect
63-
github.com/klauspost/compress v1.17.8 // indirect
63+
github.com/klauspost/compress v1.17.11 // indirect
6464
github.com/magiconair/properties v1.8.7 // indirect
6565
github.com/mailru/easyjson v0.7.7 // indirect
6666
github.com/mattn/go-colorable v0.1.13 // indirect
6767
github.com/mattn/go-isatty v0.0.20 // indirect
68-
github.com/mattn/go-runewidth v0.0.15 // indirect
69-
github.com/mattn/go-sqlite3 v1.14.22 // indirect
68+
github.com/mattn/go-runewidth v0.0.16 // indirect
69+
github.com/mattn/go-sqlite3 v1.14.24 // indirect
7070
github.com/mitchellh/mapstructure v1.5.0 // indirect
7171
github.com/oklog/ulid v1.3.1 // indirect
7272
github.com/opentracing/opentracing-go v1.2.0 // indirect
73-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
73+
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
7474
github.com/philhofer/fwd v1.1.2 // indirect
7575
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
7676
github.com/pquerna/cachecontrol v0.1.0 // indirect
7777
github.com/prometheus/client_model v0.6.1 // indirect
7878
github.com/prometheus/common v0.53.0 // indirect
7979
github.com/prometheus/procfs v0.15.0 // indirect
80-
github.com/redis/go-redis/v9 v9.5.1 // indirect
80+
github.com/redis/go-redis/v9 v9.7.0 // indirect
8181
github.com/rivo/uniseg v0.4.7 // indirect
82-
github.com/sagikazarmark/locafero v0.4.0 // indirect
82+
github.com/sagikazarmark/locafero v0.6.0 // indirect
8383
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
8484
github.com/sourcegraph/conc v0.3.0 // indirect
8585
github.com/spf13/afero v1.11.0 // indirect
86-
github.com/spf13/cast v1.6.0 // indirect
86+
github.com/spf13/cast v1.7.0 // indirect
8787
github.com/spf13/pflag v1.0.5 // indirect
8888
github.com/subosito/gotenv v1.6.0 // indirect
8989
github.com/tidwall/gjson v1.17.1 // indirect
@@ -97,18 +97,18 @@ require (
9797
go.opentelemetry.io/otel/metric v1.26.0 // indirect
9898
go.opentelemetry.io/otel/trace v1.26.0 // indirect
9999
go.uber.org/multierr v1.11.0 // indirect
100-
golang.org/x/crypto v0.23.0 // indirect
101-
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
102-
golang.org/x/sync v0.7.0 // indirect
103-
golang.org/x/sys v0.20.0 // indirect
104-
golang.org/x/text v0.15.0 // indirect
105-
google.golang.org/appengine v1.6.7 // indirect
100+
golang.org/x/crypto v0.28.0 // indirect
101+
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect
102+
golang.org/x/sync v0.8.0 // indirect
103+
golang.org/x/sys v0.26.0 // indirect
104+
golang.org/x/text v0.19.0 // indirect
105+
google.golang.org/appengine v1.6.8 // indirect
106106
google.golang.org/protobuf v1.34.1 // indirect
107107
gopkg.in/ini.v1 v1.67.0 // indirect
108108
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
109109
gopkg.in/yaml.v3 v3.0.1 // indirect
110110
)
111111

112-
go 1.21
112+
go 1.22.0
113113

114-
toolchain go1.22.3
114+
toolchain go1.23.2

go.sum

+64-63
Large diffs are not rendered by default.

server/server.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import (
1515
"github.com/gofiber/fiber/v2/middleware/filesystem"
1616
"github.com/gofiber/fiber/v2/middleware/limiter"
1717
frecover "github.com/gofiber/fiber/v2/middleware/recover"
18-
"github.com/gofiber/storage/memory"
19-
"github.com/gofiber/storage/redis"
20-
"github.com/gofiber/storage/sqlite3"
18+
"github.com/gofiber/storage/memory/v2"
19+
"github.com/gofiber/storage/redis/v3"
20+
"github.com/gofiber/storage/sqlite3/v2"
2121
log "github.com/sirupsen/logrus"
2222
"github.com/spf13/viper"
2323
)

server/templates/footer.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</div>
1919

2020
<script src="/static/js/sweetalert2.min.js" integrity="sha384-MFQHLECN7JsqezT2nLwWieqtG6G9yQWxkJh31QjDyO2dhpkHSo6vQYGDcjMVgDlc" crossorigin="anonymous"></script>
21-
<script src="/static/js/htmx.min.js" integrity="sha384-cZuAZ+ZbwkNRnrKi05G/fjBX+azI9DNOkNYysZ0I/X5ZFgsmMiBXgDZof30F5ofc" crossorigin="anonymous"></script>
22-
<script src="/static/js/hyperscript_w9y.min.js" integrity="sha384-eXB1x9yjPqWLBStIhzPmuHalCO17P5Uf/ahLI7RovcRyPGbCUgvpeodAdh0FxVA2" crossorigin="anonymous"></script>
21+
<script src="/static/js/htmx.min.js" integrity="sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq" crossorigin="anonymous"></script>
22+
<script src="/static/js/hyperscript.min.js" integrity="sha384-5yQ5JTatiFEgeiEB4mfkRI3oTGtaNpbJGdcciZ4IEYFpLGt8yDsGAd7tKiMwnX9b" crossorigin="anonymous"></script>
2323
<script src="/static/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
2424
<script src="/static/js/site.js"></script>
2525
</script>

server/templates/static/js/htmx.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/templates/static/js/hyperscript.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/templates/static/js/hyperscript_w9y.min.js

-2
This file was deleted.

server/templates/static/js/hyperscript_w9y.min.js.map

-1
This file was deleted.

server/token.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"math/big"
1313
"time"
1414

15-
"github.com/essentialkaos/branca"
15+
"github.com/essentialkaos/branca/v2"
1616
"github.com/gofiber/fiber/v2"
1717
"github.com/spf13/viper"
1818
)
@@ -73,8 +73,6 @@ func NewToken(username, email, prefix string, storage fiber.Storage) (string, er
7373
return "", err
7474
}
7575

76-
b.SetTTL(viper.GetUint32("email.token_max_age"))
77-
7876
token, err := b.EncodeToString(jsonBytes)
7977
if err != nil {
8078
return "", err
@@ -101,14 +99,12 @@ func ParseToken(token, prefix string, storage fiber.Storage) (*Token, error) {
10199
return nil, err
102100
}
103101

104-
b.SetTTL(viper.GetUint32("email.token_max_age"))
105-
106102
brancaToken, err := b.DecodeString(token)
107103
if err != nil {
108104
return nil, err
109105
}
110106

111-
if b.IsExpired(brancaToken) {
107+
if brancaToken.IsExpired(viper.GetUint32("email.token_max_age")) {
112108
return nil, errors.New("Token expired")
113109
}
114110

server/token_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/gofiber/storage/memory"
11+
"github.com/gofiber/storage/memory/v2"
1212
"github.com/spf13/viper"
1313
"github.com/stretchr/testify/assert"
1414
)

0 commit comments

Comments
 (0)