Skip to content

Releases: eritbh/yuuko

v2.3.4

21 Oct 22:33
Compare
Choose a tag to compare
  • Added a maintenance-mode notice to README and other meta updates (#105)
  • Dev dependency bump (#105)

v2.3.3

21 Oct 17:47
Compare
Choose a tag to compare

Changes

  • The minimum supported Eris version is now 0.17. Older versions may continue to work for non-Typescript consumers. (#84)
    • The exported ClientEvents interface has been changed to follow the new format for event typings used by Eris. See also abalabahaha/eris#1242.
    • Since Eris.Client no longer implements Eris.ClientOptions, Yuuko's Client also no longer implements its ClientOptions. Yuuko's ClientOptions still extends Eris.ClientOptions.
  • EventListener#args is now deprecated. (#84)

v2.3.2

06 Sep 12:38
Compare
Choose a tag to compare

Fixes

  • Fixed a typo in the Client#defaultPrefix deprecation message. (#99)

v2.3.1

22 Aug 18:14
Compare
Choose a tag to compare

Additions

  • Deprecation warnings are now emitted when deprecated features are used. (#78, #92)

Meta

  • The repo now uses npm instead of Yarn for development (#81, #85, #86)
  • Dev dependency updates (#79, #85)
  • README/documentation updates (#95)

v2.3.0

21 Aug 20:49
Compare
Choose a tag to compare

Additions

  • Subcommands can now be added to commands. (#26, #55, #66)
  • Files can now export arrays of commands/event listeners. (#47, #71)
  • The default help command now includes some helpers for working with command help values in Typescript. (#72, #74)

Fixes

  • The default eval command accepts more code formats and exposes more immediate variables. (#54)
  • Global command requirements can now be set from client options. The old method of setting global requirements is deprecated and will be removed in a future major release. (#69, #75)
  • Yuuko's peer dependency on Eris is no longer restricted to any specific version. This should help avoid errors when installing a dev branch of Eris.

Meta

v2.2.1

18 Apr 02:32
Compare
Choose a tag to compare

Additions

  • Errors thrown from the addFile and addDir client methods will now include a filename property that will point to the file that was being processed when the error was thrown. This should aid in troubleshooting invalid exports and other issues when writing modular bots. Recent versions of Node print custom error properties in the console when thrown, so this information should be immediately accessible. (#64, #65)

Fixes

  • reloadFiles has been fixes to no longer remove commands/event listeners added from non-file sources. (#62, #63)

Meta

  • Documentation generation has been reworked and now uses the standard Typedoc theme rather than a custom Vue app. Documentation for past versions should be kept reliably. (#58, #60)
  • Fixed an issue that caused the Github Actions build to report as failing any time a commit to main didn't change any source code or generate a difference in build output. (#59)
  • Updated various aspects of the project ESLint setup for proper linting via CI again. (#61)

v2.2.0

05 Apr 16:18
Compare
Choose a tag to compare

Changes

  • The minimum supported Eris version is now 0.15.0. Older versions may continue to work for non-Typescript consumers. (#56)

Fixes

  • Type of CommandRequirements#permissions no longer includes a lone string. The code for handling this property never handled lone strings correctly, so this isn't a breaking change; always pass an array of permission names rather than a single permission name. (806cd6a)

Meta

  • Author's username has changed since last release; links to documentation, donations, etc. have mostly been updated. Please raise an issue or pull request if you encounter any in-repo links that are still pointing to the wrong place. (b02b844)

v2.1.1

05 Mar 21:37
Compare
Choose a tag to compare

Note: This version of Yuuko is still built against [email protected], not the latest version. This may cause issues for Typescript users on [email protected].

Fixes

  • Fixed an issue with Client#commandForName not returning the default command when expected, causing the default command system to not work.

v2.1.0

05 Mar 21:36
Compare
Choose a tag to compare

Note: This version of Yuuko is still built against [email protected], not the latest version. This may cause issues for Typescript users on [email protected].

Additions

  • New EventListener class which you can use to encapsulate plain event listeners, similar to the Command class. This is designed to let you split your bot's logic across multiple files for more than just commands. You can use a ready listener with {once: true} to execute whatever code you want exactly once when the bot starts up. These listeners get access to the same context args as commands.

    const {EventListener} = require('yuuko');
    module.exports = new EventListener('messageCreate', (message, context) => {
      // Process the message, with access to `context.client` and your own context additions
    }, {
      once: false // set to true to register this listener with `.once` rather than `.on` - particularly useful with the ready event
    });
  • To go along with the new event handlers, the methods for registering files and directories with your client have changed - addCommandFile is now addFile, and addCommandDir is now addDir. The old "command" names are still around as aliases, but are deprecated, and will also load any event listener files you have in the target directories. In a future version, the old names will be removed. You should update existing code to use the new names now.

Deprecations

  • Client#addCommandFile and Client#addCommandDir as noted above - move to Client#addFile and Client#addDir respectively.

Fixes

  • Bumped some dependencies to fix security issues

v2.0.2

10 Oct 05:41
Compare
Choose a tag to compare

Fixes

  • Dotfiles are once again ignored by Client#addCommandDir. (6547954)