Skip to content

Commit 5981da5

Browse files
committed
upgrade to 1.6.3 scala-js
1 parent ffd3c7b commit 5981da5

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ scala> def testMap = Map("hey" -> "there")
2929
testMap: scala.collection.immutable.Map[String,String]
3030

3131
scala> val testMapJs = testMap.js
32-
testMapJs: json.JObject =
32+
testMapJs: json.JObject =
3333
{
3434
"hey": "there"
3535
}
3636

3737
scala> Map("key" -> Seq.fill(3)(Set(Some(false), None))).js
38-
res4: json.JObject =
38+
res4: json.JObject =
3939
{
4040
"key": [[false, null], [false, null], [false, null]]
4141
}
@@ -66,9 +66,9 @@ scala> implicit val acc = ObjectAccessor.of[TestClass]
6666
acc: json.CaseClassObjectAccessor[TestClass] = ObjectAccessor[TestClass]
6767

6868
scala> val testClassJs = TestClass(1, None).js
69-
testClassJs: json.JObject =
69+
testClassJs: json.JObject =
7070
{
71-
"a": 1,
71+
"a": 1,
7272
"c": ""
7373
}
7474

@@ -82,21 +82,21 @@ scala> JObject("a".js -> 23.js).toObject[TestClass]
8282
res11: TestClass = TestClass(23,None,,None)
8383

8484
scala> TestClass(1, None).js + ("blah".js -> 1.js) - "a"
85-
res12: json.JValue =
85+
res12: json.JValue =
8686
{
87-
"c": "",
87+
"c": "",
8888
"blah": 1
8989
}
9090

9191
scala> Seq(TestClass(1, None), TestClass(1, Some(10), c = "hihi")).js
92-
res13: json.JArray =
92+
res13: json.JArray =
9393
[{
94-
"a": 1,
95-
"c": ""
94+
"a": 1,
95+
"c": ""
9696
}, {
97-
"a": 1,
98-
"b": 10,
99-
"c": "hihi"
97+
"a": 1,
98+
"b": 10,
99+
"c": "hihi"
100100
}]
101101
```
102102
* Typed exceptions with field data
@@ -120,15 +120,15 @@ SBT
120120
resolvers += "mmreleases" at
121121
"https://artifactory.mediamath.com/artifactory/libs-release-global"
122122

123-
libraryDependencies += "com.mediamath" %% "scala-json" % "0.1-RC4"
123+
libraryDependencies += "com.mediamath" %% "scala-json" % "0.1-RC5"
124124

125125
```
126126

127127
and for Scala.js
128128

129129
```scala
130130

131-
libraryDependencies += "com.mediamath" %%% "scala-json" % "0.1-RC4"
131+
libraryDependencies += "com.mediamath" %%% "scala-json" % "0.1-RC5"
132132

133133
```
134134

js/src/test/scala/json/JSTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object JSTest extends TestSuite {
4343
)
4444
val parsed = (NativeJSON parse """[1,2,{},[],{"a":1},"",null,5.123]""").asInstanceOf[js.Array[js.Dynamic]]
4545

46-
parsed.push(emptyArray))
46+
parsed.push(emptyArray)
4747

4848
val reserd = JValue from parsed
4949

project/ScalaJSON.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ object Repository {
3131
val snapshotRepo = "snapshots" at Repository.snapshots
3232
val releaseRepo = "releases" at Repository.releases
3333

34+
val globalSuffix = "" //"-global"
35+
3436
def repo(isSnapshot: Boolean) = if (isSnapshot) Repository.snapshots else Repository.releases
35-
def globalPublishTo(isSnapshot: Boolean) = repo(isSnapshot) + "-global"
37+
def globalPublishTo(isSnapshot: Boolean) = repo(isSnapshot) + globalSuffix
3638
def userCredentials = (Path.userHome / ".ivy2" / "credentials" ** "*").filter(_.isFile).get.map(Credentials(_))
3739
}
3840

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ resolvers += Resolver.url(
55

66
addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.3.2")
77

8-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.1")
8+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.3")

0 commit comments

Comments
 (0)