- Got rid of a deprecation warning when Injector 0.13.2 is used
- Dropped support for Injector < 0.12 and Flask < 0.12
- Dropped use_annotations constructor parameter (this also fixed compatibility with Injector 0.13)
- At least for the time being class-based views' constructors need to be marked with @inject in order for dependencies to be injected
- Fixed a bug that would cause a crash when an nonintrospectable callable was registered as, for example, before_request hook
- Fixed support for forward references in type hints
- Added type hints to the codebase
Backwards incompatible:
- Dropped support for Injector 0.10
- Dropped support for Flask < 0.11, Injector < 0.10, Python 2, PyPy and PyPy 3 (PyPy 3 will be supported in the future)
- Fixed compatibility with Injector 0.11
- Fixed Flask 0.11 compatibility, thanks to Philip Jones for the initial patch
- Added support for injecting into Flask-RestPlus Resource constructors
- Added support for dependencies declared using Python 3-style annotations
- Fixed a regression introduced in 0.6.1 (requesting an interface bound in RequestScope outside request context got broken and would raise "AttributeError: scope" exception. Even though it's not a documented behaviour it's restored now so that backwards compatibility is preserved.
- Python 2.6 support dropped
- Fixed a memory leak bug (a reference to thread-identity object would be kept forever after a request would be served by particular thread; without greenlet package installed thread ids (numeric values) are used so the internal dictionary of thread local storage grows forever; when greenlet package is installed greenlet objects are used as thread identities by Werkzeug so on top of the internal storage growing infinitely all objects referenced by those greenlet objects are kept alive; keywords: Eventlet, Gevent, GreenThread). See GH issue #9 and pull request #11, thanks to Zi Li for the fix
- Added support for injecting into Flask-RESTFul Resource constructors
- Removed
init_app
andpost_init_app
functions - Fixed a bug with Flask-Injector modifying possibly shared view generated by View.as_view (see GH issue #6, test case provided by Nicholas Hollett)
- Work only with Injector >= 0.9.0 now
- Deprecated
init_app
andpost_init_app
in favour ofFlaskInjector
- Made Flask error handlers support injection
- Made it possible to inject into Jinja template globals
- Accomodated to Injector >= 0.9.0