Title: Bump flask from 0.12.2 to 1.0 in /bar-charts-bokeh-bottle-python-3 by dependabot[bot] · Pull Request #2 · fullstackpython/blog-code-examples · GitHub
Open Graph Title: Bump flask from 0.12.2 to 1.0 in /bar-charts-bokeh-bottle-python-3 by dependabot[bot] · Pull Request #2 · fullstackpython/blog-code-examples
X Title: Bump flask from 0.12.2 to 1.0 in /bar-charts-bokeh-bottle-python-3 by dependabot[bot] · Pull Request #2 · fullstackpython/blog-code-examples
Description: Bumps flask from 0.12.2 to 1.0.
Release notes
Sourced from flask's releases.
1.0
The Pallets team is pleased to release Flask 1.0. [Read the announcement on our blog.](https://www.palletsprojects.com/blog/flask-1-0-released/
There are over a year's worth of changes in this release. Many features have been improved or changed. Read the changelog to understand how your project's code will be affected.
JSON Security Fix
Flask previously decoded incoming JSON bytes using the content type of the request. Although JSON should only be encoded as UTF-8, Flask was more lenient. However, Python includes non-text related encodings that could result in unexpected memory use by a request.
Flask will now detect the encoding of incoming JSON data as one of the supported UTF encodings, and will not allow arbitrary encodings from the request.
Install or Upgrade
Install from PyPI with pip:
pip install -U Flask
0.12.4
This is a repackage of 0.12.3 to fix an issue with how the package was built.
Upgrade
Upgrade from PyPI with pip. Use a version identifier if you want to stay at 0.12:
pip install -U 'Flask~=0.12.4'
0.12.3
This release includes an important security fix for JSON and a minor backport for CLI support in PyCharm. It is provided for projects that cannot update to Flask 1.0 immediately. See the 1.0 announcement and update to it instead if possible.
JSON Security Fix
Flask previously decoded incoming JSON bytes using the content type of the request. Although JSON should only be encoded as UTF-8, Flask was more lenient. However, Python includes non-text related encodings that could result in unexpected memory use by a request.
Flask will now detect the encoding of incoming JSON data as one of the supported UTF encodings, and will not allow arbitrary encodings from the request.
Upgrade
Upgrade from PyPI with pip. Use a version identifier if you want to stay at 0.12:
pip install -U 'Flask~=0.12.3'
... (truncated)
Changelog
Sourced from flask's changelog.
Version 1.0
Released 2018-04-26
Python 2.6 and 3.3 are no longer supported.
Bump minimum dependency versions to the latest stable versions:
Werkzeug >= 0.14, Jinja >= 2.10, itsdangerous >= 0.24, Click >= 5.1.
:issue:2586
Skip :meth:app.run
Open Graph Description: Bumps flask from 0.12.2 to 1.0. Release notes Sourced from flask's releases. 1.0 The Pallets team is pleased to release Flask 1.0. [Read the announcement on our blog.](https://www.palletsproj...
X Description: Bumps flask from 0.12.2 to 1.0. Release notes Sourced from flask's releases. 1.0 The Pallets team is pleased to release Flask 1.0. [Read the announcement on our blog.](https://www.pallets...
Opengraph URL: https://github.com/fullstackpython/blog-code-examples/pull/2
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ef39a2be-25b4-c357-bb71-701ca279d84c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9194:8D142:2AD0D36:382707F:696B2A8D |
| html-safe-nonce | 9c3e154c9e5b9905edd9f02684c9380cbc8f0869a680f6912988a1f3ad04b17a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTk0OjhEMTQyOjJBRDBEMzY6MzgyNzA3Rjo2OTZCMkE4RCIsInZpc2l0b3JfaWQiOiIzNTQyOTU3Njk4NjM1NzM3NzQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d80db442646fc2c17d29cdd9bb2f05ecf3c336673bf74274dfb717eb9d88de1e |
| hovercard-subject-tag | pull_request:395140795 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/fullstackpython/blog-code-examples/pull/2/files |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | Bumps flask from 0.12.2 to 1.0. Release notes Sourced from flask's releases. 1.0 The Pallets team is pleased to release Flask 1.0. [Read the announcement on our blog.](https://www.palletsproj... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/fullstackpython/blog-code-examples git https://github.com/fullstackpython/blog-code-examples.git |
| octolytics-dimension-user_id | 19671844 |
| octolytics-dimension-user_login | fullstackpython |
| octolytics-dimension-repository_id | 88350120 |
| octolytics-dimension-repository_nwo | fullstackpython/blog-code-examples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 88350120 |
| octolytics-dimension-repository_network_root_nwo | fullstackpython/blog-code-examples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width