Changelog¶
0.5.0¶
Removed: [
npc.PeriodicJob]npc.PeriodicJob.min_delayremoved to make the waiting for next run non GIL blockingAdded: [
npc.PeriodicJob]npc.PeriodicJob.all_jobs- list of all running jobs,npc.PeriodicJob.log- Logging for jobs,npc.PeriodicJob.id- Unique ID of the job,npc.PeriodicJob.set_log_level()- To change the log level for a jobChanged: [
npc.PeriodicJob]_stopped->_stop_event,_can_run->_pause_event,npc.PeriodicJob.last_run- Is now a instance variable rather than class variable which could have caused unexpected behaviourChanged: [
npc.info.load_config()] Move to agnostic pyproject instead of poetry specificChanged: [
npc.BasePlugin.check_update()] Always show the update window not only on the first runAdded: [
npc.BasePlugin.update_available()] Hook to handle available updates for plugins that need itChanged: [
npc.BasePlugin.stop()] Stop all running periodic jobs (incl. ones not created by the base plugin)Changed: [
npc.BasePlugin.settings_changed()] Also adjust logging for periodic jobs
0.4.2¶
Changed: [
npc.BasePlugin._automatic_update_check_delay()] Fix automatic update delay not reflected when changing the interval
0.4.1¶
Changed: [
npc.reload_plugin()] Changedplugin_nametoplugin_idas it is more accurateRemoved: [
npc.BasePlugin] Removednpc.BasePlugin.__name__()in favour ofnpc.BasePlugin.plugin_name.Added: [
npc.BasePlugin.plugin_identifier()] Added plugin identifierChanged: [
npc.BasePlugin.stop()] Fix unloading of modules
0.4.0¶
Changed: [
npc.config.Field] Addedlabelparameter and madedescriptionoptional.Added: [
npc.config.Field.metasettings_description()] Added property combining label and descriptionChanged: [
npc.String()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.Int()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.Float()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.Bool()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.TextView()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.Dropdown()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.Radio()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.ListString()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.File()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.Folder()] Addedlabelparameter and madedescriptionoptional.Changed: [
npc.Image()] Addedlabelparameter and madedescriptionoptional.Added: [
npc.changes] [npc.IS_DEV] Explicit flag for development versionsChanged: [
npc.info.load_config()] Return whether the plugin is a development version
0.3.6¶
Changed: [
npc.log()] Fix windowed messages on Nicotine+ < 3.3.0Added: [
npc.LegacyLogLevel] Fix windowed messages on Nicotine+ < 3.3.0Changed: [
npc.BasePlugin.check_update()] Show window if no updates are available
0.3.5¶
Changed: [
npc.command()] Support legacy command system for Nicotine+ < 3.3.0Changed: [
npc.logging.NLogHandler] Fix logging on Nicotine+ < 3.3.3Changed: [
npc.log()] Fix logging on Nicotine+ < 3.3.3Changed: [
npc.Version.parse()] Properly parse version strings with alpha, beta, and dev releases. Fixing recognition of dev version in config.Changed: [
npc.BasePlugin._setup_commands()] Add support for Nicotine+ < 3.3.0 legacy command system
0.3.4¶
Changed: [
npc.BasePlugin.settings_changed()] Fixed still logging debug messages when verbose is disabled
0.3.2¶
Added: [
npc.changes] Export * fromnpcmodule in root__init__.py, in order to make imports easier when this package is used in another party plugin.Changed: [
npc.changes] Updatedscripts.pyandgenerate_changelog.pyto be usable in plugins using this package. Just copy them over and use them as is.Changed: [
npc.changes] Document the use of all the scripts in this package.
0.3.1¶
Changed: [
npc.config.Field] Removed plugin as a parameter for thefrom_valuefunction.Changed: [
npc.config.Field.from_value()] Removed plugin as a parameter.Added: [
npc.Folder()] Quick alias forFile()withnpc.types.FileChooser.FOLDERAdded: [
npc.Image()] Quick alias forFile()withnpc.types.FileChooser.IMAGE
0.3.0¶
Added: [
npc.File()] (no description provided)Changed: [
npc.Version] Add support for proper semantic versioning (alpha and beta releases)
0.2.0¶
Added: [
npc.logging.NLogHandler] (no description provided)Removed: [
npc.BasePlugin] Removednpc.BasePlugin.vlog()in favour of thenpc.BasePlugin.loglogger instance. Useself.log.debug(...)instead.Changed: [
npc.BasePlugin] Replacednpc.BasePlugin.log()function withnpc.BasePlugin.loglogger instance. Useself.log.info(...)instead ofself.log(...).Changed: [
npc.BasePlugin.window()] Renamed fromnpc.BasePlugin.window_log()tonpc.BasePlugin.window()