Skip to content

v1.0.44

Choose a tag to compare

@Classic298 Classic298 released this 15 Oct 19:12
· 19 commits to main since this release
100be8f

v1.0.44

📣 Better Banners v1.0.3

banner-better-banners

Live reload now survives Redis outages, and other plugins can no longer get in the way of the banner script.

Heads-up: containers already running 1.0.2 load 1.0.3 by themselves as soon as you save the update in Admin Panel → Functions. Containers on an older version still need a restart.

Added

  • Live reload reconnects by itself after a Redis restart or outage. Before, a container stopped hearing about code changes, settings changes and disables until it was restarted. Each outage now logs a single warning, even when the connection keeps dropping.
  • Future fixes to live reload reach running containers on their next load, without a restart.
  • When another plugin is deleted, Better Banners removes that plugin's page code right away. Before, it kept being served until the server restarted.

Fixed

  • Behind a reverse proxy that compresses responses, browsers downloaded the banner script again on every page load. Unchanged files are now answered with a short "not modified".
  • A cloned copy of Better Banners shared live reload with the original, so disabling the clone switched off the original's banners on the other containers. Each copy now has its own.
  • A script from another plugin that ended without a semicolon could stop the banner script from running.

🤝 Shared Assets Protocol v5

ASSET_IMPL_VERSION is now 5. Plugins that update their copy take over from older copies automatically.

Heads-up for plugin authors: fragments are now stored under your plugin's Open WebUI id, which the block reads by itself. When you copy the new block, remove the key argument from your asset_register calls, and if you use the live reload add-on, remove your ASSET_KEY line as well. Each plugin has one fragment per file, so keep all of your JS in one fragment and all of your CSS in another.

Changed

  • Fragments are keyed by the plugin's Open WebUI id instead of a name each author picks. Ids are unique, so two plugins can no longer overwrite each other, and a clone gets its own fragment.
  • Pieces of loader.js are now joined with a semicolon. A new rule asks every plugin to wrap its JS in its own function with a try/catch, since one uncaught error stops the whole file.

Added

  • asset_withdraw_deleted(__app__, event, __event_name__) removes the code of a plugin that was just deleted. Call it from your event handler. One installed event function that calls it cleans up after every other plugin, and the live reload add-on calls it for you.
  • The live reload add-on reconnects after a Redis outage, with a growing pause of up to a minute and one warning per outage.
  • The live reload add-on has its own RELOAD_IMPL_VERSION. Raise it whenever you change the listener, and running containers swap in the new listener on their next load.

Fixed

  • Behind a reverse proxy that compresses responses, loader.js and custom.css were downloaded in full on every page load because the "not modified" check never matched.
  • When the loader.js on disk or a fragment ended without a semicolon and the next fragment started with a bracket, the browser read them as one statement and the next plugin's code never ran.

✉️ Email Composer v1.1.1

banner-email-composer

Fixed

  • The subject field only showed about 20 characters. It now fills its row. Thanks to @13robin37 (#96).