Skip to content

Commit c12efc6

Browse files
Lawrence DanielsLawrence Daniels
Lawrence Daniels
authored and
Lawrence Daniels
committed
Release v0.5.0
1 parent c744e5b commit c12efc6

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ directly in the browser.
1010

1111
### Build Dependencies
1212

13-
* [SBT v0.13.16](http://www.scala-sbt.org/download.html)
13+
* [SBT v1.2.x](http://www.scala-sbt.org/download.html)
1414

1515
### Build/publish the SDK locally
1616

@@ -72,7 +72,7 @@ class Task(val name: String) extends js.Object
7272
To add the `Async` binding to your project, add the following to your build.sbt:
7373

7474
```sbt
75-
libraryDependencies += "io.scalajs.npm" %%% "async" % "0.4.2"
75+
libraryDependencies += "io.scalajs.npm" %%% "async" % "0.5.0"
7676
```
7777

7878
Optionally, you may add the Sonatype Repository resolver:

build.sbt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import sbt._
55

66
import scala.language.postfixOps
77

8-
val scalaJsIOVersion = "0.4.2"
8+
val scalaJsIOVersion = "0.5.0"
99
val apiVersion = scalaJsIOVersion
10-
val scalaJsVersion = "2.12.3"
10+
val scalaJsVersion = "2.12.8"
1111

1212
homepage := Some(url("https://github.com/scalajs-io/async"))
1313

@@ -21,6 +21,7 @@ lazy val root = (project in file(".")).
2121
scalaVersion := scalaJsVersion,
2222
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-language:implicitConversions", "-Xlint"),
2323
scalacOptions in(Compile, doc) ++= Seq("-no-link-warnings"),
24+
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
2425
autoCompilerPlugins := true,
2526
scalaJSModuleKind := ModuleKind.CommonJSModule,
2627
libraryDependencies ++= Seq(

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"name": "async-sjs",
3-
"version": "0.4.2",
3+
"version": "0.5.0",
44
"private": true,
55
"dependencies": {
6-
"async": "^2.1.4",
7-
"source-map-support": "^0.4.14"
6+
"async": "^3.0.1",
7+
"source-map-support": "^0.5.12"
8+
},
9+
"engines": {
10+
"node": ">=0.12"
811
}
912
}

project/plugins.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Scala.js
22

3-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.20")
3+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.28")
44

55
// Publishing
66

@@ -10,7 +10,7 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")
1010

1111
// Resolvers
1212

13-
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.5.5")
13+
//addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.5.5")
1414

1515
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
1616

src/test/scala/io/scalajs/npm/async/AsyncTest.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import scala.util.{Failure, Success, Try}
1515
/**
1616
* Async module tests
1717
18+
* @see [[https://github.com/caolan/async/blob/v1.5.2/README.md]]
1819
*/
1920
class AsyncTest extends FunSpec {
2021

@@ -30,9 +31,9 @@ class AsyncTest extends FunSpec {
3031
}, 2)
3132

3233
// assign a callback
33-
q.drain = () => {
34-
println("all items have been processed")
35-
}
34+
//q.drain = () => {
35+
// println("all items have been processed")
36+
//}
3637

3738
// add some items to the queue
3839
q.push(new Task(name = "foo"), (err: Error) => {
@@ -189,7 +190,6 @@ class AsyncTest extends FunSpec {
189190
*/
190191
object AsyncTest {
191192

192-
193193
class Task(val name: String) extends js.Object
194194

195195
}

0 commit comments

Comments
 (0)