Skip to content

Commit

Permalink
Miscellaneous updates and fixes
Browse files Browse the repository at this point in the history
Updated to v0.4.0
  • Loading branch information
ldaniels528 committed Jun 14, 2017
1 parent e937ce0 commit 3dc9328
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ The following core Node.js modules (v7.7.1) have been implemented:
| vm | The vm module provides APIs for compiling and running code within V8 Virtual Machine contexts.|
| zlib | This provides bindings to Gzip/Gunzip, Deflate/Inflate, and DeflateRaw/InflateRaw classes. |

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

<a name="npm_modules">
#### Third-party Modules
Expand Down Expand Up @@ -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" % "0.4.0-pre5")
*NOTE*: The full SBT artifact expression is: "io.scalajs.npm" %%% "xxxx" % version (e.g. "io.scalajs.npm" %%% "express" % "0.4.0")

I've provided an example to demonstrate how similar the Scala.js code is to the JavaScript
that it replaces.
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import sbt._

import scala.language.postfixOps

val scalaJsIOVersion = "0.4.0-pre5"
val scalaJsIOVersion = "0.4.0"
val apiVersion = scalaJsIOVersion
val scalaJsVersion = "2.12.1"

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "nodejs-sfs",
"version": "0.4.0-pre5",
"version": "0.4.0",
"private": true,
"dependencies": {
"source-map": "^0.5.6"
"source-map-support": "^0.4.14"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io.scalajs.nodejs
package child_process

import io.scalajs.RawOptions
import io.scalajs.nodejs.events.IEventEmitter
import io.scalajs.nodejs.buffer.Buffer

import scala.scalajs.js
Expand All @@ -15,7 +16,7 @@ import scala.scalajs.js.|
* @author [email protected]
*/
@js.native
trait ChildProcess extends js.Object {
trait ChildProcess extends IEventEmitter {

/**
* Spawns a shell then executes the command within that shell, buffering any generated output.
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/io/scalajs/nodejs/http/ClientRequest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import io.scalajs.util.PromiseHelper._

import scala.concurrent.Future
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport

/**
* http.ClientRequest - This object is created internally and returned from http.request(). It represents an in-progress
Expand All @@ -30,6 +31,7 @@ import scala.scalajs.js
* @author [email protected]
*/
@js.native
@JSImport("http", "ClientRequest")
class ClientRequest extends Readable {

def headers: js.Dictionary[String] = js.native
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/io/scalajs/nodejs/os/NetworkInterface.scala
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package io.scalajs.nodejs.os

import scala.scalajs.js
import scala.scalajs.js.annotation.ScalaJSDefined

/**
* Represents a Network Interface
* @author [email protected]
*/
@js.native
@ScalaJSDefined
class NetworkInterface(val address: String,
val netmask: String,
val family: String,
val mac: String,
val scopeid: js.UndefOr[Int],
val internal: Boolean)
extends js.Object
val internal: Boolean) extends js.Object
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package io.scalajs.nodejs.querystring

import scala.scalajs.js
import scala.scalajs.js.annotation.ScalaJSDefined

/**
* Query String Encode Options
* @param encodeURIComponent The function to use when converting URL-unsafe characters to percent-encoding in
* the query string. Defaults to querystring.escape().
* @author [email protected]
*/
@js.native
@ScalaJSDefined
class QueryEncodeOptions(val encodeURIComponent: js.UndefOr[js.Function] = js.undefined) extends js.Object
4 changes: 2 additions & 2 deletions src/test/resources/watchfile.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scalajs-io",
"version": "0.4.0-pre5",
"version": "0.4.0",
"private": true,
"dependencies": {
"async": "^2.0.1",
Expand Down Expand Up @@ -42,7 +42,7 @@
"rx": "^4.1.0",
"should": "^11.1.2",
"socket.io": "^1.7.2",
"source-map": "^0.5.6",
"source-map-support": "^0.4.14",
"splitargs": "0.0.7",
"tingodb": "^0.5.1",
"transducers-js": "^0.4.174",
Expand Down

0 comments on commit 3dc9328

Please sign in to comment.