Skip to content

Commit a5b8858

Browse files
karpetrosyanKaren Petrosyan
and
Karen Petrosyan
authored
Version 0.0.29 (#244)
* Version 0.0.29 * changelog --------- Co-authored-by: Karen Petrosyan <[email protected]>
1 parent 89f056c commit a5b8858

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.0.29 (23th June, 2024)
4+
5+
- Documentation hotfix. (#244)
6+
37
## 0.0.28 (23th June, 2024)
48

59
- Add `revalidated` response extension. (#242)

docs/advanced/extensions.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ True
6262

6363
### revalidated
6464

65-
Every response will have a revalidated extension that indicates whether the response has been revalidated or not.
65+
Every response will have a `revalidated` extension that indicates whether the response has been revalidated or not.
6666

6767
!!! note
6868
Note that a response could have `revalidated` set to `True` even when `from_cache` is set to `False`. This occurs when the cached entry has been updated and a new entry is downloaded during revalidation.
6969

70+
```python
7071
>>> import hishel
7172
>>> client = hishel.CacheClient()
7273
>>> response = client.get("https://www.example.com/endpoint_that_is_fresh")
@@ -75,7 +76,7 @@ False
7576
>>> response = client.get("https://www.example.com/endpoint_that_is_stale")
7677
>>> response.extensions["revalidated"]
7778
True
78-
79+
```
7980

8081
### cache_metadata
8182

hishel/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ def install_cache() -> None: # pragma: no cover
1414
httpx.Client = CacheClient # type: ignore
1515

1616

17-
__version__ = "0.0.28"
17+
__version__ = "0.0.29"

0 commit comments

Comments
 (0)