What's Changed
✨ Enhancements
- Add nested settings support to the
useSetting
hook (eb68553) (by @yofukashino in #487) - Add the
byPrototype
filter and its dedicated functions to find modules by prototype (767e2a0) (by @yofukashino in #507) - Add the
byStoreName
filter andwaitForStore
to wait for a module containing a store (cdfedc5) (by @yofukashino in #626) - Add
localStorage
in common modules (a4a6b87) (by @yofukashino in #669) - Add
classNames
in common modules (https://github.com/JedWatson/classnames) (8b992bd) (by @yofukashino in #702) - Enable media permission for content requiring audio/video access (allows to use functions such as
getUserMedia
andgetDisplayMedia
) (aff0c62) (by @yofukashino in #699) - Enable more developer/staff only settings when the experiments setting is turned on; added a new advanced option in settings to control whether to show internal developer tools (e3ca6d9) (by @fedeericodl)
- Show the experiment embed in chat (
dev://experiment/EXP_NAME
) when the experiments setting is turned on (c2784b4) (by @fedeericodl)
🐞 Bug Fixes
- Fixed an issue with the
guilds
common module not having all methods from theGuildsStore
; also expands themessages
common module with all methods from theMessagesStore
(38f04c0) (by @fedeericodl) - Fixed an issue with the
Button
component being undefined (e19f372) (by @fedeericodl) - Fixed an issue with the
TextInput
component being undefined (f3e8904) (by @fedeericodl) - Fixed an issue with our settings not rendering correctly due to recent Discord's CSS variables changes (9e00945) (by @fedeericodl)
- Fixed an issue with our preload script injection which would've tried to load in OpenAsar settings (f3e3f9f) (by @fedeericodl in #698)
- Fixed an issue with new versions of React DevTools where the source link button wouldn't work with patched modules (98dbe34) (by @yofukashino in #696)
📰 Other Changes
- Updated build config to emit PNGs as files instead of data URL (70435a0) (by @yofukashino in #695)
- Use the new
classNames
common module for managing conditionally class names (318e573) (by @fedeericodl) - Dependencies updates (98f456c) (by @fedeericodl)
Full Changelog: v4.9.2...v4.10.0