Skip to content

Releases: allenai/common

1.4.10

28 Feb 19:15
Compare
Choose a tag to compare

Adds a default Access-Control-Allow-Methods header for CORS, allowing accepted hosts to use all HTTP methods instead of the default GET, POST, and OPTION.

v1.4.9

03 Feb 23:25
Compare
Choose a tag to compare

This fixes a bug in CommonModule injecting list values with dotted (nested) paths.

v1.4.8

20 Jan 20:44
Compare
Choose a tag to compare

This release contains a bugfix for Enum introduced in v1.4.0.

It also updates the sbt-plugins version, which should have no downstream impacts.

v1.4.7

19 Jan 18:31
Compare
Choose a tag to compare

Fixes ConfigModule bugs that can cause a crash during initialization given some config file formats.

Also included:

  • #209 - cleanup to ElasticSearch index mappings
  • #210 - Virginia Flashcard index
  • #211 - CK12 flexbooks
  • #212 - Bing client upgrade

v1.4.5

09 Aug 00:28
Compare
Choose a tag to compare

Added some extra constructors for the Jedis wrapper

v1.4.2

12 Jul 22:39
Compare
Choose a tag to compare

This release adds a simple Bing query API.

Update ElasticSearch

01 Jul 22:18
Compare
Choose a tag to compare

This release updates ElasticSearch from 1.7.1 to 2.3.3.

v1.4.0

23 Jun 22:33
Compare
Choose a tag to compare

This release includes some changes to the common indexer, as well as some changes to org.allenai.common.Enum.

Migrating from 1.3.0

There are two ways to migrate: Serialization-compatible (where the JSON generated is identical), and serialization-non-compatible (where the JSON serialized changes, but you have to make fewer changes).

v1.3.0 code:

sealed abstract class MyEnum(id: String) extends Enum[MyEnum](id)
object MyEnum extends EnumCompanion[MyEnum] {
  case object One extends MyEnum("one")
  case object Two extends MyEnum("two")
  register(One, Two)    
}

If you wish to be fully backwards-compatible (with One serializing as the JSON string "one"), you should update your code to the following:

// Note the `override val` before `id`.
sealed abstract class MyEnum(override val id: String) extends Enum[MyEnum]
object MyEnum extends EnumCompanion[MyEnum] {
  // Creation / registration code remains identical.
  case object One extends MyEnum("one")
  case object Two extends MyEnum("two")
  register(One, Two)    
}

If you're OK with your enums serializing with new text matching the case object names (One serializing as the JSON string "One"), you should update your code to the following:

// No constructor parameters.
sealed abstract class MyEnum extends Enum[MyEnum]
object MyEnum extends EnumCompanion[MyEnum] {
  case object One extends MyEnum
  case object Two extends MyEnum
  register(One, Two)
}

v1.3.0

28 Apr 17:54
Compare
Choose a tag to compare

This contains a new guice binding in ActorSystemModule, new utility classes, and a couple of updated dependencies.

v1.2.2 Add spray-client helpers

15 Apr 14:47
Compare
Choose a tag to compare
  • Add a new object SprayClientHelpers to the webapp subproject, containing utilities for building and sending HTTP requests through spray