chore(release): 1.16.0 - #152
Merged
Merged
Conversation
Adds typed spreads/indicators (#99), the subscription lifecycle get, update, pause and resume (#100), and LTL and parcel fuel-surcharge clients (#101). Fixes: SubscriptionEvent typed from the events the API sends (#149), a human sentence no longer used as error.code (#145), and subscription list/events no longer turning a malformed success or a bad cursor into an empty answer or a full-history replay (#142). SubscriptionEvent.type/.code/.payload/.created_at are deprecated for removal in 2.0.0. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ao5paex73xXvuM424Libo
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Bumps
oilpriceapi/version.pyandpyproject.tomlto 1.16.0 and turns the populated[Unreleased]section into[1.16.0] - 2026-09-13(a fresh empty[Unreleased]stays on top).What ships (since v1.15.0)
Added
client.spreadsandclient.indicatorsresources ([P1][Sprint 1][Parity] Add typed Spreads and market Indicators resources #99, PR feat(spreads,indicators): typed sync+async Spreads and Indicators resources (#99) #146)get,update,pause,resume([P1][Sprint 1][Subscriptions] Complete get, update, pause, and resume lifecycle #100, PR feat(subscriptions): get, update, pause, resume lifecycle (#100) #143)Fixed
SubscriptionEventis typed from the event the API actually sends; every real event previously readNonefor its declared fields ([P2][models] SubscriptionEvent types fields the events API never sends (type, code, payload, created_at) and leaves observed_at/snapshot/deltas untyped #149, PR fix(models): type SubscriptionEvent from the event the API sends (#149) #150)error.codeis no longer set to a human sentence for{status:"fail"}bodies ([P2][errors] error.code is set to the whole human message for {status:"fail", data:{error:"<sentence>"}} responses #145, PR fix(errors): keep a fail-envelope sentence out of error.code (#145) #148)subscriptions.list()/events()no longer turn a malformed success into an empty answer, andevents(since=...)refuses a cursor the API would read as0(a full-history replay) ([P2][bug] subscriptions.list() and events() turn a malformed 200 into an empty success #142, PR fix(subscriptions): refuse malformed list/events 200s and replaying cursors (#142) #147)ValidationError(status_code=None), never a rawValueErrorDeprecated
SubscriptionEvent.type,.code,.payload(alwaysNone) and.created_at(alias ofobserved_at) warn on access and are removed in 2.0.0. Nothing is removed in this release.Verification (local, this branch, fresh venv with
[dev])import oilpriceapi; oilpriceapi.__version__→1.16.0pytest→ 1990 passed, 3 failed, 68 skipped. The 3 failures aretests/integration/test_demo_contract.pyreceiving live429 Too Many Requestsfrom/v1/demo/prices— environmental, identical onmain.ruff check→ cleanmypy oilpriceapi/ --ignore-missing-imports(exactly astest.ymlruns it) → no issues in 55 files. Without that flag, 14 missing-stub errors for optional packages (numpy/pandas/matplotlib not installed) appear identically on cleanorigin/mainc4bce22.1.15.0left outside CHANGELOGPyPI publish runs on the GitHub release event (
publish.yml) after merge.🤖 Generated with Claude Code
https://claude.ai/code/session_015ao5paex73xXvuM424Libo