Releases: disneystreaming/smithy4s
Releases · disneystreaming/smithy4s
v0.12.0: HintsMasks for protocols, ShapeTags rendered on all shapes
tl;dr
- HintMasks are now generated for smithy protocol definitions. This shows which hints are applicable to a given protocol. (#70)
- ShapeTags are now rendered for all shape types
- Uri encoding is now deferred to interpreters (fixes issue with double URI encoding #74)
- Doc/microsite updates
What's Changed
- Fix microsite build by @kubukoz in #65
- fix versioning for microsite snapshots by @lewisjkl in #66
- add quickstart guide to docs by @lewisjkl in #62
- Add nix shell by @kubukoz in #67
- allow site publish for snapshots by @lewisjkl in #69
- Update spelling in docs by @msinton in #73
- Update edit docs path by @lewisjkl in #76
- Update http4s-circe, http4s-client, ... to 0.22.9 by @scala-steward in #75
- Leave URI encoding to interpreters by @kubukoz in #74
- Unify schematic struct methods by @Baccata in #77
- Fix conflicting changes by @Baccata in #78
- Update jsoniter-scala-core to 2.12.2 by @scala-steward in #79
- Add yourkit to readme by @lewisjkl in #81
- add hint mask construct by @lewisjkl in #70
- Update jsoniter-scala-core to 2.12.3 by @scala-steward in #82
- smithy4s.Hints.Key => smithy4s.ShapeTag by @Baccata in #85
- Update http4s-circe, http4s-client, ... to 0.22.10 by @scala-steward in #87
- add support for discriminated union conversion to openapi by @lewisjkl in #86
- Render ShapeTags for everything by @Baccata in #89
New Contributors
Full Changelog: v0.11.3...v0.12.0
v0.11.3 : use fqn for `Product` and `Serializable` in rendering
v0.11.2 : remove whitespaces in service names
Fixes service names sourced from AWS specs being rendered with whitespaces in them.
Also, this marks the appearance of a microsite for the project
What's Changed
- Remove whitespace in sdkId for rendering by @kubukoz in #58
- create documentation microsite by @lewisjkl in #56
Full Changelog: v0.11.1...v0.11.2
v0.11.1 : Fix discriminated union being whitespace sensitive
What's Changed
- Update smithy-aws-traits, smithy-build, ... to 1.16.3 by @scala-steward in #50
- Update jsoniter-scala-core to 2.12.1 by @scala-steward in #51
- Allow decoding of discriminated unions with whitespace by @kubukoz in #49
Full Changelog: v0.11.0...v0.11.1
v0.11.0: discriminated unions, shape ids accessible from schemas
- the SBT plugin does not automatically add a dependency to
smithy4s-core
anymore. This was creating problems with regards to scala-js. The dependency has to be manually added now, if you want to compile the generated code without any further integration. - Adds a
@discriminated
trait, to communicate that unions should be encoded using discriminator fields. This facilitates porting some API specs from openapi - ShapeIds are now rendered and made part of the Schema's hints for all shapes. This can be used for the implementation of protocols, or to communicate better errors during decoding failures.
- Adds support for transformations in code generation. Smithy4s will load [ProjectionTransformers] from the classpath during the code generation process, and will apply all transformations, the names of which are listed in the
smithy4sModelTransformers
SBT setting. This can be useful to pre-process models automatically before code-generating. - Http-specific rendering logic has now been removed, in favour of a Schematic implementation that derives the same information from traits. This effectively makes smithy4s's rendered code 100% protocol agnostic, and opens the door for interesting features.
What's Changed
- add header validator by @lewisjkl in #29
- Update smithy-aws-traits, smithy-model, ... to 1.16.1 by @scala-steward in #32
- Update smithy-aws-traits, smithy-model, ... to 1.16.2 by @scala-steward in #37
- add discriminated union trait by @lewisjkl in #30
- remove core dependency auto-add from sbt plugin by @lewisjkl in #38
- Update sbt-scalafix to 0.9.34 by @scala-steward in #39
- add id hints onto more generated types by @lewisjkl in #36
- Update scala-library, scala-reflect to 2.13.8 by @scala-steward in #46
- add flag to CI to trigger snapshot build by @lewisjkl in #45
- add support for transforms in codegen by @lewisjkl in #44
- Derive http endpoints from hints by @Baccata in #41
Full Changelog: v0.10.0...v0.11.0
v0.10.0 : improved UX for capability traits use-cases, addition of ShapeId
This release marks the first 0.10.x release. It is not binary compatible with the 0.9.x release.
tl;dr
The main points of interest for this release are :
- improved type inference on Scala 3 : #18
- improved UX for "capability traits" flavoured usecases : #16
- rename of the cli module. This is accompanied with new, coursier-friendly installation instructions #19
- introduction of a
ShapeId
data type used as an identifier for services / operations / data models : #25 - addition of functions to convert from js.Any to smithy4s.Document (scala-js only) : #26
What's Changed
- Update weaver-cats, weaver-scalacheck to 0.7.9 by @scala-steward in #9
- Update sbt, sbt-dependency-tree to 1.5.8 by @scala-steward in #11
- Update weaver-cats, weaver-scalacheck to 0.6.9 by @scala-steward in #8
- Update coursier to 2.0.16 by @scala-steward in #10
- Update sbt-scalafix to 0.9.33 by @scala-steward in #7
- Update fs2-core to 3.2.4 by @scala-steward in #14
- Update sbt, sbt-dependency-tree to 1.6.0 by @scala-steward in #15
- Improve type inference in Scala 3 by @Baccata in #18
- ci(Mergify): configuration update by @kubukoz in #12
- Update sbt, sbt-dependency-tree to 1.6.1 by @scala-steward in #22
- Have mergify approve PRs by @Baccata in #23
- Renamed cli module by @Baccata in #19
- Add
apply
for F[_] services by @kubukoz in #16 - Add JSON dump command by @kubukoz in #24
- Make ShapeId a datatype by @Baccata in #25
- add js.Any => Document converter by @lewisjkl in #26
- Render ShapeId for operations by @Baccata in #31
New Contributors
- @scala-steward made their first contribution in #9
- @lewisjkl made their first contribution in #26
Full Changelog: v0.9.1...v0.10.0
v0.9.1 - minor bugfixes, convenience for tooling developers
v0.9.0 : First public release
v0.9.0 Marks the first public release of the smithy4s project.
The README is a good place to start looking at what it can do and how to use it.
For those who celebrate Christmas or the New Year, I wish you all a happy holiday!