feat: v3.1.0 - workflow support in patch_item & HTTP client improvements#13
Merged
veer-shipthis merged 1 commit intomainfrom Mar 27, 2026
Merged
feat: v3.1.0 - workflow support in patch_item & HTTP client improvements#13veer-shipthis merged 1 commit intomainfrom
veer-shipthis merged 1 commit intomainfrom
Conversation
…p to v3.1.0 - Support workflow transitions in patch_item (direct-mode and action-based) - Reuse HTTP client across requests for connection pooling - Add async context manager support - Fix query param URL encoding in third-party methods - Properly clean up state in disconnect()
veer-shipthis
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
patch_item— supports direct-mode (value) and action-based (action_id) workflows, can be combined with field updates in a single callhttpx.AsyncClientacross requests instead of creating one per call (connection pooling, fewer TLS handshakes)async with ShipthisAPI(...) as client:for automatic cleanupget_exchange_rate,search_location,get_place_detailsnow usequery_paramsdict instead of string interpolationdisconnect()cleanup — now async, closes HTTP client, clears all stateTest plan
patch_itemwithupdate_fieldsonly (backward compat)patch_itemwithworkflowonly (direct mode)patch_itemwithworkflowonly (action-based)patch_itemwith bothupdate_fields+workflowasync withcontext manager lifecycleupload_filestill works (separate client)