Commit Graph

14 Commits

Author SHA1 Message Date
Claude 2c18b734ee feat: replace async crypto with sync Rust WASM (port of Baileys b5c1741)
Surgically applies the changes from WhiskeySockets/Baileys commit b5c1741
("feat: replace async crypto with sync Rust WASM" by jlucaso1) while
preserving all custom modifications (interactive messages, carousels,
albums, sticker packs, native flow buttons, Prometheus metrics, etc).

Changes:
- Replace async hkdf/md5 (Web Crypto API) with sync re-exports from whatsapp-rust-bridge@0.5.2
- Replace LTHash class with LTHashAntiTampering from WASM
- Replace mutationKeys() with expandAppStateKeys() from WASM
- Remove ~25 unnecessary await keywords across crypto call chain
- Update Buffer→Uint8Array types for MediaDecryptionKeyInfo and internal crypto functions
- Make noise handshake, media retry encrypt/decrypt, and reporting token generation synchronous

Performance impact:
- Eliminates Promise overhead on every HKDF/LTHash operation
- Significant improvement during app state sync (hundreds of mutations per reconnection)
- Sync crypto reduces event loop pressure under high session load

Custom code preserved (zero conflicts):
- messages-send.ts: All interactive message, carousel, album, sticker pack logic intact
- Types/Message.ts: All custom types (NativeFlowButton, Carousel, Album, etc.) intact
- All Prometheus metrics, circuit breakers, session TTL logic intact

https://claude.ai/code/session_01Ffc5YrPuqv8N9SwEuSM8mr
2026-02-08 20:49:18 +00:00
Claude 24f09b7b1e chore: update lockfiles from dependency resolution
Lockfiles regenerated during structural audit of the repository.

https://claude.ai/code/session_01Ffc5YrPuqv8N9SwEuSM8mr
2026-02-08 18:29:38 +00:00
Claude 43ece09fe9 feat(metrics): integrate prom-client for native Prometheus support
- Add prom-client ^15.1.3 as production dependency
- Migrate Counter class to use prom-client internally
- Migrate Gauge class to use prom-client internally
- Migrate Histogram class to use prom-client internally
- Update getMetricsOutput() to use prom-client's native metrics()
- Update contentType() to use prom-client's contentType
- Enable collectDefaultMetrics() for Node.js system metrics
- Maintain backward compatibility with existing API

Benefits:
- Native OpenMetrics format export
- Proper histogram bucket handling
- Default Node.js metrics (memory, CPU, event loop, GC)
- Better integration with Grafana/Prometheus ecosystem
2026-01-20 12:37:17 +00:00
Claude f1bee96e68 chore: update lock files 2026-01-20 02:32:15 +00:00
Adhiraj 426dbc255d changes 2020-09-02 13:04:49 +05:30
Adhiraj 8aa3dff6e5 update package 2020-08-30 01:20:03 +05:30
dependabot[bot] db6f5c356d Bump lodash from 4.17.15 to 4.17.20
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.20.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.20)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-24 17:54:04 +00:00
Adhiraj e2372bf60b committed package-lock.json + logout changes 2020-08-24 23:23:23 +05:30
Adhiraj 2dad372e75 Unread fix + regen QR code changes + Browser message decoding 2020-07-10 12:27:18 +05:30
Adhiraj Singh 4d83f6dd53 Typescript update 2020-07-01 13:25:08 +05:30
Adhiraj Singh e50c1cbaf1 Initial Conversion to typescript 2020-06-30 20:57:49 +05:30
Adhiraj 117828ebd8 Updated packages 2020-05-31 13:13:21 +05:30
Adhiraj 9ea4b0b381 added media send/recieve, extended text messages send/recieve 2020-04-16 16:20:48 +05:30
Adhiraj 5bd524ca1f Initial commit 2020-03-16 16:06:30 +05:30