Zope.component

Latest version: v6.0

Safety actively analyzes 621374 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 7

6.1

================

- Nothing changed yet.

6.0

================



- Drop support for Python 2.7, 3.5, 3.6.

5.1.0

==================

- Fix crash when the environment variable `PYTHONOPTIMIZED` is set to `2`
and docstrings are set to `None` by the interpreter.
(`67 <https://github.com/zopefoundation/zope.component/issues/67>`_)

- Add support for Python 3.10 and 3.11.

5.0.1

==================

- Fix unregistering utilities on old persistent adapter registries.
Previously this could raise ``TypeError``. See `issue 62
<https://github.com/zopefoundation/zope.component/issues/62>`_.

5.0.0

==================

- Remove backwards compatibility imports that were emitting
deprecation warnings. This affects certain imports from
``zope.component.interfaces`` (which should be imported from
``zope.interface.interfaces``) as well as certain imports from
``zope.component.registery`` (import from
``zope.interface.registry``), and the entire
``zope.component.hookable`` module. See `issue 59
<https://github.com/zopefoundation/zope.component/issues/59>`_.

- Respect permission value for utility factory registrations
(`54 <https://github.com/zopefoundation/zope.component/issues/54>`_)

- Add support for Python 3.9

- Fix the ``<subscriber>`` ZCML directive to allow a missing
``provides=`` attribute when a ``factory=`` is given and the Python
object has been decorated with ``implementer`` and implements a
single interface. This has been documented, but hasn't worked
before. See `issue 9
<https://github.com/zopefoundation/zope.component/issues/9>`_.

- Make ``PersistentAdapterRegistry`` use persistent objects
(``PersistentMapping`` and ``PersistentList``) for its internal data
structures instead of plain dicts and lists. This helps make it
scalable to larger registry sizes.

This requires zope.interface 5.3.0a1 or later.

New registries (and their primary users, ``PersistentComponents`` and
zope.site's ``LocalSiteManager``) take full advantage of this
automatically. For existing persistent registries to take advantage
of this, you must call their ``rebuild()`` method and commit the
transaction.

See `issue 51 <https://github.com/zopefoundation/zope.component/issues/51>`_.

- Fix ``zope.interface.interface.provideInterface`` and the various
search and query methods to use the current site manager instead of
always using the global site manager. (``provideInterface`` is
called implicitly when registering components from ZCML.) The search
and query methods continue to return interfaces registered in base
site managers.

See `issue 10 <https://github.com/zopefoundation/zope.component/issues/51>`_.

4.6.2

==================

- Improve the documentation, both published and in docstrings. See `PR
49 <https://github.com/zopefoundation/zope.component/pull/49>`_.

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.