release v1.2.1 (#698)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Inada Naoki 2026-06-19 00:33:29 +09:00 committed by GitHub
parent 2c56ddb5d0
commit 448d43f5dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 3 deletions

View file

@ -1,3 +1,12 @@
# 1.2.1
Release Date: 2026-06-19
Fix a segfault when calling `Unpacker.unpack()` or `Unpacker.skip()` after an unpacking failure.
But note that reusing the same `Unpacker` instance after an unpacking failure is not supported.
Please create a new `Unpacker` instance instead. GHSA-6v7p-g79w-8964
# 1.2.0
Release Date: 2026-06-11

View file

@ -72,6 +72,10 @@ for unpacked in unpacker:
print(unpacked)
```
> [!IMPORTANT]
> If `Unpacker.unpack()` stops with an exception other than `OutOfData`, that `Unpacker` cannot be reused.
> Create a new `Unpacker` when reading another stream.
### Packing/unpacking of custom data types
@ -220,7 +224,7 @@ When upgrading from msgpack-0.4 or earlier, do `pip uninstall msgpack-python` be
* The extension module no longer supports Python 2.
The pure Python implementation (`msgpack.fallback`) is used for Python 2.
* msgpack 1.0.6 drops official support of Python 2.7, as pip and
GitHub Action "setup-python" no longer supports Python 2.7.

View file

@ -4,8 +4,8 @@ import os
from .exceptions import * # noqa: F403
from .ext import ExtType, Timestamp
version = (1, 2, 0)
__version__ = "1.2.0"
version = (1, 2, 1)
__version__ = "1.2.1"
if os.environ.get("MSGPACK_PUREPYTHON"):