File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 19
19
with :
20
20
21
21
- 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
34
22
- name : Test JVM
35
23
run : sbt "++${{ matrix.scalaversion }}" testSuiteJVM/test
36
24
- name : Test JS
Original file line number Diff line number Diff line change 5
5
It assumes that the target platform supports JavaScript's ` WeakRef ` and ` FinalizationRegistry ` , which are becoming standard in ECMAScript 2021.
6
6
Attempts to use ` WeakReference ` or ` ReferenceQueue ` will throw ` ReferenceError ` s if they are not supported.
7
7
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
+
8
20
## License
9
21
10
22
` 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" )
2
2
addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 1.0.0" )
3
3
4
4
addSbtPlugin(" de.heikoseeberger" % " sbt-header" % " 5.6.0" )
You can’t perform that action at this time.
0 commit comments