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.
Re-add the filename parameter in send_from_directory. The
filename parameter has been renamed to path, the old name
is deprecated. :pr:4019
Mark top-level names as exported so type checking understands
imports in user projects. :issue:4024
Fix type annotation for g and inform mypy that it is a namespace
object that has arbitrary attributes. :issue:4020
Fix some types that weren't available in Python 3.6.0. :issue:4040
Improve typing for send_file, send_from_directory, and
get_send_file_max_age. :issue:4044, :pr:4026
Show an error when a blueprint name contains a dot. The . has
special meaning, it is used to separate (nested) blueprint names and
the endpoint name. :issue:4041
Combine URL prefixes when nesting blueprints that were created with
a url_prefix value. :issue:4037
Roll back a change to the order that URL matching was done. The
URL is again matched after the session is loaded, so the session is
available in custom URL converters. :issue:4053
Re-add deprecated Config.from_json, which was accidentally
removed early. :issue:4078
Improve typing for some functions using Callable in their type
signatures, focusing on decorator factories. :issue:4060
Nested blueprints are registered with their dotted name. This allows
different blueprints with the same name to be nested at different
locations. :issue:4069
register_blueprint takes a name option to change the
(pre-dotted) name the blueprint is registered with. This allows the
same blueprint to be registered multiple times with unique names for
url_for. Registering the same blueprint with the same name
multiple times is deprecated. :issue:1091
Improve typing for stream_with_context. :issue:4052
Version 2.0.0
Released 2021-05-11
Drop support for Python 2 and 3.5.
Bump minimum versions of other Pallets projects: Werkzeug >= 2,
Jinja2 >= 3, MarkupSafe >= 2, ItsDangerous >= 2, Click >= 8. Be sure
to check the change logs for each project. For better compatibility
with other applications (e.g. Celery) that still require Click 7,
there is no hard dependency on Click 8 yet, but using Click 7 will
trigger a DeprecationWarning and Flask 2.1 will depend on Click 8.
... (truncated)
Commits
bc90801 Merge pull request #4091 from pallets/release-2.0.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 1.1.2 to 2.0.1.
Release notes
Sourced from flask's releases.
Changelog
Sourced from flask's changelog.
... (truncated)
Commits
bc90801
Merge pull request #4091 from pallets/release-2.0.1fe2d744
release version 2.0.19f606a8
Merge pull request #4090 from pallets/stream-type7ab934f
improve typing forstream_with_context
6b1c4e9
Merge pull request #4087 from greyli/gitignore255461d
Merge pull request #4074 from pgjones/bp3257b75
Fix blueprint renaming714b0a4
Fix blueprint self registration9409be6
warn when registering same blueprint with same name63b3067
changelog for blueprint registered nameDependabot 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)