Skip to content

v0.4.0

Choose a tag to compare

@stainless-app stainless-app released this 24 Nov 23:38

0.4.0 (2025-11-24)

Full Changelog: v0.3.0...v0.4.0

⚠ BREAKING CHANGES

  • client: redesign methods
  • remove confusing toArray() alias to __serialize() in favour of toProperties()
  • expose services and service contracts

Features

  • api: add ability to clear thinking in context management (99617c4)
  • api: add support for structured outputs beta (b3c80f7)
  • api: adding support for agent skills (471dd50)
  • api: adds support for Claude Opus 4.5, Effort, Advance Tool Use Features, Autocompaction, and Computer Use v5 (1e73c3d)
  • api: adds support for Claude Sonnet 4.5 and context management features (74e2d73)
  • api: adds support for Documents in tool results (f98a2d4)
  • api: adds support for web_fetch_20250910 tool (6159be3)
  • api: manual updates (bc265c5)
  • client: add raw methods (64d6f33)
  • client: redesign methods (b00b0d8)
  • client: support raw responses (1c8b9ee)
  • client: use real enums (29faa11)
  • expose services and service contracts (2c99ab5)
  • remove confusing toArray() alias to __serialize() in favour of toProperties() (d12c426)

Bug Fixes

  • ci: release doctor workflow (215237e)
  • decorate with enum label for all enum classes (e3c3890)
  • ensure auth methods return non-nullable arrays (bb1ed82)
  • inverted retry condition (300bcf1)
  • phpStan linter errors (02fce13)

Chores

  • add license (00cc634)
  • api: mark older sonnet models as deprecated (76fdfa8)
  • cleanup streaming (26d89eb)
  • client: add context-management-2025-06-27 beta header (276d908)
  • client: add model-context-window-exceeded-2025-08-26 beta header (1ab3668)
  • client: send metadata headers (cd895d4)
  • docs: update readme formatting (041acbb)
  • document parameter object usage (47d4c9b)
  • fix lints in UnionOf (b57e2c7)
  • internal: codegen related update (46489b1)
  • internal: codegen related update (2859486)
  • internal: fix tests (bc714d4)
  • internal: refactor base client internals (08252f7)
  • make more targeted phpstan ignores (00a1680)
  • refactor methods (1d7489e)
  • update examples (#191) (5c3819a)
  • use pascal case for phpstan typedefs (034b6b0)