raise deprecation levels
This commit is contained in:
parent
9435711216
commit
521129ad21
|
@ -14,6 +14,8 @@
|
||||||
|
|
||||||
* For mod authors:
|
* 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)!
|
* 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:
|
* For the web UI:
|
||||||
* Added log parser warning about performance of PyTK 1.23.0 or earlier.
|
* Added log parser warning about performance of PyTK 1.23.0 or earlier.
|
||||||
|
|
|
@ -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.Notice
|
severity: DeprecationLevel.Info
|
||||||
);
|
);
|
||||||
|
|
||||||
return Constants.GamePath;
|
return Constants.GamePath;
|
||||||
|
|
|
@ -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.Notice,
|
severity: DeprecationLevel.Info,
|
||||||
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.Notice,
|
severity: DeprecationLevel.Info,
|
||||||
unlessStackIncludes: new[]
|
unlessStackIncludes: new[]
|
||||||
{
|
{
|
||||||
$"{typeof(AssetInterceptorChange).FullName}.{nameof(AssetInterceptorChange.CanIntercept)}",
|
$"{typeof(AssetInterceptorChange).FullName}.{nameof(AssetInterceptorChange.CanIntercept)}",
|
||||||
|
|
|
@ -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.Notice
|
severity: DeprecationLevel.Info
|
||||||
);
|
);
|
||||||
|
|
||||||
return this.CommandManager.Trigger(name, arguments);
|
return this.CommandManager.Trigger(name, arguments);
|
||||||
|
|
|
@ -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.Notice
|
severity: DeprecationLevel.Info
|
||||||
);
|
);
|
||||||
|
|
||||||
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.Notice
|
severity: DeprecationLevel.Info
|
||||||
);
|
);
|
||||||
|
|
||||||
return this.ObservableAssetEditors;
|
return this.ObservableAssetEditors;
|
||||||
|
@ -126,7 +126,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
|
||||||
this.Mod,
|
this.Mod,
|
||||||
"loading assets from the Content folder with a .xnb file extension",
|
"loading assets from the Content folder with a .xnb file extension",
|
||||||
"3.14.0",
|
"3.14.0",
|
||||||
DeprecationLevel.Notice
|
DeprecationLevel.Info
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
|
||||||
this.Mod,
|
this.Mod,
|
||||||
"loading XNB files from the mod folder without the .xnb file extension",
|
"loading XNB files from the mod folder without the .xnb file extension",
|
||||||
"3.14.0",
|
"3.14.0",
|
||||||
DeprecationLevel.Notice
|
DeprecationLevel.Info
|
||||||
);
|
);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.Notice
|
severity: DeprecationLevel.Info
|
||||||
);
|
);
|
||||||
|
|
||||||
return this.ContentImpl;
|
return this.ContentImpl;
|
||||||
|
|
|
@ -1670,7 +1670,7 @@ namespace StardewModdingAPI.Framework
|
||||||
source: metadata,
|
source: metadata,
|
||||||
nounPhrase: $"{nameof(IAssetEditor)}",
|
nounPhrase: $"{nameof(IAssetEditor)}",
|
||||||
version: "3.14.0",
|
version: "3.14.0",
|
||||||
severity: DeprecationLevel.Notice,
|
severity: DeprecationLevel.Info,
|
||||||
logStackTrace: false
|
logStackTrace: false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1683,7 +1683,7 @@ namespace StardewModdingAPI.Framework
|
||||||
source: metadata,
|
source: metadata,
|
||||||
nounPhrase: $"{nameof(IAssetLoader)}",
|
nounPhrase: $"{nameof(IAssetLoader)}",
|
||||||
version: "3.14.0",
|
version: "3.14.0",
|
||||||
severity: DeprecationLevel.Notice,
|
severity: DeprecationLevel.Info,
|
||||||
logStackTrace: false
|
logStackTrace: false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1715,7 +1715,7 @@ namespace StardewModdingAPI.Framework
|
||||||
metadata,
|
metadata,
|
||||||
$"using {name} without bundling it",
|
$"using {name} without bundling it",
|
||||||
"3.14.7",
|
"3.14.7",
|
||||||
DeprecationLevel.Notice,
|
DeprecationLevel.Info,
|
||||||
logStackTrace: false
|
logStackTrace: false
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.Notice
|
DeprecationLevel.Info
|
||||||
);
|
);
|
||||||
#else
|
#else
|
||||||
throw new ArgumentNullException(nameof(createNewState));
|
throw new ArgumentNullException(nameof(createNewState));
|
||||||
|
|
Loading…
Reference in New Issue