Releases: heroiclabs/nakama-common
Releases · heroiclabs/nakama-common
v1.27.0
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
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
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
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
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
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".