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.
Fix type annotation for teardown_* methods. :issue:4093
Fix type annotation for before_request and before_app_request
decorators. :issue:4104
Fixed the issue where typing requires template global
decorators to accept functions with no arguments. :issue:4098
Support View and MethodView instances with async handlers. :issue:4112
Enhance typing of app.errorhandler decorator. :issue:4095
Fix registering a blueprint twice with differing names. :issue:4124
Fix the type of static_folder to accept pathlib.Path.
:issue:4150
jsonify handles decimal.Decimal by encoding to str.
:issue:4157
Correctly handle raising deferred errors in CLI lazy loading.
:issue:4096
The CLI loader handles **kwargs in a create_app function.
:issue:4170
Fix the order of before_request and other callbacks that trigger
before the view returns. They are called from the app down to the
closest nested blueprint. :issue:4229
Version 2.0.1
Released 2021-05-21
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
... (truncated)
Commits
6f77625 Merge pull request #4287 from pallets/release-2.0.2
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.2.
Release notes
Sourced from flask's releases.
Changelog
Sourced from flask's changelog.
... (truncated)
Commits
6f77625
Merge pull request #4287 from pallets/release-2.0.2174fe44
release version 2.0.26d637f0
Merge pull request #4230 from matipau/blueprint-fix3f6cdbd
use similar code for all callback-applying methods166a2a6
Fix callback order for nested blueprints4346498
Merge pull request #4285 from Makonede/patch-17685851
fix list numberingf8c881b
Merge pull request #4267 from sprutner/patch-11a40d9b
fix grammar in links to app and request contextb4094b3
Merge pull request #4269 from Jalkhov/patch-1Dependabot 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)