Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14.3.0
v14.7.0
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jdk:

env:
matrix:
- TRAVIS_NODE_VERSION="14.3.0"
- TRAVIS_NODE_VERSION="12.16.3"
- TRAVIS_NODE_VERSION="10.20.1"
- TRAVIS_NODE_VERSION="14.7.0"
- TRAVIS_NODE_VERSION="12.18.3"
- TRAVIS_NODE_VERSION="10.22.0"

script:
- SCALAJS_VERSION="0.6.33" sbt ++$TRAVIS_SCALA_VERSION test
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# scala-js-nodejs

Scala.js type facades for Node.js v10 and v12.
Scala.js type facades for Node.js v10, v12 and v14.

## Support matrix

| | ScalaJS 0.6.28+ | ScalaJS 1.x |
| ---------- | :----------------: | :-----------------------------: |
| Scala 2.13 | :heavy_check_mark: | :heavy_check_mark: from v0.10.0 |
| Scala 2.12 | :heavy_check_mark: | :heavy_check_mark: from v0.10.0 |
| Scala 2.11 | N/A | N/A |
| Scala 2.10 | N/A | N/A |
| | ScalaJS 0.6.28+ | ScalaJS 1.x |
| ---------- | :-----------------------------------: | :-----------------------------: |
| Scala 2.13 | :heavy_check_mark: (v0.12.0 is final) | :heavy_check_mark: from v0.10.0 |
| Scala 2.12 | :heavy_check_mark: (v0.12.0 is final) | :heavy_check_mark: from v0.10.0 |
| Scala 2.11 | N/A | N/A |
| Scala 2.10 | N/A | N/A |

- :heavy_check_mark: Supported
- :construction: Not supported but planned
Expand All @@ -24,10 +24,12 @@ Feel free to open issue/send pull request if you find missing module.
Add below line to your SBT project.

```sbt
// For Node.js v10 LTS
libraryDependencies += "net.exoego" %%% "scala-js-nodejs-v10" % "0.11.0"
// For Node.js v12 (supposed to be next LTS)
libraryDependencies += "net.exoego" %%% "scala-js-nodejs-v12" % "0.11.0"
// For Node.js v10 LTS (Will be dropped on 2021-4-30)
libraryDependencies += "net.exoego" %%% "scala-js-nodejs-v10" % "0.12.0"
// For Node.js v12 LTS
libraryDependencies += "net.exoego" %%% "scala-js-nodejs-v12" % "0.12.0"
// For Node.js v14 LTS
libraryDependencies += "net.exoego" %%% "scala-js-nodejs-v14" % "0.12.0"
```

## Example of code
Expand Down Expand Up @@ -105,5 +107,3 @@ for {
## Note

This facade leverages [`@Factory` marcro](https://github.com/exoego/scalajs-types-util#factory-macro) to create highly-optimized factory method without boilerplate.


6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ lazy val core = (project in file("./core"))
libraryDependencies ++= Dependencies.core.value
)

lazy val nodejs_v14 = createNodeVersionSpecificProject("14.3.0")
lazy val nodejs_v12 = createNodeVersionSpecificProject("12.16.3")
lazy val nodejs_v10 = createNodeVersionSpecificProject("10.20.1")
lazy val nodejs_v14 = createNodeVersionSpecificProject("14.7.0")
lazy val nodejs_v12 = createNodeVersionSpecificProject("12.18.3")
lazy val nodejs_v10 = createNodeVersionSpecificProject("10.22.0")

def createNodeVersionSpecificProject(nodeFullVersion: String) = {
val majorVersion = nodeFullVersion.split("\\.")(0)
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.11.0"
version in ThisBuild := "0.12.0"