All notable changes to the "stun" package will be documented in this file.
stun.request
supports promise interface.
- Add
request()
method to simplify client-side requests. Follow theSTUN
specification. - All STUN-related errors inherit
StunError
. SeeStunMessageError
andStunResponseError
. - A big
StunMessage
class was replased byStunRequest
andStunResponse
. They are represent outgoing and incoming messages. The main difference is that you cannot change incoming message. - Added simple CLI, use
npx stun
ornpx stun -p 3478
. - Another incompatible API changes.