Werkzeug v2.2.0 Release Notes

  • ๐Ÿš€ Released 2022-07-23

    • Deprecated get_script_name, get_query_string, peek_path_info, pop_path_info, and extract_path_info. :pr:2461
    • ๐Ÿšš Remove previously deprecated code. :pr:2461
    • Add MarkupSafe as a dependency and use it to escape values when rendering HTML. :issue:2419
    • Added the werkzeug.debug.preserve_context mechanism for restoring context-local data for a request when running code in the debug console. :pr:2439
    • Fix compatibility with Python 3.11 by ensuring that end_lineno and end_col_offset are present on AST nodes. :issue:2425
    • Add a new faster matching router based on a state machine. :pr:2433
    • Fix branch leaf path masking branch paths when strict-slashes is disabled. :issue:1074
    • Names within options headers are always converted to lowercase. This matches :rfc:6266 that the case is not relevant. :issue:2442
    • ๐Ÿ— AnyConverter validates the value passed for it when building URLs. :issue:2388
    • The debugger shows enhanced error locations in tracebacks in Python 3.11. :issue:2407
    • Added Sans-IO is_resource_modified and parse_cookie functions based on WSGI versions. :issue:2408
    • Added Sans-IO get_content_length function. :pr:2415
    • โœ… Don't assume a mimetype for test responses. :issue:2450
    • Type checking FileStorage accepts os.PathLike. :pr:2418