Skip to content

Commit ec131bb

Browse files
authored
Add release notes for version 2.1.0 (#205)
1 parent c1893e9 commit ec131bb

File tree

1 file changed

+57
-2
lines changed

1 file changed

+57
-2
lines changed

NEWS

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,63 @@
11
w3lib release notes
22
===================
33

4+
2.1.0 (2022-11-28)
5+
------------------
6+
7+
- Dropped Python 3.6 support, and made Python 3.11 support official. (#195,
8+
#200)
9+
10+
- :func:`~w3lib.url.safe_url_string` now generates safer URLs.
11+
12+
To make URLs safer for the `URL living standard`_:
13+
14+
.. _URL living standard: https://url.spec.whatwg.org/
15+
16+
- ``;=`` are percent-encoded in the URL username.
17+
18+
- ``;:=`` are percent-encoded in the URL password.
19+
20+
- ``'`` is percent-encoded in the URL query if the URL scheme is `special
21+
<https://url.spec.whatwg.org/#special-scheme>`__.
22+
23+
To make URLs safer for `RFC 2396`_ and `RFC 3986`_, ``|[]`` are
24+
percent-encoded in URL paths, queries, and fragments.
25+
26+
.. _RFC 2396: https://www.ietf.org/rfc/rfc2396.txt
27+
.. _RFC 3986: https://www.ietf.org/rfc/rfc3986.txt
28+
29+
(#80, #203)
30+
31+
- :func:`~w3lib.encoding.html_to_unicode` now checks for the `byte order
32+
mark`_ before inspecting the ``Content-Type`` header when determining the
33+
content encoding, in line with the `URL living standard`_. (#189, #191)
34+
35+
.. _byte order mark: https://en.wikipedia.org/wiki/Byte_order_mark
36+
37+
- :func:`~w3lib.url.canonicalize_url` now strips spaces from the input URL,
38+
to be more in line with the `URL living standard`_. (#132, #136)
39+
40+
- :func:`~w3lib.html.get_base_url` now ignores HTML comments. (#70, #77)
41+
42+
- Fixed :func:`~w3lib.url.safe_url_string` re-encoding percent signs on
43+
the URL username and password even when they were being used as part of an
44+
escape sequence. (#187, #196)
45+
46+
- Fixed :func:`~w3lib.http.basic_auth_header` using the wrong flavor of
47+
base64 encoding, which could prevent authentication in rare cases. (#181,
48+
#192)
49+
50+
- Fixed :func:`~w3lib.html.replace_entities` raising :exc:`OverflowError` in
51+
some cases due to `a bug in CPython
52+
<https://github.com/python/cpython/issues/76763>`__. (#199, #202)
53+
54+
- Improved typing and fixed typing issues. (#190, #206)
55+
56+
- Made CI and test improvements. (#197, #198)
57+
58+
- Adopted a Code of Conduct. (#194)
59+
60+
461
2.0.1 (2022-08-11)
562
------------------
663
Minor documentation fix (release date is set in the changelog).
@@ -130,8 +187,6 @@ Other improvements and bug fixes:
130187
- ``url_query_cleaner()``: support new ``keep_fragments`` argument
131188
(defaulting to ``False``)
132189

133-
.. _RFC 3986: https://tools.ietf.org/html/rfc3986#section-3.2
134-
135190
1.15.0 (2016-07-29)
136191
-------------------
137192

0 commit comments

Comments
 (0)