Commit graph

76 commits

Author SHA1 Message Date
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
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
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
996e4f5994
fix(lib/utils/proxy)!: disallow passing type-strings to ProxifyOptions.hint 2025-07-13 19:18:41 +07:00
PalmDevs
96a8d576f4
fix(lib/discord/types): correct AlertModalProps['title'] type 2025-07-13 18:03:12 +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
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
4b2a612374
chore(lib/utils): do not pluralize submodules 2025-07-11 17:33:06 +07:00
PalmDevs
fe97059933
feat(lib/modules): cache blacklisted modules 2025-07-11 17:15:49 +07:00
PalmDevs
8bd9f4f8b2
fix(lib/storage): allow imports during preinit 2025-07-11 16:58:53 +07:00
PalmDevs
3ef9f17188
fix(lib/discord/modules/settings): dispatch reset on next paint in if renavigating refreshSettingsOverviewScreen 2025-07-11 15:02:42 +07:00
PalmDevs
78e8a96034
fix(lib/react)!: ReactJsxRuntime -> ReactJSXRuntime
JSX is JavaScript XML, which should be capitalized
2025-07-10 21:23:39 +07:00
PalmDevs
962c818835
fix(lib/discord/common/flux): ignore type error 2025-07-07 19:11:09 +07:00
PalmDevs
d639d31367
feat(lib/discord/common/flux): add caching, and export byStore filter 2025-07-05 13:56:58 +07:00
PalmDevs
075f33f6c6
chore: cleanup 2025-07-05 13:56:52 +07:00
PalmDevs
e83078abc8
feat(lib/discord): correct and add file paths for modules for reference 2025-07-04 22:23:56 +07:00
PalmDevs
2cff8ebf07
feat(lib/modules)!: add new options for lookup finders, include prefix from finders options, make utils functions safe again 2025-07-04 21:38:37 +07:00
PalmDevs
8f0755c4e7
fix: get turbo modules from turbo module proxy 2025-07-02 21:46:13 +07:00
PalmDevs
e714960335
fix(lib): fix type errors 2025-07-01 17:30:53 +07:00
PalmDevs
77f8d62720
fix: improve perf by not returning implicitly 2025-06-17 19:53:58 +07:00
PalmDevs
5171e2cfba
fix(lib): revert bf9e723 partially 2025-06-16 20:20:04 +07:00
PalmDevs
bf9e723e73
chore: update rolldown and use defineLazyProperties to set lazy-loaded plugin APIs 2025-06-16 09:01:50 +07:00
PalmDevs
c8567e1a7c
fix(lib/discord/actions): lookup AlertActionCreators with includeUninitialized 2025-06-14 21:47:59 +07:00
PalmDevs
33bb878c5c
feat(lib/plugins): switch to event-based system 2025-06-14 18:01:39 +07:00
PalmDevs
b1f87967e6
fix(lib/discord/common)!: decapitalize Flux export 2025-06-14 17:59:03 +07:00
PalmDevs
ad256fd9f3
feat(lib/discord/common): export utils 2025-06-14 17:58:20 +07:00
PalmDevs
5e848a6c40
fix(lib/discord/modules/settings): return success status in registerSettingsItems unpatch fn 2025-06-14 17:48:24 +07:00
PalmDevs
56a09807c7
fix(lib/discord/types)!: export DiscordModules.Logger as class 2025-06-14 17:46:07 +07:00
PalmDevs
d5fa40fabd
feat(lib/modules/finders/filters)!: improve filters
- Filter generators now expose a `keyFor` method to generate filter keys.
- Dependency filtering is now more usable
  - Destructure helpers from `byDependencies` instead:
    - `looseDeps` -> `byDependencies.loose`
    - `relativeDep` -> `byDependencies.relative`
  - Nested dependencies check can now be done with relative checks via `byDependencies.relative.withDependencies`
- Dependency filtering is now more performant
  - Relative dependencies are done by bit manipulation instead
  - Reverted from stack system to recursion
  - Skip relative dependencies resolution (there is no need for it)
