<commit_before># CHANGELOG

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).

## [Unreleased]

#### Added

* [#712](https://github.com/shlinkio/shlink/issues/712) Added support to integrate Shlink with a [mercure hub](https://mercure.rocks/) server.

    Thanks to that, Shlink will be able to publish events that can be consumed in real time.

    For now, two topics (events) are published, when new visits occur. Both include a payload with the visit and the shortUrl:

        * A visit occurs on any short URL: `https://shlink.io/new-visit`.
        * A visit occurs on short URLs with a specific short code: `https://shlink.io/new-visit/{shortCode}`.

    The updates are only published when serving Shlink with swoole.

    Also, Shlink exposes a new endpoint `GET /rest/v2/mercure-info`, which returns the public URL of the mercure hub, and a valid JWT that can be used to subsribe to updates.

* [#673](https://github.com/shlinkio/shlink/issues/673) Added new `[GET /visits]` rest endpoint which returns basic visits stats.

#### Changed

* [#692](https://github.com/shlinkio/shlink/issues/692) Drastically improved performance when loading visits. Specially noticeable when loading big result sets.

#### Deprecated

* *Nothing*

#### Removed

* *Nothing*

#### Fixed
<commit_msg>Updated changelog<commit_after># CHANGELOG

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).

## [Unreleased]

#### Added

* [#712](https://github.com/shlinkio/shlink/issues/712) Added support to integrate Shlink with a [mercure hub](https://mercure.rocks/) server.

    Thanks to that, Shlink will be able to publish events that can be consumed in real time.

    For now, two topics (events) are published, when new visits occur. Both include a payload with the visit and the shortUrl:

        * A visit occurs on any short URL: `https://shlink.io/new-visit`.
        * A visit occurs on short URLs with a specific short code: `https://shlink.io/new-visit/{shortCode}`.

    The updates are only published when serving Shlink with swoole.

    Also, Shlink exposes a new endpoint `GET /rest/v2/mercure-info`, which returns the public URL of the mercure hub, and a valid JWT that can be used to subsribe to updates.

* [#673](https://github.com/shlinkio/shlink/issues/673) Added new `[GET /visits]` rest endpoint which returns basic visits stats.

#### Changed

* [#692](https://github.com/shlinkio/shlink/issues/692) Drastically improved performance when loading visits. Specially noticeable when loading big result sets.
* [#657](https://github.com/shlinkio/shlink/issues/657) Updated how DB tests are run in travis by using docker containers which allow all engines to be covered.

#### Deprecated

* *Nothing*

#### Removed

* *Nothing*

#### Fixed

{'fraction_non_alphanumeric': 0.10713122761315533, 'fraction_numerical': 0.014327580592640833, 'mean_word_length': 3.978930307941653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 17, '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': '1815216', 'n_tokens_mistral': 937, 'n_tokens_neox': 872, 'n_words': 363}