Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update Autofac requirement from 5.* to 6.* #594

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

Updates the requirements on Autofac to permit the latest version.

Release notes

Sourced from Autofac's releases.

v6.0.0

Version 6.0.0 represents a major update in the Autofac internals. While every effort has been made to ensure code using version 5.x will continue to work exactly as you expect, you should be aware of the breaking changes and test things out. For the majority case, things should just continue to work; breaking changes are primarily in more rare advanced usage scenarios.

Check out the release blog post! Also, the documentation has been updated and is ready!

⚠️ Starting with Autofac 6.0, we now only target netstandard20 and netstandard21; we have removed the explicit target for net461.

The impact to you is that, while Autofac will still work on .NET Framework 4.6.1 as it did before, we strongly encourage you to upgrade to .NET Framework 4.7.2 or higher, as per the .NET Standard Documentation, to avoid any of the known dependency issues when using .NET Standard packages in .NET Framework 4.6.1.

New Features

There are a lot of new features, but the big ones are here. Other features and fixes will be outlined in the Issues section, below.

Issues and PRs

The following issues have been addressed in v6:

  • #718: Circular dependency support using property injection and relationships like Lazy<T> should now work.
  • #788: DOT graph support has been added via the Autofac.Diagnostics.DotGraph package.
  • #798 / #1148: Circular dependency handling uses the .NET runtime to check stack depth when checking for circular dependencies rather than using a fixed stack depth.
  • #828: The ILifetimeScope.LifetimeScopeEnding event is raised and completes before the scope is disposed.
  • #970: The composite pattern is now supported.
  • #1069 / #1172: Core Autofac events are now async-friendly.
  • #1120 / #1128: ContainerBuilder is now sealed.
  • #1123: Explicitly injected properties can now be declared using an expression.
  • #1126 / #1169: Diagnostics are handled via DiagnosticSource.
  • #1162: A new "pooled" lifetime type has been added via the Autofac.Pooling package.

Breaking Changes

We'll do our best to keep an upgrade guide with breaking changes available and up to date. We're pretty sure we caught them all, but if you find a gotcha, let us know on the Documentation repo.

A summary of the breaking changes is as follows:

  • net461 is no longer targeted; Autofac now targets netstandard2.0 and netstandard2.1.
  • IConstructorSelector implementations need to switch to use BoundConstructor instead of ConstructorParameterBinding.
  • IRegistrationSource implementations need to update the RegistrationsFor method signature.
  • IInstanceActivator implementations no longer have an ActivateInstance method and instead have a ConfigurePipeline method.
  • RegistrationBuilder.RegistrationData no longer exposes activation handlers. The CoreEventMiddleware is the source of events now.
  • IComponentRegistration no longer exposes activation events. The CoreEventMiddleware is the source of events now.
  • IComponentRegistry no longer supplies a DecoratorsFor method to check decorators. Use IComponentRegistry.ServiceMiddlewareFor instead.
  • ContainerBuilder is now sealed.
  • The ResolveRequest constructor now takes a ServiceRegistration instead of an IComponentRegistration.
Commits
  • 39696a9 Merge pull request #1205 from alistairjevans/develop
  • 6cd646c Fix #1204 - Capture instance at the point of injection, rather than using the...
  • 0aa6e7a Merge pull request #1202 from alistairjevans/develop
  • 3821f58 Fixes #1201; add OperationSucceeded flag to OperationTraceCompletedArgs.
  • 4f3be18 Issue #880: Removed skipped test, added test for new decorator syntax.
  • 46e8503 Test for #718 passes under v6.
  • d20dc41 Header fixes.
  • 4ad7121 Header fixes.
  • 38ef391 Enable StyleCop to check for source file headers.
  • db5428b Fixes for 'delegate can be simplified.'
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Updates the requirements on [Autofac](https://github.com/autofac/Autofac) to permit the latest version.
- [Release notes](https://github.com/autofac/Autofac/releases)
- [Commits](autofac/Autofac@v5.0.0...v6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot requested a review from a team September 29, 2020 00:11
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Sep 29, 2020
@codecov
Copy link

codecov bot commented Sep 29, 2020

Codecov Report

Merging #594 into main will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #594   +/-   ##
=======================================
  Coverage   67.12%   67.12%           
=======================================
  Files          85       85           
  Lines        4170     4170           
  Branches      416      416           
=======================================
  Hits         2799     2799           
  Misses       1285     1285           
  Partials       86       86           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82d6883...e53717a. Read the comment docs.

@glennawatson glennawatson merged commit 9e83628 into main Oct 1, 2020
@glennawatson glennawatson deleted the dependabot/nuget/Autofac-6.star branch October 1, 2020 01:13
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant