Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from pallets:main #305

Merged
merged 30 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e3a50c9
more cache-control cleanup
davidism Oct 30, 2024
fa38728
more cache-control cleanup (#2981)
davidism Oct 31, 2024
b0f361c
more cache-control cleanup
davidism Oct 31, 2024
1735b75
more cache-control cleanup (#2983)
davidism Oct 31, 2024
564835a
add docstring changelogs
davidism Oct 31, 2024
df655e6
release version 3.1.0
davidism Oct 31, 2024
0d345ce
release version 3.1.0 (#2984)
davidism Oct 31, 2024
d1f60d6
start version 3.1.1
davidism Oct 31, 2024
1e775e3
start version 3.2.0
davidism Oct 31, 2024
afc4ea7
fix str(request.headers)
davidism Nov 1, 2024
64d27f7
fix `str(request.headers)` (#2986)
davidism Nov 1, 2024
82ad306
release version 3.1.1
davidism Nov 1, 2024
07af92d
release version 3.1.1 (#2987)
davidism Nov 1, 2024
357681f
Merge branch 'stable'
davidism Nov 1, 2024
f27e476
start version 3.1.2
davidism Nov 4, 2024
acdf7fa
TypeConversionDict.get type can be a callable
davidism Nov 4, 2024
1317014
TypeConversionDict.get type can be a callable (#2990)
davidism Nov 4, 2024
ac87bf8
Headers is not MutableMapping
davidism Nov 4, 2024
1803db6
Headers is not MutableMapping (#2991)
davidism Nov 4, 2024
4764684
release version 3.1.2
davidism Nov 4, 2024
4fd7073
release version 3.1.2 (#2992)
davidism Nov 4, 2024
9a69323
Merge branch 'stable'
davidism Nov 4, 2024
1a1728e
start version 3.1.3
davidism Nov 6, 2024
598bb1d
restrict containers accepted by multi
davidism Nov 6, 2024
ea93b54
restrict containers accepted by multi (#2995)
davidism Nov 6, 2024
d99f72d
wrap IPv6 SERVER_NAME in []
davidism Nov 7, 2024
ba15683
wrap IPv6 SERVER_NAME in [] (#2997)
davidism Nov 7, 2024
6389612
release version 3.1.3
davidism Nov 8, 2024
6b56ed5
release version 3.1.3 (#2998)
davidism Nov 8, 2024
7868bef
Merge branch 'stable'
davidism Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 65 additions & 6 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,23 +1,82 @@
.. currentmodule:: werkzeug

Version 3.1.0
Version 3.2.0
-------------

Unreleased


Version 3.1.3
-------------

Released 2024-11-08

- Initial data passed to ``MultiDict`` and similar interfaces only accepts
``list``, ``tuple``, or ``set`` when passing multiple values. It had been
changed to accept any ``Collection``, but this matched types that should be
treated as single values, such as ``bytes``. :issue:`2994`
- When the ``Host`` header is not set and ``Request.host`` falls back to the
WSGI ``SERVER_NAME`` value, if that value is an IPv6 address it is wrapped
in ``[]`` to match the ``Host`` header. :issue:`2993`


Version 3.1.2
-------------

Released 2024-11-04

- Improve type annotation for ``TypeConversionDict.get`` to allow the ``type``
parameter to be a callable. :issue:`2988`
- ``Headers`` does not inherit from ``MutableMapping``, as it is does not
exactly match that interface. :issue:`2989`


Version 3.1.1
-------------

Released 2024-11-01

- Fix an issue that caused ``str(Request.headers)`` to always appear empty.
:issue:`2985`


Version 3.1.0
-------------

Released 2024-10-31

- Drop support for Python 3.8. :pr:`2966`
- Remove previously deprecated code. :pr:`2967`
- ``Request.max_form_memory_size`` defaults to 500kB instead of unlimited.
Non-file form fields over this size will cause a ``RequestEntityTooLarge``
error. :issue:`2964`
- ``OrderedMultiDict`` and ``ImmutableOrderedMultiDict`` are deprecated.
Use ``MultiDict`` and ``ImmutableMultiDict`` instead. :issue:`2968`
- Behavior of properties on ``request.cache_control`` and
``response.cache_control`` has been significantly adjusted.

- Dict values are always ``str | None``. Setting properties will convert
the value to a string. Setting a property to ``False`` is equivalent to
setting it to ``None``. Getting typed properties will return ``None`` if
conversion raises ``ValueError``, rather than the string. :issue:`2980`
- ``max_age`` is ``None`` if present without a value, rather than ``-1``.
:issue:`2980`
- ``no_cache`` is a boolean for requests, it is ``True`` instead of
``"*"`` when present. It remains a string for responses. :issue:`2980`
- ``max_stale`` is ``True`` if present without a value, rather
than ``"*"``. :issue:`2980`
- ``no_transform`` is a boolean. Previously it was mistakenly always
``None``. :issue:`2881`
- ``min_fresh`` is ``None`` if present without a value, rather than
``"*"``. :issue:`2881`
- ``private`` is ``True`` if present without a value, rather than ``"*"``.
:issue:`2980`
- Added the ``must_understand`` property. :issue:`2881`
- Added the ``stale_while_revalidate``, and ``stale_if_error``
properties. :issue:`2948`
- Type annotations more accurately reflect the values. :issue:`2881`

- Support Cookie CHIPS (Partitioned Cookies). :issue:`2797`
- ``CacheControl.no_transform`` is a boolean when present. ``min_fresh`` is
``None`` when not present. Added the ``must_understand`` attribute. Fixed
some typing issues on cache control. :issue:`2881`
- Add ``stale_while_revalidate`` and ``stale_if_error`` properties to
``ResponseCacheControl``. :issue:`2948`
- Add 421 ``MisdirectedRequest`` HTTP exception. :issue:`2850`
- Increase default work factor for PBKDF2 to 1,000,000 iterations.
:issue:`2969`
Expand Down
6 changes: 4 additions & 2 deletions docs/datastructures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ HTTP Related

.. autoclass:: RequestCacheControl
:members:
:inherited-members:
:inherited-members: ImmutableDictMixin, CallbackDict
:member-order: groupwise

.. autoclass:: ResponseCacheControl
:members:
:inherited-members:
:inherited-members: CallbackDict
:member-order: groupwise

.. autoclass:: ETags
:members:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "Werkzeug"
version = "3.1.0.dev"
version = "3.2.0.dev"
description = "The comprehensive WSGI web application library."
readme = "README.md"
license = {file = "LICENSE.txt"}
Expand Down
Loading
Loading