From 6a857fd6332e83799c2f64325efbf1e5eb079828 Mon Sep 17 00:00:00 2001 From: Lawrence Daniels Date: Tue, 21 Mar 2017 17:01:46 -0700 Subject: [PATCH] Released as v0.3.0.8 --- README.md | 2 +- build.sbt | 2 +- src/main/scala/io/scalajs/nodejs/fs/ReadStream.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ae03c4e63..050069e1c 100644 --- a/README.md +++ b/README.md @@ -298,7 +298,7 @@ The following Third Party/OSS Node.js (npm) modules have been implemented: | [winston-daily-rotate-file](https://github.com/scalajs-io/winston-daily-rotate-file) | 1.4.4 | A multi-transport async logging library for Node.js. | | [xml2js](https://github.com/scalajs-io/xml2js) | 0.4.16 | Simple XML to JavaScript object converter. | -*NOTE*: The full SBT artifact expression is: "io.scalajs.npm" %%% "xxxx" % version (e.g. "io.scalajs.npm" %%% "express" % "4.14.1-3") +*NOTE*: The full SBT artifact expression is: "io.scalajs.npm" %%% "xxxx" % version (e.g. "io.scalajs.npm" %%% "express" % "4.14.1-4") I've provided an example to demonstrate how similar the Scala.js code is to the JavaScript that it replaces. diff --git a/build.sbt b/build.sbt index 1869a179b..3d5884465 100644 --- a/build.sbt +++ b/build.sbt @@ -5,7 +5,7 @@ import sbt._ import scala.language.postfixOps -val scalaJsIOVersion = "0.3.0.7" +val scalaJsIOVersion = "0.3.0.8" val apiVersion = scalaJsIOVersion val scalaJsVersion = "2.12.1" diff --git a/src/main/scala/io/scalajs/nodejs/fs/ReadStream.scala b/src/main/scala/io/scalajs/nodejs/fs/ReadStream.scala index 81779817e..1b6b9c842 100644 --- a/src/main/scala/io/scalajs/nodejs/fs/ReadStream.scala +++ b/src/main/scala/io/scalajs/nodejs/fs/ReadStream.scala @@ -23,7 +23,7 @@ trait ReadStream extends Readable { /** * The number of bytes read so far. */ - def bytesRead: Double = js.native + def bytesRead: js.UndefOr[Double] = js.native /** * The path to the file the stream is reading from as specified in the first argument to fs.createReadStream().