Skip to content

Commit c8796b1

Browse files
committed
Release v1.24.0
1 parent 6094b97 commit c8796b1

5 files changed

Lines changed: 9 additions & 15 deletions

File tree

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ The focus of this project is minimalism and flexibility. To that end, the featur
4646
### Setup
4747

4848
For SBT simply include:
49-
`libraryDependencies += "org.typelevel" %%% "fabric-core" % "1.23.0"`
49+
`libraryDependencies += "org.typelevel" %%% "fabric-core" % "1.24.0"`
5050

5151
For parsing support include:
52-
`libraryDependencies += "org.typelevel" %%% "fabric-io" % "1.23.0"`
52+
`libraryDependencies += "org.typelevel" %%% "fabric-io" % "1.24.0"`
5353

5454
### Create
5555

@@ -77,7 +77,6 @@ Deep-merging is trivial:
7777

7878
```scala
7979
import fabric._
80-
import fabric.dsl._
8180

8281
val v2 = obj(
8382
"age" -> 23,
@@ -100,7 +99,6 @@ Conversion to other types is very easy with the built-in compile-time conversion
10099

101100
```scala
102101
import fabric._
103-
import fabric.dsl._
104102
import fabric.rw._
105103

106104
val person = obj(
@@ -124,8 +122,6 @@ object Person {
124122
Parsing from existing JSON:
125123

126124
```scala
127-
import fabric._
128-
import fabric.dsl._
129125
import fabric.io._
130126

131127
val value = JsonParser("""{"name": "John Doe", "age": 21}""", Format.Json)

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ val scala2 = List(scala213, scala212)
99
val scalaVersions = scala3 :: scala2
1010

1111
name := "fabric"
12-
ThisBuild / tlBaseVersion := "1.23"
12+
ThisBuild / tlBaseVersion := "1.24"
1313
ThisBuild / organization := "org.typelevel"
1414
ThisBuild / startYear := Some(2021)
1515
ThisBuild / licenses := Seq(License.MIT)

core/shared/src/main/scala-2/fabric/rw/RWMacros.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,7 @@ object RWMacros {
259259
}
260260
}
261261
"""
262-
}
263-
else q"""
262+
} else q"""
264263
import _root_.fabric._
265264
import _root_.fabric.rw._
266265
import _root_.scala.collection.immutable.VectorMap

core/shared/src/main/scala/fabric/rw/RW.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ trait RW[T] extends Reader[T] with Writer[T] {
3939
}
4040

4141
object RW extends CompileRW {
42-
/** Controls whether generic type information (`_generic` field) is included in serialized JSON output for generic
42+
43+
/**
44+
* Controls whether generic type information (`_generic` field) is included in serialized JSON output for generic
4345
* case classes. Defaults to `true`. Set to `false` to exclude `_generic` from output, which produces cleaner JSON
4446
* but loses the ability to disambiguate erased generic variants during deserialization (e.g. in union types like
4547
* `Id[String] | Id[Int]`).

core/shared/src/test/scala/spec/RWSpecAuto.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ class RWSpecAuto extends AnyWordSpec with Matchers {
103103
value.asObj.get("_generic") should be(None)
104104
// Round-trip still works without _generic
105105
value.as[Wrapper[String]] should be(w)
106-
} finally {
107-
RW.SerializeGenerics = prev
108-
}
106+
} finally RW.SerializeGenerics = prev
109107
}
110108
"verify empty genericTypes for non-generic Person" in {
111109
Person.rw.definition.genericTypes should be(Nil)
@@ -134,8 +132,7 @@ class RWSpecAuto extends AnyWordSpec with Matchers {
134132
val value = w.json
135133
value("name").asString should be("Test2")
136134
value("value") should be(obj("city" -> "San Jose"))
137-
value("other") should be(obj("city" -> "Norman")
138-
)
135+
value("other") should be(obj("city" -> "Norman"))
139136
}
140137
"verify Person's DefType" in {
141138
Person.rw.definition should be(

0 commit comments

Comments
 (0)