Skip to content

Commit c63f3c6

Browse files
authored
Prepare 3.28.0 release. (#2352)
1 parent 7a7f509 commit c63f3c6

File tree

11 files changed

+37
-25
lines changed

11 files changed

+37
-25
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ All notable changes to this project are documented below.
44
The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org).
55

66
## [Unreleased]
7+
8+
## [3.28.0] - 2025-07-14
79
### Added
810
- Add party listing API and party labeling support.
11+
- Matchmaker entry create time is now available for custom runtime processing functions.
912

1013
### Changed
1114
- New Satori cache flag configuration parameter to require disabling by default.
15+
- Satori operations no longer carry an unnecessary session identifier.
16+
- Build with Go 1.24.5.
1217

1318
### Fixed
1419
- Fix an issue where a purchased Google Subscription would not be looked up by the LinkedPurchaseToken field contained in a notification.

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# docker build . --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version=v2.1.1 -t heroiclabs/nakama:2.1.1
1616
# docker build . --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version="$(git rev-parse --short HEAD)" -t heroiclabs/nakama-prerelease:"$(git rev-parse --short HEAD)"
1717

18-
FROM golang:1.24.3-bookworm AS builder
18+
FROM golang:1.24.5-bookworm AS builder
1919

2020
ARG COMMIT
2121
ARG VERSION

build/Dockerfile.dsym

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
## See the License for the specific language governing permissions and
1313
## limitations under the License.
1414

15-
FROM golang:1.24.3-bookworm AS builder
15+
FROM golang:1.24.5-bookworm AS builder
1616

1717
ARG COMMIT
1818
ARG VERSION

build/pluginbuilder/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# docker build . --file ./Dockerfile --build-arg version=v2.1.1 -t heroiclabs/nakama-pluginbuilder:2.1.1
1616
# docker build . --file ./Dockerfile --build-arg version="v2.1.1-$(git rev-parse --short HEAD)" -t heroiclabs/nakama-pluginbuilder:"2.1.1-$(git rev-parse --short HEAD)"
1717

18-
FROM golang:1.24.3-bookworm AS builder
18+
FROM golang:1.24.5-bookworm AS builder
1919

2020
ARG VERSION
2121

docker-compose-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
interval: 5s
4141

4242
test:
43-
image: "golang:1.24.3"
43+
image: "golang:1.24.5"
4444
command: /bin/sh -c "mkdir -p /nakama/internal/gopher-lua/_lua5.1-tests/libs/P1; go test -vet=off -v -race ./..."
4545

4646
working_dir: "/nakama"

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/heroiclabs/nakama/v3
22

3-
go 1.24.3
3+
go 1.24.5
44

