All notable changes to the "stun" package will be documented in this file.
- dep(eslint): update to 8.55.0
- dep(ip): update to 2.0.0
- dep(meow): replace with minimist
- dep(parse-url): replace with native URL
- require node.js >= 10
- ci: replace Travis with GHA
stun.request
supports promise interface.
- Add
request()
method to simplify client-side requests. Follow theSTUN
specification. - All STUN-related errors inherit
StunError
. SeeStunMessageError
andStunResponseError
. StunMessage
class was replaced byStunRequest
andStunResponse
. They 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.