Closed alistairjevans closed 1 year ago
I guess I missed it on mobile diff view - should the library rely on Autofac 7.0 by default, or at least a min of like 6.5? I think the tests got updated to depend on 7.0.
I considered it, but I'm not sure there's a big reason to force users of this library to update to 7.0; I'm also not sure picking an arbitrary minimum is ideal either. This library is net472 only, so none of the new features in 7.0 will actually be available to them, and the library was previously only constrained to 6.0 and above; I want to get away from updating these old integration libraries on every release just to encourage people to stay with latest Autofac.
I made the tests target 7 just because I wanted to verify compatibility with the new version.
I suppose there's an argument that we should only anchor against versions we run the tests against...
It may be worth making the minimum (if we're changing, releasing a new version) either:
ILifetimeScope
change and not know what to do with it; ORI mean, I don't think "arbitrary minimum" is really valuable, but there were some memory things in post 6.0 releases of core Autofac (ConcurrentBag stuff, IIRC) that it'd be nice to just skip folks past.
Question then I suppose is "major version, and go to v7" or "minor version, and go to v6.5"? Preference? I'd probably lean to the latter.
I'm fine with minor + 6.5, then if something comes up where someone tried upgrading to 7 and there's some "I can't figure out the right combo to make things work" issue we can go to 7.0 everywhere.
(no breaking change, have just lifted the upper version cap)