Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Reflect recent updates on Node.js v12.19.0 #327

Merged
merged 3 commits into from
Oct 23, 2020
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
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.10.0"
- TRAVIS_NODE_VERSION="12.18.3"
- TRAVIS_NODE_VERSION="10.22.0"
- TRAVIS_NODE_VERSION="14.14.0"
- TRAVIS_NODE_VERSION="12.19.0"
- TRAVIS_NODE_VERSION="10.22.1"

script:
- sbt ++$TRAVIS_SCALA_VERSION test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,13 @@ trait Crypto extends js.Object {
js.native
def randomFill[T <: scala.scalajs.js.typedarray.TypedArray[_, T]](buffer: T, callback: Callback1[T]): T = js.native

@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs14)
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
def randomInt(max: Int): Int = js.native
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs14)
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
def randomInt(max: Int, callback: Callback1[Int]): Unit = js.native
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs14)
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
def randomInt(min: Int, max: Int): Int = js.native
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs14)
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
def randomInt(min: Int, max: Int, callback: Callback1[Int]): Unit = js.native

def scrypt(password: String, salt: String, keylen: Int, options: ScryptOptions, callback: Callback1[Buffer]): Unit =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ trait Process extends IEventEmitter {
* Returns the old mask if mask argument is given, otherwise returns the current mask.
* @example process.umask([mask])
*/
@deprecated("DEP0139: Use umask(mask) instead.", "Node.js v12.19.0")
def umask(): Int = js.native

/** Number of seconds Node.js has been running.
Expand Down
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.10.0")
lazy val nodejs_v12 = createNodeVersionSpecificProject("12.18.3")
lazy val nodejs_v10 = createNodeVersionSpecificProject("10.22.0")
lazy val nodejs_v14 = createNodeVersionSpecificProject("14.14.0")
lazy val nodejs_v12 = createNodeVersionSpecificProject("12.19.0")
lazy val nodejs_v10 = createNodeVersionSpecificProject("10.22.1")

def createNodeVersionSpecificProject(nodeFullVersion: String) = {
val majorVersion = nodeFullVersion.split("\\.")(0)
Expand Down