Finatra v19.11.0 Release Notes

Release Date: 2019-11-06 // over 4 years ago
  • ๐Ÿ›  Fixed

    • ๐Ÿ‘ finatra-http: Better handling of URI decoding issues when extracting path parameters for
      ๐Ÿ‘ป routing. If we cannot extract a path pattern, and the exception is not intercepted by a
      ๐Ÿ‘ป user-defined Exception Mapper, we will now explicitly return a 400 - BAD REQUEST.
      ๐Ÿ›  Fixes #507. 5f293844

    โž• Added

    • ๐Ÿ‘ finatra: Add initial support for JDK 11 compatibility. dfc521c9
    • ๐Ÿ‘ inject-core: Add support for optional binding in c.t.inject.TwitterModule.
      285da3bb

    ๐Ÿ”„ Changed

    • finatra-http: (BREAKING API CHANGE) AsyncStream[Buf] => AsyncStream[String] and
      Reader[Buf] => Reader[String] handlers will always be tread the output as a JSON arrays of
      Strings. Whereas, before, the incoming bytes would have been converted to String and
      returned as-is. 43eaa555
    • ๐Ÿ—„ finatra: Deprecate c.t.finatra.http.modules.DocRootModule. Introduce FileResolverModule.
      ๐Ÿ”ง The DocRootModule defines configuration flags for the FileResolver which was moved from
      ๐Ÿ”ง finatra/http to a more correctly generic location in finatra/utils. However, configuration for
      ๐Ÿ”ง injection of a properly configured FileResolver is still incorrectly tied to HTTP because of the
      ๐Ÿ—„ DocRootModule. Thus, we deprecate the DocRootModule and introduce the
      c.t.finatra.modules.FileResolverModule which is defined closer to the
      c.t.finatra.utils.FileResolver in finatra/utils. This allows the FileResolver to be properly
      ๐Ÿ”ง configured outside of HTTP concerns. 5a97b2aa
    • โšก๏ธ finatra-thrift: Updated BUILD files for Pants 1:1:1 layout. c46209fd
    • inject-ports: Add finatra/inject/inject-ports which has c.t.inject.server.Ports and
      c.t.inject.server.PortUtils. 5676d038
    • ๐Ÿšš inject-utils: Move AnnotationUtils to c.t.inject.utils.AnnotationUtils and make public
      for use. 0ac7af99
    • โšก๏ธ finatra-http: Updated package structure for Pants 1:1:1 layout. Moved META-INF/mime.types file
      to finatra/utils which is where the FileResolver is located for proper resolution of mime types
      from file extension. 57555f80