Skip to content

Releases: zaytri/slime2

v1.1.4

19 Feb 05:36
Compare
Choose a tag to compare

Fixes

  • When you have both a primary and secondary pronoun, it now correctly shows the subject form of both pronouns (for example, showing they/she instead of they/her)
  • Won't hang up if the pronouns API has slowdowns
    • Result of /pronouns endpoint is now hardcoded, so no need for anything to wait for that, but a background fetch for that endpoint still happens and replaces that when resolved
    • If fetching a user's pronouns takes longer than 500 milliseconds, it'll just assume no pronouns (null), but continues to fetch their pronouns in the background to cache it when requested again

Other Changes

Full Changelog: 1.1.3...1.1.4

v1.1.3

15 Feb 23:09
Compare
Choose a tag to compare

Changes

  • Updated to use the new pronouns API, where users can mix and match pronouns here: https://pr.alejo.io/
  • Automatically rejoins chat if temporarily disconnected (like temporary loss of internet connection)

Full Changelog: 1.1.2...1.1.3
...maybe I should move widgets into a separate repo so that those updates are separate

v1.1.2

02 Dec 21:37
Compare
Choose a tag to compare

Important Fix!

  • The refreshing authentication actually works now, I thought I handled the bug with the previous patch but I only sort of did? It kept using the old authentication regardless, because it kept making a new authentication instance, anyway that's all handled now! Hopefully!

All slime2 chat widgets are highly recommended to upgrade to this!

No breaking changes, all you need to do is change the slime2 version to 1.1.2 for the slime2 JS/CSS in your HTML file.

Change this:

<script type="module" crossorigin src="https://cdn.jsdelivr.net/gh/zaytri/slime2@1.1.1/release/slime2.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/zaytri/slime2@1.1.1/release/slime2.css">

To this:

<script type="module" crossorigin src="https://cdn.jsdelivr.net/gh/zaytri/slime2@1.1.2/release/slime2.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/zaytri/slime2@1.1.2/release/slime2.css">

v1.1.1

21 Nov 07:08
Compare
Choose a tag to compare

Important Fix!

  • Refreshing Twitch authentication is now handled correctly, previously chat overlays would break after about 4 hours from the access token expiring

Any chat widget using slime2 v1 needs to upgrade to this!

No breaking changes, all you need to do is change the slime2 version for the slime2 JS/CSS in your HTML file.

v1.1.0

15 Nov 08:53
Compare
Choose a tag to compare

Features

  • You can now return parentProps from the function passed into onEvent, if you need to add classes or styles into the rendered .slime2-event
    • For example, adding align-self into the parent so that messages can be dynamically left aligned or right aligned
    • I definitely added this in because I needed that functionality in Villager Chat specifically

Fixes

  • Settings windows now have a very high z-index (9999), so that they're always above any z-indexes set by widgets

Full Changelog: 1.0.0...1.1.0

v1.0.0

12 Nov 04:04
Compare
Choose a tag to compare

slime2 is out of beta!! 🎉

There's been... a lot of changes. I don't even remember them all to be honest. I pretty much rewrote everything?? So that it can be made compatible with more Twitch events in the future other than just chat, and compatible with other platforms, like YouTube. There's YouTube code in there but none of it is in a working state, but most importantly...

Widget Settings can now be defined!

No longer will users need to directly edit the code to make the changes they want, they can do it all thru settings defined by the widget JS!

I built out an entire site for widget development docs at https://docs.slime2.stream/, and here's a preview of what the widget settings can look like:

Widget Settings Preview

Breaking Changes

Any widgets made with previous versions of slime2 are pretty much incompatible with this. I'm updating all my widgets to the new version so that they'll all work with this, and so that they'll all have proper widget settings as well.

If you did make a widget using the previous version, I can help you migrate it over. Previous versions will continue to work, I'm going to make sure that the token page on the slime2 website stays active for at least a year, but it will be removed eventually since v1 uses a new account page.

I'm also no longer including a release zip here, which was really just the Base Chat widget using slime2.

Instead the now renamed Simple Chat widget will be available from the widgets resource category in the forums: https://forums.slime2.stream/resources/categories/widgets.2/

Full Changelog: 0.2.3...1.0.0

v0.2.3

