raise all deprecation messages to the final level
This commit is contained in:
parent
cefd9e23b0
commit
28ba3408bc
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)}",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue