Skip to content

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Mar 21, 2017

This PR contains everything involved in upgrading to Scala.js 0.6.15, piecemeal.

The first commit does the upgrade itself, and configures the compiler to ignore warnings related to major deprecations.

The next 3 commits use scalafix to automatically migrate facades to using @JSGlobal.

The last commit migrates the examples to use @JSExportTopLevel instead of @JSExport on top-level objects.

sjrd added 4 commits March 21, 2017 10:51
We fix the warnings related to private constructors of native JS
classes. However, we disable the deprecations related to
`@JSGlobal` in the facades, and those related to `@JSExport` on
top-level objects in the example project. Those will be addressed
later.
We choose not to reorganize imports to minimize the diff. However
that means we'll have to manually import `@JSGlobal` where
necessary after applying the scalafix rewrite.

Note: we do not actually apply the rewrite just yet, so that this
commit serves as documentation for Scala.js users.
Imports are updated manually. Everything else comes straight from
scalafix, without manual intervention.

We remove the compiler option that disregards the warnings, since
it's all been fixed.
This reverts commit 0d1d295.

After having applied the rewrites, we do not need scalafix anymore,
so we can remove it.
We also remove the compiler option that disards the relevant
warnings.
@sjrd sjrd merged commit 2bbe005 into scala-js:master Mar 21, 2017
@sjrd sjrd deleted the upgrade-scalajs-0.6.15 branch March 21, 2017 13:36
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.

1 participant