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

chore: 0.8 release #26

Merged
merged 33 commits into from
Jun 19, 2024
Merged

chore: 0.8 release #26

merged 33 commits into from
Jun 19, 2024

Conversation

carafelix
Copy link
Member

closes #16
closes #18

Major changes:

  • add LanguageCode type to .localize and all interfaces that mentioned language
  • narrow getNearestCommand output based on the user language, add ignoreLocalization flag to revert this
  • expand search of getNearestCommand to multiple Commands instances
  • add .toElementals method, which serialize all register commands, and their localizations.
  • refactor mergeMyCommandsParams function into MyCommandParams static class

minor:

  • lower default similarity threshold for FuzzyMatch
  • add array support for setMyCommands
  • jsdoc improvements

@carafelix carafelix requested a review from roziscoding June 18, 2024 23:01
@carafelix carafelix marked this pull request as draft June 18, 2024 23:02
@carafelix carafelix marked this pull request as ready for review June 18, 2024 23:05
@carafelix carafelix force-pushed the next branch 3 times, most recently from a561d47 to 9a8e7c4 Compare June 18, 2024 23:13
carafelix and others added 24 commits June 18, 2024 20:37
… encapsulate related logic, remove the use of ! assertion
- add examples to jsdoc
- correct the jsdoc in setMyCommansParams interface
…ommand that doesn't correspond to the user lang when using localizations
- improve type inference
- change type dependencies to the @grammyjs/types package
@carafelix carafelix merged commit 6faaea8 into main Jun 19, 2024
12 checks passed
@carafelix carafelix deleted the next branch June 19, 2024 00:54
@carafelix carafelix restored the next branch June 19, 2024 00:55
@carafelix carafelix deleted the next branch June 19, 2024 00:55
@carafelix carafelix restored the next branch June 19, 2024 00:55
@carafelix carafelix deleted the next branch June 19, 2024 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants