Skip to content

Commit 3dc9328

Browse files
committed
Miscellaneous updates and fixes
Updated to v0.4.0
1 parent e937ce0 commit 3dc9328

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ The following core Node.js modules (v7.7.1) have been implemented:
231231
| vm | The vm module provides APIs for compiling and running code within V8 Virtual Machine contexts.|
232232
| zlib | This provides bindings to Gzip/Gunzip, Deflate/Inflate, and DeflateRaw/InflateRaw classes. |
233233

234-
*NOTE*: The SBT artifact for the complete Node.js platform is: "io.scalajs" %%% "nodejs" % "0.4.0-pre5"
234+
*NOTE*: The SBT artifact for the complete Node.js platform is: "io.scalajs" %%% "nodejs" % "0.4.0"
235235

236236
<a name="npm_modules">
237237
#### Third-party Modules
@@ -298,7 +298,7 @@ The following Third Party/OSS Node.js (npm) modules have been implemented:
298298
| [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. |
299299
| [xml2js](https://github.com/scalajs-io/xml2js) | 0.4.16 | Simple XML to JavaScript object converter. |
300300

301-
*NOTE*: The full SBT artifact expression is: "io.scalajs.npm" %%% "xxxx" % version (e.g. "io.scalajs.npm" %%% "express" % "0.4.0-pre5")
301+
*NOTE*: The full SBT artifact expression is: "io.scalajs.npm" %%% "xxxx" % version (e.g. "io.scalajs.npm" %%% "express" % "0.4.0")
302302

303303
I've provided an example to demonstrate how similar the Scala.js code is to the JavaScript
304304
that it replaces.

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import sbt._
55

66
import scala.language.postfixOps
77

8-
val scalaJsIOVersion = "0.4.0-pre5"
8+
val scalaJsIOVersion = "0.4.0"
99
val apiVersion = scalaJsIOVersion
1010
val scalaJsVersion = "2.12.1"
1111

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "nodejs-sfs",
3-
"version": "0.4.0-pre5",
3+
"version": "0.4.0",
44
"private": true,
55
"dependencies": {
6-
"source-map": "^0.5.6"
6+
"source-map-support": "^0.4.14"
77
}
88
}

src/main/scala/io/scalajs/nodejs/child_process/ChildProcess.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package io.scalajs.nodejs
22
package child_process
33

44
import io.scalajs.RawOptions
5+
import io.scalajs.nodejs.events.IEventEmitter
56
import io.scalajs.nodejs.buffer.Buffer
67

78
import scala.scalajs.js
@@ -15,7 +16,7 @@ import scala.scalajs.js.|
1516
* @author lawrence.daniels@gmail.com
1617
*/
1718
@js.native
18-
trait ChildProcess extends js.Object {
19+
trait ChildProcess extends IEventEmitter {
1920

2021
/**
2122
* Spawns a shell then executes the command within that shell, buffering any generated output.

src/main/scala/io/scalajs/nodejs/http/ClientRequest.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import io.scalajs.util.PromiseHelper._
88

99
import scala.concurrent.Future
1010
import scala.scalajs.js
11+
import scala.scalajs.js.annotation.JSImport
1112

1213
/**
1314
* http.ClientRequest - This object is created internally and returned from http.request(). It represents an in-progress
@@ -30,6 +31,7 @@ import scala.scalajs.js
3031
* @author lawrence.daniels@gmail.com
3132
*/
3233
@js.native
34+
@JSImport("http", "ClientRequest")
3335
class ClientRequest extends Readable {
3436

3537
def headers: js.Dictionary[String] = js.native
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package io.scalajs.nodejs.os
22

33
import scala.scalajs.js
4+
import scala.scalajs.js.annotation.ScalaJSDefined
45

56
/**
67
* Represents a Network Interface
78
* @author lawrence.daniels@gmail.com
89
*/
9-
@js.native
10+
@ScalaJSDefined
1011
class NetworkInterface(val address: String,
1112
val netmask: String,
1213
val family: String,
1314
val mac: String,
1415
val scopeid: js.UndefOr[Int],
15-
val internal: Boolean)
16-
extends js.Object
16+
val internal: Boolean) extends js.Object
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package io.scalajs.nodejs.querystring
22

33
import scala.scalajs.js
4+
import scala.scalajs.js.annotation.ScalaJSDefined
45

56
/**
67
* Query String Encode Options
78
* @param encodeURIComponent The function to use when converting URL-unsafe characters to percent-encoding in
89
* the query string. Defaults to querystring.escape().
910
* @author lawrence.daniels@gmail.com
1011
*/
11-
@js.native
12+
@ScalaJSDefined
1213
class QueryEncodeOptions(val encodeURIComponent: js.UndefOr[js.Function] = js.undefined) extends js.Object

src/test/resources/watchfile.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scalajs-io",
3-
"version": "0.4.0-pre5",
3+
"version": "0.4.0",
44
"private": true,
55
"dependencies": {
66
"async": "^2.0.1",
@@ -42,7 +42,7 @@
4242
"rx": "^4.1.0",
4343
"should": "^11.1.2",
4444
"socket.io": "^1.7.2",
45-
"source-map": "^0.5.6",
45+
"source-map-support": "^0.4.14",
4646
"splitargs": "0.0.7",
4747
"tingodb": "^0.5.1",
4848
"transducers-js": "^0.4.174",

0 commit comments

Comments
 (0)