Skip to content

[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@ThePhar ThePhar released this 06 Nov 03:27
· 34 commits to main since this release
97efc21

[email protected] (main)

Notable Changes and Fixes

  • Update version to 2.0.0-rc6.
  • Fix issue with Client.scout not resolving after fetching LocationInfo packet.
  • Change type on PackageMetadata.reverseItemTable and PackageMetadata.reverseLocationTable to Record<number, string> instead of Record<string, string>.
  • Reverse the parameter order of PlayersManager.findPlayer and make team optional, defaulting to client's team if omitted.
  • Remove index from all MessageEvents since it will just be MessageManager.count - 1 anyway.
  • Add a new abstract class called MessageNode which encapsulates JSONMessagePart and exposes helper methods and other abstracted classes.
  • Update existing MessageEvents to return MessageNode[] instead of raw PrintJSONPacket.
  • Add a new message event for each supported PrintJSON packet type the server can broadcast.
  • Rename MessageEvents.receivedMessage to MessageEvents.message and MessageEvents.chatMessage to MessageEvents.chat.
  • The MessageEvents.message event now fires after all more specific MessageEvents have fired.
  • Renamed MessageManager.messages to MessageManager.log and changed it to return a shallow copy of log instead of direct array to prevent accidental modifications.
    • client.messages.log looks less silly than client.messages.messages.
  • Update documentation with changes made.

Full Changelog: 2.0.0-rc5...2.0.0-rc6

Links

API Documentation: https://archipelago.js.org/v2.0/
API Documentation (Mirror): http://darkshare.site.nfoservers.com/archipelago.js/v2.0/
GitHub Release: https://github.com/ThePhar/archipelago.js/releases/tag/2.0.0-rc6
npm: npm install archipelago.js@latest
unpkg: https://unpkg.com/[email protected]/dist/index.js