diff --git a/README.md b/README.md index f250fa8..3025b37 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ and swap the HTTP client while inheriting everything else. `requirements.txt`: ``` -aioweb @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioweb.git@v0.1.0 +aioweb @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioweb.git@v0.1.1 ``` Direct: ```bash -pip install "aioweb @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioweb.git@v0.1.0" +pip install "aioweb @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioweb.git@v0.1.1" ``` Requires `aiohttp` and `yarl` (pulled transitively). @@ -128,6 +128,23 @@ Two changes can't be shimmed without re-introducing the bugs they fix: `await s.close()`; a leaked session emits a `ResourceWarning`. The old finalizer-based auto-close was unsafe and was removed. +## Changelog + +### v0.1.2 + +- Pinned `commons` to v0.2.1 (retry `attempts` floor fix). + +### v0.1.1 + +- **JSON list bodies** now route to `json=` (were wrongly form-encoded via `data=` — + only dicts went to `json=` before). +- **Exhausted retries return the real last response.** When every attempt hit a + retryable status (429/5xx), the loop discarded it and returned a synthetic + `FailureResponse` (status 0); now the real last 4xx/5xx `Response` is returned (only a + pure-exception failure yields `FailureResponse`). +- Retry/backoff moved onto `commons.aretry` (shared engine); backoff schedule unchanged. + Adds a `commons` dependency. + ## Versioning Tagged `vX.Y.Z`. Pin the tag in `requirements.txt`. diff --git a/pyproject.toml b/pyproject.toml index 1c05319..fbdaae1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,13 +4,13 @@ build-backend = "hatchling.build" [project] name = "aioweb" -version = "0.1.1" +version = "0.1.2" description = "Async HTTP session wrapper over aiohttp — proxies, header overwrites, retries, previews. Config-free, installable." requires-python = ">=3.10" dependencies = [ "aiohttp>=3.9", "yarl>=1.9", - "commons @ git+ssh://git@git.rethinkstudios.io/rethink-public/commons.git@v0.2.0", + "commons @ git+ssh://git@git.rethinkstudios.io/rethink-public/commons.git@v0.2.1", ] [tool.hatch.metadata]