Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 16, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
Castle.Core (source) 4.4.1 -> 5.2.1 age adoption passing confidence

Release Notes

castleproject/Core (Castle.Core)

v5.2.1

(Note: Version 5.2.0 was skipped due to issues with the automated CI release process.)

Enhancements:

  • Two new generic method overloads proxyGenerator.CreateClassProxy<TClass>([options], constructorArguments, interceptors) (@​backstromjoel, #​636)
  • Allow specifying which attributes should always be copied to proxy class by adding attribute type to AttributesToAlwaysReplicate. Previously only non-inherited, with Inherited=false, attributes were copied. (@​shoaibshakeel381, #​633)
  • Support for C# 8+ default interface methods in interface and class proxies without target (@​stakx, #​661)
  • DynamicProxy's public API has been augmented with nullable reference type annotations (@​stakx, #​668)

Bugfixes:

  • ArgumentException: "Could not find method overriding method" with overridden class method having generic by-ref parameter (@​stakx, #​657)
  • ArgumentException: "Cannot create an instance of TEnum because Type.ContainsGenericParameters is true" caused by Enum constraint on method out parameter (@​stakx, #​658)

v5.1.1

Bugfixes:

  • Proxies using records derived from a base generic record broken using .NET 6 compiler (@​CesarD, #​632)
  • Failure proxying type that has a non-inheritable custom attribute type applied where null argument is given for array parameter (@​stakx, #​637)
  • Nested custom attribute types do not get replicated (@​stakx, #​638)

v5.1.0

Enhancements:

  • Support for covariant method returns (@​stakx, #​619)
  • Performance improvement with proxy type generation for class proxies (without target). Abstract class methods now reuse a predefined invocation type (like methods of interface proxies without target; see explanation below at version 5.0.0 enhancements) (@​stakx, #​626)

Bugfixes:

  • DynamicProxy emits invalid metadata for redeclared event (@​stakx, #​590)
  • Proxies using records with a base class broken using .NET 6 compiler (@​ajcvickers, #​601)
  • MissingMethodException when proxying interfaces containing sealed methods (@​stakx, #​621)

v5.0.0

Enhancements:

  • .NET 6.0 support (@​Jevonius, #​616)
  • .NET Standard 2.0 and 2.1 support (@​lg2de, #​485)
  • Non-intercepted methods on a class proxy with target are now forwarded to the target (@​stakx, #​571)
  • Significant performance improvements with proxy type generation for interface proxies without target. Up until now, DynamicProxy generated a separate IInvocation implementation type for every single proxied method – it is now able to reuse a single predefined type in many cases, thereby reducing the total amount of dynamic type generation. (@​stakx, #​573)

Bugfixes:

Deprecations:

  • Removed support for the .NET Framework < 4.6.2 and .NET Standard 1.x. (@​stakx, #​495, #​496; @​Jevonius, #​614)
  • Removed support for Code Access Security (CAS). (@​stakx, #​502)
  • Removed support for Remoting. This library no longer defines any types deriving from MarshalByRefObject, and ProxyUtil.IsProxy (which used to recognize remoting/"transparent" proxies) now tests only for DynamicProxy proxies. (@​stakx, #​507)
  • The following public members have been removed:
    • Castle.Core.Internal.CollectionExtensions (class)
    • Castle.Core.Internal.Lock (class) along with all related types and methods
    • Castle.Core.Internal.PermissionUtil.IsGranted (method)
    • Castle.Core.Pair<,> (type). Use System.ValueTuple<,> or System.Tuple<,> instead.
    • all type members in Castle.DynamicProxy.ModuleScope that gave direct access to DynamicProxy's type cache and ModuleBuilders. Only SaveAssembly, LoadAssemblyIntoCache, and members supporting these two facilities are left public.
    • almost all types and type members in the Castle.DynamicProxy.* sub-namespaces, as most of them are intended for internal use only.
    • DynamicProxy's custom exception types have been replaced by standard BCL exceptions (where appropriate), and by a single DynamicProxyException type for internal DynamicProxy errors.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) May 16, 2025 19:50
@renovate renovate bot merged commit df27052 into master May 16, 2025
1 of 2 checks passed
@renovate renovate bot deleted the renovate/castle.core-5.x branch May 16, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant