Skip to content

Commit 506d6ec

Browse files
authored
Merge pull request #2 from sjrd/prepare-for-1.0.0
Prepare for 1.0.0
2 parents b2439e2 + 17e05af commit 506d6ec

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/ci.yml

-12
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ jobs:
1919
with:
2020
java-version: "[email protected]"
2121
- 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

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
It assumes that the target platform supports JavaScript's `WeakRef` and `FinalizationRegistry`, which are becoming standard in ECMAScript 2021.
66
Attempts 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.

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.6.0-SNAPSHOT")
1+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.6.0")
22
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
33

44
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")

0 commit comments

Comments
 (0)