Debian Codegraph @

CHANGELOG.md

raw
1 # 1.2.1
2
3 Release Date: 2026-06-19
4
5 Fix a segfault when calling `Unpacker.unpack()` or `Unpacker.skip()` after an unpacking failure.
6 But note that reusing the same `Unpacker` instance after an unpacking failure is not supported.
7 Please create a new `Unpacker` instance instead. GHSA-6v7p-g79w-8964
8
9
10 # 1.2.0
11
12 Release Date: 2026-06-11
13
14 - Support free threaded Python. #654, #686
15 - Dropped support for Python 3.9. #656
16 - Fix missing error checks in C code. #665, #666, #667, #672
17 - Fix `strict_map_key` option didn't work for `object_pairs_hook`. #673
18 - Increase DEFAULT_RECURSE_LIMIT of Unpacker to 1024. #676
19 - Fix memory leak when Unpacker returns error for invalid input. #671
20 - Fix `Packer.pack_ext_type()` ignored `autoreset` option. #663
21 - Fix `Timestamp.from_datetime()` returning wrong value for pre-epoch datetimes. #662
22 - Fix use-after-free in `unpackb()` and `Unpacker.unpack()` for non-contiguous input. #677
23 - Fix possible memory leak when calling `Unpacker.__init__()` several times. #687
24
25
26 # 1.1.2
27
28 Release Date: 2025-10-08
29
30 This release does not change source code. It updates only building
31 wheels:
32
33 - Update Cython to v3.1.4
34 - Update cibuildwheel to v3.2.0
35 - Drop Python 3.8
36 - Add Python 3.14
37 - Add windows-arm
38
39 # 1.1.1
40
41 Release Date: 2025-06-13
42
43 - No change from 1.1.1rc1.
44
45 # 1.1.1rc1
46
47 Release Date: 2025-06-06
48
49 - Update Cython to 3.1.1 and cibuildwheel to 2.23.3.
50
51 # 1.1.0
52
53 Release Date: 2024-09-10
54
55 - use `PyLong_*` instead of `PyInt_*` for compatibility with future
56 Cython. (#620)
57
58 # 1.1.0rc2
59
60 Release Date: 2024-08-19
61
62 - Update Cython to 3.0.11 for better Python 3.13 support.
63 - Update cibuildwheel to 2.20.0 to build Python 3.13 wheels.
64
65 # 1.1.0rc1
66
67 Release Date: 2024-05-07
68
69 - Update Cython to 3.0.10 to reduce C warnings and future support for
70 Python 3.13.
71 - Stop using C++ mode in Cython to reduce compile error on some
72 compilers.
73 - `Packer()` has `buf_size` option to specify initial size of internal
74 buffer to reduce reallocation.
75 - The default internal buffer size of `Packer()` is reduced from 1MiB to
76 256KiB to optimize for common use cases. Use `buf_size` if you are
77 packing large data.
78 - `Timestamp.to_datetime()` and `Timestamp.from_datetime()` become more
79 accurate by avoiding floating point calculations. (#591)
80 - The Cython code for `Unpacker` has been slightly rewritten for
81 maintainability.
82 - The fallback implementation of `Packer()` and `Unpacker()` now uses
83 keyword-only arguments to improve compatibility with the Cython
84 implementation.
85
86 # 1.0.8
87
88 Release Date: 2024-03-01
89
90 - Update Cython to 3.0.8. This fixes memory leak when iterating
91 `Unpacker` object on Python 3.12.
92 - Do not include C/Cython files in binary wheels.
93
94 # 1.0.7
95
96 Release Date: 2023-09-28
97
98 - Fix build error of extension module on Windows. (#567)
99 - `setup.py` doesn't skip build error of extension module. (#568)
100
101 # 1.0.6
102
103 Release Date: 2023-09-21
104
105 > [!NOTE]
106 > v1.0.6 Wheels for Windows don't contain extension module. Please
107 > upgrade to v1.0.7 or newer.
108
109 - Add Python 3.12 wheels (#517)
110 - Remove Python 2.7, 3.6, and 3.7 support
111
112 # 1.0.5
113
114 Release Date: 2023-03-08
115
116 - Use `__BYTE_ORDER__` instead of `__BYTE_ORDER` for portability. (#513,
117 \#514)
118 - Add Python 3.11 wheels (#517)
119 - fallback: Fix packing multidimensional memoryview (#527)
120
121 # 1.0.4
122
123 Release Date: 2022-06-03
124
125 - Support Python 3.11 (beta).
126 - Don't define `__*_ENDIAN__` macro
127 on Unix. by @methane in
128 <https://github.com/msgpack/msgpack-python/pull/495>
129 - Use PyFloat_Pack8() on Python 3.11a7 by @vstinner in
130 <https://github.com/msgpack/msgpack-python/pull/499>
131 - Fix Unpacker max_buffer_length handling by @methane in
132 <https://github.com/msgpack/msgpack-python/pull/506>
133
134 # 1.0.3
135
136 Release Date: 2021-11-24 JST
137
138 - Fix Docstring (#459)
139 - Fix error formatting (#463)
140 - Improve error message about strict_map_key (#485)
141
142 # 1.0.2
143
144 - Fix year 2038 problem regression in 1.0.1. (#451)
145
146 # 1.0.1
147
148 - Add Python 3.9 and linux/arm64 wheels. (#439)
149 - Fixed Unpacker.tell() after read_bytes() (#426)
150 - Fixed unpacking datetime before epoch on Windows (#433)
151 - Fixed fallback Packer didn't check DateTime.tzinfo (#434)
152
153 # 1.0.0
154
155 Release Date: 2020-02-17
156
157 - Remove Python 2 support from the `msgpack/_cmsgpack`.
158 `msgpack/fallback` still supports Python 2.
159 - Remove `encoding` option from the Packer and Unpacker.
160 - Unpacker: The default value of `max_buffer_size` is changed to 100MiB.
161 - Unpacker: `strict_map_key` is True by default now.
162 - Unpacker: String map keys are interned.
163 - Drop old buffer protocol support.
164 - Support Timestamp type.
165 - Support serializing and decerializing `datetime` object with tzinfo.
166 - Unpacker: `Fix Unpacker.read_bytes()` in fallback implementation.
167 (#352)
168
169 # 0.6.2
170
171 Release Date: 2019-09-20
172
173 - Support Python 3.8.
174 - Update Cython to 0.29.13 for support Python 3.8.
175 - Some small optimizations.
176
177 # 0.6.1
178
179 Release Date: 2019-01-25
180
181 This release is for mitigating pain caused by v0.6.0 reduced max input
182 limits for security reason.
183
184 - `unpackb(data)` configures `max_*_len` options from `len(data)`,
185 instead of static default sizes.
186 - `Unpacker(max_buffer_len=N)` configures `max_*_len` options from `N`,
187 instead of static default sizes.
188 - `max_bin_len`, `max_str_len`, and `max_ext_len` are deprecated. Since
189 this is minor release, it's document only deprecation.
190
191 # 0.6.0
192
193 Release Date: 2018-11-30
194
195 This release contains some backward incompatible changes for security
196 reason (DoS).
197
198 ## Important changes
199
200 - unpacker: Default value of input limits are smaller than before to
201 avoid DoS attack. If you need to handle large data, you need to
202 specify limits manually. (#319)
203 - Unpacker doesn't wrap underlying `ValueError` (including
204 `UnicodeError`) into `UnpackValueError`. If you want to catch all
205 exception during unpack, you need to use `try ... except Exception`
206 with minimum try code block. (#323, \#233)
207 - `PackValueError` and `PackOverflowError` are also removed. You need to
208 catch normal `ValueError` and `OverflowError`. (#323, \#233)
209 - Unpacker has `strict_map_key` option now. When it is true, only bytes
210 and str (unicode in Python 2) are allowed for map keys. It is
211 recommended to avoid hashdos. Default value of this option is False
212 for backward compatibility reason. But it will be changed True in 1.0.
213 (#296, \#334)
214
215 ## Other changes
216
217 - Extension modules are merged. There is `msgpack._cmsgpack` instead of
218 `msgpack._packer` and `msgpack._unpacker`. (#314, \#328)
219 - Add `Unpacker.getbuffer()` method. (#320)
220 - unpacker: `msgpack.StackError` is raised when input data contains too
221 nested data. (#331)
222 - unpacker: `msgpack.FormatError` is raised when input data is not valid
223 msgpack format. (#331)
224
225 # 0.5.6
226
227 - Fix fallback.Unpacker.feed() dropped unused data from buffer (#287)
228 - Resurrect fallback.unpack() and `unpacker.unpack()`. They were removed
229 at 0.5.5 but it breaks backward compatibility. (#288, #290)
230
231 # 0.5.5
232
233 - Fix memory leak in pure Python Unpacker.feed() (#283)
234 - Fix unpack() didn't support `raw` option
235 (#285)
236
237 # 0.5.4
238
239 - Undeprecate `unicode_errors` option. (#278)
240
241 # 0.5.3
242
243 - Fixed regression when passing `unicode_errors` to Packer but not
244 `encoding`. (#277)
245
246 # 0.5.2
247
248 - Add `raw` option to Unpacker. It is preferred way than `encoding`
249 option.
250 - Packer.pack() reset buffer on exception (#274)
251
252 # 0.5.1
253
254 - Remove FutureWarning about use_bin_type option (#271)
255
256 # 0.5.0
257
258 There are some deprecations. Please read changes carefully.
259
260 ## Changes
261
262 - Drop Python 2.6 and ~3.4 support. Python 2.7 and 3.5+ are supported.
263 - Deprecate useless custom exceptions. Use ValueError instead of
264 PackValueError, Exception instead of PackException and
265 UnpackException, etc... See msgpack/exceptions.py
266 - Add *strict_types* option to packer. It can be used to serialize
267 subclass of builtin types. For example, when packing object which type
268 is subclass of dict, `default()` is called. `default()` is called for
269 tuple too.
270 - Pure Python implementation supports packing memoryview object.
271 - Support packing bytearray.
272 - Add `Unpacker.tell()`. And `write_bytes` option is deprecated.
273
274 ## Bugs fixed
275
276 - Fixed zero length raw can't be decoded when encoding is specified.
277 (#236)
278
279 # 0.4.8
280
281 Release Date: 2016-07-29
282
283 ## Bugs fixed
284
285 - Calling ext_hook with wrong length. (Only on Windows, maybe. \#203)
286
287 # 0.4.7
288
289 Release Date: 2016-01-25
290
291 ## Bugs fixed
292
293 - Memory leak when unpack is failed
294
295 ## Changes
296
297 - Reduce compiler warnings while building extension module
298 - unpack() now accepts ext_hook argument like Unpacker and unpackb()
299 - Update Cython version to 0.23.4
300 - default function is called when integer overflow
301
302 # 0.4.6
303
304 Release Date: 2015-03-13
305
306 ## Bugs fixed
307
308 - fallback.Unpacker: Fix Data corruption when OutOfData. This bug only
309 affects "Streaming unpacking."
310
311 # 0.4.5
312
313 Release Date: 2015-01-25
314
315 ## Incompatible Changes
316
317 ## Changes
318
319 ## Bugs fixed
320
321 - Fix test failure on pytest 2.3. (by @ktdreyer)
322 - Fix typos in ChangeLog. (Thanks to @dmick)
323 - Improve README.rst (by @msabramo)
324
325 # 0.4.4
326
327 Release Date: 2015-01-09
328
329 ## Incompatible Changes
330
331 ## Changes
332
333 ## Bugs fixed
334
335 - Fix compile error.
336
337 # 0.4.3
338
339 Release Date: 2015-01-07
340
341 ## Incompatible Changes
342
343 ## Changes
344
345 ## Bugs fixed
346
347 - Unpacker may unpack wrong uint32 value on 32bit or LLP64 environment.
348 (#101)
349 - Build failed on Windows Python 2.7.
350
351 # 0.4.2
352
353 Release Date: 2014-03-26
354
355 ## Incompatible Changes
356
357 ## Changes
358
359 ## Bugs fixed
360
361 - Unpacker doesn't increment refcount of ExtType hook.
362 - Packer raises no exception for inputs doesn't fit to msgpack format.
363
364 # 0.4.1
365
366 Release Date: 2014-02-17
367
368 ## Incompatible Changes
369
370 ## Changes
371
372 - fallback.Unpacker.feed() supports bytearray.
373
374 ## Bugs fixed
375
376 - Unpacker doesn't increment refcount of hooks. Hooks may be GCed while
377 unpacking.
378 - Unpacker may read unfilled internal buffer.
379
380 # 0.4.0
381
382 Release Date: 2013-10-21
383
384 ## Incompatible Changes
385
386 - Raises TypeError instead of ValueError when packer receives
387 unsupported type.
388
389 ## Changes
390
391 - Support New msgpack spec.
392
393 # 0.3.0
394
395 ## Incompatible Changes
396
397 - Default value of `use_list` is `True` for now. (It was `False` for
398 0.2.x) You should pass it explicitly for compatibility to 0.2.x.
399 - `Unpacker.unpack()` and some unpack methods now raise `OutOfData` instead of
400 `StopIteration`. `StopIteration` is used for iterator protocol only.
401
402 ## Changes
403
404 - Pure Python fallback module is added. (thanks to bwesterb)
405 - Add `.skip()` method to `Unpacker` (thanks to jnothman)
406 - Add capturing feature. You can pass the writable object to
407 `Unpacker.unpack()` as a second parameter.
408 - Add `Packer.pack_array_header` and `Packer.pack_map_header`. These
409 methods only pack header of each type.
410 - Add `autoreset` option to `Packer` (default: True). Packer doesn't
411 return packed bytes and clear internal buffer.
412 - Add `Packer.pack_map_pairs`. It packs sequence of pair to map type.
413
414 # 0.2.4
415
416 Release Date: 2012-12-22
417
418 ## Bugs fixed
419
420 - Fix SEGV when object_hook or object_pairs_hook raise Exception. (#39)
421
422 # 0.2.3
423
424 Release Date: 2012-12-11
425
426 ## Changes
427
428 - Warn when use_list is not specified. It's default value will be
429 changed in 0.3.
430
431 ## Bugs fixed
432
433 - Can't pack subclass of dict.
434
435 # 0.2.2
436
437 Release Date: 2012-09-21
438
439 ## Changes
440
441 - Add `use_single_float` option to `Packer`. When it is true, packs
442 float object in single precision format.
443
444 ## Bugs fixed
445
446 - `unpack()` didn't restores gc state when it called with gc disabled.
447 `unpack()` doesn't control gc now instead of restoring gc state
448 collectly. User can control gc state when gc cause performance issue.
449 - `Unpacker`'s `read_size` option didn't used.
450
451 # 0.2.1
452
453 Release Date: 2012-08-20
454
455 ## Changes
456
457 - Add `max_buffer_size` parameter to Unpacker. It limits internal buffer
458 size and allows unpack data from untrusted source safely.
459 - Unpacker's buffer reallocation algorithm is less greedy now. It cause
460 performance decrease in rare case but memory efficient and don't
461 allocate than `max_buffer_size`.
462
463 ## Bugs fixed
464
465 - Fix msgpack didn't work on SPARC Solaris. It was because choosing
466 wrong byteorder on compilation time. Use `sys.byteorder` to get
467 correct byte order. Very thanks to Chris Casey for giving test
468 environment to me.
469
470 # 0.2.0
471
472 Release Date: 2012-06-27
473
474 ## Changes
475
476 - Drop supporting Python 2.5 and unify tests for Py2 and Py3.
477 - Use new version of msgpack-c. It packs correctly on big endian
478 platforms.
479 - Remove deprecated packs and unpacks API.
480
481 ## Bugs fixed
482
483 - \#8 Packing subclass of dict raises TypeError. (Thanks to Steeve
484 Morin.)
485
486 # 0.1.13
487
488 Release Date: 2012-04-21
489
490 ## New
491
492 - Don't accept subtype of list and tuple as msgpack list. (Steeve Morin)
493 It allows customize how it serialized with `default` argument.
494
495 ## Bugs fixed
496
497 - Fix wrong error message. (David Wolever)
498 - Fix memory leak while unpacking when `object_hook` or `list_hook` is
499 used. (Steeve Morin)
500
501 ## Other changes
502
503 - setup.py works on Python 2.5 (Steffen Siering)
504 - Optimization for serializing dict.
505
506 # 0.1.12
507
508 Release Date: 2011-12-27
509
510 ## Bugs fixed
511
512 - Re-enable packs/unpacks removed at 0.1.11. It will be removed when 0.2
513 is released.
514
515 # 0.1.11
516
517 Release Date: 2011-12-26
518
519 ## Bugs fixed
520
521 - Include test code for Python3 to sdist. (Johan Bergström)
522 - Fix compilation error on MSVC. (davidgaleano)
523
524 # 0.1.10
525
526 Release Date: 2011-08-22
527
528 ## New feature
529
530 - Add `encoding` and `unicode_errors` option to packer and unpacker.
531 When this option is specified, (un)packs unicode object instead of
532 bytes. This enables using msgpack as a replacement of json. (tailhook)
533
534 # 0.1.9
535
536 Release Date: 2011-01-29
537
538 ## New feature
539
540 - `use_list` option is added to unpack(b) like Unpacker. (Use keyword
541 argument because order of parameters are different)
542
543 ## Bugs fixed
544
545 - Fix typo.
546 - Add MemoryError check.
547
548 # 0.1.8
549
550 Release Date: 2011-01-10
551
552 ## New feature
553
554 - Support `loads` and `dumps` aliases for API compatibility with
555 simplejson and pickle.
556 - Add *object_hook* and *list_hook* option to unpacker. It allows you to
557 hook unpacking mapping type and array type.
558 - Add *default* option to packer. It allows you to pack unsupported
559 types.
560 - unpacker accepts (old) buffer types.
561
562 ## Bugs fixed
563
564 - Fix segv around `Unpacker.feed` or `Unpacker(file)`.
565
566 # 0.1.7
567
568 Release Date: 2010-11-02
569
570 ## New feature
571
572 - Add *object_hook* and *list_hook* option to unpacker. It allows you to
573 hook unpacking mapping type and array type.
574 - Add *default* option to packer. It allows you to pack unsupported
575 types.
576 - unpacker accepts (old) buffer types.
577
578 ## Bugs fixed
579
580 - Compilation error on win32.