What's Changed
🐞 Bug Fixes
- Fixed the app crashing after Discord switched to their new i18n system: (3f1c9a7) (by @FedeIlLeone in #654)
- Refactored Replugged’s i18n system to align with
discord-intl
, utilizing new esbuild-compatible tools to load and transform i18n messages. Added a types generator for accurate i18n string typing. - Added support for the
es-419
language (Español, LATAM) and corrected the NaN value in the language user settings.
- Refactored Replugged’s i18n system to align with
- Refactored major portions of the Context Menu API (coremod) for improved readability and reduced type casting: (66f4216) (by @FedeIlLeone in #651)
- Fixed the app crashing when using
useState
React hook on menu items (e.g.MenuCheckboxItem
). - Added support for dynamic
sectionId
andindexInSection
values in menu items, allowing functions to determine their values based on the menu's props. - Updated menu component types to align with the latest app build.
- Fixed the app crashing when using
- Fixed an issue with toasts not being displayed in case an addon fails to enable or disable, due to missing strings or non existent variables (44bbe58) (by @FedeIlLeone in #654)
- Fixed an issue with the watching mode of an addon which would've showed both success and failed toasts in case the reload failed (d92bf84) (by @FedeIlLeone in #654)
- Fixed an issue with the utility function
virtualMerge
to properly handle prototype objects when using the.all()
method, and filter out common Store keys (initialize
andconstructor
) (5afc587) (by @yofukashino in #641) - Fixed an issue after a Discord app update on Linux (1df7737) (by @yofukashino in #650)
📰 Other Changes
- Removed
node-fetch
and@octokit/rest
dependencies, reducing the size of the built main.js by ~60% (~650kb to ~250kb) (8f02573) (by @FedeIlLeone in #654) - Dependencies updates (d92bf84) (by @FedeIlLeone in #654)
Full Changelog: v4.8.2...v4.8.3