Skip to content

v1.0.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@loevgaard loevgaard released this 10 Aug 11:31
· 17 commits to 1.x since this release
18b4362

Dependency slim-down, plus one small deliberate BC cleanup (#8) — the last of its kind planned before v1.0.0.

Changed

  • webmozart/assert is no longer a dependency. CollectionRequestOptions was its only user in the SDK (two >= 1 checks); they are now plain inline guards throwing \InvalidArgumentException. Since Webmozart's exception already extended \InvalidArgumentException, catch sites see no behavioral difference — but every consumer's dependency tree gets one package lighter.

Removed (BC break)

  • CollectionRequestOptions::new(). It existed only to start fluent wither chains (::new()->withPageSize(50)); constructor named arguments express that better: new CollectionRequestOptions(pageSize: 50). The withers (withPage()/withPageSize()) remain. If you call ::new(), replace it with new CollectionRequestOptions().

    beta.1 stated no further BC breaks were planned — this cosmetic removal was judged worth the exception as a last-cheap-moment cleanup while still pre-1.0. Apologies if it bites; the fix is mechanical.

Full changelog: v1.0.0-beta.1...v1.0.0-beta.2