Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to sjs-dom 2.0.0 #23

Closed

Conversation

armanbilge
Copy link
Member

No description provided.

build.sbt Outdated
@@ -125,7 +125,8 @@ lazy val dom = project
"co.fs2" %%% "fs2-core" % fs2Version,
"org.http4s" %%% "http4s-client" % http4sVersion,
"org.scala-js" %%% "scalajs-dom" % scalaJSDomVersion
)
),
dependencyOverrides += "org.scala-js" %%% "scalajs-dom" % scalaJSDomVersion
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workaround pending typelevel/fs2#2681.

@armanbilge
Copy link
Member Author

typelevel/fs2#2681 really shot us in the foot ...

import org.scalajs.dom.experimental.ResponseInit
import org.scalajs.dom.experimental.serviceworkers.FetchEvent
import org.scalajs.dom.experimental.serviceworkers.ServiceWorkerGlobalScope
import org.scalajs.dom.experimental.{Response => DomResponse}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why were they renamed upstream? Were they experimental on the scala.js side or were they experimental originally on the dom side?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They were experimental in DOM. But in general, in SJS-dom we decided to "de-namespace": almost everything is inside the dom.* package now. See this for details.

Copy link
Member

@cquiroz cquiroz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for doing this update

@armanbilge
Copy link
Member Author

Thanks! But this is badly broken until typelevel/fs2#2681 is fixed. I mostly opened this to check that the sjs-dom RC is working ok. We still need to decide what our branching strategy is going to be.

@armanbilge armanbilge changed the base branch from series/0.1 to series/0.2 October 24, 2021 02:56
@armanbilge armanbilge changed the title Update to sjs-dom 2.0.0-RC1 Update to sjs-dom 2.0.0 Oct 24, 2021
@armanbilge armanbilge marked this pull request as ready for review October 24, 2021 02:56
@armanbilge armanbilge closed this Oct 24, 2021
@armanbilge armanbilge reopened this Oct 24, 2021
@armanbilge
Copy link
Member Author

Superseded by #28.

@armanbilge armanbilge closed this Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants