make deprecation warnings a bit stronger for the upcoming 4.0.0 release
This commit is contained in:
parent
a220e14f2d
commit
3d10d08a1a
|
@ -16,7 +16,8 @@
|
||||||
|
|
||||||
* For mod authors:
|
* For mod authors:
|
||||||
* When [providing a mod API for a C# mod](https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Integrations), you can now get an optional parameter with the mod requesting the API (thanks to KhloeLeclair!). This avoids needing the pattern where each method needs the requesting mod's manifest.
|
* When [providing a mod API for a C# mod](https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Integrations), you can now get an optional parameter with the mod requesting the API (thanks to KhloeLeclair!). This avoids needing the pattern where each method needs the requesting mod's manifest.
|
||||||
* SMAPI now treats square brackets in the manifest `Name` field as round brackets, to avoid breaking tools which parse log files.
|
* SMAPI now treats square brackets in the manifest `Name` field as round ones to avoid breaking tools which parse log files.
|
||||||
|
* Made deprecation message wording stronger for the upcoming SMAPI 4.0.0 release.
|
||||||
* Updated to [FluentHttpClient](https://github.com/Pathoschild/FluentHttpClient#readme) 4.2.0 (see [changes](https://github.com/Pathoschild/FluentHttpClient/blob/develop/RELEASE-NOTES.md#420)).
|
* Updated to [FluentHttpClient](https://github.com/Pathoschild/FluentHttpClient#readme) 4.2.0 (see [changes](https://github.com/Pathoschild/FluentHttpClient/blob/develop/RELEASE-NOTES.md#420)).
|
||||||
* Fixed `LocationListChanged` event not raised & memory leak occurring when a generated mine/volcano is removed (thanks to tylergibbs2!).
|
* Fixed `LocationListChanged` event not raised & memory leak occurring when a generated mine/volcano is removed (thanks to tylergibbs2!).
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ namespace StardewModdingAPI.Framework.Deprecations
|
||||||
foreach (DeprecationWarning warning in this.QueuedWarnings.OrderBy(p => p.ModName).ThenBy(p => p.NounPhrase))
|
foreach (DeprecationWarning warning in this.QueuedWarnings.OrderBy(p => p.ModName).ThenBy(p => p.NounPhrase))
|
||||||
{
|
{
|
||||||
// build message
|
// build message
|
||||||
string message = $"{warning.ModName} uses deprecated code ({warning.NounPhrase} is deprecated since SMAPI {warning.Version}).";
|
string message = $"{warning.ModName} uses deprecated code ({warning.NounPhrase}) and will break in the upcoming SMAPI 4.0.0.";
|
||||||
|
|
||||||
// get log level
|
// get log level
|
||||||
LogLevel level;
|
LogLevel level;
|
||||||
|
|
Loading…
Reference in New Issue