File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1919 with :
20202121 - uses : coursier/cache-action@v5
22- - uses : actions/checkout@v2
23- with :
24- repository : scala-js/scala-js
25- ref : e38b86aef95ac074fe84e7fda3e22e08a723a91b
26- path : ./scalajs-nightly
27- - name : publishLocal Scala.js nightly
28- run : |
29- sbt ";ir2_12/publishLocal;linkerInterface2_12/publishLocal;linker2_12/publishLocal;testAdapter2_12/publishLocal;sbtPlugin/publishLocal"
30- sbt ";compiler2_11/publishLocal;library2_11/publishLocal;testInterface2_11/publishLocal;testBridge2_11/publishLocal;jUnitRuntime2_11/publishLocal;jUnitPlugin2_11/publishLocal"
31- sbt ";compiler2_12/publishLocal;library2_12/publishLocal;testInterface2_12/publishLocal;testBridge2_12/publishLocal;jUnitRuntime2_12/publishLocal;jUnitPlugin2_12/publishLocal"
32- sbt ";compiler2_13/publishLocal;library2_13/publishLocal;testInterface2_13/publishLocal;testBridge2_13/publishLocal;jUnitRuntime2_13/publishLocal;jUnitPlugin2_13/publishLocal"
33- working-directory : ./scalajs-nightly
3422 - name : Test JVM
3523 run : sbt "++${{ matrix.scalaversion }}" testSuiteJVM/test
3624 - name : Test JS
Original file line number Diff line number Diff line change 55It assumes that the target platform supports JavaScript's ` WeakRef ` and ` FinalizationRegistry ` , which are becoming standard in ECMAScript 2021.
66Attempts to use ` WeakReference ` or ` ReferenceQueue ` will throw ` ReferenceError ` s if they are not supported.
77
8+ ## Usage
9+
10+ Add the following dependency to your project settings:
11+
12+ ``` scala
13+ libraryDependencies += " org.scala-js" %%% " scalajs-weakreferences" % " 1.0.0-SNAPSHOT"
14+ ```
15+
16+ When using a ` crossProject ` , add the above in ` .jsSettings(...) ` .
17+
18+ You can then use ` java.lang.ref.WeakReference ` and ` java.lang.ref.ReferenceQueue ` .
19+
820## License
921
1022` scalajs-weakreferences ` is distributed under the [ Apache 2.0 license] ( ./LICENSE.txt ) , like Scala.js itself.
Original file line number Diff line number Diff line change 1- addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 1.6.0-SNAPSHOT " )
1+ addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 1.6.0" )
22addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 1.0.0" )
33
44addSbtPlugin(" de.heikoseeberger" % " sbt-header" % " 5.6.0" )
You can’t perform that action at this time.
0 commit comments