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.
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.
:issue:4188
When using lazy loading (the default with the debugger), the Click
context from the flask run command remains available in the
loader thread. :issue:4460
Deleting the session cookie uses the httponly flag.
:issue:4485
Relax typing for errorhandler to allow the user to use more
precise types and decorate the same function multiple times.
:issue:4095, 4295, 4297
... (truncated)
Commits
65b0eef Merge pull request #4500 from pallets/release-2.1.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.1.0.
Release notes
Sourced from flask's releases.
Changelog
Sourced from flask's changelog.
... (truncated)
Commits
65b0eef
Merge pull request #4500 from pallets/release-2.1.07d264d7
release version 2.1.0f5ed54b
ignore examples testscd4ab00
fix typing41aaaf7
clean up unused function from prefixed_env pr2f5a2ab
Merge pull request #4479 from pgjones/env_confige75d575
windows env vars are uppercase4eb5e94
more from_prefixed_env features08a283a
Allow loading of environment variables into the config425a626
Merge pull request #4496 from pallets/werkzeug-relative-redirectDependabot 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)