- Filter keys for `byDependencies` fixed
2025-06-13 23:35:23 +07:00
PalmDevs
dfda3afc68
fix(lib/discord/actions): stricten ActionSheetActionCreators's filter 2025-06-11 23:19:25 +07:00
PalmDevs
af2733ef23
feat(lib/discord/types)!: move DiscordModules.Styles to DiscordModules.Components.Styles 2025-06-11 21:03:06 +07:00
PalmDevs
dba475f072
feat(lib/discord/design): type Design.useTooltip and Design.LayerScope 2025-06-11 21:02:30 +07:00
PalmDevs
726fcd9ba1
feat(lib/discord): fix and improve type definitions 2025-06-11 00:30:36 +07:00
PalmDevs
524a6892cd
feat(lib/discord): add type definitions for Components.NavigatorHeader 2025-06-10 23:15:26 +07:00
PalmDevs
1049f51184
fix(lib/discord/modules/main_tabs_v2): correct exported file path 2025-06-09 20:35:36 +07:00
PalmDevs
b2b1a2bd8d
feat(lib/discord/modules/settings): export refreshSettingsOverviewScreen 2025-06-09 19:46:12 +07:00
PalmDevs
a04cacf9d8
fix(lib): define lazy properties with arrow functions 2025-06-09 19:45:02 +07:00
PalmDevs
0d08d0ad6a
feat(lib/discord/modules): export main_tabs_v2 2025-06-09 19:43:27 +07:00
PalmDevs
0223080f64
feat(lib/discord/common): export Constants 2025-06-09 19:32:03 +07:00
PalmDevs
0ad9454dce
fix: define lazy-loaded APIs without shallow clone 2025-06-06 20:08:25 +07:00
PalmDevs
2b905801c3
chore: format 2025-06-03 16:24:58 +07:00
PalmDevs
3cc039ae73
feat(lib/plugins): refactor discord plugin API as API extensions
The aim is to reduce Discord-specific code in core libraries.
2025-06-02 15:50:29 +07:00
PalmDevs
6d19de566f
chore: format 2025-06-01 13:52:06 +07:00
PalmDevs
5741d7ebbb
fix(lib/discord/types): correct property types for TableRowProps 2025-05-22 02:51:44 +07:00
PalmDevs
8cf107ed12
feat(lib/discord/common/flux): export getStore and byStoreName 2025-05-19 02:19:39 +07:00
PalmDevs
ae8d19db7c
fix(lib/discord/types): correct types for Logger 2025-05-19 02:18:45 +07:00
PalmDevs
37664aaa55
chore: format 2025-05-19 01:43:41 +07:00
PalmDevs
a43cd5d564
feat!: plugins page, tons of API changes, and bug fixes
Plugins
- Settings: Plugins page is now semi-functional
- No Track: Added new plugin
- Developer Settings: Clean up properly
- Logging: Log in preInit stage
- Staff Settings: Add ReloadRequired flags when late-running

@revenge-mod/init
- Moved to the top-level src/index.ts instead

@revenge-mod/modules
- Switch `exports` and `id` parameters in finders APIs
- Lookups now return an array of exports and ID instead of just exports
  - Lookup ID APIs have been removed
- Add `finders.get` helper, a new alternative for `finders.find`
- Corrected documentation for subscription APIs

@revenge-mod/plugins
- Added new APIs for plugins to allow running during pre-init stages
- Added `unscoped.modules.finders.get*`
- Added `unscoped.react.native`

@revenge-mod/react
- native: Added `onRunApplication` and `onRunApplicationFinished`

@revenge-mod/utils
- callbacks: Add `noopFalse`
- promises: Fix `allSettled`
- promises: Add `sleep`
2025-05-18 22:24:48 +07:00
PalmDevs
066f6c9671
fix: remove sparse arrays from lookups 2025-05-15 15:13:19 +07:00