24 Sep 05:05
Compare
Choose a tag to compare

Getting Started: https://forums.slime2.stream/resources/getting-started-with-slime2.3/

Fixes

  • Applying word-break: break-word globally was actually a really bad idea and broke more things (specifically in Villager Chat), instead overflow-wrap: anywhere (because word-break: break-word is deprecated so this is the better supported way of handling it) is applied to just the .content class where it's actually needed

Changes

  • Added a test message that's just "hi" and a different test message that's just "LongTestMessage" repeated with no spaces to test both extremes of message text
  • The Send Test Message button is now centered in each cell of the 9x9 grid of where it can appear, because it was getting annoying when I'd try to Right Click > Inspect but the button was in the way

Full Changelog: 0.2.2...0.2.3

v0.2.2

23 Sep 16:12
Compare
Choose a tag to compare

Getting Started: https://forums.slime2.stream/resources/getting-started-with-slime2.3/

Fixes

  • Messages now word wrap correctly if they contain a really long string of characters with no spaces
    Before After
    NVIDIA_Share_0IuGesqAeD NVIDIA_Share_zhEshAcpds

Changes

  • Test mesages now include randomized punctuation and 10% chance of a long message
  • Terms of Use added to README.md and README.txt
  • Changed release folder for the theme-build script, now all theme related files go into the themes folder so that it can be used as a git repo itself

Full Changelog: 0.2.1...0.2.2

v0.2.1

21 Sep 22:45
Compare
Choose a tag to compare

Getting Started: https://forums.slime2.stream/resources/getting-started-with-slime2.3/

Fixes

  • The testBroadcaster user in test messages now has user.roles.subscriber = true instead of false
  • Test messages now correctly set the message type for action and highlighted messages
  • The theme-build command now sets the correct slime2 links in the HTML file

Full Changelog: 0.2.0...0.2.1

v0.2.0

21 Sep 01:57
Compare
Choose a tag to compare

Getting Started: https://forums.slime2.stream/resources/getting-started-with-slime2.3/

Features

  • 8 classes have been added to base.css that can be used on main in base.html to alter if the chat is listed vertically or horizontally, and which corner messages appear from

    • vertical-top-left
    • vertical-top-right
    • vertical-bottom-left (default)
    • vertical-bottom-right
    • horizontal-top-left
    • horizontal-top-right
    • horizontal-bottom-left
    • horizontal-bottom-right
  • Dynamic emote sizes have been added!

    • Small if the message contains any text
    • Medium if the message contains multiple emotes and no text
    • Large if the message is just a single emote

    image

    • If you would like to disable this feature, remove the class dynamic-emote-sizes from main in base.html
  • Theme development support!

    • I mostly coded this out for my own theme development, but if you'd like to utilize it, I wrote an entire guide for that in the README!
    • You could also just directly edit the release base.* files and use those for theme development, but by directly using this repo, you gain these added benefits:
      • Hot reloading! (Every time you save a change, the page automatically updates without you having to manually refresh)
      • Storing your token as a hidden environmental variable, rather than directly in TOKEN.js, where you need to remember to remove it before sharing your theme
      • Automatically inserting the slime2 version and your theme name into your theme's HTML file
  • Some base theme stylings were changed, notably the user portion now has a background, using the user's color.

    Before After
    image image

Changes

  • base.html now always includes the slime2 version its using in a comment at the top and in the title
  • base.html now includes the theme name at the top of the title (which is just base theme)
  • User color is now randomly assigned from FALLBACK_USER_COLORS on every session if the user never picked a name color
    • Previously this would algorithmically assign a color based on display name, so it would always be the same color between sessions
  • Added more colors to the FALLBACK_USER_COLORS array to have a good mix of light and dark colors to test
  • The Send Test Message button can now appear in 9 different areas instead of the previous 5
  • Improved dev experience

Fixes

  • The favicon link in base.html has now been fixed

Breaking Changes

  • colorBrightness is no longer passed into onMessage through message.user.colorBrightness. Instead, brightness calculation functions using Color.js (textBrightness and backgroundBrightness) have been added directly to base.js, so that it can calculate the brightness of all the colors in the FALLBACK_USER_COLORS array

Full Changelog: 0.1.4...0.2.0