framework icon indicating copy to clipboard operation
framework copied to clipboard

Breaking changes on main

Open Smaug6739 opened this issue 3 years ago • 0 comments

Breaking changes in development version

This issue tracks changes that may require users to update codes. Only intentional breaking changes are mentioned here, this is not a reference for new features.

:rocket: Version 4.0.0-dev.9

Structures

  • [Inhibitor]: Change function execute and onFailure first parapeter is now the structure (client => structure type of BaseStructure) (448f55e)

:rocket: Version 4.0.0-dev.8

Structures

  • [Command]: userPermissions and clientPermissions is now of type PermissionResolvable[].

:rocket: Version 4.0.0-dev.7

Client

  • Collections (client.collections) contain now an array of structures.

Loader V2 - Custom project structure

  • Support arrays of structures.

Managers

  • Managers: Collections can't be null now, however the collections can be empty.

:rocket: Version 4.0.0-dev.6

Structures

  • [BaseStructure]: Add static, private and readonly _id property used by the loader.

Structures

  • Change register and unregister functions: Return the structure without saving it in a collection.

Managers

  • CommandsManager: Change the getApplicationCommandData prototype : the parameter is the command (Command type) returns: ApplicationCommandData.
  • CommandsManager: Add getAllApplicationCommandData function that take a collection of commands in parameter and returns an array of ApplicationCommandData (ApplicationCommandData[]).

:rocket: Version 4.0.0-dev.4

Managers

  • [CommandsManager] : Remove loadAndRegisterAll() => now in loadAll()
  • [EventsManager] : Remove loadAndRegisterAll() => now in loadAll()
  • [Managers]: Remove loadAll option
  • [Managers]: Remove loadAll option
  • [Managers]: Removed auto-saving of structures in client.collection (it remains automatic through the client options)

Loader V2

  • Remove loadFiles function
  • Remove readDirAndPush function

Other

  • Remove build & typings on main : Please use the version published on npm instead (npm i sheweny@dev)

:rocket: Version 4.0.0-dev.2

Client

  • [ClientUtil]: getX return an array (Array.from(interator)) instedof an iterator

Smaug6739 avatar Jun 04 '22 15:06 Smaug6739