<commit_before># Change log

# v2.2 dev
Version 2.2 is in development

## Major changes
- Properly close HTTP session on `WebFingerClient` deletion
- Add `close()` method to `WebFingerClient` to close the session
- Throw correct errors when HTTP request fails

## Minor changes
- New `_get()` method in `WebFingerClient` to perform actual HTTP request
- Classes no longer inherit from object, since Python 3 support is required

# v2.1
Version 2.1 is a bugfix and minor feature update.

You should use this instead of v2.0.

## Major changes
- Fix host parsing bug in 2.0
- Create an exception hierarchy; WebFingerException can still be caught
..- New exceptions include `WebFingerContentError`, `WebFingerJRDError`, `WebFingerNetworkError`, and `WebFingerHTTPError`
- Allow custom `requests` sessions to be passed into WebFingerClient
- Allow custom headers for the request to be passed in

# v2.0
Version 2.0 is the first release of webfinger2 (for continuity with the original webfinger package).<commit_msg>Update changelog<commit_after># Change log

# v3.0.0dev0
Version 3.0.0 is in development

## Major changes
- Now follows semantic versioning
- Restructure package from single file, should be mostly backwards-compatible
- `\_parse_headers` and `\_parse_host` methods have leading underscore removed
- Experimental aiohttp-based version; requires aiohttp and Python 3.4 or above
- Properly close HTTP session on `WebFingerClient` deletion
- Add `close()` method to `WebFingerClient` to close the session
- Throw correct errors when HTTP request fails

## Minor changes
- New `get()` method in `WebFingerClient` to perform actual HTTP request
- Classes no longer inherit from object, since Python 3 support is required
- `BaseWebFingerClient` is now the base class for `WebFingerClient` and can be used as an interface for custom implementations

# v2.1
Version 2.1 is a bugfix and minor feature update.

## Major changes
- Fix host parsing bug in 2.0
- Create an exception hierarchy; WebFingerException can still be caught
..- New exceptions include `WebFingerContentError`, `WebFingerJRDError`, `WebFingerNetworkError`, and `WebFingerHTTPError`
- Allow custom `requests` sessions to be passed into WebFingerClient
- Allow custom headers for the request to be passed in

# v2.0
Version 2.0 is the first release of webfinger2 (for continuity with the original webfinger package).
{'fraction_non_alphanumeric': 0.06451612903225806, 'fraction_numerical': 0.016338500209467952, 'mean_word_length': 4.699284009546539, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1588217', 'n_tokens_mistral': 671, 'n_tokens_neox': 643, 'n_words': 313}