Skip to content

Commit 5bde65e

Browse files
committed
Update changelogs
1 parent d16e8db commit 5bde65e

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

Diff for: BreakingChanges.md

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
6.0.0 Release
2+
================
3+
4+
* Update target frameworks: .NET 8, .NET Standard 2.0.
5+
* Obsolete api is removed
6+
* CompatArg is marked as obsolete
7+
18
5.0.0 Release
29
================
310

@@ -91,7 +98,7 @@ Workaround: Use `NSubstitute.Received.InOrder`.
9198

9299
Signed v3.x package to fix libraries that work with a mix of NSubstitute verisons. See #324.
93100

94-
3.0.0 Release
101+
3.0.0 Release
95102
================
96103

97104
NOTE: unsigned. Fixed in 3.0.1.
@@ -108,15 +115,15 @@ Standard 1.3 compatible target such as .NET 4.6 or later. See compatibility matr
108115
https://github.com/dotnet/standard/blob/master/docs/versions.md
109116

110117

111-
1.10.0 Release
118+
1.10.0 Release
112119
================
113120

114121
Substitutes will now automatically return an empty `IQueryable<T>` for
115122
members that return that type. Tests previously relying on a
116123
substitute `IQueryable<T>` will no longer work properly.
117124

118125
Reason:
119-
- Code that uses an `IQueryable<T>` can now run using the auto-subbed
126+
- Code that uses an `IQueryable<T>` can now run using the auto-subbed
120127
value without causing null pointer exceptions (see issue #67).
121128

122129
Fix:
@@ -128,10 +135,10 @@ to return a real `IQueryable<T>` instead. If a substitute is required, explicitl
128135
```
129136

130137

131-
1.9.1 Release
138+
1.9.1 Release
132139
================
133140

134-
Substitutes set up to throw exception for methods with return type Task<T>
141+
Substitutes set up to throw exception for methods with return type Task<T>
135142
cause compilation to fail due to the call being ambiguous (CS0121).
136143
"The call is ambiguous between the following methods or properties:
137144
`.Returns<Task<T>>` and `.Returns<T>`"
@@ -146,7 +153,7 @@ Fix:
146153

147154
New: `sub.Method().Returns<string>(x => { throw new Exception() });`
148155

149-
1.8.0 Release
156+
1.8.0 Release
150157
================
151158

152159
Incorrect use of argument matchers outside of a member call, particularly within a
@@ -214,7 +221,7 @@ Fix:
214221

215222
---------------
216223

217-
In rare cases the new `Returns()` and `ReturnsForAnyArgs()` overloads can cause compilation to fail due to the call being ambiguous (CS0121).
224+
In rare cases the new `Returns()` and `ReturnsForAnyArgs()` overloads can cause compilation to fail due to the call being ambiguous (CS0121).
218225

219226
Reason:
220227
- The new overloads allow a sequence of callbacks to be used for return values. A common example is return several values, then throwing an exception.
@@ -229,7 +236,7 @@ Fix:
229236
Auto-substitute from substitutes of `Func` delegates (following the same rules as auto-subbing for methods and properties). So the delegate returned from `Substitute.For<Func<IFoo>>()` will return a substitute of `IFoo`. This means some substitutes for delegates that used to return null will now return a new substitute.
230237

231238
Reason:
232-
- Reduced setup when substituting for `Func` delegates, and consistency with behaviour for properties and methods.
239+
- Reduced setup when substituting for `Func` delegates, and consistency with behaviour for properties and methods.
233240

234241
Fix:
235242
- Explicitly return null from substitute delegates when required for a test.

Diff for: CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### 6.0.0
2+
3+
* [UPDATE] Update target frameworks: .NET8, .NET Standard 2.0
4+
* [UPDATE] Drop EOL .NET 6/7 platforms from testing matrix
5+
* [UPDATE] Update github actions steps versions
6+
* [UPDATE] Remove legacy obsolete API
7+
* [UPDATE] Mark as obsolete api CompatArg with pre c# 7.0 support
8+
19
### 5.2.0 (Apr 2024)
210

311
* [UPDATE] Upgrade website build to jekyll 3.9.0 and add link to edit website pages (#767, #769; thanks to @brad)
@@ -22,7 +30,7 @@ Many thanks to @alexandrnikitin, @Romfos, @brad, and @304NotModified for their c
2230

2331
### 4.4.0 (Jul 2022)
2432

25-
* [FIX] Fix issue checking for constructor args on null object. Thanks to @phongphanq, and @appel1! Thanks also to
33+
* [FIX] Fix issue checking for constructor args on null object. Thanks to @phongphanq, and @appel1! Thanks also to
2634
@Mandroide for code review. (#683, #685)
2735
* [UPDATE] Update to Castle Core v5. Thanks @Havunen! (#690, #673)
2836
* [NEW] Add `.ThrowsAsync()` that will correctly mock exception on async methods. Thanks @Socolin! (#609, #663)

0 commit comments

Comments
 (0)