| 1 |
Version 2.2.0 |
| 2 |
------------- |
| 3 |
|
| 4 |
Released 2024-04-16 |
| 5 |
|
| 6 |
- Drop support for Python 3.7. :pr:`372` |
| 7 |
- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``. |
| 8 |
:pr:`326` |
| 9 |
- Use ``flit_core`` instead of ``setuptools`` as build backend. |
| 10 |
- Deprecate the ``__version__`` attribute. Use feature detection, or |
| 11 |
``importlib.metadata.version("itsdangerous")``, instead. :issue:`371` |
| 12 |
- ``Serializer`` and the return type of ``dumps`` is generic for type checking. |
| 13 |
By default it is ``Serializer[str]`` and ``dumps`` returns a ``str``. If a |
| 14 |
different ``serializer`` argument is given, it will try to infer the return |
| 15 |
type of its ``dumps`` method. :issue:`347` |
| 16 |
- The default ``hashlib.sha1`` may not be available in FIPS builds. Don't |
| 17 |
access it at import time so the developer has time to change the default. |
| 18 |
:issue:`375` |
| 19 |
|
| 20 |
|
| 21 |
Version 2.1.2 |
| 22 |
------------- |
| 23 |
|
| 24 |
Released 2022-03-24 |
| 25 |
|
| 26 |
- Handle date overflow in timed unsign on 32-bit systems. :pr:`299` |
| 27 |
|
| 28 |
|
| 29 |
Version 2.1.1 |
| 30 |
------------- |
| 31 |
|
| 32 |
Released 2022-03-09 |
| 33 |
|
| 34 |
- Handle date overflow in timed unsign. :pr:`296` |
| 35 |
|
| 36 |
|
| 37 |
Version 2.1.0 |
| 38 |
------------- |
| 39 |
|
| 40 |
Released 2022-02-17 |
| 41 |
|
| 42 |
- Drop support for Python 3.6. :pr:`272` |
| 43 |
- Remove previously deprecated code. :pr:`273` |
| 44 |
|
| 45 |
- JWS functionality: Use a dedicated library such as Authlib |
| 46 |
instead. |
| 47 |
- ``import itsdangerous.json``: Import ``json`` from the standard |
| 48 |
library instead. |
| 49 |
|
| 50 |
|
| 51 |
Version 2.0.1 |
| 52 |
------------- |
| 53 |
|
| 54 |
Released 2021-05-18 |
| 55 |
|
| 56 |
- Mark top-level names as exported so type checking understands |
| 57 |
imports in user projects. :pr:`240` |
| 58 |
- The ``salt`` argument to ``Serializer`` and ``Signer`` can be |
| 59 |
``None`` again. :issue:`237` |
| 60 |
|
| 61 |
|
| 62 |
Version 2.0.0 |
| 63 |
------------- |
| 64 |
|
| 65 |
Released 2021-05-11 |
| 66 |
|
| 67 |
- Drop support for Python 2 and 3.5. |
| 68 |
- JWS support (``JSONWebSignatureSerializer``, |
| 69 |
``TimedJSONWebSignatureSerializer``) is deprecated. Use a dedicated |
| 70 |
JWS/JWT library such as authlib instead. :issue:`129` |
| 71 |
- Importing ``itsdangerous.json`` is deprecated. Import Python's |
| 72 |
``json`` module instead. :pr:`152` |
| 73 |
- Simplejson is no longer used if it is installed. To use a different |
| 74 |
library, pass it as ``Serializer(serializer=...)``. :issue:`146` |
| 75 |
- ``datetime`` values are timezone-aware with ``timezone.utc``. Code |
| 76 |
using ``TimestampSigner.unsign(return_timestamp=True)`` or |
| 77 |
``BadTimeSignature.date_signed`` may need to change. :issue:`150` |
| 78 |
- If a signature has an age less than 0, it will raise |
| 79 |
``SignatureExpired`` rather than appearing valid. This can happen if |
| 80 |
the timestamp offset is changed. :issue:`126` |
| 81 |
- ``BadTimeSignature.date_signed`` is always a ``datetime`` object |
| 82 |
rather than an ``int`` in some cases. :issue:`124` |
| 83 |
- Added support for key rotation. A list of keys can be passed as |
| 84 |
``secret_key``, oldest to newest. The newest key is used for |
| 85 |
signing, all keys are tried for unsigning. :pr:`141` |
| 86 |
- Removed the default SHA-512 fallback signer from |
| 87 |
``default_fallback_signers``. :issue:`155` |
| 88 |
- Add type information for static typing tools. :pr:`186` |
| 89 |
|
| 90 |
|
| 91 |
Version 1.1.0 |
| 92 |
------------- |
| 93 |
|
| 94 |
Released 2018-10-26 |
| 95 |
|
| 96 |
- Change default signing algorithm back to SHA-1. :pr:`113` |
| 97 |
- Added a default SHA-512 fallback for users who used the yanked 1.0.0 |
| 98 |
release which defaulted to SHA-512. :pr:`114` |
| 99 |
- Add support for fallback algorithms during deserialization to |
| 100 |
support changing the default in the future without breaking existing |
| 101 |
signatures. :pr:`113` |
| 102 |
- Changed capitalization of packages back to lowercase as the change |
| 103 |
in capitalization broke some tooling. :pr:`113` |
| 104 |
|
| 105 |
|
| 106 |
Version 1.0.0 |
| 107 |
------------- |
| 108 |
|
| 109 |
Released 2018-10-18 |
| 110 |
|
| 111 |
YANKED |
| 112 |
|
| 113 |
*Note*: This release was yanked from PyPI because it changed the default |
| 114 |
algorithm to SHA-512. This decision was reverted in 1.1.0 and it remains |
| 115 |
at SHA1. |
| 116 |
|
| 117 |
- Drop support for Python 2.6 and 3.3. |
| 118 |
- Refactor code from a single module to a package. Any object in the |
| 119 |
API docs is still importable from the top-level ``itsdangerous`` |
| 120 |
name, but other imports will need to be changed. A future release |
| 121 |
will remove many of these compatibility imports. :pr:`107` |
| 122 |
- Optimize how timestamps are serialized and deserialized. :pr:`13` |
| 123 |
- ``base64_decode`` raises ``BadData`` when it is passed invalid data. |
| 124 |
:pr:`27` |
| 125 |
- Ensure value is bytes when signing to avoid a ``TypeError`` on |
| 126 |
Python 3. :issue:`29` |
| 127 |
- Add a ``serializer_kwargs`` argument to ``Serializer``, which is |
| 128 |
passed to ``dumps`` during ``dump_payload``. :pr:`36` |
| 129 |
- More compact JSON dumps for unicode strings. :issue:`38` |
| 130 |
- Use the full timestamp rather than an offset, allowing dates before |
| 131 |
2011. :issue:`46` |
| 132 |
|
| 133 |
To retain compatibility with signers from previous versions, |
| 134 |
consider using `this shim <https://github.com/pallets/itsdangerous |
| 135 |
/issues/120#issuecomment-456913331>`_ when unsigning. |
| 136 |
- Detect a ``sep`` character that may show up in the signature itself |
| 137 |
and raise a ``ValueError``. :issue:`62` |
| 138 |
- Use a consistent signature for keyword arguments for |
| 139 |
``Serializer.load_payload`` in subclasses. :issue:`74`, :pr:`75` |
| 140 |
- Change default intermediate hash from SHA-1 to SHA-512. :pr:`80` |
| 141 |
- Convert JWS exp header to an int when loading. :pr:`99` |
| 142 |
|
| 143 |
|
| 144 |
Version 0.24 |
| 145 |
------------ |
| 146 |
|
| 147 |
Released 2014-03-28 |
| 148 |
|
| 149 |
- Added a ``BadHeader`` exception that is used for bad headers that |
| 150 |
replaces the old ``BadPayload`` exception that was reused in those |
| 151 |
cases. |
| 152 |
|
| 153 |
|
| 154 |
Version 0.23 |
| 155 |
------------ |
| 156 |
|
| 157 |
Released 2013-08-08 |
| 158 |
|
| 159 |
- Fixed a packaging mistake that caused the tests and license files to |
| 160 |
not be included. |
| 161 |
|
| 162 |
|
| 163 |
Version 0.22 |
| 164 |
------------ |
| 165 |
|
| 166 |
Released 2013-07-03 |
| 167 |
|
| 168 |
- Added support for ``TimedJSONWebSignatureSerializer``. |
| 169 |
- Made it possible to override the signature verification function to |
| 170 |
allow implementing asymmetrical algorithms. |
| 171 |
|
| 172 |
|
| 173 |
Version 0.21 |
| 174 |
------------ |
| 175 |
|
| 176 |
Released 2013-05-26 |
| 177 |
|
| 178 |
- Fixed an issue on Python 3 which caused invalid errors to be |
| 179 |
generated. |
| 180 |
|
| 181 |
|
| 182 |
Version 0.20 |
| 183 |
------------ |
| 184 |
|
| 185 |
Released 2013-05-23 |
| 186 |
|
| 187 |
- Fixed an incorrect call into ``want_bytes`` that broke some uses of |
| 188 |
ItsDangerous on Python 2.6. |
| 189 |
|
| 190 |
|
| 191 |
Version 0.19 |
| 192 |
------------ |
| 193 |
|
| 194 |
Released 2013-05-21 |
| 195 |
|
| 196 |
- Dropped support for 2.5 and added support for 3.3. |
| 197 |
|
| 198 |
|
| 199 |
Version 0.18 |
| 200 |
------------ |
| 201 |
|
| 202 |
Released 2013-05-03 |
| 203 |
|
| 204 |
- Added support for JSON Web Signatures (JWS). |
| 205 |
|
| 206 |
|
| 207 |
Version 0.17 |
| 208 |
------------ |
| 209 |
|
| 210 |
Released 2012-08-10 |
| 211 |
|
| 212 |
- Fixed a name error when overriding the digest method. |
| 213 |
|
| 214 |
|
| 215 |
Version 0.16 |
| 216 |
------------ |
| 217 |
|
| 218 |
Released 2012-07-11 |
| 219 |
|
| 220 |
- Made it possible to pass unicode values to ``load_payload`` to make |
| 221 |
it easier to debug certain things. |
| 222 |
|
| 223 |
|
| 224 |
Version 0.15 |
| 225 |
------------ |
| 226 |
|
| 227 |
Released 2012-07-11 |
| 228 |
|
| 229 |
- Made standalone ``load_payload`` more robust by raising one specific |
| 230 |
error if something goes wrong. |
| 231 |
- Refactored exceptions to catch more cases individually, added more |
| 232 |
attributes. |
| 233 |
- Fixed an issue that caused ``load_payload`` not work in some |
| 234 |
situations with timestamp based serializers |
| 235 |
- Added an ``loads_unsafe`` method. |
| 236 |
|
| 237 |
|
| 238 |
Version 0.14 |
| 239 |
------------ |
| 240 |
|
| 241 |
Released 2012-06-29 |
| 242 |
|
| 243 |
- API refactoring to support different key derivations. |
| 244 |
- Added attributes to exceptions so that you can inspect the data even |
| 245 |
if the signature check failed. |
| 246 |
|
| 247 |
|
| 248 |
Version 0.13 |
| 249 |
------------ |
| 250 |
|
| 251 |
Released 2012-06-10 |
| 252 |
|
| 253 |
- Small API change that enables customization of the digest module. |
| 254 |
|
| 255 |
|
| 256 |
Version 0.12 |
| 257 |
------------ |
| 258 |
|
| 259 |
Released 2012-02-22 |
| 260 |
|
| 261 |
- Fixed a problem with the local timezone being used for the epoch |
| 262 |
calculation. This might invalidate some of your signatures if you |
| 263 |
were not running in UTC timezone. You can revert to the old behavior |
| 264 |
by monkey patching ``itsdangerous.EPOCH``. |
| 265 |
|
| 266 |
|
| 267 |
Version 0.11 |
| 268 |
------------ |
| 269 |
|
| 270 |
Released 2011-07-07 |
| 271 |
|
| 272 |
- Fixed an uncaught value error. |
| 273 |
|
| 274 |
|
| 275 |
Version 0.10 |
| 276 |
------------ |
| 277 |
|
| 278 |
Released 2011-06-25 |
| 279 |
|
| 280 |
- Refactored interface that the underlying serializers can be swapped |
| 281 |
by passing in a module instead of having to override the payload |
| 282 |
loaders and dumpers. This makes the interface more compatible with |
| 283 |
Django's recent changes. |