|
1 | 1 | w3lib release notes |
2 | 2 | =================== |
3 | 3 |
|
| 4 | +2.0.0 (to be released) |
| 5 | +---------------------- |
| 6 | + |
| 7 | +Backwards incompatible changes: |
| 8 | + |
| 9 | +- Python 2 is no longer supported; Python 3.6+ is required now (#168, #175). |
| 10 | +- :func:`w3lib.url.safe_url_string` and :func:`w3lib.url.canonicalize_url` |
| 11 | + no longer convert "%23" to "#" when it appears in the URL path. This is a bug |
| 12 | + fix. It's listed as a backward-incomatible change because in some cases the |
| 13 | + output of :func:`w3lib.url.canonicalize_url` is going to change, and so, if |
| 14 | + this output is used to generate URL fingerprints, new fingerprints might be |
| 15 | + incompatible with those created with the previous w3lib versions |
| 16 | + (#141). |
| 17 | + |
| 18 | +Deprecation removals (#169): |
| 19 | + |
| 20 | +- The ``w3lib.form`` module is removed. |
| 21 | +- The ``w3lib.html.remove_entities`` function is removed. |
| 22 | +- The ``w3lib.url.urljoin_rfc`` function is removed. |
| 23 | + |
| 24 | +The following functions are deprecated, and will be removed in future releases |
| 25 | +(#170): |
| 26 | + |
| 27 | +- ``w3lib.util.str_to_unicode`` |
| 28 | +- ``w3lib.util.unicode_to_str`` |
| 29 | +- ``w3lib.util.to_native_str`` |
| 30 | + |
| 31 | +Other improvements and bug fixes: |
| 32 | + |
| 33 | +- Type annotations are added (#172, #184). |
| 34 | +- Added support for Python 3.9 and 3.10 (#168, #176). |
| 35 | +- Fixed :func:`w3lib.html.get_meta_refresh` for ``<meta>`` tags where |
| 36 | + ``http-equiv`` is written after ``content`` (#179). |
| 37 | +- Fixed :func:`w3lib.url.safe_url_string` for IDNA domains with ports (#174). |
| 38 | +- :func:`w3lib.url.url_query_cleaner` no longer adds an unneeded ``#`` when |
| 39 | + ``keep_fragments=True`` is passed, and the URL doesn't have a fragment |
| 40 | + (#159). |
| 41 | +- Removed a workaround for an ancient pathname2url bug (#142) |
| 42 | +- CI is migrated to GitHub Actions (#166, #177); other CI improvements (#160, |
| 43 | + #182). |
| 44 | +- The code is formatted using black (#173). |
| 45 | + |
4 | 46 | 1.22.0 (2020-05-13) |
5 | 47 | ------------------- |
6 | 48 |
|
|
0 commit comments