Version 9.0.1 (17-06-2024)
- FIX compilation issue with Vibe.d RestInterface (#46) (Thanks to @vnayar for the fix)
Version 9.0.0 (13-03-2023) This version is only compatible with DMD 2.086.1 or higher (compatible) compilers.
- FIX compilation issue for older DMD compilers.
- CHANGE baseline DMD version to 2.086.1. Older ones simply didn't compile proper anymore.
Version 8.2.0 (13-03-2023)
- FIX some dlang deprecation warnings (#43). Some remain due to further issues in dlang/phobos.
- ADD support for JSR330 @Inject attribute. It will be the preferred attribute from now on. However, @Autowire is not deprecated and will still work.
Version 8.1.3 (27-10-2022)
- FIX unnecessary re-registration of types when registerBeforeResolving is specified.
- FIX registerBeforeResolving not working for classes that have no default constructor
Version 8.1.2 (18-02-2022)
- FIX compilation error on importing template types that are not actually types.
Version 8.1.1 (24-08-2021)
- FIX issues where chained registration scopes get rid of initializedBy's and initializedOnceBy's factory method, reverting it to a default instance factory.
Version 8.1.0 (06-06-2021)
- ADD ability to provide custom instance creator when registering a dependency (PR #28)
- ADD post-instance-construction callback (PR #28)
- FIX inheritance type template in custom instance creator (PR #29)
- CHANGE injection initializers to be defined as a registration scope instead of via Container.register(). See initializedBy().
- ADD initializedOnceBy() to create singleton instances via injection initializer.
- FIX multiple template arguments not allowed on constructor argument injection (PR #37)
Version 8.0.3 (11-06-2018)
- FIX struct types being injected into constructors (Fixes issue #25)
Version 8.0.2 (15-04-2018)
- FIX resolving types which use template types with circular type arguments (Thanks to @aruthane for fixing this.)
Version 8.0.1 (13-08-2017)
- FIX value injectors failing to resolve in certain situations when they inject structs (Fixes issue #20)
Version 8.0.0 (26-12-2016)
- ADD value injection. Members with UDA @Value will be attempted to be injected with a value-type. See tutorial and examples for more info.
- ADD @PostConstruct UDA for marking methods which should be called after a dependency is resolved and autowired.
- ADD @PreDestroy UDA for marking methods which should be called when the container loses a dependency's registration. It is called when removeRegistration or clearAllRegistrations is called. It is also called when the container is destroyed.
- FIX nullpointer exception in instance factory when debugging with poodinisVerbose.
- REMOVE previously deprecated getInstance().
Version 7.0.1 (05-09-2016)
- FIX codegeneration of constructor injection factories for constructors with dependencies from foreign modules, such as modules from other libraries (Issue #12).
Version 7.0.0 (03-09-2016)
This version introduces changes which might be incompatible with your current codebase
- ADD constructor injection. Injection is done automatically on resolve. See tutorial and examples for more details.
- REMOVE deprecated registration options. They are still available in properly cased forms.
- REMOVE deprecated register() and resolve() methods which accept variadics and arrays for options. Since registration and resolve options have become bitfields, you should specify them with logical ANDs.
- DEPRECATE DependencyContainer.getInstance(). To properly make use of inversion of control, one should only create the dependency container once during set-up and then completly rely on injection. See examples for proper usage. You can still create your own singleton factory (method) if this is crucial to your design.
Version 6.3.0 (27-06-2016)
- CHANGE registration and resolve options to be supplied using bit flags instead. (Thanks to @tmccombs)
- DEPRECATE all other forms of supplying registration and resolve options (by array or variadics)
Version 6.2.0 (10-04-2016)
- ADD ability to mark autowire dependencies as optional. When you use UDA @OptionalDependency, a type which fails to autowire will remain null (or an empty array). No ResolveException is thrown.
Version 6.1.0 (10-02-2016)
- ADD setting persistent registration and resolve options
- DEPRECATE DO_NOT_ADD_CONCRETE_TYPE_REGISTRATION, use doNotAddConcreteTypeRegistration instead
- DEPRECATE supplying register()'s registration options as variadic arguments. Use register(SuperType, ConcreteType)(RegistrationOption[]) instead.
- ADD resolve options to container resolve()
- ADD ability to register a type while resolving it. Use resolve option registerBeforeResolving
- ADD ability to autowire private fields (Thanks to @Extrawurst)
- FIX registration of application contexts with non-public members
Version 6.0.0 (29-12-2015)
- CHANGE registration scopes are replaced by a single factory implementation. If you were not doing anything with the internal scope mechanism, you should not be affected by this change.
- ADD application contexts. You can register dependencies within an application context which allow you to fine-tune the creation of dependency instances.
- CHANGE all public poodinis imports to private. This should not affect you if you use the package import "poodinis" instead of individual modules.
- REMOVE deprecated ADD_CONCRETE_TYPE_REGISTRATION registration option.
- REMOVE deprecated RegistrationOptions alias.
Version 5.0.0 (26-09-2015)
- DEPRECATE ADD_CONCRETE_TYPE_REGISTRATION registration option. It basically does nothing anymore. See next point.
- CHANGE adding registrations by super type always registers them by concrete type as well now. (Previously done with ADD_CONCRETE_TYPE_REGISTRATION). See DO_NOT_ADD_CONCRETE_TYPE_REGISTRATION for the reverse behaviour.
- CHANGE RegistrationOptions enum name to RegistrationOption
- DEPRECATE Usage of RegistrationOptions, please use RegistrationOption instead.
Version 4.0.0 (16-08-2015)
- REMOVE deprecated module "dependency.d"
Version 3.0.0 (16-08-2015)
This version is only compatible with DMD 2.068.0 or higher!
- ADD UDA which always resolved a new instance to an autowired member, regardless of registration scope.
Version 2.2.0 (07-06-2015)
- ADD canonical package module "package.d". Use "import poodinis;" to import the project.
- DEPRECATE module "dependency.d". Please use the canonical package module. See previous point.
- ADD autowiring of dynamic arrays. All registered instances of the element type of the array will be assigned to it.
Version 2.1.0 (14-05-2015)
- ADD option for registering a class by concrete type when registering that class by supertype.
Version 2.0.0 (04-04-2015)
This version introduces changes which might be incompatible with your current codebase
- CHANGE dependency container to be synchronized. Sharing a dependency container between threads is now possible. The implication is that all dependency container instances must be shared now. You don't have to change anything if you were only using the singleton dependency container.
Version 1.0.0 (21-05-2015)
This version introduces changes which are incompatible with previous versions
- REMOVE deprecated autowire constructor
- REMOVE deprecated container alias
- ADD documentation for public API
- REMOVE @Autowired UDA. Use @Autowire instead.
- ADD quickstart from readme to compilable example project.
- ADD example project for the use of qualifiers
Version 0.3.1 (25-01-2015)
- FIX issue where autowiring members which are declared by interface or supertype would get autowired incorrectly.
Version 0.3.0 (24-01-2015)
- ADD alternative workaround to readme for autowire limitation
- CHANGE returning of resolved instances by returning them by qualifier type instead
- ADD debug specifier to reduce verbosity of debug output
Version 0.2.0 (14-12-2014)
- ADD ability to register type with multiple concrete types. They can be correctly resolved using qualifiers.
- DEPRECATE template for autowiring in constructor. This workaround is buggy. Use qualifiers instead.
Version 0.1.4 (05-10-2014)
- Make Poodinis compatible with D 2.066.0 and DUB 0.9.22
- FIX incorrect clearing of registrations
This release should be backwards compatible with the previous versions of D and DUB, but please note that there are no more separate configurations for release and debug builds. You have to specify a build type in DUB.
Version 0.1.3 (13-07-2014)
- ADD global autowire function for convenience
- CHANGE workaround to be more simple
- FIX autowiring classes which contain non-symbolic declarations such as aliases. As a result, only variables are attempted to be autowired.
Version 0.1.2 (23-06-2014)
- ADD workaround for failing to autowire types registered by supertype or interface
Version 0.1.1 (14-06-2014)
- FIX: Also auto-wire members from base classes
Version 0.1.0 (04-06-2014)
- Initial open-source release
- ADD support for registering and resolving
- ADD registration scopes
- ADD autowiring