raise all deprecation messages to the final level

This commit is contained in:
Jesse Plamondon-Willard 2022-11-11 01:47:12 -05:00
parent cefd9e23b0
commit 28ba3408bc
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
9 changed files with 13 additions and 12 deletions

View File

@ -15,6 +15,7 @@
* For mod authors: * For mod authors:
* Optimized asset name comparisons (thanks to atravita!). * Optimized asset name comparisons (thanks to atravita!).
* Raised all deprecation messages to the final 'pending removal' level.
* For the web UI: * For the web UI:
* Fixed log parser not showing screen IDs in split-screen mode, and improved screen display. * Fixed log parser not showing screen IDs in split-screen mode, and improved screen display.

View File

@ -90,7 +90,7 @@ namespace StardewModdingAPI
source: null, source: null,
nounPhrase: $"{nameof(Constants)}.{nameof(Constants.ExecutionPath)}", nounPhrase: $"{nameof(Constants)}.{nameof(Constants.ExecutionPath)}",
version: "3.14.0", version: "3.14.0",
severity: DeprecationLevel.Info severity: DeprecationLevel.PendingRemoval
); );
return Constants.GamePath; return Constants.GamePath;

View File

@ -45,7 +45,7 @@ namespace StardewModdingAPI.Framework.Content
source: null, source: null,
nounPhrase: $"{nameof(IAssetInfo)}.{nameof(IAssetInfo.AssetName)}", nounPhrase: $"{nameof(IAssetInfo)}.{nameof(IAssetInfo.AssetName)}",
version: "3.14.0", version: "3.14.0",
severity: DeprecationLevel.Info, severity: DeprecationLevel.PendingRemoval,
unlessStackIncludes: new[] unlessStackIncludes: new[]
{ {
$"{typeof(AssetInterceptorChange).FullName}.{nameof(AssetInterceptorChange.CanIntercept)}", $"{typeof(AssetInterceptorChange).FullName}.{nameof(AssetInterceptorChange.CanIntercept)}",
@ -84,7 +84,7 @@ namespace StardewModdingAPI.Framework.Content
source: null, source: null,
nounPhrase: $"{nameof(IAssetInfo)}.{nameof(IAssetInfo.AssetNameEquals)}", nounPhrase: $"{nameof(IAssetInfo)}.{nameof(IAssetInfo.AssetNameEquals)}",
version: "3.14.0", version: "3.14.0",
severity: DeprecationLevel.Info, severity: DeprecationLevel.PendingRemoval,
unlessStackIncludes: new[] unlessStackIncludes: new[]
{ {
$"{typeof(AssetInterceptorChange).FullName}.{nameof(AssetInterceptorChange.CanIntercept)}", $"{typeof(AssetInterceptorChange).FullName}.{nameof(AssetInterceptorChange.CanIntercept)}",

View File

@ -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}) and will break in the upcoming SMAPI 4.0.0."; string message = $"{warning.ModName} uses deprecated code ({warning.NounPhrase}) and will break in the next major SMAPI update.";
// get log level // get log level
LogLevel level; LogLevel level;

View File

@ -43,7 +43,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
source: this.Mod, source: this.Mod,
nounPhrase: $"{nameof(IModHelper)}.{nameof(IModHelper.ConsoleCommands)}.{nameof(ICommandHelper.Trigger)}", nounPhrase: $"{nameof(IModHelper)}.{nameof(IModHelper.ConsoleCommands)}.{nameof(ICommandHelper.Trigger)}",
version: "3.8.1", version: "3.8.1",
severity: DeprecationLevel.Info severity: DeprecationLevel.PendingRemoval
); );
return this.CommandManager.Trigger(name, arguments); return this.CommandManager.Trigger(name, arguments);

View File

@ -62,7 +62,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
source: this.Mod, source: this.Mod,
nounPhrase: $"{nameof(IContentHelper)}.{nameof(IContentHelper.AssetLoaders)}", nounPhrase: $"{nameof(IContentHelper)}.{nameof(IContentHelper.AssetLoaders)}",
version: "3.14.0", version: "3.14.0",
severity: DeprecationLevel.Info severity: DeprecationLevel.PendingRemoval
); );
return this.ObservableAssetLoaders; return this.ObservableAssetLoaders;
@ -78,7 +78,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
source: this.Mod, source: this.Mod,
nounPhrase: $"{nameof(IContentHelper)}.{nameof(IContentHelper.AssetEditors)}", nounPhrase: $"{nameof(IContentHelper)}.{nameof(IContentHelper.AssetEditors)}",
version: "3.14.0", version: "3.14.0",
severity: DeprecationLevel.Info severity: DeprecationLevel.PendingRemoval
); );
return this.ObservableAssetEditors; return this.ObservableAssetEditors;

View File

@ -41,7 +41,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
source: this.Mod, source: this.Mod,
nounPhrase: $"{nameof(IModHelper)}.{nameof(IModHelper.Content)}", nounPhrase: $"{nameof(IModHelper)}.{nameof(IModHelper.Content)}",
version: "3.14.0", version: "3.14.0",
severity: DeprecationLevel.Info severity: DeprecationLevel.PendingRemoval
); );
return this.ContentImpl; return this.ContentImpl;

View File

@ -1736,7 +1736,7 @@ namespace StardewModdingAPI.Framework
source: metadata, source: metadata,
nounPhrase: $"{nameof(IAssetEditor)}", nounPhrase: $"{nameof(IAssetEditor)}",
version: "3.14.0", version: "3.14.0",
severity: DeprecationLevel.Info, severity: DeprecationLevel.PendingRemoval,
logStackTrace: false logStackTrace: false
); );
@ -1749,7 +1749,7 @@ namespace StardewModdingAPI.Framework
source: metadata, source: metadata,
nounPhrase: $"{nameof(IAssetLoader)}", nounPhrase: $"{nameof(IAssetLoader)}",
version: "3.14.0", version: "3.14.0",
severity: DeprecationLevel.Info, severity: DeprecationLevel.PendingRemoval,
logStackTrace: false logStackTrace: false
); );
@ -1781,7 +1781,7 @@ namespace StardewModdingAPI.Framework
metadata, metadata,
$"using {name} without bundling it", $"using {name} without bundling it",
"3.14.7", "3.14.7",
DeprecationLevel.Info, DeprecationLevel.PendingRemoval,
logStackTrace: false logStackTrace: false
); );
} }

View File

@ -59,7 +59,7 @@ namespace StardewModdingAPI.Utilities
null, null,
$"calling the {nameof(PerScreen<T>)} constructor with null", $"calling the {nameof(PerScreen<T>)} constructor with null",
"3.14.0", "3.14.0",
DeprecationLevel.Info DeprecationLevel.PendingRemoval
); );
#else #else
throw new ArgumentNullException(nameof(createNewState)); throw new ArgumentNullException(nameof(createNewState));