Skip to content

Releases: twitter/bijection

0.7.0 Bijection, now for 2.11

06 Sep 20:37
Compare
Choose a tag to compare
  • Added thrift json injections: #172
  • Make almost all the case classes extend AnyVal: #178
  • Fix ImplicitBijection issue: #177
  • Update jackson-mapper-asl to version 1.9.2: #155
  • Moves to 2.10.x as the default and to scalatest: #176
  • Fix some bugs in ModDivInjections: #175
  • Add compression support to bijection-avro: #174
  • Injections from jodatime LocalDate / LocalTime / YearMonth / MonthDay to String: #171

Bump some deps/docs/formatting

03 Jul 17:35
Compare
Choose a tag to compare
  • Sbt => 0.13, use scalariform: #170
  • Backtick Array[Byte] in README: #168
  • Update README to include bijection-avro: #167
  • Update build publishTo to be consistent with scalding: #165
  • Pin bijection-guava to jsr305 1.3.9.: #164

Version 0.6.2

05 Feb 22:42
Compare
Choose a tag to compare
  • Added json4s to project aggregate: #161

Version 0.6.1

04 Feb 23:04
Compare
Choose a tag to compare
  • Add the sbt version helper script: #160
  • Added Json4s Injections: #157
  • Added url encoded String Inection: #156
  • Added bytes2bytesWritable bijection: #154
  • Update README.md: #153

Better Bufferable and Avro

06 Dec 21:09
Compare
Choose a tag to compare
  • Update Avro: #147
  • Fix a thread-safety bug with collection Bufferables: #150
  • Add Boolean support for Bufferable: #151

Special thanks to Mansoor Ashraf for his work on Avro.
Follow him @mansoor_Ashraf

Love for HBase

03 Oct 23:10
Compare
Choose a tag to compare

Fix Scrooge Import for Scala 2.10: #145
Add Community Section to README: #143
Added Hbase Injections: #144

Bijection 0.5.3, w/ Joda, Avro and Hbase

04 Sep 21:46
Compare
Choose a tag to compare

Binary compatible version bump here. We did lose bijection-algebird; it's moved over to algebird as algebird-bijection, simply because the Algebird library is moving faster.

Here's a link to our updated API documentation: https://twitter.github.com/bijection

Issues Closed

  • SBT CodeGen: #128
  • Remove redundant Attempt (in favor of scala.util.Try) #133
  • Adds bijection-avro: #129
  • Adds bijection-hbase: #135
  • Injection from Bijection with Rep tag: #138
  • Move bijection-algebird to algebird: #139
  • Adds bijection-jodatime: #136
  • Replace scrooge-runtime with scrooge-serializer: #141

Bijection 0.5.2

19 Jul 19:54
Compare
Choose a tag to compare

Tiny release to fix a build.

  • remove withSources: #132

Bijection 0.5.1

19 Jul 19:52
Compare
Choose a tag to compare

Issues Closed

  • README update to reflect new Injection return: #126
  • OSGI fix for bijection-util: #131

Contributors

"Bridging the Future Gap"

03 Jul 23:04
Compare
Choose a tag to compare

Injection.invert returns Try

Ever wonder why you could not invert a value? We now support encoding some failure information using Try.

The injection trait becomes approximately:

trait Injection[A, B] extends Serializable { self =>
  def apply(a: A): B
  def invert(b: B): Try[A]
}

This means we dropped support for 2.9.2 and publish for 2.9.3 and 2.10. This was work by @softprops in #120

Future/Try Bijections

Many users have existing code using Twitter Futures and Twitter Trys and want to easily interoperate with less boilerplate. @mosesn contributed #121 to do just that. Use:

https://github.com/twitter/bijection/blob/develop/bijection-util/src/main/scala/com/twitter/bijection/twitter_util/UtilBijections.scala#L39

In the bijection-util jar.

Injection and Bijection no longer subclass Function

For the typeclass pattern we use, we need to be able to make injection and bijection objects implicitly available, but if they subclass function that makes them implicit conversions in Scala's eyes: not what we intended. We added an implicit conversion to function, so any old source should work as long as it was not using this unintended "feature".

Codec[T] type alias for Injection[T, Array[Bytes]]

We often use Injections for serialization. This makes that code a bit more readable. The alias is in the package object.

Issues Closed

  • Either Injections: #120
  • Bijection from BigInt -> BigInteger: #122
  • copy base64 impl, remove commons-codec dep: #123
  • bijection/injection no longer extend fn: #124
  • Bijection between scala/twitter future & try: #121
  • Add Codec type alias: #118
  • Remove call-by-name on future and try in bijection-util: #114
  • Fix TBinaryProtocol bug in bijection-scrooge: #117
  • Add OSGi Metadata to all jars: #113

###Contributors