Skip to content

Releases: mkody/twitch-emoticons

2.8.9: Dependencies update

09 Oct 14:38
2.8.9
27e884a
Compare
Choose a tag to compare

This is just a maintenance release, no changes to the library.

Please check out the 2.8.0 release notes for the what's new in 2.8.x and the 2.8.3 release notes about the experimental ESM bundle.

2.8.8: Dependencies update

23 Aug 12:44
Compare
Choose a tag to compare

This is just a maintenance release, no changes to the library.

Please check out the 2.8.0 release notes for the what's new in 2.8.x and the 2.8.3 release notes about the experimental ESM bundle.

2.8.7: Dependencies update

18 Mar 14:29
2.8.7
515cba1
Compare
Choose a tag to compare

This release contains a security update for follow-redirects.
See: CVE-2024-28849 ; GHSA-cxjh-pqwp-8mfp

All other deps have been updated too, including Twurple to 7.1.0.
GitHub Actions workflows have been updated too.

Please check out the 2.8.0 release notes for the what's new in 2.8.x and the 2.8.3 release notes about the experimental ESM bundle.

2.8.6: Dependencies update

21 Feb 16:02
2.8.6
c7b9098
Compare
Choose a tag to compare

This is just a maintenance release, no changes to the library.

Please check out the 2.8.0 release notes for the what's new in 2.8.x and the 2.8.3 release notes about the experimental ESM bundle.

2.8.5: Dependencies update

31 Dec 16:30
Compare
Choose a tag to compare

This is just a maintenance release, no changes to the library.
Happy new year!

Please check out the 2.8.0 release notes for the what's new in 2.8.x and the 2.8.3 release notes about the experimental ESM bundle.

2.8.4: Dependencies update

27 Oct 17:30
Compare
Choose a tag to compare

One of our dependencies - Axios - got a security update.
We're releasing 2.8.4 to clear those big red warnings.

Please check out the 2.8.0 release notes for the what's new in 2.8.x and the 2.8.3 release notes about the experimental ESM bundle.

2.8.3: Update dependencies and experimental bundle

03 Oct 15:41
Compare
Choose a tag to compare

This release is pretty much only updates to our dependencies.

The project is also now being tested using the Jest framework!
Better than the custom solution from upstream.

[EXPERIMENTAL] There's also a bundled ESM version available.
Check out this quick POC and its source code: https://s.kdy.ch/twitch-emoticons/

(This is a republishing of 2.8.2 but with a proper .npmignore)

2.8.1: Update typings

03 Aug 09:42
Compare
Choose a tag to compare

The new options parameter in EmoteFetcher wasn't referenced.

This release also includes a now working "contributors" field in package.json, and the json parameter in EmoteFetcher.fromObject() has
been renamed to emotesArray.

Please look at the 2.8.0 release notes for what's new in 2.8.x.

2.8.0: toObject, fromObject, use your ApiClient

28 Jul 12:55
Compare
Choose a tag to compare

This release, in addition to upgrading our Twurple to 7.x, brings three new features:

  • Emote.toObject() (#31 - @Tzahi12345): You can export the data of an emote for caching or offline use.
    const emote = emoteFetcher.emotes.get('Kappa').toObject();
    /*
    {
        id: '25',
        type: 'twitch',
        code: 'Kappa',
        animated: false,
        channel_id: null,
        set: undefined
    }
    */
  • EmoteFetcher.fromObject() (#31 - @Tzahi12345): You can import an array of emotes directly into the fetcher.
    emoteFetcher.fromObject([emote]);
  • The EmoteFetcher now accepts an object as a third parameter for options. (#33)
    The only option for now is apiClient and it allows you to use your own @twurple/api's ApiClient object, in case you already have one or want to manage authentification without app tokens.
    Note that the first two parameters of EmoteFetcher will be unused in this case and can be left as null.
    const { ApiClient } = require('@twurple/api');
    const { StaticAuthProvider } = require('@twurple/auth');
    
    const authProvider = new StaticAuthProvider('<your client id>', '<your token>');
    const apiClient = new ApiClient({ authProvider });
    
    const fetcher = new EmoteFetcher(null, null, { apiClient });

2.7.1: Emote's owner might be null; Use `axios` for requests

23 May 17:19
Compare
Choose a tag to compare

This release handles the case where 7TV or FFZ emotes might not have an owner object.
When it happens, the owner property for the emote will be null.
This was already the case for BTTV. Check for nullable values!

Typings were updated/fixed to reflect that.

This project also switched to axios to make API requests to the 3rd party emotes services.
got 12.x requires us to switch to ESM but I'm not 100% comfortable in doing so yet. And axios got better since the last time I checked.
This change should be transparent for everyone.