This update has some big ease-of-use changes for WebHooks! They will be properly documented soon™ 👀
Here are all significant changes compared to version 4.0.12:
Breaking changes*
- [twitch] remove
UnsupportedAPI#getEvents
andChannelEvent
(212fb22)
* Events were removed by Twitch a while ago, these endpoints haven't been working anymore anyway, so this does not have to be a semver-major release even though it contains a technically breaking change.
Deprecations
- [twitch-webhooks]
WebHookListener.create
- scheduled for removal in 5.0 - usenew WebHookListener()
instead
Features
- [all] add native ESM support (114caef)
- [twitch] add
ChannelAPI#getChannelTeams
andChannel#getTeams
(7d32f8c, #125) - [twitch] enable auth providers to identify themselves as user or app token generators (2c0d97e)
- [twitch-chat-client] add
ChatUser#isBroadcaster
(3ec3235) - [twitch-chat-client] add
rewardgift
handling (0d1bd5b, #71) - [twitch-chat-client] add
bad_timeout_mod
handling (b2124c8, #123) - [twitch-chat-client] allow custom hostnames (9a6a619, #132, #133)
- [twitch-webhooks] add new connection abstraction (ca3850f, #109)
- [twitch-webhooks] add
WebHookListener#applyMiddleware
for express/connect compat (387457f, #111) - [twitch-electron-auth-provider] add ability to
force_verify
(d7d2e1d, #74)
Improvements
- [all] drop source maps (significant decrease in download size) (0610f07)
- [twitch] accept numbers as
UserIdResolvable
(da3aff3) - [twitch-chat-client] prevent constructing a
ChatClient
with an app access token (dd1bd94, #114) - [twitch-chat-client] add caching to badge parsing (02cde1d)
- [twitch-webhooks] add logging (09f7d44, 7449181)
- [twitch-electron-auth-provider] support electron 9 (aac6abe)
Fixes
- [all] use in-file lib instead of tsconfig (fixes common TypeScript "Cannot find name" errors) (81f4bff, #102)
- [twitch-chat-client] resolve some issues with reconnecting (3d01210, 8c3f35d, #108)
- [twitch-chat-client] make emote parsing more safe (e29332d)
- [twitch-webhooks] stop unlisten from un-managing the hooks (953f7fe)