Skip to content

Releases: disneystreaming/smithy4s

v0.18.30 - bugfixes and flexible field filtering

12 Mar 14:39
1c1e16d
Compare
Choose a tag to compare

What's Changed

  • Add utilities for Service.Builder in #1644
  • Use correct cross path for protobuf-runtime-scala in #1648
  • Force rendering package object when a validated newtype is present in #1656
  • Improve performance of ADT trait validators on larger Smithy models in #1573
  • Move memoization of default values from Field to Schema in #1651
  • Add support for more flexible encoding of defaults in #1652. This brings FieldFilter abstraction that replaces explicitDefaultsEncoding.

Other changes

New Contributors

Full Changelog: v0.18.29...v0.18.30

v0.18.29: Fixes for certain field decoding edge cases

21 Jan 19:03
9a12e32
Compare
Choose a tag to compare

Fixes issues with certain use cases around required nullable fields with, see #1637 for full information.

What's Changed

New Contributors

Full Changelog: v0.18.28...v0.18.29

v0.18.28

02 Jan 17:00
1d128fa
Compare
Choose a tag to compare

What's Changed

Other changes

Full Changelog: v0.18.27...v0.18.28

v0.18.27: Fix handling of 'NaN' in MetadataDecoder

05 Dec 16:46
2522c02
Compare
Choose a tag to compare

Fixes an issue where NaN was allowed as a value for Float and Double metadata fields, but then caused an exception when handling smithy.api#range constraints.

What's Changed

Full Changelog: v0.18.26...v0.18.27

v0.18.26

02 Dec 19:17
e369dd4
Compare
Choose a tag to compare

What's Changed

  • Optimises the conversion of empty smithy4s.Blob to fs2.Stream, to avoid performance degradation in Ember (see #1609)
  • Adds utility types for working with endpoint handlers (see #1612)
  • Add a more informative error message for repeated namespaces (see #1608).
  • Adds com.disneystreaming.smithy4s:smithy4s-protocol dependency to the generation of smithy-build.json in the smithy4sUpdateLSPConfig tasks of the codegen plugins (see #1610).
  • Fix for the lenient union decoding bug (see#1620).

Internal changes

Full Changelog: v0.18.25...v0.18.26

v0.18.25 : lenient numeric decoding and timestamps truncating

09 Oct 08:47
ae5b9de
Compare
Choose a tag to compare

Highlights

  • Adds a option to relax the JSON decoders when encountering numerics represented by JSON strings instead of JSON numbers : #1606
  • Adds methods on smithy4s.Timestamp to truncate precision to milliseconds or seconds (smithy4s.Timestamp capturing nanosecond-level precision by default) : #1607

Misc fixes

  • Generate transform as a final def for cats-tagless friendliness by @kubukoz in #1588
  • Don't render parens for case objects in union member nodes by @kubukoz in #1600
  • Include field modifiers in collision avoidance by @kubukoz in #1593
  • Bump docusaurus-lunr-search from 3.4.0 to 3.5.0 in /modules/website by @dependabot in #1604
  • Closes #1539 kebab caseificiation by @dwalend in #1603
  • Fix refined newtypes by @kubukoz in #1595
  • Avoid collisions in typed node namespaces, add missing uppercase in alt nodes by @kubukoz in #1602
  • Introduce the Scala version into the codegen cache namespace by @bpholt in #1590

New Contributors

Full Changelog: v0.18.24...v0.18.25

v0.18.24 : support for `alloy#jsonUnknown`

11 Sep 09:14
b828a13
Compare
Choose a tag to compare

New features

  • Adds support for alloy#jsonUnknown, allowing to capture unknown JSON fields during deserialisation. See documentation here. See here and here
  • Generated throwables are unconditionally enriched with a getMessage method mirroring the traditional toString implementation of case classes. See here

Other

Full Changelog: v0.18.23...v0.18.24

v0.18.23

25 Jun 18:15
5cee547
Compare
Choose a tag to compare

What's Changed

Adds support for the @default trait in HTTP bodies.

Adds opt-in support for validations of newtypes, see documentation.

Internal changes

Full Changelog: v0.18.22...v0.18.23

v0.18.22

12 Jun 12:38
72a9503
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.18.21...v0.18.22

v0.18.21 : second-less date-time timestamps, `@scalaImports`

03 Jun 16:12
9a15160
Compare
Choose a tag to compare

Changes

Other changes

Full Changelog: v0.18.20...v0.18.21