Commit graph

73 commits

Author SHA1 Message Date
PalmDevs
3c6aa155ca
feat(lib): switch to typeof for better performance 2025-07-22 19:00:20 +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
c1f56c7e60
feat(lib/utils/proxy): switch to objects for storage 2025-07-18 23:44:16 +07:00
PalmDevs
4670dc0451
feat(lib/utils/discord): change lookupGeneratedIconComponent to use a proper filter 2025-07-18 02:04:01 +07:00
PalmDevs
bcb82e1f4f
chore: format 2025-07-17 16:55:23 +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
e48e45226f
fix(utils/proxy): accept nested options in destructure 2025-07-14 09:53:06 +07:00
PalmDevs
996e4f5994
fix(lib/utils/proxy)!: disallow passing type-strings to ProxifyOptions.hint 2025-07-13 19:18:41 +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
0746db3648
chore(lib/plugins): move utils assignments to own lib 2025-07-11 17:55:54 +07:00
PalmDevs
4b2a612374
chore(lib/utils): do not pluralize submodules 2025-07-11 17:33:06 +07:00
PalmDevs
a2c97abd3b
feat(lib/utils/objects): export original Object.freeze 2025-07-11 17:16:33 +07:00
PalmDevs
8bd9f4f8b2
fix(lib/storage): allow imports during preinit 2025-07-11 16:58:53 +07:00
PalmDevs
c66dace21b
chore: cleanup questionable code 2025-07-11 15:53:12 +07:00
PalmDevs
2b05b34a28
chore: lint and format 2025-07-11 01:15:50 +07:00
PalmDevs
9e6614a1bd
chore: lint and format 2025-07-10 21:26:27 +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
84c6edcfe2
fix: revert using Object.defineProperty instead of delete
Apparently it's somewhat faster to `delete` and set, than to use Object.defineProperty
2025-07-10 12:43:05 +07:00
PalmDevs
aacb038d09
fix(lib/utils/objects): use Object.defineProperty instead of delete 2025-07-09 19:09:05 +07:00
PalmDevs
7645bfdf61
chore: new DEBUG_WAITS build flag, improve DBEUG_LOOKUPS build flag logs, other dev env fixes 2025-07-08 11:24:48 +07:00
PalmDevs
e9fedc8db4
feat: small performance wins
- Delay initializing unimportant parts until index module (ID 0) is required
- Lower memory usage by interacting with Metro's internal module list directly
2025-07-07 20:00:20 +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
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
87521ddd5e
feat(lib/utils/objects): add defineLazyProperties 2025-06-16 08:59:33 +07:00
PalmDevs
8851f6867b
fix(scripts/build): turn on DEBUG_MODULE_LOOKUPS build flag if dev build 2025-06-15 17:57:55 +07:00
PalmDevs
0ad8e79bac
chore(lib/utils): remove generators 2025-06-14 22:09:59 +07:00
PalmDevs
6594fc6fa1
chore(lib/utils): remove logger 2025-06-14 21:48:52 +07:00
PalmDevs
285e87fe1b
feat(lib/utils/callbacks): add noop 2025-06-14 17:54:04 +07:00
PalmDevs
1272ed9e39
chore: remove blocks from arrow functions where not needed 2025-06-14 17:53:28 +07:00
PalmDevs
7953056b94
chore(lib/utils/errors): make getCurrentStack a little more performant 2025-06-13 22:47:28 +07:00
PalmDevs
e57fd88846
chore: add build flag to debug proxified values 2025-06-12 23:24:55 +07:00
PalmDevs
b4923296e5
feat(lib/utils/errors): add getCurrentStack 2025-06-12 23:23:16 +07:00
PalmDevs
38d5aa3833
feat(lib/utils/react): get type from predicate in findInReactFiber 2025-06-10 22:14:26 +07:00
PalmDevs
5ec7e9bf5c
fix(lib/utils/proxy)!: retain function references by default with optional method binding in options 2025-06-10 22:13:08 +07:00
PalmDevs
17307bb90a
feat(lib/utils/trees): extract predicate type from filter in findInTree 2025-06-09 19:41:51 +07:00
PalmDevs
f2d0602949
feat(lib/utils/types): export ExtractPredicate 2025-06-09 19:41:50 +07:00
PalmDevs
5b3a8bc5ab
feat: see commit description
- Shim React and React Native
- Move src/components to lib/components
- Exposed lib/components to `unscoped.components`
- scipts/build: Properly set footer sourceURL
- plugins/developer-settings: Debounce searching in Asset Browser
- plugins/settings: Debounce searching in Plugins
2025-06-08 19:01:33 +07:00
PalmDevs
f453a82dab
feat(lib/utils/proxy): allow passing any hint to proxify 2025-06-08 18:48:43 +07:00
PalmDevs
e510eea36e
feat(lib/assets)!: set metadata on asset objects, remove redundant APIs, add new APIs and parameters 2025-06-07 15:14:28 +07:00
PalmDevs
2b905801c3
chore: format 2025-06-03 16:24:58 +07:00
PalmDevs
6d1ac67bff
feat(utils/objects): add defineLazyProperty 2025-06-02 15:48:06 +07:00
PalmDevs
291a4dfaa4
feat(lib/utils/types): add DeepPartial 2025-05-22 01:09:21 +07:00
PalmDevs
4df920009e
feat(lib/utils/objects): add isObject and mergeDeep 2025-05-22 01:09:04 +07:00
PalmDevs
2f71d92417
feat(util/promises): add sleepReject 2025-05-19 02:20:22 +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
8a8bbf7c8a
feat(lib/utils): export promises 2025-05-10 18:18:08 +07:00
PalmDevs
47e10b3be0
feat(utils/proxy): add isProxified 2025-05-10 18:13:21 +07:00
PalmDevs
0202254e7f
feat(lib/utils): make lookupGeneratedIconComponent more versatile 2025-05-10 01:15:21 +07:00
PalmDevs
ca7ef6ea1a
feat(lib)!: refactor discord, add export utils/discord 2025-05-09 21:52:43 +07:00