Loading CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr ## [Unreleased] ### Changed - More consistent signature and handling between JavaScript runtime Base64 encode functions. - Improve group list cursor handling for messages with close timestamps. ## [3.13.1] - 2022-08-18 ### Fixed Loading server/core_leaderboard.go +1 −1 Original line number Diff line number Diff line Loading @@ -907,7 +907,7 @@ func calculateExpiryOverride(overrideExpiry int64, leaderboard *Leaderboard) (in now := time.Now().UTC() _, _, expiryTime := calculateTournamentDeadlines(leaderboard.StartTime, leaderboard.EndTime, int64(leaderboard.Duration), leaderboard.ResetSchedule, now) if expiryTime != 0 && expiryTime <= now.Unix() { // If the expiry time is in the past, we wont have any records to return. // If the expiry time is in the past, we won't have any records to return. return 0, false } return expiryTime, true Loading server/match_common_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ func (s *testMetrics) GaugeSessions(value float64) func (s *testMetrics) GaugePresences(value float64) {} func (s *testMetrics) Matchmaker(tickets, activeTickets float64, processTime time.Duration) {} func (s *testMetrics) PresenceEvent(dequeueElapsed, processElapsed time.Duration) {} func (s *testMetrics) StorageRejectCount(tags map[string]string, delta int64) {} func (s *testMetrics) StorageWriteRejectCount(tags map[string]string, delta int64) {} func (s *testMetrics) CustomCounter(name string, tags map[string]string, delta int64) {} func (s *testMetrics) CustomGauge(name string, tags map[string]string, value float64) {} func (s *testMetrics) CustomTimer(name string, tags map[string]string, value time.Duration) {} Loading server/runtime_javascript_nakama.go +2 −2 Original line number Diff line number Diff line Loading @@ -629,7 +629,7 @@ func (n *runtimeJavascriptNakamaModule) httpRequest(r *goja.Runtime) func(goja.F } // @group utils // @summary Base64 encode a string input. // @summary Base64 encode a string or ArrayBuffer input. // @param input(type=string) The string which will be base64 encoded. // @return out(string) Encoded string. // @return error(error) An optional error value if an error occurred. Loading Loading @@ -693,7 +693,7 @@ func (n *runtimeJavascriptNakamaModule) base64Decode(r *goja.Runtime) func(goja. } // @group utils // @summary Base64 URL encode a string input. // @summary Base64 URL encode a string or ArrayBuffer input. // @param input(type=string) The string which will be base64 URL encoded. // @return out(string) Encoded string. // @return error(error) An optional error value if an error occurred. Loading Loading
CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr ## [Unreleased] ### Changed - More consistent signature and handling between JavaScript runtime Base64 encode functions. - Improve group list cursor handling for messages with close timestamps. ## [3.13.1] - 2022-08-18 ### Fixed Loading
server/core_leaderboard.go +1 −1 Original line number Diff line number Diff line Loading @@ -907,7 +907,7 @@ func calculateExpiryOverride(overrideExpiry int64, leaderboard *Leaderboard) (in now := time.Now().UTC() _, _, expiryTime := calculateTournamentDeadlines(leaderboard.StartTime, leaderboard.EndTime, int64(leaderboard.Duration), leaderboard.ResetSchedule, now) if expiryTime != 0 && expiryTime <= now.Unix() { // If the expiry time is in the past, we wont have any records to return. // If the expiry time is in the past, we won't have any records to return. return 0, false } return expiryTime, true Loading
server/match_common_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ func (s *testMetrics) GaugeSessions(value float64) func (s *testMetrics) GaugePresences(value float64) {} func (s *testMetrics) Matchmaker(tickets, activeTickets float64, processTime time.Duration) {} func (s *testMetrics) PresenceEvent(dequeueElapsed, processElapsed time.Duration) {} func (s *testMetrics) StorageRejectCount(tags map[string]string, delta int64) {} func (s *testMetrics) StorageWriteRejectCount(tags map[string]string, delta int64) {} func (s *testMetrics) CustomCounter(name string, tags map[string]string, delta int64) {} func (s *testMetrics) CustomGauge(name string, tags map[string]string, value float64) {} func (s *testMetrics) CustomTimer(name string, tags map[string]string, value time.Duration) {} Loading
server/runtime_javascript_nakama.go +2 −2 Original line number Diff line number Diff line Loading @@ -629,7 +629,7 @@ func (n *runtimeJavascriptNakamaModule) httpRequest(r *goja.Runtime) func(goja.F } // @group utils // @summary Base64 encode a string input. // @summary Base64 encode a string or ArrayBuffer input. // @param input(type=string) The string which will be base64 encoded. // @return out(string) Encoded string. // @return error(error) An optional error value if an error occurred. Loading Loading @@ -693,7 +693,7 @@ func (n *runtimeJavascriptNakamaModule) base64Decode(r *goja.Runtime) func(goja. } // @group utils // @summary Base64 URL encode a string input. // @summary Base64 URL encode a string or ArrayBuffer input. // @param input(type=string) The string which will be base64 URL encoded. // @return out(string) Encoded string. // @return error(error) An optional error value if an error occurred. Loading