Maintenance release
Tyrian has been brought up to date with with Scala.js 1.16.0 and Scala 3.4.1.
When idle, do nothing.
Also in this release is a re-organisation of the code, in support of a change in runtime behaviour. It was reported that Tyrian was quite resource hungry even on idle/static pages, and that this was probably undesirable particularly on such things as mobile devices.
The cause of all this resource hogging was the continuous requestAnimationFrame
loop that the engine used to make use off to, ironically, do less rendering. This behaviour has now changed so that idle pages do indeed stop doing work until something happens.
Tyrian-Tags
Since the runtime and code organisation was under scrutiny anyway, some work was also done to reorganise the modules a bit.
The aim here was to make the modules that were published for the JVM and JS to do the same thing in all cases (where previously the JVM had the same name as the JS module, but had drastically reduced functionality, and hopefully avoid future user confusion.
As a result, the tyrian
module is now only available for Scala.js, and TyrianAppF
has been renamed to simple TyrianApp
. So if you are using TyrianAppF.start()
for some unknown reason, this will affect you (most people won't be).
Anyone using Tyrian for SSR (Serverside Rendering) on the JVM, should now pull in the new tyrian-tags
module instead, which otherwise behaves identically to the way it did before.
The Tyrian Tags module is cross published for JS and the JVM, and contains all the HTML, CSS, and Location data, that works on both platforms.
What's Changed
- Add debouncing example by @DLakomy in #256
- Add Tailwind CSS example by @francosang in #261
- Fixed #259: Upgrade to Scala.js 1.16.0 by @davesmith00000 in #260
- Fixes #257: Upgrade Scala to 3.4.1 by @davesmith00000 in #258
- Reworking the runtime by @davesmith00000 in #263
- Issue #252: Tyrian tags module by @davesmith00000 in #265
New Contributors
- @DLakomy made their first contribution in #256
- @francosang made their first contribution in #261
Full Changelog: v0.10.0...v0.11.0