Skip to content

v0.9.0

Latest
Compare
Choose a tag to compare
@stainless-app stainless-app released this 23 Apr 20:33

0.9.0 (2025-04-23)

Full Changelog: v0.8.0...v0.9.0

⚠ BREAKING CHANGES

  • client: refactor exception structure and methods (#164)
  • client: Migration: Previously you would access error JSON on an exception via exception.error()._additionalProperties(), which would return Map<String, JsonValue>. Now you would access this via exception.body(), which returns JsonValue. You should no longer assume that the returned error JSON is an object. You can check via exception.body().asObject().

Features

  • client: add enum validation method (7fe60b3)
  • client: expose request body setter and getter (#178) (a36c0b6)
  • client: make datetime deserialization more lenient (#177) (a65987d)
  • client: make pagination robust to missing data (445e30e)
  • client: make union deserialization more robust (#176) (7fe60b3)
  • client: support a lower jackson version (#170) (803e291)
  • client: support setting base URL via env var (85b334a)
  • client: throw on incompatible jackson version (803e291)

Bug Fixes

  • client: bump to better jackson version (a2f69b5)
  • client: don't call validate() during deserialization if we don't have to (#173) (e71f053)
  • client: limit json deserialization coercion (#174) (63e2b2c)
  • client: map deserialization bug (2a52b9f)
  • client: return Optional&lt;T&gt; instead of Optional<? extends T> (#182) (e3d5b19)
  • client: support kotlin 1.8 runtime (#161) (c9856ed)
  • pluralize list response variables (#175) (8d7b939)

Performance Improvements

  • client: cached parsed type in HttpResponseFor (#180) (49c0c0a)
  • internal: improve compilation+test speed (8efd75a)

Chores

  • ci: add timeout thresholds for CI jobs (15222f8)
  • client: refactor exception structure and methods (#164) (8463834)
  • client: remove unnecessary json state from some query param classes (7fe60b3)
  • internal: add invalid json deserialization tests (7fe60b3)
  • internal: add json roundtripping tests (7fe60b3)
  • internal: codegen related update (732dd76)
  • internal: codegen related update (#159) (45cca50)
  • internal: codegen related update (#162) (a490f5f)
  • internal: codegen related update (#163) (140986d)
  • internal: codegen related update (#179) (d32e7e5)
  • internal: delete unused methods and annotations (#171) (2a52b9f)
  • internal: expand CI branch coverage (6e596e4)
  • internal: fix example formatting (#166) (3ce1a02)
  • internal: generate more tests (e7cdefc)
  • internal: make multipart assertions more robust (6d40318)
  • internal: reduce CI branch coverage (491a2ae)
  • internal: reformat some tests (#160) (e7cdefc)
  • internal: remove unnecessary assertNotNull calls (6d40318)
  • internal: remove unnecessary import (#167) (03d8ca9)
  • internal: swap from Builder().from(...) to toBuilder() (#172) (d15ef50)
  • internal: swap from getNullable to getOptional (#181) (2fca092)
  • internal: version bump (#157) (0492bdd)

Documentation

  • add comments for page methods (445e30e)
  • add comments to JsonField classes (e3d5b19)
  • client: update jackson compat error message (6039ca5)
  • document how to forcibly omit required field (e797de1)
  • explain http client customization (1388be4)
  • explain jackson compat in readme (8fd288d)
  • minor readme tweak (#169) (4154acd)
  • refine comments on multipart params (#165) (6d40318)
  • swap examples used in readme (#183) (e797de1)
  • update readme exception docs (#168) (39e01a6)

Refactors

  • client: deduplicate page response classes (445e30e)
  • client: migrate pages to builder pattern (b61888c)