raise deprecation levels

This commit is contained in:
Jesse Plamondon-Willard 2022-07-09 00:53:11 -04:00
parent 9435711216
commit 521129ad21
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
8 changed files with 15 additions and 13 deletions

View File

@ -14,6 +14,8 @@
* For mod authors:
* While loading your mod, SMAPI now searches for indirect dependencies in your mod's folder to support edge cases like F# mods (thanks to TehPers)!
* **Raised deprecation message levels.**
_Deprecation warnings are now player-visible in the SMAPI console as grayed-out `DEBUG` messages. They'll be raised to `WARN` level in SMAPI 3.17 next month, which will be the last major release before SMAPI 4.0._
* For the web UI:
* Added log parser warning about performance of PyTK 1.23.0 or earlier.

View File

@ -90,7 +90,7 @@ namespace StardewModdingAPI
source: null,
nounPhrase: $"{nameof(Constants)}.{nameof(Constants.ExecutionPath)}",
version: "3.14.0",
severity: DeprecationLevel.Notice
severity: DeprecationLevel.Info
);
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.Notice,
severity: DeprecationLevel.Info,
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.Notice,
severity: DeprecationLevel.Info,
unlessStackIncludes: new[]
{
$"{typeof(AssetInterceptorChange).FullName}.{nameof(AssetInterceptorChange.CanIntercept)}",

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.Notice
severity: DeprecationLevel.Info
);
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.Notice
severity: DeprecationLevel.Info
);
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.Notice
severity: DeprecationLevel.Info
);
return this.ObservableAssetEditors;
@ -126,7 +126,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
this.Mod,
"loading assets from the Content folder with a .xnb file extension",
"3.14.0",
DeprecationLevel.Notice
DeprecationLevel.Info
);
}
@ -150,7 +150,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
this.Mod,
"loading XNB files from the mod folder without the .xnb file extension",
"3.14.0",
DeprecationLevel.Notice
DeprecationLevel.Info
);
return data;
}

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.Notice
severity: DeprecationLevel.Info
);
return this.ContentImpl;

View File

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

View File

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