Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@heroiclabs/nakama-js

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heroiclabs/nakama-js - npm Package Versions

23

2.8.0

Diff

Changelog

Source

[2.8.0]

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.
lugehorsam
published 2.7.1 •

lugehorsam
published 2.7.0 •

Changelog

Source

[2.7.0]

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.
lugehorsam
published 2.6.1 •

Changelog

Source

[2.6.1]

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.
lugehorsam
published 2.6.0 •

Changelog

Source

[2.6.0]

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.
heroictom
published 2.5.3 •

Changelog

Source

[2.5.3]

Fixed

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

heroictom
published 2.5.1 •

Changelog

Source

[2.5.1]

Added

  • Added Satori client package (satori-js)

Changed

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

Changelog

Source

[2.4.1]

Fixed

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

Changelog

Source

[2.4.0]

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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc