This is a feature release, which includes new features, removes previously deprecated code, and adds new deprecations. The 2.2.x branch is now the supported fix branch, the 2.1.x branch will become a tag marking the end of support for that branch. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early.
Use modern packaging metadata with pyproject.toml instead of setup.cfg.
Use flit_core instead of setuptools as build backend.
Deprecate the __version__ attribute. Use feature detection, or importlib.metadata.version("itsdangerous"), instead.
Serializer and the return type of dumps is generic for type checking. By default it is Serializer[str] and dumps returns a str. If a different serializer argument is given, it will try to infer the return type of its dumps method.
The default hashlib.sha1 may not be available in FIPS builds. Don't access it at import time so the developer has time to change the default.
Follow our blog, Twitter, or GitHub to see future announcements.
This represents a significant amount of work, and there are quite a few changes. Be sure to carefully read the changelog, and use tools such as pip-compile and Dependabot to pin your dependencies and control your updates.
Use modern packaging metadata with pyproject.toml instead of setup.cfg.
:pr:326
Use flit_core instead of setuptools as build backend.
Deprecate the __version__ attribute. Use feature detection, or
importlib.metadata.version("itsdangerous"), instead. :issue:371
Serializer and the return type of dumps is generic for type checking.
By default it is Serializer[str] and dumps returns a str. If a
different serializer argument is given, it will try to infer the return
type of its dumps method. :issue:347
The default hashlib.sha1 may not be available in FIPS builds. Don't
access it at import time so the developer has time to change the default.
:issue:375
Version 2.1.2
Released 2022-03-24
Handle date overflow in timed unsign on 32-bit systems. :pr:299
Version 2.1.1
Released 2022-03-09
Handle date overflow in timed unsign. :pr:296
Version 2.1.0
Released 2022-02-17
Drop support for Python 3.6. :pr:272
Remove previously deprecated code. :pr:273
JWS functionality: Use a dedicated library such as Authlib
instead.
import itsdangerous.json: Import json from the standard
library instead.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps itsdangerous from 1.1.0 to 2.2.0.
Release notes
Sourced from itsdangerous's releases.
Changelog
Sourced from itsdangerous's changelog.
... (truncated)
Commits
096c8d4
release version 2.2.07f4dcf8
access sha1 lazily93ae366
change entry for generic serializer135eb23
Generic serializer (#377)999ce7a
Improve generic typing further52890d7
improve generic typing385c0eb
typeSerializer
as generic (#374)01001c6
type Serializer as genericbc88e94
improve typing (#373)69a3bca
improve typingDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show