Releases: disneystreaming/smithy4s
v0.18.15 : AWS credentials file bugfix / AWS middlewares
- Fixes a parsing bug of AWS credential files : #1453
- Add a mechanism to plug endpoint-specific middlewares to AWS clients : #1452
What's Changed
- Update scala3-library, ... to 3.3.3 by @scala-steward in #1448
- Update cats-effect to 3.5.4 by @scala-steward in #1449
- Add a mechanism to plug endpoint-specific middlewares to AWS clients by @Baccata in #1452
- Update fs2-core, fs2-io to 3.10.0 by @scala-steward in #1447
Full Changelog: v0.18.14...v0.18.15
v0.18.14 : bug fixes
- Sets maxArity of JSON decoders to Int.MaxValue in AWS clients. See #1445
- Support "untagged union" decoding for Documents
What's Changed
- Update alloy-core, alloy-openapi, ... to 0.3.4 by @scala-steward in #1440
- Update smithytranslate-proto to 0.5.2 by @scala-steward in #1441
- Update http4s-circe, http4s-client, ... to 0.23.26 by @scala-steward in #1443
- Update jsoniter-scala-macros to 2.28.4 by @scala-steward in #1442
- aws json client max arity to Int.MaxValue by @lewisjkl in #1445
- support for untagged in DocumentDecoderSchemaVisitor by @lewisjkl in #1446
Full Changelog: v0.18.13...v0.18.14
v0.18.13 : respect enum ordering / protobuf setup
- Generated enumeration members now follow the same order as the smithy specification
- Protobuf files are now generated in the managed resources of a project when some smithy shapes are annotated with "alloy.proto#protoEnabled"
What's Changed
- Respect enum values ordering by @Baccata in #1437
- Bump alloy to 0.3.3 by @Baccata in #1439
- Wire protobuf generation in codegen plugin by @Baccata in #1435
- Update upickle to 3.2.0 by @scala-steward in #1415
Full Changelog: v0.18.12...v0.18.13
v0.18.12: Fix for schema rendering in large structs
Fixes an issue with field ordering in the schemas of large structures (over 22 fields). See #1433 for more info.
What's Changed
Full Changelog: v0.18.11...v0.18.12
v0.18.11 : original field ordering in schemas / alloy.proto
This release contains the following noteworthy items :
- Structure schemas are now abiding by the original field order from the spec. This detail finds its importance in some protocols.
- Shapes defined in the
alloy.proto
namespace are now code-generated and packaged with smithy4s-core. - A new schema combinator,
transformTransitivelyK
, is now present, facilitating some schema transformations.
What's Changed
- Update alloy-core, alloy-openapi, ... to 0.3.2 by @scala-steward in #1429
- Update jsoniter-scala-macros to 2.28.3 by @scala-steward in #1431
- Add transformTransitivelyK by @kubukoz in #1426
- Update sbt-projectmatrix to 0.10.0 by @scala-steward in #1430
- Update sbt-scalafix to 0.12.0 by @scala-steward in #1428
- Retain original field ordering in schemas by @Baccata in #1427
- Enable code generation of alloy.proto in core by @Baccata in #1432
Full Changelog: v0.18.10...v0.18.11
v0.18.10 : update alloy to 0.3.1
Updated alloy to 0.3.1. This warrants a release because of this change, which smithy4s leverages to let @nullable
hints through when compiling interpreters, which impacts serialisation.
Without this upgrade, the SimpleRestJsonBuilder
doesn't know that nullable
should be taken into consideration, and filters the corresponding hints out before compiling the schema into json codecs.
What's Changed
- Update scala-library, scala-reflect to 2.12.19 by @scala-steward in #1420
- Update alloy to 0.3.1 by @Baccata in #1423
Full Changelog: v0.18.9...v0.18.10
v0.18.9 : support for alloy#nullable
Features
Support for alloy#nullable
This release adds support for alloy#nullable
. This trait can be used to signal the fact that the absence of value in a serialised payload and the presence of an explicit null
value in a similar payload have different meanings. In particular, this is useful in the case of json-merge-patch, where null
denotes that a value ought to be removed, and the absence of value denotes that a value ought to stay the same.
See https://github.com/disneystreaming/smithy4s/pulls?q=is%3Apr+is%3Aclosed
Allow for customising whether XML attributes should be escaped during serialisation
AWS protocols escape xml attributes to be escaped. However, the fact that XML attributes are quoted implies that the escaping is not always necessary. In some usecases (notably ivy.xml), the escaping results in invalid payloads. Therefore, an option is added to customise the behaviour, and the default is now set to non-escaped XML attributes.
See #1410
Other
- fix infinite recursion when calling Bijection.identity by @benoitlouy in #1401
- Support dynamic status code in error responses by @miguel-vila in #1399
- Update jsoniter-scala-macros to 2.28.1 by @scala-steward in #1394
- Update swagger-ui-dist to 5.11.0 by @scala-steward in #1366
- Add changelog entry and test for bijection fix by @daddykotex in #1403
- Document/Hints/Schema convenience methods by @Baccata in #1404
- Update jsoniter-scala-macros to 2.28.2 by @scala-steward in #1412
- Update upickle to 3.1.5 by @scala-steward in #1413
- Update coursier to 2.1.9 by @scala-steward in #1414
- Update kind-projector to 0.13.3 by @scala-steward in #1417
- Update swagger-ui-dist to 5.11.8 by @scala-steward in #1418
- Add support for @nullable trait in order to support MergePatch usecases by @astridej in #1408
- Update aws smithy version by @miguel-vila in #1419
New Contributors
- @benoitlouy made their first contribution in #1401
- @astridej made their first contribution in #1408
Full Changelog: v0.18.8...v0.18.9
v0.18.8
What's Changed
- Expose RefinementProvider methods by @msosnicki in #1388
Allows constructing refinement schemas manually in more flexible ways than before.
Fixes the collision avoidance algorithm to cover Scala 3 keywords.
Other changes
- Update sbt-bloop to 1.5.14 by @scala-steward in #1387
- Update sbt-bloop to 1.5.15 by @scala-steward in #1393
- Update mill-main, mill-main-api, ... to 0.11.7 by @scala-steward in #1395
New Contributors
Full Changelog: v0.18.7...v0.18.8
v0.18.7
What's changed
- Support
@httpResponseCode
over newtypes by @miguel-vila in #1377
Added support for @httpResponseCode
on newtypes (integer shapes that aren't exactly smithy.api#Integer
), as well as refinements (e.g. ints with a @range
constraint).
Other changes
- Update nscplugin, sbt-scala-native, ... to 0.4.17 by @scala-steward in #1372
- Update jsoniter-scala-core, ... to 2.27.4 by @scala-steward in #1374
- Update fs2-core, fs2-io to 3.9.4 by @scala-steward in #1373
- Update jsoniter-scala-macros to 2.27.6 by @scala-steward in #1380
- Update weaver-cats, weaver-scalacheck to 0.8.4 by @scala-steward in #1378
- Update jsoniter-scala-core to 2.27.6 by @scala-steward in #1379
- Update jsoniter-scala-core, ... to 2.27.7 by @scala-steward in #1383
Full Changelog: v0.18.6...v0.18.7
v0.18.6
What's Changed
-
If a Smithy trait, being a structure shape, had a Scala keyword in its member names, compilation of the generated would fail. In addition, enumeration values that matched a known keyword would have their name erroneously escaped with an underscore in the string literal.
These are now fixed in #1344 by @kubukoz. -
Smithy4s specific logic to extract manifest from jars should not run on jar. Fixed in #1351 by @daddykotex.
-
In some concurrent scenarios, especially those of concurrent initialization of objects (e.g. tests), your application would previously be at risk of deadlocking due to #537. This is now fixed by suspending evaluation of hints in companion objects using the
.lazily
construct: see #1326 by @kubukoz. -
Allow to configure how the default values (and nulls for optional fields) are rendered. Fixed in #1315 by @msosnicki.
Dependency updates and other internal changes
- Fix typo in creating-your-own-traits by @valencik in #1350
- Update sbt-projectmatrix to 0.9.2 by @scala-steward in #1352
- Update os-lib to 0.9.3 by @scala-steward in #1355
- Update upickle to 3.1.4 by @scala-steward in #1356
- Update http4s-circe, http4s-client, ... to 0.23.25 by @scala-steward in #1358
- Update slf4j-simple to 2.0.11 by @scala-steward in #1363
- Update jsoniter-scala-core to 2.27.3 by @scala-steward in #1360
- Update sbt-scalajs, scalajs-compiler, ... to 1.15.0 by @scala-steward in #1359
- Update jsoniter-scala-macros to 2.27.3 by @scala-steward in #1361
- Update fs2-data-xml to 1.10.0 by @scala-steward in #1357
- Update sbt-jmh to 0.4.7 by @scala-steward in #1367
New Contributors
Full Changelog: v0.18.5...v0.18.6