tmi.js v1.8.0
v1.8.0
- f9a5b3a The option
connection.reconnect
is nowtrue
by default. - 43900a9 Added option
options.skipMembership
(false
by default) to not receive JOIN/PART messages for other users. This can reduce a lot of the spammy data that's getting blasted at the client.
const client = new tmi.Client({ options: { skipMembership: true } });
- c74c2bb
- Added option
options.skipUpdatingEmotesets
(false
by default) to skip calling theemoticon_images
API which can be a lot of data. Theemotesets
event will still be called but the second argument will just be an empty object. - Added option
options.updateEmotesetsTimer
(60000
(ms) by default) to change how often theemoticon_images
API will be recalled. Set to0
or a negative number (orfalse
) to disable the timer entirely.
- Added option
const client = new tmi.Client({ options: { skipUpdatingEmotesets: true, updateEmotesetsTimer: 0 } });
-
33c15c7 The Client has been converted to a class style.
-
ff341d2
Client.prototype.api
will now warn on use as it's deprecated and will be removed by the next minor version, 1.9.0. It's not intended to be a great choice for API requests. Either directly usefetch
/node-fetch
, another request library, or a Twitch-specific library liketwitch
on npm. -
76edfc8 dea8eed 5ea712f f689bc5 Remove various util functions.
-
8f3a849 Fixed possible case fallthrough bug.
-
efc6cdb Add eslint (and many more commits related to facelifting the repo)
v1.7.5
- 9d8ca1c Add "sub" alias for "subscription" event