Repository navigation
v0.2.1
What's Changed
Improvements
- Stream file uploads —
upload()now streams files via open handles instead of loading entire files into memory withread_bytes(). File handles are properly cleaned up even on partial failures. (#10, PR #18) - Stricter error handling —
check_action_error()now raisesActionErroron unexpected JSON response types (arrays, null, numbers) instead of silently accepting them. Signature widened toobjectfor defensive runtime type checking. (#13, PR #17) - Tighter type annotations —
_post()data parameter narrowed from baredicttodict[str, str | list[str]]to matchbuild_form_data()return type. (#11, PR #16)
Docs
- Added releasing workflow and branch protection docs to CLAUDE.md
- Added one-PR-per-issue workflow guidance
Full Changelog: v0.2.0...v0.2.1