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:
* Optimized asset name comparisons (thanks to atravita!).
* Raised all deprecation messages to the final 'pending removal' level.
* For the web UI:
* 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,
nounPhrase: $"{nameof(Constants)}.{nameof(Constants.ExecutionPath)}",
version: "3.14.0",
severity: DeprecationLevel.Info
severity: DeprecationLevel.PendingRemoval
);
return Constants.GamePath;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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