All notable changes to the "stun" package will be documented in this file.
- dep: replace ip dependency with ipaddr.js
- dep(ip): bump 2.0.0 to 2.0.1
- configure eslint & prettier the modern way
- jettison
@nodertc/eslint-config
, much of local config was turning off stuff imported from there
- jettison
- ci: bump GHA versions
- test: remove eslint from devDependencies (installed by GHA for tests, npx will use local version)
- test: remove jest from devDependencies
- installed by npx when needed
- shrinks package-lock.json from 229KB to 5.7KB
- next version: replaced with node:test
- BREAKING: drop support for node.js <= 16
- still works, but no legacy version testing
- dep(eslint): bump to 8.55.0
- dep(jest): bump to 29.7.0
- dep(prettier): bump to 3.1.1
- 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.