Commit Graph

15 Commits

Author SHA1 Message Date
Claude 4467762a09 chore: update dependencies to latest compatible versions
## Changes

### Production Dependencies
- @hapi/boom: ^9.1.3 → ^10.0.1
  - No API changes, only Node.js 20+ requirement
  - 100% backward compatible API
  - Security patches and improvements

- pino: ^9.6 → ^10.3.1
  - 100% backward compatible API
  - Performance improvements
  - Enhanced TypeScript types
  - Security patches

### Peer Dependencies
- audio-decode: ^2.1.3 → ^2.2.3
  - Bug fixes and improvements
  - Optional dependency

- link-preview-js: ^3.0.0 → ^4.0.0
  - Migrated to standard URL API
  - Better URL handling

### Dev Dependencies
- link-preview-js: ^3.0.0 → ^4.0.0
  - Modern URL parsing
  - Improved redirect handling

## Testing
 All tests passing (27 suites, 583 tests)
 Lint checks passing (0 errors, 239 warnings)
 TypeScript compilation successful
 Build successful

## Breaking Changes
None - all updates maintain 100% backward compatibility.

## NOT Updated (Intentional)
- protobufjs: Kept at ^7.2.4 (WhatsApp protocol compatibility)
- @types/node: Kept at ^20.x (LTS alignment, Node 25 not LTS)
- eslint: Kept at ^9.x (avoid config migration)
- @cacheable/node-cache: Kept at ^1.4.0 (breaking changes in 2.x)

## Motivation
- Security patches
- Performance improvements
- Bug fixes
- Maintain Node.js 20+ compatibility
- Prepare for future updates

https://claude.ai/code/session_015R3U3kiprQiNTTNNt31Sg6
2026-02-14 02:43:07 +00:00
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