Suggestions for the 2.0.0 migration guide (as seen in the release notes)
yurique opened this issue · 4 comments
yurique commented
I might be wrong about some of these and would love to be corrected where I got it wrong. (I'm reverse engineering it as I migrate to 2.0.0 and dropping notes here :) ).
org.scalajs.dom.ext.EasySeq
is gone, use.toSeq
onDOMList
insteadorg.scalajs.dom.ext.LocalStorage
is gone, usedom.window.localStorage
insteadorg.scalajs.dom.ext.LocalStorage.apply(key)
– useOption(dom.window.localStorage.getItem(key))
org.scalajs.dom.ext.LocalStorage.apply(key) = newValue
– usedom.window.localStorage.setItem(key, newValue)
new-based constructor doesn't work forsee Sébastien's responseMutationObserverInit
– I don't have a workaround, so I just copied theMutationObserverInit.apply
into my code (to avoid the deprecation) (#624)
(will post comments here if I find more)
yurique commented
org.scalajs.dom.NodeList
now takes a type parameter, useNodeList[Node]
(is this correct?)
armanbilge commented
yurique commented
@armanbilge awesome idea! Moving things over there.