Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking changes on main #92

Open
Smaug6739 opened this issue Jun 4, 2022 · 0 comments
Open

Breaking changes on main #92

Smaug6739 opened this issue Jun 4, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation meta Includes only non-code changes semver:major V4 Version 4.0.0

Comments

@Smaug6739
Copy link
Member

Smaug6739 commented Jun 4, 2022

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.

🚀 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)

🚀 Version 4.0.0-dev.8

Structures

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

🚀 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.

🚀 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[]).

🚀 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)

🚀 Version 4.0.0-dev.2

Client

  • [ClientUtil]: getX return an array (Array.from(interator)) instedof an iterator
@Smaug6739 Smaug6739 added this to the Version 4.0.0 milestone Jun 4, 2022
@Smaug6739 Smaug6739 added documentation Improvements or additions to documentation meta Includes only non-code changes V4 Version 4.0.0 semver:major labels Jun 4, 2022
@Smaug6739 Smaug6739 pinned this issue Jun 4, 2022
@Smaug6739 Smaug6739 removed this from the Version 4.0.0 milestone Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation meta Includes only non-code changes semver:major V4 Version 4.0.0
Projects
None yet
Development

No branches or pull requests

1 participant