Commit graph

148 commits

Author SHA1 Message Date
PalmDevs
c8d820cb15
chore(lib/discord): cleanup 2026-08-14 01:50:09 +07:00
PalmDevs
2172bc862b
feat(lib/discord/types): type additional parameters for AlertActionCreators.openAlert 2026-08-13 02:06:10 +07:00
PalmDevs
4247a75567
feat(lib/discord/types): type ActionSheet related exports more accurately 2026-08-13 01:43:43 +07:00
PalmDevs
1df184bc1f
fix(lib/discord/flux/stores): busy wait when withStore can't match anything + minor issues
- Updated `withStore` dependencies filter
- Check if exports are bad within `withStore` and `withStoreName`
2026-08-12 23:17:50 +07:00
PalmDevs
c16dcaa654
feat(lib/discord/types): add expressive Button type 2026-08-12 15:52:18 +07:00
PalmDevs
ecb2cf810b
fix(lib): migrate to new withDependencies APIs 2026-08-12 15:47:36 +07:00
PalmDevs
9258695ec7
feat(lib/modules/finders)!: initialized boolean for filter predicates + remove FilterFlag and weird assumptions + fix partial matches causing modules skip in lookup 2026-08-12 01:12:48 +07:00
PalmDevs
51647ef513
fix(lib/discord): TextStyleSheet types and export in Design 2026-08-04 23:41:13 +07:00
PalmDevs
9a10e9d509
fix(lib/modules): don't make assumptions about what consumers are filtering 2026-08-02 16:57:18 +07:00
PalmDevs
752f3b1c7e
fix(lib/discord/design): improve perf for Design filter 2026-08-01 15:31:33 +07:00
PalmDevs
acdf865cc7
fix(lib): improve Discord-related filtering 2026-08-01 14:49:20 +07:00
PalmDevs
944dbb6838
feat: improve recovery mode + small lib additions
Improved Recovery Mode features generally:
- Ability to view and modify saved states while not actually running any additional plugins
- Better Recovery Mode banner display
- Enter Recovery Mode option in Revenge Settings UI
- Fixed freeze detection false positives

New APIs:
- lib/discord: `disabled` in `DiscordModules.Components.FloatingActionButtonProps`
- lib/modules/native/app: new submodule with `reloadApp()` method

Fixes:
- Use `reloadApp()` instead of `BundleUpdaterManager.reload()`
2026-08-01 01:51:34 +07:00
PalmDevs
c49f3eb471
fix(lib/discord/common)!: split to own submodules + don't restrict everything to init+ 2026-07-31 14:51:15 +07:00
PalmDevs
217617a663
fix(plugin/settings): remount instead of recomputing SettingHookHarness memos
Recomputing causes a React crash because the harness calls additional hooks for every setting.
When we add/remove setting items, hooks are not called the same amount.

React expects the same amount of hooks to be called after each render, so this breaks adding settings items while in Settings.
We can remount it instead to avoid this crash.
2026-07-31 03:26:04 +07:00
PalmDevs
1c58b7a5a1
chore: use AnyFunction from lib everywhere 2026-07-31 02:38:45 +07:00
PalmDevs
10371ff000
fix: settings UI refreshing 2026-07-31 02:38:41 +07:00
PalmDevs
bb0919ef0a
fix(lib/discord): bring back support for <341202 2026-07-29 23:18:11 +07:00
PalmDevs
6bdff25482
feat: better types + typegen output
- Add dependencies to types package.json
- Make temp file names deterministic
2026-07-29 22:15:23 +07:00
PalmDevs
2e944b0f25
fix: support 341202+
First Android Static Hermes version incoming, with Metro issues.

- scripts/plugins/hermesc: use hermes-compiler
- plugins/settings: get React Native version correctly
- lib/modules/finders/filters: support null ID in DependencyMap for `withDependencies`
- lib/discord: update filters for 341202+
2026-07-29 21:48:18 +07:00
PalmDevs
a629b2ad44
fix(lib/discord/types): export API types to expose plugin API decoration 2026-07-26 16:13:13 +07:00
PalmDevs
f97c273bef
feat(lib/discord/modules/settings): allow adding setting items to sections with index and by lambda 2026-07-19 15:36:22 +07:00
PalmDevs
eb3f03fb60
feat(lib/discord): add types for FloatingActionButton 2026-07-17 21:10:29 +07:00
PalmDevs
f1b96648e2
fix(lib/discord/actions): update filters for 334204+ 2026-06-13 01:00:19 +07:00
PalmDevs
3ca2f8742d
fix: support Discord's settings refactor
I assume this happened on 330201, but I'm unsure.

This also drops support for any older versions that may not have this change.
2026-05-13 01:22:39 +07:00
PalmDevs
5043b026ad
fix(lib/discord): update filters for 330201+ 2026-05-13 01:22:33 +07:00
PalmDevs
a17706327f
fix(lib/discord): update filters for 328200+ 2026-04-28 10:15:54 +07:00
PalmDevs
5c892bb8a1
fix(lib/plugins/apis): set most APIs during pre-init phase 2026-04-07 22:03:13 +07:00
PalmDevs
49fe4232c7
fix(lib/discord): update filters for 325201+ 2026-04-07 15:57:48 +07:00
PalmDevs
bd98745589
fix(lib/discord): clean up filters 2026-04-07 15:23:24 +07:00
PalmDevs
6550e03465
fix(lib/discord/design): update FormSwitch filter for 321203+ 2026-03-14 19:52:25 +07:00
PalmDevs
5d379b1652
fix(lib/discord/modules/settings): correct filter for SettingListRenderer on 319203+ 2026-02-26 17:11:20 +07:00
PalmDevs
8f87048695
fix(lib/discord/common): correct Constants filter 2026-02-25 22:09:31 +07:00
PalmDevs
df60eb5272
fix: update generated API types 2026-01-25 11:04:52 +07:00
PalmDevs
c1a7ddbd44
fix(lib/discord): correct AppStartPerformance filter 2026-01-24 18:01:48 +07:00
PalmDevs
d8897d8c4d
feat(lib/discord/common): expose and switch filters to use ImportTrackerModuleId 2026-01-17 20:54:14 +07:00
PalmDevs
a87d4ced5c
fix(lib/modules)!: decouple discord-specific helpers to lib/discord 2026-01-17 20:41:14 +07:00
PalmDevs
b5b3033171
fix(lib/discord/design): update FormSwitch filter for 307201+ 2025-11-21 14:13:26 +07:00
PalmDevs
6c63ba5a31
fix: settings patches and definitions for 306203+ 2025-11-13 16:55:23 +07:00
PalmDevs
1a8704fae6
fix(lib/discord): module filters for 304203+ 2025-11-01 20:09:44 +07:00
PalmDevs
772bd2a283
fix(lib): use new nested withDependencies filters everywhere 2025-10-29 19:34:38 +07:00
PalmDevs
b6d1cff9f5
feat(lib/modules)!: filter scopes + fixes and improvements
# Features

- Filters now control what types of modules they see.
- Filters can be reinstantiated via `.new()`
- Added the `Not` type in @revenge-mod/utils/types

# Fixes

- Pitfall with `lookupModules` and `withDependencies` without `uninitialize: true` fixed.
- Filter type-metadata is now stored in a single object instead of multiple parameters.
- Incorrect caching behavior for `lookupModules` where cache always reports not found if you finish the iterator.
- Also attempt to report not found when using `lookupModule`.
2025-10-28 01:01:17 +07:00
PalmDevs
f61661ac27
fix(lib/discord/design): correct types for Design and TableRow 2025-10-26 13:55:22 +07:00
PalmDevs
a2f330e7e2
chore: remove #lib syntax
Autocomplete is annoying.
2025-10-22 22:24:26 +07:00
PalmDevs
86cf81ca56
fix(lib/discord/types): add missing justify and align prop for Stack 2025-10-22 22:13:47 +07:00
PalmDevs
38becc38a1
fix(lib/discord/types): add missing props for SettingsListRenderer.SettingsList 2025-10-18 19:05:52 +07:00
PalmDevs
17fd1ec0bd
fix(plugins/settings): correct path for SettingsNavigator patch 2025-10-13 00:45:07 +07:00
PalmDevs
d0ee081ac5
fix(lib): update filters 2025-10-12 01:27:53 +07:00
PalmDevs
dba76a9f81
feat(lib): proper caching for assets and modules lib 2025-09-16 01:02:13 +07:00
PalmDevs
e389a6b61b
fix(lib/discord/patches/flux): bind function instead of using Reflect.apply
It may result in better performance.
2025-09-10 00:53:51 +07:00
PalmDevs
3a57fe820c
fix(lib): support filtering for 297202 2025-09-04 01:29:16 +07:00