Commit graph

530 commits

Author SHA1 Message Date
PalmDevs
5bde44a14c
fix(lib/plugins): compile error because arrow async function 2025-07-21 15:35:06 +07:00
PalmDevs
825f29ce52
chore(lib/plugins): cleanup 2025-07-21 15:33:00 +07:00
PalmDevs
a3ebccf1d6
fix(lib/plugins): resolve dependency graph before pushing nodes to ordered list 2025-07-21 15:32:38 +07:00
PalmDevs
601d5a28f5
feat(lib/plugins): improve types and documentation 2025-07-21 14:45:03 +07:00
PalmDevs
f5ed49d4e2
fix: declare unscoped storage API using decorators instead 2025-07-21 14:06:51 +07:00
PalmDevs
7a365f93c7
fix(lib/plugins/apis): spread descriptors instead of values 2025-07-21 14:05:37 +07:00
PalmDevs
84bb9992f5
feat(lib/plugins): do API decorator filtering 2025-07-21 14:02:00 +07:00
PalmDevs
72035286a9
feat(lib/plugins): cache resolved dependencies 2025-07-21 14:01:21 +07:00
PalmDevs
a1316e720e
fix(lib/plugins): error during preinit stage not being logged 2025-07-20 23:34:52 +07:00
PalmDevs
2bb51b7782
fix(lib/plugins): internal plugins marked ImplicitDependency not being added to head of list 2025-07-20 23:34:31 +07:00
PalmDevs
2e455cf2c5
feat: add ability to decorate plugin APIs, move private properties to WeakMap stores 2025-07-20 23:06:56 +07:00
PalmDevs
78614c1cc9
chore: move SettingRendererConfig patches to lib, refactor how lifecycles are run 2025-07-19 23:23:32 +07:00
PalmDevs
005931e338
fix(lib/discord/types): type props in RouteSettingsItem 2025-07-19 14:01:35 +07:00
PalmDevs
86e02202b6
feat(lib/discord/modules/settings): switch to objects for storage 2025-07-18 23:44:31 +07:00
PalmDevs
feaf1cd194
feat(lib/react/jsx-runtime): switch to objects for storage 2025-07-18 23:44:24 +07:00
PalmDevs
c1f56c7e60
feat(lib/utils/proxy): switch to objects for storage 2025-07-18 23:44:16 +07:00
PalmDevs
d3b754d2cc
feat(lib/plugins): switch to objects for storage 2025-07-18 23:44:08 +07:00
PalmDevs
00638ed845
feat(lib/modules/metro): switch to proper objects for storage 2025-07-18 23:43:59 +07:00
PalmDevs
35ca73f531
fix(lib/discord/modules/settings): refactor and get updated state before replacing in refreshSettingsOverviewScreen 2025-07-18 18:26:17 +07:00
PalmDevs
4670dc0451
feat(lib/utils/discord): change lookupGeneratedIconComponent to use a proper filter 2025-07-18 02:04:01 +07:00
PalmDevs
9c8d55af21
fix(plugins/developer-settings): crash on copy React DevTools version 2025-07-18 01:55:52 +07:00
PalmDevs
96121e31e0
fix(lib/modules/finders/filters): simplify exports type is object checks 2025-07-18 01:55:16 +07:00
PalmDevs
75b026a46c
fix(lib/discord/modules/settings): get rehydrated navigation state in refreshSettingsOverviewScreen 2025-07-18 01:21:37 +07:00
PalmDevs
15499cbdab
fix(lib/discord/types): use StyleProp for component style properties 2025-07-18 01:15:39 +07:00
PalmDevs
bcb82e1f4f
chore: format 2025-07-17 16:55:23 +07:00
PalmDevs
79ce47c2bc
feat(lib/modules/metro): use Map for storing module dependencies for quicker access, rename file 2025-07-17 16:55:08 +07:00
PalmDevs
7359567b3e
feat(lib/types): declare react native intrinsic elements 2025-07-16 20:16:57 +07:00
PalmDevs
4edc6c3821
fix(lib/react/jsx-runtime): fix typings issues 2025-07-16 20:05:20 +07:00
PalmDevs
0095a3e153
feat(lib/plugins): allow accessing react API in preInit 2025-07-16 20:02:18 +07:00
PalmDevs
4f46b5a635
feat(lib/react/jsx-runtime)!: improve types 2025-07-15 22:05:11 +07:00
PalmDevs
ab8e2a5772
fix(lib/discord/modules/settings): fix edge case on renavigation in refreshSettingsOverviewScreen
If a route was replaced before renavigation, renavigation would fail. This commit fixes that issue.
2025-07-14 23:46:28 +07:00
PalmDevs
8d4581f9c1
fix: register start-only plugins during start stage
Previously they were registered on init which may have caused some minor performance issues.
2025-07-14 23:13:52 +07:00
PalmDevs
050b147147
fix(lib/externals/react-native-clipboard): also clean up destructure references 2025-07-14 10:02:52 +07:00
PalmDevs
188e88ae47
fix(lib/utils/proxy): with DBEUG_PROXIFIED_VALUES flag, run factory on next event loop if possible
Prevents an edge case where `proxify` with a cleanup causes subsequent `destructure` calls to error because the assigned value is no longer a proxified value.

