Skip to content

Releases: simpleinjector/SimpleInjector

Simple Injector v3.2.3

16 Oct 12:49
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.2.3 is a patch release that contains one bug fix.

Fixes and improvements for the SimpleInjector.dll

  • Resolving generic type with type argument that maps to multiple concrete types of other type argument failed (fixes #316)

You can download Simple Injector from NuGet.

Simple Injector v3.2.2

26 Aug 20:43
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.2.2 is a patch release that contains two bug fixes.

Fixes and improvements for the SimpleInjector.dll

  • Simple Injector core library is now compatible with .NETStandard 1.0 which allows it to run with Xamarin.Android and MonoDroid (fixes #262 and #263).
  • Working with IReadOnlyCollection and IReadOnlyList failed with the .NET Core and .NETStandard compatible version (fixes #289).

Fixes and improvements for the SimpleInjector.Extensions.LifetimeScoping.dll

  • Library is now compatible with .NETStandard 1.0.

Fixes and improvements for the SimpleInjector.Extensions.ExecutionContextScoping.dll

  • Library is now compatible with .NETStandard 1.3.

You can download Simple Injector from NuGet.

Simple Injector v3.2

28 Jun 11:35
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v3.2 contains two main features and several smaller improvements.

  1. The most prominent feature is the compatibility with .NET Core v1 RTM. We are glad that the moving target has stopped moving :)
  2. Besides that, Simple Injector now has a simplified model for developers that work with platforms that lack proper ambient contexts (like Windows RT). Historically, Simple Injector always depended on ambient contexts such as HttpContext, WCF scoping, and things like AsyncLocal and ThreadLocal to do its scoping. Platforms like RT are truly asynchronous, but currently lack a proper async ambient context. Simple Injector v3.2 now allows resolving directly from the Scope object, and allows injecting Scope instances into constructors of components. This prevents going through hoops to get Simple Injector working in those types of applications. We will add a new page to our documentation that explains how to use this. Of course we still support our normal model, and for most application types, our advice is to keep using this model.

New features and improvements for the SimpleInjector.dll

  • Compatibility with .NET Core RTM.
  • Simplified working with Simple Injector on platforms without ambient context. (fixes #226)
  • Added configuration switch that makes Simple Injector output fully qualified type information in exception messages. (fixes #182)
  • Changes Lifestyle.CreateProducer<TService>(Func<TService>, Container) to return InstanceProducer<T> instead of InstanceProducer. (fixes #244)
  • Add Container.GetOrSetItem extension method to make it easier to atomically get and set items from the items dictionary. (fixes #231)
  • Prevented first change exceptions in several occasions. (#230 and #242)

New features and improvements for the SimpleInjector.Integration.Web.Mvc.dll

  • NuGet package noww references Microsoft.Web.Mvc NuGet package instead of GAC version. (fixes #218)

New features and improvements for the SimpleInjector.Integration.Wcf.dll

  • Allowed WCF services to be resolved as interfaces. (fixes #220)

Simple Injector v3.1.4

01 May 14:04
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.1.4 is a patch release that contains one bug fix.

Fixes and improvements for the SimpleInjector.dll

  • Torn lifestyle was invalidly thrown when multiple InstanceProducers for the same service type where wrapped with multiple decorators. (fixes #228)

You can download Simple Injector from NuGet.

Simple Injector v3.1.3

12 Apr 11:53
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.1.3 is a patch release that contains several small improvements and bug fixes to both the core library and some of the integration libraries.

Fixes and improvements for the SimpleInjector.dll

  • Conditional registration for closed-generic types replaced earlier registrations instead of being appended. (fixes #186)
  • Mixing conditional and unconditional registrations for same closed-generic type did not fail at registration time. (fixes #217)
  • Registration of conditional closed-generic types prevented when container allows overriding registrations. (fixes #216)
  • Improved exception message when resolving unregistered collections. (fixes #204)
  • URL to documentation added to "container can't be changed" exception message. (fixes #177)

Fixes and improvements for the SimpleInjector.Integration.Wcf.dll

  • WCF integration failed to create WCF services marked with InstanceContextMode.Single. (fixes #197)

Fixes and improvements for the SimpleInjector.Integration.Web.dll

  • SimpleInjector.Integration.Web NuGet package now references the Microsoft.Web.Infrastructure NuGet package instead of the Microsoft.Web.Infrastructure.dll from the GAC. (fixes #170)

Simple Injector v3.1.2

14 Dec 11:43
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.1.2 is a patch release that fixes two small issues with scoping and adds support for DNXCORE50/CoreCLR.

Fixes and improvements for the SimpleInjector.dll

  • Memory usage of Scope instances reduced after scope is disposed. (fixes #160)
  • DNXCORE50/CoreCLR version available. (fixes #57)

Fixes and improvements for the SimpleInjector.Extensions.ExecutionContextScoping.dll

  • GetCurrentExecutionContextScope() will never return disposed scopes anymore. (fixes #159)
  • DNXCORE50/CoreCLR version available. (fixes #57)

Fixes and improvements for the SimpleInjector.Extensions.LifetimeScoping.dll

  • GetCurrentLifetimeScope() will never return disposed scopes anymore. (fixes #159)
  • DNXCORE50/CoreCLR version available. (fixes #57)

Simple Injector v3.1.1

23 Nov 11:59
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.1.1 is a patch release that fixes two bugs in the core library, one memory leak fix and one related to the diagnostic system.

Bug #135 caused a Container instance to keep rooted, and thus prevented the container and all its dependent object from being collected by the GC, in case decorators where applied. This causes a memory leak in applications that create an undefined number of container instances during the lifetime of the application. Do note that in case you are creating many container instances throughout the lifetime of the application, you should call Container.Dispose to prevent the memory leak.

Bug #140 prevented the container from detecting an Lifestyle Mismatch in an object graph when calling GetInstance. The problem only appeared in case Verify() was not called, or when objects were resolved that were not registered explicitly (or were registered as open-generic type, while not being referenced as closed-generic type by other registered types). Do note that this bug fix might cause an exception to be thrown in applications that seem to run correctly in v3.1.0, because the Lifestyle Mismatch was not detected before.

Simple Injector v3.1

12 Oct 15:15
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v3.1 adds new convenient overloads that give more control when making batch or conditional registrations and improved some exception messages.

New features and improvements for the SimpleInjector.dll

  • Lifestyle.CreateProducer<TService>(Type, Container) overload added. (fixes #100)
  • Container.RegisterConditional overload added that accepts a Registration instance. This adds extra flexibility and allows using conditional registrations using delegates. (fixes #102)
  • Container.GetTypesToRegister overload added that accepts an TypesToRegisterOptions to allow excluding composites and including decorators and generic type definitions. (fixes #122)
  • RegisterCollection overloads that accept a list of assemblies, now suppress composite types. (fixes #119)
  • Improved performance of GetTypesToRegister method and the Register and RegisterCollection overloads that accept a list of collections.
  • Check added to InstanceProducer constructor to prevent incompatible Registration objects from being supplied. (fixes #52)
  • Exception message improved in case batch-registration skipped decorator. (fixes #13)
  • Lifestyle.CreateRegistration and Container.AddRegistration methods now throws a clear exception explaining that open generic types can't be supplied. (fixes #126)
  • Expection message improved for types with multiple constructors. The exception message now references the documentation about this subject.

Simple Injector v3.0.7

10 Oct 18:39
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.0.7 is a patch release that fixes one bug in the core library related to the diagnostic system. The bug (#131) caused a false positive Torn Lifestyle diagnostic errors in case multiple proxy decorators (i.e. a decorator that depends on a Func<{DecorateeType}> were applied to a single registration.

Simple Injector v3.0.6

04 Oct 18:11
Compare
Choose a tag to compare

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.0.6 is a patch release that fixes two bugs in the core library related to the diagnostic system. The bugs caused diagnostic errors to be ignored in case decorators where used.

Bug fixes:

  • Use of proxy decorator (with Func dependency for resolving decoratee) caused any possible diagnostic warnings of the decoratee (and dependencies) to be ignored. (fixes #128)
  • Registrations that where wrapped with three or more decorators didn't get diagnosed. (fixes #129)