This is a feature release, which includes new features and removes previously deprecated code. The 2.2.x branch is now the supported bug 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.
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.
Old names for some send_file parameters have been removed.
download_name replaces attachment_filename, max_age
replaces cache_timeout, and etag replaces add_etags.
Additionally, path replaces filename in
send_from_directory.
The RequestContext.g property returning AppContext.g is
removed.
Update Werkzeug dependency to >= 2.2.
The app and request contexts are managed using Python context vars
directly rather than Werkzeug's LocalStack. This should result
in better performance and memory use. :pr:4682
Extension maintainers, be aware that _app_ctx_stack.top
and _request_ctx_stack.top are deprecated. Store data on
g instead using a unique prefix, like
g._extension_name_attr.
The FLASK_ENV environment variable and app.env attribute are
deprecated, removing the distinction between development and debug
mode. Debug mode should be controlled directly using the --debug
option or app.run(debug=True). :issue:4714
Some attributes that proxied config keys on app are deprecated:
session_cookie_name, send_file_max_age_default,
use_x_sendfile, propagate_exceptions, and
templates_auto_reload. Use the relevant config keys instead.
:issue:4716
Add new customization points to the Flask app object for many
previously global behaviors.
flask.url_for will call app.url_for. :issue:4568
flask.abort will call app.aborter.
Flask.aborter_class and Flask.make_aborter can be used
to customize this aborter. :issue:4567
flask.redirect will call app.redirect. :issue:4569
flask.json is an instance of JSONProvider. A different
provider can be set to use a different JSON library.
flask.jsonify will call app.json.response, other
functions in flask.json will call corresponding functions in
app.json. :pr:4688
JSON configuration is moved to attributes on the default
app.json provider. JSON_AS_ASCII, JSON_SORT_KEYS,
... (truncated)
Commits
b17bb9e Merge pull request #4710 from pallets/release-2.2.0
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.2.0.
Release notes
Sourced from flask's releases.
Changelog
Sourced from flask's changelog.
... (truncated)
Commits
b17bb9e
Merge pull request #4710 from pallets/release-2.2.0292c7e5
release version 2.2.0f3bb9b2
Merge branch '2.1.x'ac1bb97
Merge pull request #4721 from pallets/pre-commit-ci-update-configcfd5783
Merge pull request #4722 from pallets/deprecate-config-attrsbfdd371
deprecate config attributes6f9ef11
[pre-commit.ci] pre-commit autoupdate98ca00d
Merge pull request #4720 from pallets/deprecate-env30427a2
remove FLASK_ENV from docsef95998
deprecate FLASK_ENVDependabot 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)