See ./lib/externals/src/react-native-clipboard.ts for reference.
2025-07-14 10:02:17 +07:00
PalmDevs
fbc2d0e796
fix(lib/assets): do wait before proxified lookup 2025-07-14 09:54:30 +07:00
PalmDevs
e48e45226f
fix(utils/proxy): accept nested options in destructure 2025-07-14 09:53:06 +07:00
PalmDevs
74fef6a3e4
chore(lib/assets): correct typo, remove useless log 2025-07-13 20:04:42 +07:00
PalmDevs
a98de1ce9d
chore(lib/assets)!: revert 056e082 2025-07-13 19:52:40 +07:00
PalmDevs
ec062a78df
feat(lib/assets): allow using AssetsRegistry during preinit 2025-07-13 19:29:44 +07:00
PalmDevs
c949517e4a
fix(lib/modules/metro): mark module as initializing instead of optimistically marking as initialized during require 2025-07-13 19:22:15 +07:00
PalmDevs
cc7635005b
fix(lib/assets)!: rename exports
`AssetRegistry*` -> `AssetsRegistry*`
2025-07-13 19:20:54 +07:00
PalmDevs
874c074f1e
fix(lib/modules/finders): only run filter again if module is not blacklisted 2025-07-13 19:20:07 +07:00
PalmDevs
996e4f5994
fix(lib/utils/proxy)!: disallow passing type-strings to ProxifyOptions.hint 2025-07-13 19:18:41 +07:00
PalmDevs
c331f1fb84
fix(lib/assets): throw error when accessing uninitialized assets-registry 2025-07-13 18:12:18 +07:00
PalmDevs
96a8d576f4
fix(lib/discord/types): correct AlertModalProps['title'] type 2025-07-13 18:03:12 +07:00
PalmDevs
056e082fdb
feat(lib/assets): add isAssetsRegistryInitialized and onAssetsRegistryInitialized 2025-07-13 15:56:56 +07:00
PalmDevs
6a38136762
fix(lib)!: breaking changes
- Remove `noopFalse` from `@revenge-mod/utils/callback`
- Do not return result from unpatch/undo/unsub functions
- `onSettingsModulesLoaded` from `@revenge-mod/discord/modules/settings` now calls the callback immediately if settings modules are already loaded instead of throwing
2025-07-13 15:53:44 +07:00
PalmDevs
709a944d49
feat(lib/patcher/types): export UnpatchFunction 2025-07-13 15:47:45 +07:00
PalmDevs
37a20160db
fix: do not use emitter to emit error event
Discord's EventEmitter handles the `error` event specially for some reason.
2025-07-13 00:26:22 +07:00
PalmDevs
7bfb703e01
fix(lib/react/jsx-runtime): init patch set when undefined 2025-07-13 00:26:21 +07:00