This is a feature release, which includes new features and removes previously deprecated features. The 2.1.x branch is now the supported bugfix branch, the 2.0.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.
Set the minimum required version of importlib_metadata to 3.6.0,
which is required on Python < 3.10. :issue:4502
Version 2.1.0
Released 2022-03-28
Drop support for Python 3.6. :pr:4335
Update Click dependency to >= 8.0. :pr:4008
Remove previously deprecated code. :pr:4337
The CLI does not pass script_info to app factory functions.
config.from_json is replaced by
config.from_file(name, load=json.load).
json functions no longer take an encoding parameter.
safe_join is removed, use werkzeug.utils.safe_join
instead.
total_seconds is removed, use timedelta.total_seconds
instead.
The same blueprint cannot be registered with the same name. Use
name= when registering to specify a unique name.
The test client's as_tuple parameter is removed. Use
response.request.environ instead. :pr:4417
Some parameters in send_file and send_from_directory were
renamed in 2.0. The deprecation period for the old names is extended
to 2.2. Be sure to test with deprecation warnings visible.
attachment_filename is renamed to download_name.
cache_timeout is renamed to max_age.
add_etags is renamed to etag.
filename is renamed to path.
The RequestContext.g property is deprecated. Use g directly
or AppContext.g instead. :issue:3898
copy_current_request_context can decorate async functions.
:pr:4303
The CLI uses importlib.metadata instead of setuptools to
load command entry points. :issue:4419
Overriding FlaskClient.open will not cause an error on redirect.
:issue:3396
Add an --exclude-patterns option to the flask run CLI
command to specify patterns that will be ignored by the reloader.
... (truncated)
Commits
188bd17 Merge pull request #4511 from pallets/release-2.1.1
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 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 flask from 2.0.1 to 2.1.1.
Release notes
Sourced from flask's releases.
Changelog
Sourced from flask's changelog.
... (truncated)
Commits
188bd17
Merge pull request #4511 from pallets/release-2.1.1c6f2977
release version 2.1.1a8f4ee1
Merge pull request #4510 from pallets/release-2.1.1c419931
release version 2.1.1c3d0880
Merge pull request #4509 from pallets/importlib_metadata-min-versiond023d94
set importlib_metadata minimum version5589915
start version 2.1.165b0eef
Merge pull request #4500 from pallets/release-2.1.07d264d7
release version 2.1.0f5ed54b
ignore examples testsDependabot 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 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)