python-dependency-injector/docs/main/changelog.rst

466 lines
12 KiB
ReStructuredText
Raw Normal View History

2015-07-28 06:46:35 +00:00
Changelog
=========
2015-08-31 13:31:38 +00:00
This document describes all the changes in *Dependency Injector* framework
that were made in every particular version.
2015-08-31 13:31:38 +00:00
From version 0.7.6 *Dependency Injector* framework strictly
follows `Semantic versioning`_
Development version
-------------------
2016-12-02 18:47:57 +00:00
- No features.
2017-01-29 21:39:15 +00:00
3.2.5
-----
- Add description of structure into README.
- Fix documentation errors.
2017-01-10 22:14:32 +00:00
3.2.4
-----
- Switch to single version of documentation for getting shorter urls (without
``/en/stable/``). Add appropriate redirects for compatibility with previous
links.
- Update copyright date.
2016-12-27 21:10:52 +00:00
3.2.3
-----
- Add examples into README.
- Make minor documentation updates.
3.2.2
-----
- Change name of version variable to follow PEP8: ``VERSION`` -> ``__version__``.
2016-12-02 19:04:17 +00:00
3.2.1
-----
- Update ``services`` miniapp example.
2016-12-02 18:47:57 +00:00
3.2.0
-----
2016-12-02 13:01:52 +00:00
- Add ``Configuration`` provider for late static binding of configuration
options.
2016-11-11 16:36:35 +00:00
2016-11-23 20:26:14 +00:00
3.1.5
-----
- Refactor provider internals: C functions naming scheme and code layout.
- Add Terrence Brannon (metaperl) to the list of contributors.
2016-11-17 21:35:27 +00:00
3.1.4
-----
- Move ``inline`` functions from class level to module level for removing them
from virtual table and enable inlining.
2016-11-15 12:32:23 +00:00
3.1.3
-----
- Fix flake8 ``E305`` error in examples.
2016-11-15 12:28:12 +00:00
3.1.2
-----
- Remove ``public`` (``extern``) modifier utils constants.
- Fix flake8 ``E305`` error in examples.
2016-11-13 09:52:09 +00:00
3.1.1
-----
- Fix minor typo in README.
2016-11-11 21:08:47 +00:00
3.1.0
-----
- Add "Services mini application" example.
- Fix minor error in ``Factory`` provider API doc.
2016-11-11 16:36:35 +00:00
3.0.1
-----
- Add ``*.c`` source files under version control.
- Change keywords.
2016-11-11 15:30:13 +00:00
3.0.0
-----
2016-11-11 15:05:25 +00:00
- **Providers**
1. All providers from ``dependency_injector.providers`` package are
implemented as C extension types using Cython.
2. Add ``BaseSingleton`` super class for all singleton providers.
3. Make ``Singleton`` provider not thread-safe. It makes performance of
``Singleton`` provider 10x times faster.
4. Add ``ThreadSafeSingleton`` provider - thread-safe version of
``Singleton`` provider.
5. Add ``ThreadLocalSingleton`` provider - ``Singleton`` provider that uses
thread-local storage.
6. Remove ``provides`` attribute from ``Factory`` and ``Singleton``
providers.
7. Add ``set_args()`` and ``clear_args()`` methods for ``Callable``,
``Factory`` and ``Singleton`` providers.
- **Containers**
1. Module ``dependency_injector.containers`` was splitted into submodules
without any functional changes.
- **Utils**
1. Module ``dependency_injector.utils`` is splitted into
``dependency_injector.containers`` and ``dependency_injector.providers``.
- **Miscellaneous**
1. Remove ``@inject`` decorator.
2. Add makefile (``clean``, ``test``, ``build``, ``install``, ``uninstall``
& ``publish`` commands).
3. Update repository structure:
1. Sources are moved under ``src/`` folder.
2. Tests are moved under ``tests/unit/`` folder.
2016-10-30 11:19:39 +00:00
2016-10-19 17:25:16 +00:00
2016-10-20 14:17:52 +00:00
2.2.10
------
- Fix typo in README.
2016-10-19 17:25:16 +00:00
2.2.9
-----
- Add github badges to readme and docs index pages.
- Update service names in services example miniapp.
2016-10-19 17:20:36 +00:00
- Create engines & cars example miniapp.
2016-09-22 21:35:51 +00:00
2016-10-13 07:42:52 +00:00
2.2.8
-----
- Move fixtures to separate module in movie lister example.
2016-10-12 07:45:26 +00:00
2.2.7
-----
- Fix typo in README.
2016-10-12 07:42:02 +00:00
2.2.6
-----
- Update README.
- Update docs index page.
2016-10-11 20:52:57 +00:00
2.2.5
-----
- Fix typo in README.
2016-10-11 14:46:56 +00:00
2.2.4
-----
- Update README.
2016-10-07 15:04:18 +00:00
2.2.3
-----
- Update README.
2016-10-07 13:59:22 +00:00
2.2.2
-----
- Update README.
2.2.1
-----
- Update examples.
2016-09-22 21:35:51 +00:00
2.2.0
-----
2016-09-22 21:24:45 +00:00
- Deprecate ``inject`` decorator.
2016-08-18 22:16:43 +00:00
2016-09-07 08:00:24 +00:00
2.1.1
-----
- Normalize package names by PEP-503.
2016-08-18 22:16:43 +00:00
2.1.0
-----
- Add ``ThreadLocalSingleton`` and ``DelegatedThreadLocalSingleton`` providers.
- Add documentation section about singleton providers and multi-threading.
- Update API docs of creational providers.
2016-04-20 14:38:19 +00:00
2016-05-17 18:01:08 +00:00
2.0.0
------
2016-05-22 13:25:17 +00:00
- Introduce new injections style for ``Callable``, ``Factory`` &
``Singleton`` providers.
2016-06-09 16:44:05 +00:00
- Drop providers: ``Static``, ``Value``, ``Function``, ``Class``, ``Config``.
- Increase performance of making injections in 2 times (+100%).
- Drop method injections.
2016-06-09 16:44:05 +00:00
- Simplify providers overriding system.
- Replace ``catalogs`` package with ``containers`` module.
- Drop all backward compatibilities for 1.x.
- Refactor most of the components.
- Update documentation.
2016-05-17 18:01:08 +00:00
1.17.0
------
- Add ``add_injections()`` method to ``Callable``, ``DelegatedCallable``,
``Factory``, ``DelegatedFactory``, ``Singleton`` and ``DelegatedSingleton``
providers.
- Fix bug with accessing to declarative catalog attributes from instance level.
2016-04-26 23:04:18 +00:00
1.16.8
------
- Fix some typos in introduction section of documentation.
2016-04-26 10:14:39 +00:00
1.16.7
------
- Add some changes into introduction section of documentation.
1.16.5
------
- Move project to ``https://github.com/ets-labs/python-dependency-injector``.
- Move project docs to ``http://python-dependency-injector.ets-labs.org/``.
2016-04-23 12:24:38 +00:00
1.16.4
2016-04-23 12:00:06 +00:00
------
- Add some documentation improvements.
2016-04-20 15:15:23 +00:00
1.16.1
2016-04-20 14:38:19 +00:00
------
2016-04-10 14:26:30 +00:00
- Add ``@copy`` decorator for copying declarative catalog providers.
- Add line numbers for all code samples in documentation.
2016-04-20 14:38:19 +00:00
- Add "Examples" section into documentation.
- Add "Movie Lister" example.
- Add "Services" example.
2016-04-20 11:19:54 +00:00
- Move project documentation into organisation's domain
(dependency-injector.ets-labs.org).
1.15.2
------
- [Refactoring] split ``catalogs`` module into smaller modules,
``catalogs`` module become a package.
- [Refactoring] split ``providers`` module into smaller modules,
``providers`` module become a package.
- Update introduction documentation.
2015-12-28 15:40:26 +00:00
2016-03-17 00:05:54 +00:00
1.15.1
------
- Update package information and documentation.
2016-03-13 22:08:12 +00:00
1.15.0
------
- Add ``Provider.provide()`` method. ``Provider.__call__()`` become a
reference to ``Provider.provide()``.
- Add provider overriding context.
- Update main examples and README.
2016-03-11 11:01:26 +00:00
1.14.11
-------
- Update README.
2016-03-09 09:39:05 +00:00
1.14.10
-------
- Add "catalog-providing-callbacks" example and several tests for it.
2016-03-01 15:04:01 +00:00
1.14.9
------
- Add ``override`` decorator in providers module.
- Add storing of originally decorated instance in ``inject`` decorator.
- Add several refactorings.
- Switch to ``pydocstyle`` tool from ``pep257``.
2016-02-26 22:19:09 +00:00
1.14.8
------
- Update README.
2016-02-26 22:13:42 +00:00
1.14.7
------
- Add one more example in README (inline providers and injections).
2016-02-26 22:07:32 +00:00
1.14.6
------
- Add ``cls`` alias for ``provides`` attributes of ``Factory``,
``DelegatedFactory``, ``Singleton`` and ``DelegatedSingleton`` providers.
2016-02-26 17:34:30 +00:00
1.14.5
------
- Fix typo in provider's error message.
2016-02-07 23:42:21 +00:00
1.14.4
------
- Update documentation.
2016-02-07 22:37:39 +00:00
1.14.3
------
- Optimize internals of providers.
- Optimize ``Callable`` provider.
- Optimize ``Factory`` provider.
- Optimize ``Singleton`` provider.
2016-02-04 20:55:41 +00:00
1.14.2
------
- Update documentation and description.
2016-02-01 21:18:07 +00:00
1.14.1
------
- Add meta description & keywords on docs index page.
2016-01-25 13:05:25 +00:00
1.14.0
------
- Drop support of Python 3.2.
2016-01-11 09:30:50 +00:00
1.13.2
------
- Update PyPi info.
2016-01-11 09:20:29 +00:00
1.13.1
------
- Transfer ownership to `ETS Labs <https://github.com/ets-labs>`_.
2015-12-28 15:40:26 +00:00
1.13.0
------
- Add ``DelegatedCallable`` provider.
- Add ``DelegatedFactory`` provider.
- Add ``DelegatedSingleton`` provider.
2015-12-28 15:40:26 +00:00
- Add some documentation improvements.
2015-12-15 15:02:21 +00:00
1.12.0
------
- Add possibility to specialize ``Factory`` provided type.
- Add possibility to specialize ``Singleton`` provided type.
2015-12-15 14:49:07 +00:00
- Add possibility to specialize ``DeclarativeCatalog`` provider type.
- Add possibility to specialize ``DynamicCatalog`` provider type.
2015-12-11 20:46:49 +00:00
- Make some refactorings for providers.
2015-12-11 09:40:00 +00:00
1.11.2
------
- Improve representation of providers and injections.
2015-11-26 13:34:14 +00:00
2015-11-30 10:09:56 +00:00
1.11.1
2015-11-26 13:50:12 +00:00
------
Previous state of *Dependency Injector* framework (0.11.0 version) is
considered to be production ready / stable, so current release is considered
to be the first major release.
- Increase major version.
- Backward compatibility with all previous versions above 0.7.6 has been saved.
2015-11-26 13:34:14 +00:00
0.11.0
------
- Rename ``AbstractCatalog`` to ``DeclarativeCatalog``
(with backward compatibility).
2015-11-26 13:34:14 +00:00
- Rename ``catalog`` module to ``catalogs`` with backward compatibility.
- Implement dynamic binding of providers for ``DeclarativeCatalog``.
- Add ``DynamicCatalog``.
- Change restrictions for providers-to-catalogs bindings - provider could be
bound to several catalogs with different names.
- Restrict overriding of providers by themselves.
- Restrict overriding of catalogs by themselves.
- Make ``DeclarativeCatalog.last_overriding`` attribute to be ``None`` by
default.
- Make ``Provider.last_overriding`` attribute to be ``None`` by
default.
- Refactor catalogs and providers modules.
- Add API documentation
- Improve user's guides and examples.
2015-11-04 14:32:04 +00:00
0.10.5
------
2015-11-26 13:34:14 +00:00
- Add more representable implementation for ``AbstractCatalog`` and
``AbstractCatalog.Bundle``.
2015-11-04 14:32:04 +00:00
2015-11-02 08:58:09 +00:00
0.10.4
------
- Remove VERSION file from MANIFEST.in.
2015-10-26 10:52:52 +00:00
0.10.3
------
- Update example docblocks.
0.10.2
------
- Fix bug with injecting entities that implement ``__getattr__``.
2015-10-23 14:04:39 +00:00
0.10.1
------
- Update some examples.
2015-10-23 13:49:07 +00:00
0.10.0
------
2015-11-26 13:34:14 +00:00
- Add functionality for creating ``AbstractCatalog`` provider bundles.
- Improve ``AbstractCatalog`` inheritance.
- Improve ``AbstractCatalog`` overriding.
2015-10-11 12:34:21 +00:00
- Add images for catalog "Writing catalogs" and "Operating with catalogs"
examples.
- Add functionality for using positional argument injections with
2015-11-26 13:34:14 +00:00
``Factory``, ``Singleton``, ``Callable`` providers and
``inject`` decorator.
- Add functionality for decorating classes with ``@inject``.
- Add ``Singleton.injections`` attribute that represents a tuple of all
``Singleton`` injections (including args, kwargs, attributes and methods).
- Add ``Callable.injections`` attribute that represents a tuple of all
``Callable`` injections (including args and kwargs).
- Add optimization for ``Injection.value`` property that will compute
type of injection once, instead of doing this on every call.
2015-11-26 13:34:14 +00:00
- Add ``VERSION`` constant for verification of currently installed version.
- Add support of Python 3.5.
- Add support of six 1.10.0.
- Add minor refactorings and code style fixes.
2015-09-02 21:27:56 +00:00
2015-09-14 07:53:24 +00:00
0.9.5
-----
- Change provider attributes scope to public.
2015-11-26 13:34:14 +00:00
- Add ``Factory.injections`` attribute that represents a tuple of all
``Factory`` injections (including kwargs, attributes and methods).
2015-09-14 07:53:24 +00:00
0.9.4
-----
- Add minor documentation fixes.
2015-09-03 23:33:15 +00:00
0.9.3
-----
- Implement thread safety.
2015-09-03 23:33:15 +00:00
2015-09-03 13:00:23 +00:00
0.9.2
-----
- Add minor refactorings.
2015-09-02 21:27:56 +00:00
0.9.1
-----
- Add simplified syntax of kwarg injections for ``di.Factory`` and
``di.Singleton`` providers:
``di.Factory(SomeClass, dependency1=injectable_provider_or_value)``.
- Add simplified syntax of kwarg injections for ``di.Callable`` provider:
``di.Callable(some_callable, dependency1=injectable_provider_or_value)``
- Add simplified syntax of kwarg injections for ``@di.inject`` decorator:
``@di.inject(dependency1=injectable_provider_or_value)``.
- Optimize ``@di.inject()`` decorations when they were made several times for
the same callback.
2015-08-31 21:37:21 +00:00
- Add minor refactorings.
- Fix of minor documentation issues.
2015-08-31 13:36:31 +00:00
0.8.1
2015-08-31 13:31:38 +00:00
-----
- ``Objects`` is renamed to ``Dependency Injector``.
2015-08-17 19:44:28 +00:00
0.7.8
-----
- Fixing @inject import bug in examples.
2015-08-05 14:44:22 +00:00
0.7.7
-----
- Fixing minor bug in concept example.
0.7.6
-----
- Adding support of six from 1.7.0 to 1.9.0.
- Factory / Singleton providers are free from restriction to operate with
classes only. This feature gives a change to use factory method and
functions with Factory / Singleton providers.
- All attributes of all entities that have to be protected was renamed using
``_protected`` manner.
- Providers extending was improved by implementing overriding logic in
``Provider.__call__()`` and moving providing logic into
``Provider._provide()``.
- ``NewInstance`` provider was renamed to ``Factory`` provider.
``NewInstance`` still can be used, but it considered to be deprecated and
will be removed in futher releases.
- ``@inject`` decorator was refactored to keep all injections in
``_injections`` attribute of decorated callback. It will give a possibilty to
track all the injections of particular callbacks and gives some performance
boost due minimizing number of calls for doing injections.
- A lot of documentation updates were made.
- A lot of examples were added.
- Some minor refactorings were done.
Previous versions
-----------------
- While *Objects* was in alpha state, changes were not tracked.
.. _Semantic versioning: http://semver.org/