.. _breaking_changes:

Breaking Changes
================

2026.4
------

- ``HEROS_SEP_MULTICAST`` (see :ref:`heros-conf`) now defaults to ``true``.

  .. warning::

    If you use a non-default ``realm``, you need to upgrade all your running hero processes or manually set ``HEROS_SEP_MULTICAST`` to
    a common value otherwise they will not be able to discover each other.

  If you use the default (``heros``) realm, no changes are required.

- The logging helpers moved from :py:mod:`heros.helper` to the new :py:mod:`heros.logging` module. ``heros.helper.get_logger``,
  ``heros.helper.Logger``, ``heros.helper.ColoredFormatter`` and ``heros.helper.SPAM`` are deprecated and will be removed
  in a future version; import them from :py:mod:`heros.logging` instead. They still work for now and emit a
  ``DeprecationWarning``.

- The :py:mod:`heros.event` module was moved to :py:mod:`heros.events` to avoid collision with the event decorator :py:func:`heros.events.event`.
  The module :py:mod:`heros.event` is now deprecated and will be removed in a future version. Note, that the decorator is still accessible
  via :py:func:`heros.event`.


14.0
----

The tag ``_pkg_versions`` attached to all heros was moved to the new ``extra_metadata`` attribute and can now be accessed as ``self._hero_extra_metadata["pkg_versions"]``.

:ref:`More info ... <sec-metadata>`
