Skip to content

Releases: heroiclabs/nakama-common

v1.27.0

18 Apr 11:34
Compare
Choose a tag to compare

Notable changes

Added

  • Add local cache functions to JavaScript server framework.
  • Add "tournamentRecordDelete" function to server frameworks.
  • New "insecure" flag to "httpRequest" TypeScript function.
  • Satori API available to Nakama server in all server frameworks.
  • New "MatchmakerOverride" hook to provide custom matching behaviour.

Changed

  • User ID is now returned in ValidatedSubscription, and ValidatedPurchases types.
  • ValidatedSubscription types are visible to the Go server framework.
  • Add "refundTime" field to TypeScript ValidatedSubscription type.
  • Loosened TypeScript definitions to allow for no identifier to be passed to Unlink operations.

Fixed

  • Various small TypeScript definitions fixes.

v1.26.0

04 Jan 23:53
Compare
Choose a tag to compare

Notable changes

Added

  • Add party hook messages to JavaScript runtime.
  • Add In-App Purchase notification callback functions to the server runtimes.
  • Add "DeleteAccount" before and after hook functions to the server runtimes.

Changed

  • Accept the leaderboard operator types in their expanded string name.

Fixed

  • Update Type definition for "authenticateTokenGenerate" to support the optional params allowed by the server.
  • Make public the "ChannelMessageRemove" function to the server Go runtime.
  • Allow DELETE method to be used in HTTP requests.

v1.25.0

14 Oct 14:52
Compare
Choose a tag to compare

Notable changes

Added

  • New GroupsGetRandom function added to the runtimes.
  • New NotificationsDelete function added to the runtimes.
  • The server version is now visible to server framework code within the context object.

Changed

  • JavaScript runtime Base64 encode accepts string or ArrayBuffer input.
  • JavaScript runtime Base64 URL encode accepts string or ArrayBuffer input.
  • JavaScript runtime Base16 encode accepts string or ArrayBuffer input.
  • JavaScript runtime Base64 decode returns ArrayBuffer output.
  • JavaScript runtime Base64 URL decode returns ArrayBuffer output.
  • JavaScript runtime Base16 decode returns ArrayBuffer output.
  • The groupUpdate function argument for a user ID is now optional in the type definition.
  • Update to Protobuf v1.28.1 dependency.

Fixed

  • Add user ID to JS runtime wallet operations returned results.
  • Type definition for field name used in MatchMessage type is correct in TypeScript.

v1.24.0

18 Aug 02:29
Compare
Choose a tag to compare

Notable changes

Added

  • New subscription validation functions for Apple and Google in the runtimes.
  • Add "NotificationsDelete" function to the runtimes.
  • Add const field for easier access to system user ID in TypeScript definition.

Changed

  • Return a cursor with "leaderboardRecordsHaystack" function.
  • Use ArrayBuffer type instead of Uint8Array in JavaScript runtime. Thanks @formatCvt.
  • Expose optional "recorded" param to "accountDeleteId" in TypeScript definition.

Fixed

  • Fix function signature of "leaderboardRecordsHaystack" in TypeScript definition.
  • Fix signature of "authenticateGameCenter" in TypeScript definition.
  • Update field name used in Friend type in TypeScript definition.

v1.23.0

22 May 13:51
Compare
Choose a tag to compare

Notable changes

Added

  • Add custom metrics publishing functions to Lua and JavaScript runtimes.
  • Add missing "sessionLogout" TypeScript definition.
  • Add "FriendsBlock" function to the Lua and JavaScript runtimes.
  • Add "ChannelMessagesList" function to the Lua and JavaScript runtimes.
  • New "countMultiple" parameter in the "MatchmakerAdd" TypeScript definition.

Changed

  • Update naming of delete notifications before/after hook registration functions.
  • Allow storage writes to accept "undefined" as a user ID input in the TypeScript definitions.

Fixed

  • Rename field in "ValidatedPurchase" to "providerResponse" to match what the server returns.
  • Add missing "label" field to "Match" TypeScript definition.

v1.22.0

21 Mar 14:32
Compare
Choose a tag to compare

Notable changes

Added

  • Add "GroupUsersBan" function to the runtimes.
  • Add "FriendsAdd" and "FriendsDelete" functions to the runtimes.
  • Add "LeaderboardRecordsHaystack" function to the runtimes.
  • Add "NotificationSendAll" function to the runtimes, for sending a notification to all users.
  • Propagate outgoing envelopes in realtime message after hooks.
  • Add inputs for matchmaker option to enforce a multiple of resulting matched count.

Changed

  • Add senderID param to "channelIdBuild".

v1.21.0

16 Dec 23:31
Compare
Choose a tag to compare

Notable changes

Added

  • Add ctx field to access http request headers in the Lua and JavaScript runtimes.
  • New JavaScript runtime stringToBinary and binaryToString functions.

Changed

  • JavaScript runtime match data changed to use Uint8Array type.

v1.20.0

29 Oct 21:57
Compare
Choose a tag to compare

Notable changes

Added

  • Allow creation of relayed matches with a name. Names are still mapped to match identifiers.

Changed

  • Expose Nakama errors to the server runtime.

v1.19.0

15 Oct 14:12
Compare
Choose a tag to compare

Notable changes

Added

  • Match signal handler as part of the match handler definition.
  • Add match signal function to server framework.

v1.18.0

28 Sep 11:57
Compare
Choose a tag to compare

Notable changes

Changed

  • Use named return parameters in leaderboard and tournament listings.
  • Add authoritative parameter on tournament create. Same as in leaderboard create.