[email protected] (main
)
Notable Changes and Fixes
- Update version to
2.0.0-rc6
. - Fix issue with
Client.scout
not resolving after fetchingLocationInfo
packet. - Change type on
PackageMetadata.reverseItemTable
andPackageMetadata.reverseLocationTable
toRecord<number, string>
instead ofRecord<string, string>
. - Reverse the parameter order of
PlayersManager.findPlayer
and make team optional, defaulting to client's team if omitted. - Remove
index
from allMessageEvents
since it will just beMessageManager.count - 1
anyway. - Add a new abstract class called
MessageNode
which encapsulatesJSONMessagePart
and exposes helper methods and other abstracted classes. - Update existing
MessageEvents
to returnMessageNode[]
instead of rawPrintJSONPacket
. - Add a new message event for each supported
PrintJSON
packet type the server can broadcast. - Rename
MessageEvents.receivedMessage
toMessageEvents.message
andMessageEvents.chatMessage
toMessageEvents.chat
. - The
MessageEvents.message
event now fires after all more specificMessageEvents
have fired. - Renamed
MessageManager.messages
toMessageManager.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 thanclient.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