You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 on DOMList instead
org.scalajs.dom.ext.LocalStorage is gone, use dom.window.localStorage instead
org.scalajs.dom.ext.LocalStorage.apply(key) – use Option(dom.window.localStorage.getItem(key))
org.scalajs.dom.ext.LocalStorage.apply(key) = newValue – use dom.window.localStorage.setItem(key, newValue)
new-based constructor doesn't work for MutationObserverInit – I don't have a workaround, so I just copied the MutationObserverInit.apply into my code (to avoid the deprecation) (Consistently set defaults for new-based constructors #624) see Sébastien's response
(will post comments here if I find more)
The text was updated successfully, but these errors were encountered:
@yurique Thanks for this, much appreciated! I created a discussion in #627, would you mind commenting there with your notes/tips and closing this issue? That can be a community-sourced migration guide, I'll link it from the release notes 😁
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) (Consistently set defaults fornew
-based constructors #624)(will post comments here if I find more)
The text was updated successfully, but these errors were encountered: