- Removed: [:class:`npc.BasePlugin`] Removed :meth:`npc.BasePlugin.__name__` in favour of :attr:`npc.BasePlugin.plugin_name`.
- Added: [:meth:`npc.BasePlugin.plugin_identifier`] Added plugin identifier
- Changed: [:meth:`npc.BasePlugin.stop`] Fix unloading of modules
- Changed: [:func:`npc.reload_plugin`] Changed :paramref:`plugin_name` to :paramref:`plugin_id` as it is more accurate
- Added: [:mod:`npc.changes`] [:data:`npc.IS_DEV`] Explicit flag for development versions
- Changed: [:class:`npc.config.Field`] Added
label
parameter and madedescription
optional. - Added: [:meth:`npc.config.Field.metasettings_description`] Added property combining label and description
- Changed: [:func:`npc.String`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.Int`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.Float`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.Bool`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.TextView`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.Dropdown`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.Radio`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.ListString`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.File`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.Folder`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.Image`] Added
label
parameter and madedescription
optional. - Changed: [:func:`npc.info.load_config`] Return whether the plugin is a development version
- Changed: [:meth:`npc.BasePlugin.check_update`] Show window if no updates are available
- Changed: [:func:`npc.log`] Fix windowed messages on Nicotine+ < 3.3.0
- Added: [:class:`npc.LegacyLogLevel`] Fix windowed messages on Nicotine+ < 3.3.0
- Changed: [:meth:`npc.BasePlugin._setup_commands`] Add support for Nicotine+ < 3.3.0 legacy command system
- Changed: [:func:`npc.command`] Support legacy command system for Nicotine+ < 3.3.0
- Changed: [:class:`npc.logging.NLogHandler`] Fix logging on Nicotine+ < 3.3.3
- Changed: [:func:`npc.log`] Fix logging on Nicotine+ < 3.3.3
- Changed: [:meth:`npc.Version.parse`] Properly parse version strings with alpha, beta, and dev releases. Fixing recognition of dev version in config.
- Changed: [:meth:`npc.BasePlugin.settings_changed`] Fixed still logging debug messages when verbose is disabled
- Added: [:mod:`npc.changes`] Export * from
npc
module in root__init__.py
, in order to make imports easier when this package is used in another party plugin. - Changed: [:mod:`npc.changes`] Updated
scripts.py
andgenerate_changelog.py
to be usable in plugins using this package. Just copy them over and use them as is. - Changed: [:mod:`npc.changes`] Document the use of all the :doc:`scripts <scripts>` in this package.
- Changed: [:class:`npc.config.Field`] Removed plugin as a parameter for the :paramref:`from_value` function.
- Changed: [:meth:`npc.config.Field.from_value`] Removed plugin as a parameter.
- Added: [:func:`npc.Folder`] Quick alias for :func:`File` with :attr:`npc.types.FileChooser.FOLDER`
- Added: [:func:`npc.Image`] Quick alias for :func:`File` with :attr:`npc.types.FileChooser.IMAGE`
- Added: [:func:`npc.File`] (no description provided)
- Changed: [:class:`npc.Version`] Add support for proper semantic versioning (alpha and beta releases)
- Removed: [:class:`npc.BasePlugin`] Removed :meth:`npc.BasePlugin.vlog` in favour of the :attr:`npc.BasePlugin.log` logger instance. Use
self.log.debug(...)
instead. - Changed: [:class:`npc.BasePlugin`] Replaced
npc.BasePlugin.log()
function with :attr:`npc.BasePlugin.log` logger instance. Useself.log.info(...)
instead ofself.log(...)
. - Changed: [:meth:`npc.BasePlugin.window`] Renamed from :meth:`npc.BasePlugin.window_log` to :meth:`npc.BasePlugin.window`
- Added: [:class:`npc.logging.NLogHandler`] (no description provided)