Skip to content

Releases: heroiclabs/nakama-js

v2.8.0

21 Jun 13:37
625e5b9
Compare
Choose a tag to compare

Added

  • Nakama: Added ability to invoke listFriendsOfFriends on the client which returns a list of friends of the user's friends.
  • Nakama: Added a rank_count to LeaderboardRecordList.
  • Nakama: Added ability to invoke listSubscriptions on the client which lists all the user's validated subscriptions.
  • Nakama: Added ability to invoke getSubscription on the client which gets a subscription by product ID.
  • Nakama: Added ability to invoke deleteAccount on the client which deletes the user's account.
  • Nakama: Added ability to invoke validatePurchaseFacebookInstant on the client which validates a FB Instant IAP receipt.
  • Nakama: Added ability to invoke deleteTournamentRecord on the client which deletes a tournament record.
  • Nakama: Added ability to invoke validateSubscriptionApple and validateSubscriptionGoogle on the client which validates Apple and Google subscription receipts.
  • Nakama: Added cursor parameter to listTournamentRecordsAroundOwner and listLeaderboardRecordsAroundOwner.
  • Nakama: Added authoritative field to Tournament.
  • Nakama: Added ability to specify whether to persist purchases and subscriptions when validating their receipts.
  • Nakama: Added create_time and update_time to ApiStorageObjectAck.
  • Nakama: Added refund_time, update_time and user_id to ApiValidatedPurchase.

Changed

  • Nakama: Changed StreamId.descriptor to StreamId.subcontext.

v2.7.1

26 Sep 23:27
735a71d
Compare
Choose a tag to compare

Fixed

  • Regenerated nakama-js and nakama-js-protobuf distribution files to match v2.7.0

v2.7.0

26 Sep 22:28
d74050d
Compare
Choose a tag to compare

Added

  • Satori: Added ability to schedule, update and delete outgoing messages for Live Events.
  • Satori: Added ability to add custom and default properties for a user at the point of authentication.
  • Satori: Add 'recompute' param to Satori's update-properties.
  • Satori: Added ability to delete identity.
  • Nakama: Added ability to create match by name.

Changed

  • Nakama: Improves how outgoing messages are logged in verbose mode.
  • Nakama: Updated signature for Authenticate Game Center.

Fixed

  • Nakama: Fixed typings distribution location for protobuf-js.
  • Nakama: Fixed how newer bundlers (such as those used by ViteJs) discover Nakama's type definitions.
  • Satori: Return live event ID when getting all live events.

v2.6.1

21 Mar 15:45
ce6f785
Compare
Choose a tag to compare

Added

  • You can now pass a onheartbeattimeout to the socket which will be called directly when a heartbeat timeout occurs. It will also still call ondisconnect once the socket is closed (which can take a few seconds for some browsers).

Fixed

  • Fixed a NodeJS compatibility issue by no longer depending on XMLHttpRequest.

v2.6.0

06 Mar 15:05
5382b9d
Compare
Choose a tag to compare

Added

  • The socket will now automatically heartbeat with the server from within nakama-js. If the server doesn't reply after a heartbeat timeout has elapsed, ondisconnect will be called. This should resolve issues with the socket detecting lack of internet connectivity in Chrome. You can configure the heartbeat tiemout with setHeartbeatTimeoutMs(ms : number) : void.

  • You can now pass a connectTimeoutMs to the socket connect call in order to set a connect timeout.

  • You can now pass a sendTimeoutMs to the socket constructor to detect timeouts for socket calls that expect a response.

The connect, send, and heartbeat timeouts are set to sensible default values.

Fixed

  • Fixed dispatching of onpartyclose.

v2.5.3

31 Jan 10:58
c2f4f13
Compare
Choose a tag to compare

Fixed

  • Nakama and Satori ESM module files now correctly end in the .mjs extension.

v2.5.2

24 Jan 10:56
acea19d
Compare
Choose a tag to compare
Fix issue with release script in readme (#145)

v2.5.1

23 Jan 16:53
a99b784
Compare
Choose a tag to compare

Added

  • Added Satori client package (satori-js)

Changed

  • Remove Yarn in favour of NPM and updates dependencies to support Node 18 LTS

v2.4.1

07 Jun 12:26
ffe10b5
Compare
Choose a tag to compare

Fixed

This release is a republish of 2.4.0 but with the cjs distribution provided.

v2.4.0

01 Jun 20:29
1f25781
Compare
Choose a tag to compare

Added

  • Added more details comments and documentation on objects and methods.

Changed

  • Changed data structure used to pass session variables to authentication methods. The old structure used was a Map<string, string>. We now use the Record<string, string> for serialization support.
  • Changed StreamData.stream_presence to StreamData.sender. This field should be populated correctly now.
  • Changed MatchData.presences to a singular MatchData.presence. This presence represents the sender. This field should be populated correctly now.
  • Match and party data payloads are now serialized as protobuf when using the protobuf adapter.
    • Because of this change, sendMatchState and sendPartyData can now receive bytes as input. If bytes are sent using the default text adapter, they are base64 encoded to a string.
      • These functions can no longer receive data payloads of type any. Any object previously passed in must be serialized to a string or bytes. This change is enforced at compile time.
    • Also due to this change, MatchData and PartyData have their data fields typed as a Uint8Array. This breaks
      backwards compatibility. Users who send a string as their match or party data will need to use a utility such as TextDecoder to deserialize the string. This change is enforced at compile time.

Fixed

  • Fixed an issue with our base64 dependency in React Native.