8000 Bump to v2.0.0 (#136) · h2non/pook@d9e739f · GitHub
[go: up one dir, main page]

Skip to content

Commit d9e739f

Browse files
Bump to v2.0.0 (#136)
1 parent b8fb877 commit d9e739f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

History.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
History
22
=======
33

4-
Draft v2.0.0 / Unreleased
4+
v2.0.0 / 2024-07-01
55
-------------------------
66

7-
* **Breaking change**: Remove ``Response::body``'s ``binary`` parameter and enforce a keyword argument for ``chunked``
7+
See https://github.com/h2non/pook/issues/128 for a summary of the breaking changes and how to update your code if you are affected.
8+
9+
* **Breaking change**: Remove ``Response::body``'s ``binary`` parameter and enforce a keyword argument for ``chunked``.
810

911
* The ``binary`` parameter is no longer needed since responses are now always byte-encoded in all cases (see below).
1012
* A keyword argument is now enforced for ``chunked`` to ensure unnamed arguments meant for the removed ``binary`` parameter cannot be confused as ``chunked`` arguments.
1113

12-
* Only return byte-encoded response bodies, matching the bahviour of all supported client libraries
14+
* Only return byte-encoded response bodies, matching the bahviour of all supported client libraries.
1315

1416
* This is possible because for all supported client libraries, pook mocks the actual response sent to the
1517
client library over the wire, which will, in all cases, be bytes. Client libraries that support reading
@@ -29,9 +31,9 @@ Draft v2.0.0 / Unreleased
2931
of any interecepted request will always be stored as bytes, and only decoded when necessary for individual downstream
3032
matchers (JSON, XML).
3133

32-
* Correct documentation strings for ``XMLMatcher`` and ``JSONMatcher`` to no longer suggest they can handle regex matchers
34+
* Correct documentation strings for ``XMLMatcher`` and ``JSONMatcher`` to no longer suggest they can handle regex matchers.
3335

34-
* These classes never implemented regex matching
36+
* These classes never implemented regex matching.
3537

3638
* Add a pytest fixture to the package.
3739

src/pook/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
__license__ = "MIT"
1010

1111
# Current version
12-
__version__ = "1.4.3"
12+
__version__ = "2.0.0"

0 commit comments

Comments
 (0)
0