From fe16978829c77f3a972ba7c700bcae7097720e69 Mon Sep 17 00:00:00 2001 From: Artur Barseghyan Date: Thu, 26 Nov 2020 22:23:56 +0100 Subject: [PATCH] Prepare 0.12.3 --- CHANGELOG.rst | 44 +++++++++++++++++++++++++++++++++++++++++++- setup.py | 2 +- src/tld/__init__.py | 2 +- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 12e4b6e..e04127c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,7 +4,7 @@ Release history and notes `_ are used for versioning (schema follows below): -.. code-block:: none +.. code-block:: text major.minor[.revision] @@ -15,6 +15,48 @@ are used for versioning (schema follows below): 0.3.4 to 0.4). - All backwards incompatible changes are mentioned in this document. +0.12.3 +------ +2020-11-26 + +- Separate parsers for (a) public and private and (b) public only domains. This + fixes a bug. If you want an old behaviour: + + The following code would raise exception in past. + + .. code-block:: python + + from tld import get_tld + + get_tld( + 'http://silly.cc.ua', + search_private=False + ) + + Now it would return `ua`. + + .. code-block:: python + + get_tld( + 'http://silly.cc.ua', + search_private=False + ) + + If you want old behavior, do as follows: + + .. code-block:: python + + from tld.utils import MozillaTLDSourceParser + + get_tld( + 'http://silly.cc.ua', + search_private=False, + parser_class=MozillaTLDSourceParser + ) + + Same goes for ``get_fld``, ``process_url``, ``parse_tld`` and ``is_tld`` + functions. + 0.12.2 ------ 2020-05-20 diff --git a/setup.py b/setup.py index f8ad780..a7aabd0 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ except: readme = '' -version = '0.12.2' +version = '0.12.3' py_where = './src' py_package_dir = 'src' diff --git a/src/tld/__init__.py b/src/tld/__init__.py index 93647fa..689b7f3 100644 --- a/src/tld/__init__.py +++ b/src/tld/__init__.py @@ -9,7 +9,7 @@ ) __title__ = 'tld' -__version__ = '0.12.2' +__version__ = '0.12.3' __author__ = 'Artur Barseghyan' __copyright__ = '2013-2020 Artur Barseghyan' __license__ = 'MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later'