Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 3411a12c40 | ||
|   | 28899356c8 | 
| @@ -1,3 +1,38 @@ | |||||||
|  | Version 19.12.0 | ||||||
|  | =============== | ||||||
|  |  | ||||||
|  | Bugfixes | ||||||
|  | ******** | ||||||
|  |  | ||||||
|  | - Fix blueprint middleware application | ||||||
|  |  | ||||||
|  |   Currently, any blueprint middleware registered, irrespective of which blueprint was used to do so, was | ||||||
|  |   being applied to all of the routes created by the :code:`@app` and :code:`@blueprint` alike. | ||||||
|  |  | ||||||
|  |   As part of this change, the blueprint based middleware application is enforced based on where they are | ||||||
|  |   registered. | ||||||
|  |  | ||||||
|  |   - If you register a middleware via :code:`@blueprint.middleware` then it will apply only to the routes defined by the blueprint. | ||||||
|  |   - If you register a middleware via :code:`@blueprint_group.middleware` then it will apply to all blueprint based routes that are part of the group. | ||||||
|  |   - If you define a middleware via :code:`@app.middleware` then it will be applied on all available routes (`#37 <https://github.com/huge-success/sanic/issues/37>`__) | ||||||
|  | - Fix `url_for` behavior with missing SERVER_NAME | ||||||
|  |  | ||||||
|  |   If the `SERVER_NAME` was missing in the `app.config` entity, the `url_for` on the `request` and  `app` were failing | ||||||
|  |   due to an `AttributeError`. This fix makes the availability of `SERVER_NAME` on our `app.config` an optional behavior. (`#1707 <https://github.com/huge-success/sanic/issues/1707>`__) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Improved Documentation | ||||||
|  | ********************** | ||||||
|  |  | ||||||
|  | - Move docs from RST to MD | ||||||
|  |  | ||||||
|  |   Moved all docs from markdown to restructured text like the rest of the docs to unify the scheme and make it easier in | ||||||
|  |   the future to update documentation. (`#1691 <https://github.com/huge-success/sanic/issues/1691>`__) | ||||||
|  | - Fix documentation for `get` and `getlist` of the `request.args` | ||||||
|  |  | ||||||
|  |   Add additional example for showing the usage of `getlist` and fix the documentation string for `request.args` behavior (`#1704 <https://github.com/huge-success/sanic/issues/1704>`__) | ||||||
|  |  | ||||||
|  |  | ||||||
| Version 19.6.3 | Version 19.6.3 | ||||||
| ============== | ============== | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,4 +0,0 @@ | |||||||
| Move docs from RST to MD |  | ||||||
|  |  | ||||||
| Moved all docs from markdown to restructured text like the rest of the docs to unify the scheme and make it easier in |  | ||||||
| the future to update documentation. |  | ||||||
| @@ -1,3 +0,0 @@ | |||||||
| Fix documentation for `get` and `getlist` of the `request.args` |  | ||||||
|  |  | ||||||
| Add additional example for showing the usage of `getlist` and fix the documentation string for `request.args` behavior |  | ||||||
| @@ -1,4 +0,0 @@ | |||||||
| Fix `url_for` behavior with missing SERVER_NAME |  | ||||||
|  |  | ||||||
| If the `SERVER_NAME` was missing in the `app.config` entity, the `url_for` on the `request` and  `app` were failing |  | ||||||
| due to an `AttributeError`. This fix makes the availability of `SERVER_NAME` on our `app.config` an optional behavior. |  | ||||||
| @@ -1,11 +0,0 @@ | |||||||
| Fix blueprint middleware application |  | ||||||
|  |  | ||||||
| Currently, any blueprint middleware registered, irrespective of which blueprint was used to do so, was |  | ||||||
| being applied to all of the routes created by the :code:`@app` and :code:`@blueprint` alike. |  | ||||||
|  |  | ||||||
| As part of this change, the blueprint based middleware application is enforced based on where they are |  | ||||||
| registered. |  | ||||||
|  |  | ||||||
| - If you register a middleware via :code:`@blueprint.middleware` then it will apply only to the routes defined by the blueprint. |  | ||||||
| - If you register a middleware via :code:`@blueprint_group.middleware` then it will apply to all blueprint based routes that are part of the group. |  | ||||||
| - If you define a middleware via :code:`@app.middleware` then it will be applied on all available routes |  | ||||||
| @@ -1 +1 @@ | |||||||
| __version__ = "19.9.0" | __version__ = "19.12.0" | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| [tool.towncrier] | [tool.towncrier] | ||||||
| package = "sanic" | package = "sanic" | ||||||
| package_dir = "." | package_dir = ".." | ||||||
| filename = "../CHANGELOG.rst" | filename = "../CHANGELOG.rst" | ||||||
| directory = "./changelogs" | directory = "./changelogs" | ||||||
| underlines = ["=", "*", "~"] | underlines = ["=", "*", "~"] | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ multi_line_output = 3 | |||||||
| not_skip = __init__.py | not_skip = __init__.py | ||||||
|  |  | ||||||
| [version] | [version] | ||||||
| current_version = 19.9.0 | current_version = 19.12.0 | ||||||
| files = sanic/__version__.py | files = sanic/__version__.py | ||||||
| current_version_pattern = __version__ = "{current_version}" | current_version_pattern = __version__ = "{current_version}" | ||||||
| new_version_pattern = __version__ = "{new_version}" | new_version_pattern = __version__ = "{new_version}" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user