Skip to content

0.11.0

Latest
Compare
Choose a tag to compare
@davesmith00000 davesmith00000 released this 14 Apr 14:00
· 1 commit to main since this release

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

New Contributors

Full Changelog: v0.10.0...v0.11.0