From cd68338edf6a2efa80dee5221a560f2bb9109e12 Mon Sep 17 00:00:00 2001 From: Karl Waldman Date: Sat, 14 Nov 2026 18:38:56 -0500 Subject: [PATCH] chore(release): 1.18.0 History-gate 402 upgrade link in SDK and CLI (#163, #164), small multiples in one row (#158), lazy visualizer (#151). Refs #163 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 17 +++++++++++++++++ oilpriceapi/version.py | 2 +- pyproject.toml | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f3fe2a..256c1cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,23 @@ All notable changes to the OilPriceAPI Python SDK will be documented in this fil ## [Unreleased] +## [1.18.0] - 2026-11-16 + +### Fixed + +- **The history-gate 402 now carries its upgrade link (#163).** From + 2026-11-16 12:00 UTC `/v1/prices/historical` and `/v1/prices/history` + return 402 `UPGRADE_REQUIRED` for accounts without history access, joining + the `past_*` endpoints. The API sends the link as `upgrade.url`; + `PaymentRequiredError.remediation_url` now reads it (a top-level + `remediation_url` or `upgrade_url` still wins). `oilprice historical` + prints the upgrade link instead of a bare `[402]`, and suggests + `oilprice price` only when latest prices are still available (#164). +- `viz.create_small_multiples()` no longer raises when every commodity fits + in one row, which was the default call with three or fewer codes (#158). +- Constructing a client no longer imports matplotlib or emits + `ImportWarning`; `client.viz` is built on first use (#151). + ## [1.17.0] - 2026-10-03 ### Fixed diff --git a/oilpriceapi/version.py b/oilpriceapi/version.py index a04df6a..0a564b0 100644 --- a/oilpriceapi/version.py +++ b/oilpriceapi/version.py @@ -5,6 +5,6 @@ Used in __init__.py, client.py, and async_client.py. """ -__version__ = "1.17.0" +__version__ = "1.18.0" SDK_VERSION = __version__ SDK_NAME = "oilpriceapi-python" diff --git a/pyproject.toml b/pyproject.toml index 0512f94..c7416c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "oilpriceapi" -version = "1.17.0" +version = "1.18.0" description = "Official Python SDK for source-timestamped OilPriceAPI energy data" authors = [ {name = "OilPriceAPI", email = "support@oilpriceapi.com"}