Skip to content

Releases: sbt/contraband

0.5.3

30 Jan 04:23
v0.5.3
e2ffdea
Compare
Choose a tag to compare

Full Changelog: v0.5.2...v0.5.3

0.5.2

18 Jan 04:03
v0.5.2
106a608
Compare
Choose a tag to compare

Full Changelog: v0.5.1...v0.5.2

0.5.1

20 Dec 20:35
v0.5.1
9bd5a80
Compare
Choose a tag to compare
  • Contraband 0.5.1 modifies the code generation equals(...) to first perform this.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

14 Aug 18:01
v0.5.0
Compare
Choose a tag to compare

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

06 Mar 22:01
v0.4.6
9d32bf1
Compare
Choose a tag to compare
  • Fixes Java code generation not emitting extra interfaces #146 by @eed3si9n

0.4.5

27 Feb 06:06
v0.4.5
Compare
Choose a tag to compare

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

14 Jul 13:37
v0.4.4
1336c66
Compare
Choose a tag to compare

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

25 Jan 03:02
v0.4.3
6390134
Compare
Choose a tag to compare

bug fixes

  • Fixes identifier conflict on js field when generating JSON codec with sjson-new. #131 by @wsargent

0.4.2

23 Jan 19:29
v0.4.2
c38efd7
Compare
Choose a tag to compare

v0.4.1...v0.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

0.4.1

06 Oct 18:41
v0.4.1
61ba96e
Compare
Choose a tag to compare

Generates correct Scaladoc - #125