nxta We do plan on upgrading to Mithril v2. There's an issue on our GitHub for a Frontend Framework Rewrite (flarum/core#1821), which I'm assigned to.
I myself don't fully understand (yet) how Flarum uses Mithril for its Components (as it also includes a
.render function that just returns the view, etc...) so my first attempt few attempts have failed. This was about a month ago, haven't had the time to try again.
I do plan on making the rewrite as backwards-compatible as possible for extensions, but as that will probably not be the case, we will merge all those changes that include dependency upgrades and dependency changes at once.
We also plan on adding TypeScript if possible, to allow for simpler extension development and to avoid common type errors, etc...
is it wise to try and avoid certain practices to futureproof my extension when it comes to Mithril?
Many extensions will break, I don't really know what functions we'll be able to keep and which ones we wont, so I wouldn't worry about that.