Releases: sbt/contraband
0.5.3
0.5.2
0.5.1
- Contraband 0.5.1 modifies the code generation
equals(...)
to first performthis.eq(o.asInstanceOf[AnyRef])
for runtime performance improvement #153 by @jtjeferreira
Contraband is a GraphQL-based description language for datatypes and APIs. See documentation for more details.
0.5.0
minor enhancements
- Always use
\n
as line ending to avoid fluctuation #147 by @martijnhoekstra - Updates the default sjson-new to 0.9.0.
- Uses ScalaJson instead of JSON4S. It was using an older version of JSON4S that does not work with Scala 2.12.12. #150 by @eed3si9n
0.4.6
0.4.5
Contraband 0.4.5 is cross built for sbt 0.13 and sbt 1 for the plugins. Its library part is cross built for 2.10, 2.11, 2.12, and 2.13.
- Updates the URL in the generated code to HTTPS #141 by @jsoref
- Supports raw type escape
raw"Map[String, String]"
#145 by @eed3si9n
See https://www.scala-sbt.org/contraband/ for more on Contraband.
0.4.4
Contraband 0.4.4 is cross built for sbt 0.13 and sbt 1 for the plugins. Its library part is cross built for 2.10, 2.11, 2.12, and 2.13.
Using sjson-new 0.8.3, the runtime now supports 2.10, 2.11, 2.12, and 2.13 as well.
See https://www.scala-sbt.org/contraband/ for more on Contraband.
0.4.3
0.4.2
Modifier
Contraband 0.4.2 adds ability to change the modifier.
package com.example @target(Scala)
type ModifierExample
@modifier("sealed")
{
field: Int!
}
This generates sealed class ModifierExample
as opposed to final class ModifierExample
. #127 by @eed3si9n
Use valueOf
for boxed type
Contraband 0.4.2 generates Integer.valueOf(field())
as opposed to new Integer(field()), which has been deprecated in JDK 9. #128 by @xuwei-k