[PR #8583] chore(deps): update dependency moq to v4.18.2 #11772

Closed
opened 2026-02-07 06:44:19 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/8583

State: closed
Merged: Yes


Mend Renovate

This PR contains the following updates:

Package Type Update Change
Moq nuget minor 4.16.1 -> 4.18.2

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the logs for more information.


Release Notes

moq/moq4

v4.18.2

Changed
  • Update package reference to Castle.Core (DynamicProxy) from version 5.0.0 to 5.1.0 (@​stakx, #​1275)
  • Removed dependency on System.Threading.Tasks.Extensions for netstandard2.1 and net6.0 (@​tibel, #​1274)
Fixed
  • "Expression is not an event add" when using .Raises() with redeclared event (@​howcheng, #​1175)
  • MissingMethodException when mocking interface with sealed default implementation (@​pjquirk, #​1209)
  • Throws TypeLoadException on mock when a record has a base record on .NET 6 (@​tgrieger-sf, #​1273)

v4.18.1

Fixed
  • Regression with lazy evaluation of It.Is predicates in setup expressions after updating from 4.13.1 to 4.16.1 (@​b3go, #​1217)
  • Regression with SetupProperty where Moq fails to match a property accessor implementation against its definition in an interface (@​Naxemar, #​1248)
  • Difference in behavior when mocking async method using .Result vs without (@​cyungmann, #​1253)

v4.18.0

New major version of DynamicProxy (you may get better performance!), so please update with care.

Changed
Fixed
  • Can't set up "private protected" properties (@​RobSiklos, #​1170)
  • Using [...] an old version of System.Net.Http which is vulnerable to "DoS", "Spoofing", "Privilege Escalation", "Authentication Bypass" and "Information Exposure" (@​sidseter, #​1219)
  • Failure when invoking a method with by-ref parameter & mockable return type on a mock with CallBase and DefaultValue.Mock configured (@​IanKemp, #​1249)

v4.17.2

Fixed

v4.17.1

Added
  • SetupSet, VerifySet methods for mock.Protected().As<>() (@​tonyhallett, #​1165)
  • New Throws method overloads that allow specifying a function with or without parameters, to provide an exception, for example .Throws(() => new InvalidOperationException())
    and Setup(x => x.GetFooAsync(It.IsAny<string>()).Result).Throws((string s) => new InvalidOperationException(s)). (@​adam-knights, #​1191)
Changed
  • Update package reference to Castle.Core (DynamicProxy) from version 4.4.0 to 4.4.1 (@​stakx, #​1233)
Fixed

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/8583 **State:** closed **Merged:** Yes --- [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [Moq](https://togithub.com/moq/moq4) | nuget | minor | `4.16.1` -> `4.18.2` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the logs for more information. --- ### Release Notes <details> <summary>moq/moq4</summary> ### [`v4.18.2`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#&#8203;4182-2022-08-02) ##### Changed - Update package reference to `Castle.Core` (DynamicProxy) from version 5.0.0 to 5.1.0 ([@&#8203;stakx](https://togithub.com/stakx), [#&#8203;1275](https://togithub.com/moq/moq4/issues/1275)) - Removed dependency on `System.Threading.Tasks.Extensions` for `netstandard2.1` and `net6.0` ([@&#8203;tibel](https://togithub.com/tibel), [#&#8203;1274](https://togithub.com/moq/moq4/issues/1274)) ##### Fixed - "Expression is not an event add" when using `.Raises()` with redeclared event ([@&#8203;howcheng](https://togithub.com/howcheng), [#&#8203;1175](https://togithub.com/moq/moq4/issues/1175)) - `MissingMethodException` when mocking interface with sealed default implementation ([@&#8203;pjquirk](https://togithub.com/pjquirk), [#&#8203;1209](https://togithub.com/moq/moq4/issues/1209)) - Throws `TypeLoadException` on mock when a record has a base record on .NET 6 ([@&#8203;tgrieger-sf](https://togithub.com/tgrieger-sf), [#&#8203;1273](https://togithub.com/moq/moq4/issues/1273)) ### [`v4.18.1`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#&#8203;4181-2022-05-16) ##### Fixed - Regression with lazy evaluation of `It.Is` predicates in setup expressions after updating from 4.13.1 to 4.16.1 ([@&#8203;b3go](https://togithub.com/b3go), [#&#8203;1217](https://togithub.com/moq/moq4/issues/1217)) - Regression with `SetupProperty` where Moq fails to match a property accessor implementation against its definition in an interface ([@&#8203;Naxemar](https://togithub.com/Naxemar), [#&#8203;1248](https://togithub.com/moq/moq4/issues/1248)) - Difference in behavior when mocking async method using `.Result` vs without ([@&#8203;cyungmann](https://togithub.com/cyungmann), [#&#8203;1253](https://togithub.com/moq/moq4/issues/1253)) ### [`v4.18.0`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#&#8203;4180-2022-05-12) New major version of DynamicProxy (you may get better performance!), so please update with care. ##### Changed - Update package reference to `Castle.Core` (DynamicProxy) from version 4.4.1 to 5.0.0 ([@&#8203;stakx](https://togithub.com/stakx), [#&#8203;1257](https://togithub.com/moq/moq4/issues/1257)) - Adjusted our target frameworks to match DynamicProxy's (see [their discussion about which frameworks to target](https://togithub.com/castleproject/Core/issues/597)): - minimum .NET Framework version raised from `net45` to `net462` - additional `net6.0` TFM ##### Fixed - Can't set up "private protected" properties ([@&#8203;RobSiklos](https://togithub.com/RobSiklos), [#&#8203;1170](https://togithub.com/moq/moq4/issues/1170)) - Using \[...] an old version of `System.Net.Http` which is vulnerable to "DoS", "Spoofing", "Privilege Escalation", "Authentication Bypass" and "Information Exposure" ([@&#8203;sidseter](https://togithub.com/sidseter), [#&#8203;1219](https://togithub.com/moq/moq4/issues/1219)) - Failure when invoking a method with by-ref parameter & mockable return type on a mock with `CallBase` and `DefaultValue.Mock` configured ([@&#8203;IanKemp](https://togithub.com/IanKemp), [#&#8203;1249](https://togithub.com/moq/moq4/issues/1249)) ### [`v4.17.2`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#&#8203;4172-2022-03-06) ##### Fixed - Regression: Property stubs not working on sub mock ([@&#8203;aaronburro](https://togithub.com/aaronburro), [#&#8203;1240](https://togithub.com/moq/moq4/issues/1240)) ### [`v4.17.1`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#&#8203;4171-2022-02-26) ##### Added - `SetupSet`, `VerifySet` methods for `mock.Protected().As<>()` ([@&#8203;tonyhallett](https://togithub.com/tonyhallett), [#&#8203;1165](https://togithub.com/moq/moq4/issues/1165)) - New `Throws` method overloads that allow specifying a function with or without parameters, to provide an exception, for example `.Throws(() => new InvalidOperationException())` and `Setup(x => x.GetFooAsync(It.IsAny<string>()).Result).Throws((string s) => new InvalidOperationException(s))`. ([@&#8203;adam-knights](https://togithub.com/adam-knights), [#&#8203;1191](https://togithub.com/moq/moq4/issues/1191)) ##### Changed - Update package reference to `Castle.Core` (DynamicProxy) from version 4.4.0 to 4.4.1 ([@&#8203;stakx](https://togithub.com/stakx), [#&#8203;1233](https://togithub.com/moq/moq4/issues/1233)) ##### Fixed - The guard against unmatchable matchers (added in [#&#8203;900](https://togithub.com/moq/moq4/issues/900)) was too strict; relaxed it to enable an alternative user-code shorthand `_` for `It.IsAny<>()` ([@&#8203;adamfk](https://togithub.com/adamfk), [#&#8203;1199](https://togithub.com/moq/moq4/issues/1199)) - `mock.Protected()` setup methods fail when argument is of type `Expression` ([@&#8203;tonyhallett](https://togithub.com/tonyhallett), [#&#8203;1189](https://togithub.com/moq/moq4/issues/1189)) - Parameter is invalid in `Protected().SetupSet()` ... `VerifySet` ([@&#8203;tonyhallett](https://togithub.com/tonyhallett), [#&#8203;1186](https://togithub.com/moq/moq4/issues/1186)) - Virtual properties and automocking not working for `mock.Protected().As<>()` ([@&#8203;tonyhallett](https://togithub.com/tonyhallett), [#&#8203;1185](https://togithub.com/moq/moq4/issues/1185)) - Issue mocking VB.NET class with overloaded property/indexer in base class ([@&#8203;myurashchyk](https://togithub.com/myurashchyk), [#&#8203;1153](https://togithub.com/moq/moq4/issues/1153)) - Equivalent arrays don't test equal when returned from a method, making `Verify` fail when it should not ([@&#8203;evilc0](https://togithub.com/evilc0), [#&#8203;1225](https://togithub.com/moq/moq4/issues/1225)) - Property setups are ignored on mocks instantiated using `Mock.Of` ([@&#8203;stakx](https://togithub.com/stakx), [#&#8203;1066](https://togithub.com/moq/moq4/issues/1066)) - `SetupAllProperties` causes mocks to become race-prone ([@&#8203;estrizhok](https://togithub.com/estrizhok), [#&#8203;1231](https://togithub.com/moq/moq4/issues/1231)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/jellyfin/jellyfin). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yNDAuNCIsInVwZGF0ZWRJblZlciI6IjMyLjI0MC40In0=-->
OVERLORD added the pull-request label 2026-02-07 06:44:19 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11772