Laminar v0.12.2
Bug fixes for source maps, SVG xmlns, and XHR headers. A couple new convenience methods. Requires Scala.js 1.5.0.
News
Kit's new video explains how to use Magnolia to derive Laminar components. The final code is here, and includes safe Owner handling.
Laminar Changes
Build: We require Scala.js 1.5.0 now
Fix: Text cursor was being reset in controlled inputs in Safari. Must be a bug, I worked around it.
Fix: Map source maps to github URLs. You should now be able to see correct source maps using scalajs-friendly-source-map-loader (thanks, @ajablonski!).
New:
renderOnDomContentLoaded
convenience method (likerender
, but waits for the browser'sDOMContentLoaded
event to ensure that the container can be found in the DOM).
Airstream Changes
Fix: In
AjaxEventStream
, moveheaders
param fromopenRequest
tosendRequest
(it was impossible to specify custom headers due to this bug).New:
Observer#contramapOpt
convenience method – likecontraCollect
but designed for Option-returning methods likeNonEmptyList.fromList
(thanks, @jatcwang!)
Scala DOM Types Changes
- Fix: Specify correct namespace for
xmlns
SVG attribute.
Thank You
Laminar & Airstream development is sponsored by people like you.
GOLD sponsors supporting this release:
Thank you for supporting me! ❤️