55
require (
66
github.com/blugelabs/bluge v0.2.2
@@ -15,7 +15,7 @@ require (
1515
github.com/gorilla/mux v1.8.1
1616
github.com/gorilla/websocket v1.5.3
1717
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3
18-
github.com/heroiclabs/nakama-common v1.37.1-0.20250710131252-d802a18f353f
18+
github.com/heroiclabs/nakama-common v1.38.0
1919
github.com/heroiclabs/sql-migrate v0.0.0-20241125131053-95a7949783b0
2020
github.com/jackc/pgerrcode v0.0.0-20240316143900-6e2875d9b438
2121
github.com/jackc/pgx/v5 v5.7.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad
9898
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 h1:5ZPtiqj0JL5oKWmcsq4VMaAW5ukBEgSGXEN89zeH1Jo=
9999
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3/go.mod h1:ndYquD05frm2vACXE1nsccT4oJzjhw2arTS2cpUD1PI=
100100
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
101-
github.com/heroiclabs/nakama-common v1.37.1-0.20250710131252-d802a18f353f h1:IRfFjNAACkZt/1z1QcEQ/QtcBGRo3RK4RbOxpyh1USY=
102-
github.com/heroiclabs/nakama-common v1.37.1-0.20250710131252-d802a18f353f/go.mod h1:gpGzr0tineLtVeNuBNfN4lObWfalcXClXdH/LHV9IX0=
101+
github.com/heroiclabs/nakama-common v1.38.0 h1:5ukM0QZkUDGEMzqaLN9uDSHh3nJRJpSW7tcc0ljI6rM=
102+
github.com/heroiclabs/nakama-common v1.38.0/go.mod h1:i5RyJ1I2Yge/K6DSwhXYq6CWGHFKluJXuCZ+8XDhDkc=
103103
github.com/heroiclabs/sql-migrate v0.0.0-20241125131053-95a7949783b0 h1:hHJcYOP6L2/wZIEnYjjkJM+rOk/bK0uaYkDAejYpLhI=
104104
github.com/heroiclabs/sql-migrate v0.0.0-20241125131053-95a7949783b0/go.mod h1:uwcmopkVQIfb/JQqul5zmGI9ounclRC08j9S9lLcpRQ=
105105
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=

internal/satori/satori.go

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -158,21 +158,24 @@ func (s *sessionTokenClaims) GetSubject() (string, error) {
158158

159159
func (s *SatoriClient) generateToken(ctx context.Context, id string) (string, error) {
160160
// Ensure we only log warnings when context is expected to contain values.
161-
mode, ok := ctx.Value(runtime.RUNTIME_CTX_MODE).(string)
162-
contextExpected := ok && s.strictContextModes[mode]
163-
164-
tid, ok := ctx.Value(ctxkeys.TokenIDKey{}).(string)
165-
if !ok && contextExpected {
166-
s.logger.Warn("satori request token id was not found in ctx")
167-
}
168-
tIssuedAt, ok := ctx.Value(ctxkeys.TokenIssuedAtKey{}).(int64)
169-
if !ok && contextExpected {
170-
s.logger.Warn("satori request token issued at was not found in ctx")
171-
}
172-
tExpirySec, ok := ctx.Value(ctxkeys.ExpiryKey{}).(int64)
173-
if !ok && contextExpected {
174-
s.logger.Warn("satori request token expires at was not found in ctx")
175-
}
161+
//mode, ok := ctx.Value(runtime.RUNTIME_CTX_MODE).(string)
162+
//contextExpected := ok && s.strictContextModes[mode]
163+
164+
//tid, ok := ctx.Value(ctxkeys.TokenIDKey{}).(string)
165+
//if !ok && contextExpected {
166+
// s.logger.Warn("satori request token id was not found in ctx")
167+
//}
168+
var tid string
169+
tIssuedAt, _ := ctx.Value(ctxkeys.TokenIssuedAtKey{}).(int64)
170+
//tIssuedAt, ok := ctx.Value(ctxkeys.TokenIssuedAtKey{}).(int64)
171+
//if !ok && contextExpected {
172+
// s.logger.Warn("satori request token issued at was not found in ctx")
173+
//}
174+
tExpirySec, _ := ctx.Value(ctxkeys.ExpiryKey{}).(int64)
175+
//tExpirySec, ok := ctx.Value(ctxkeys.ExpiryKey{}).(int64)
176+
//if !ok && contextExpected {
177+
// s.logger.Warn("satori request token expires at was not found in ctx")
178+
//}
176179

177180
timestamp := time.Now().UTC()
178181
if tIssuedAt == 0 && tExpirySec > s.nakamaTokenExpirySec {

server/matchmaker.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ func (m *MatchmakerEntry) GetProperties() map[string]interface{} {
8787
func (m *MatchmakerEntry) GetPartyId() string {
8888
return m.PartyId
8989
}
90+
func (m *MatchmakerEntry) GetCreateTime() int64 {
91+
return m.CreateTime
92+
}
9093

9194
type MatchmakerIndex struct {
9295
Ticket string `json:"ticket"`

vendor/github.com/heroiclabs/nakama-common/runtime/runtime.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)