Claude
7e88ddb858
fix(types): remove non-null assertions across 14 files
...
Files fixed:
- messages-recv.ts: 58 assertions → null guards, meId extraction, optional chaining
- process-message.ts: 38 assertions → remoteJid/participant guards, proto field checks
- chat-utils.ts: 31 assertions → proto field validation with Boom errors
- messages-send.ts: 20 assertions → meId extraction, participant guards
- chats.ts: 15 assertions → me guard, firstChild guard, jid guards
- messages.ts: 14 assertions → originalFilePath guard, key guards
- groups.ts: 12 assertions → attrs fallbacks with ??
- validate-connection.ts: 9 assertions → grouped proto field validation
- generics.ts: 1 assertion → versionLine guard
- history.ts: 2 assertions → key guards
- libsignal.ts: 1 assertion → deviceId guard
- sender-key-message.ts: 3 assertions → proto guards
- UsyncBotProfileProtocol.ts: 2 assertions → attrs guards
- example.ts: 3 assertions → optional chaining
https://claude.ai/code/session_01E2cfX1N3sJgCJBTvzGazSG
2026-02-09 00:05:13 +00:00
Claude
3d4ba16dc5
fix(example): correct logger parameter order and fix wrong event
...
Address PR #38 review comments:
- Fix contacts.upsert logging wrong event (was message-receipt.update)
- Fix chats.delete logger params order (object, message)
- Fix group.member-tag.update params order and remove redundant JSON.stringify
Follows pino logger convention: logger.method(object, message)
2026-01-22 20:42:34 +00:00
Claude
b69f6c6b6b
example: use structured logging instead of console.log
...
Refactor example.ts to use pino logger with structured data:
- Replace all console.log with logger.debug/fatal
- Use objects for data instead of string concatenation
- Add contacts.upsert event handler
- Improves log filtering and searchability
2026-01-22 20:03:32 +00:00
Rajeh Taher
5b5ac85443
example: revamp example and add options for unit tests
2026-01-18 17:53:09 +02:00
Rajeh Taher
c4c22c9628
example: customizable socket URL
2026-01-18 17:26:17 +02:00
Rajeh Taher
de6432cf5a
example: improve ping-pong
2026-01-18 17:17:50 +02:00
Matheus Filype
250477497d
Add Feature LabelMember (Based on #2164 ) ( #2198 )
...
* fix: improve message resend logic by adding checks for message IDs
* Revert "fix: improve message resend logic by adding checks for message IDs"
This reverts commit c03f9d8e6fc6cbfbb9d1f8f67c169700e704213d.
* feat: add group member label update functionality and event emission
* feat: refactor updateMemberLabel function for improved readability
* feat: use optional chaining for label association message in processMessage
* feat: add updateMemberLabel to makeMessagesSocket for enhanced functionality
* fix: correct log message for group member tag update event
Co-authored-by: FgsiDev
2025-12-19 22:00:48 +02:00
George Hazan
ba32ef9110
let's make the example working ( #2017 )
2025-11-05 23:28:03 +02:00
Rajeh Taher
2989bccb61
wam: cleanup
2025-10-10 03:50:38 +03:00
Rajeh Taher
d0f8713247
example: no errors
2025-09-08 23:01:02 +03:00
Rajeh Taher
04d58e76f6
example: multiplex logging
2025-09-08 23:01:02 +03:00
Rajeh Taher
538d3e4da7
move to create instead of fromObject
2025-09-07 14:29:45 +03:00
Rajeh Taher
787aed88b8
project: Move to ESM Modules
2025-07-17 13:54:17 +03:00
Rajeh Taher
64d09c70b4
store: remove built-in store
2025-03-10 17:35:46 +02:00
Jared Wray
588de6ce10
fix: migrating to @cacheable/node-cache as it is maintained ( #1074 )
2025-03-01 18:15:49 +02:00
Rajeh Taher
61a0ff3178
mobile: deprecation.
2024-10-14 03:56:32 +03:00
Rajeh Taher
1f9cfb1cba
PDO protocol (peer data operation): Get more history sync + better message retry mechanism ( #919 )
...
* feat(feature/pdo-sync): initial commit
* feat(feature/pdo-sync): Moved to conventional send functions, exported, patched some errors
* fix(feature/pdo-sync): Linting and more bugsquatting
* chore(feature/pdo-sync): linting done
* feat/fix(feat/pdo-sync): Newsletter decrypt + ack
* merge (#946 )
* fix: profilePictureUrl (#901 )
* Update module to latest version (#926 )
* Update package.json
Update the module to the latest
* Add files via upload
* Fix: Readme use upsert events (#908 )
* Fix: getUSyncDevices (#862 )
* Update messages-send.ts
* Update messages-send.ts
* Update messages-send.ts
* Fix lint
* Fix lint
* fix(master): update linting workflow to node 20 (current LTS)
---------
Co-authored-by: Akhlaqul Muhammad Fadwa <75623219+zennn08@users.noreply.github.com >
Co-authored-by: Rizz2Dev <muhamad.rizki27483@smp.belajar.id >
Co-authored-by: Oscar Guindzberg <oscar.guindzberg@gmail.com >
Co-authored-by: Bob <115008575+bobslavtriev@users.noreply.github.com >
* chore(feature/pdo-sync): final linting
* fix(feature/pdo-sync): make replies optional
* feat(feat/pdo-sync): add <unavailable> handle
* feat(feature/pdo-sync): Fixed the issues with peer messages and implemented some more logic
* fix(feature/pdo-sync): Make progress optional
* fix(feature/pdo-sync): Nullify and defeat Message absent from node if it is resolved immediately
* feat(feature/pdo-sync): Export message absent from node and export PDO request ID with it
---------
Co-authored-by: Akhlaqul Muhammad Fadwa <75623219+zennn08@users.noreply.github.com >
Co-authored-by: Rizz2Dev <muhamad.rizki27483@smp.belajar.id >
Co-authored-by: Oscar Guindzberg <oscar.guindzberg@gmail.com >
Co-authored-by: Bob <115008575+bobslavtriev@users.noreply.github.com >
2024-08-14 12:07:27 +03:00
Kizuno18
3ce0ccb3d8
Pr/627 ( #643 )
...
* Update validate-connection.ts
* Update index.ts
* Update package.json
* Update example.ts
* Update package.json
---------
Co-authored-by: Bob <115008575+bobslavtriev@users.noreply.github.com >
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2024-04-28 14:10:34 +03:00
Rajeh Taher
306e1c1355
WEB WAM IMPLEMENTATION!!!!! ( #708 )
...
* feat(WAM): initial commit
* fix(wam-development): I made a whoopsie
* Update Example/example.ts
Co-authored-by: Javier Cuevas <javiercr@gmail.com >
---------
Co-authored-by: Javier Cuevas <javiercr@gmail.com >
2024-04-28 14:03:24 +03:00
Samuel Scheit
49ab16f592
fix: registration + add captcha support ( #227 )
...
* fix: registration + update mobile version
* feat: add captcha support for registration
* fix: jid protocol address missing device
* fix: linting errors
2023-08-10 12:15:12 +03:00
Alessandro Autiero
c506182035
Finished requestPairingCode
2023-07-16 20:14:17 +02:00
Alessandro Autiero
f498e1e56c
Added requestPairingCode method and handler
...
Fixed typo (trimUndefineds)
Added bytesToCrockford
Replaced advSecretKey with advKeyPair
Added pairingCode prop
Fixed formatting
Added pairing code example
2023-07-16 18:44:17 +02:00
SamuelScheit
c2bff56054
feat: use axios and config.options for registration
2023-05-22 18:04:24 +02:00
SamuelScheit
d9a4dae235
revert: example logger
2023-05-19 10:20:55 +02:00
Samuel Scheit
d60f84a683
Merge branch 'master' into master
2023-05-19 10:13:54 +02:00
Rafael Garcia
3ac29e131d
Slint fixes applied
2023-05-15 09:41:33 -05:00
Rafael Garcia
da96212c2a
chore(labels): update example script
2023-05-14 12:51:53 -05:00
SamuelScheit
ef673f62ca
feat: native-mobile-api
2023-04-20 13:01:11 +02:00
Adhiraj Singh
893fb61f05
chore: update example
2023-03-02 22:44:15 +05:30
Adhiraj Singh
80b9e74066
fix: example
2023-02-21 11:41:04 +05:30
Adhiraj Singh
b2c1cfbf9c
fix: timeout send call
2023-02-01 14:33:14 +05:30
Adhiraj Singh
2e6343f2ea
chore: catch errors in example
2022-11-25 09:04:41 +05:30
Adhiraj Singh
a58b73fba5
feat: allow ignoring jids
2022-11-11 09:31:49 +05:30
Adhiraj Singh
1e24a08f0f
chore: remove legacy example
2022-10-19 17:28:09 +05:30
Adhiraj Singh
d0330d1863
refactor!: cleaner message history sync
...
This is a breaking change,
1. three events (chats.set, contacts.set, messages.set) are now just one `messaging-history.set` event
2. no need to debounce for app state sync
3. added a new "conditional" chat update to allow for correct app state sync despite not having the chat available on hand
2022-09-29 16:32:57 +05:30
Adhiraj Singh
b329c73b20
feat: handle picture change events
2022-09-27 11:28:41 +05:30
Adhiraj Singh
6735263696
feat: add makeCacheableSignalKeyStore util
2022-09-20 12:16:05 +05:30
Adhiraj Singh
7d7249887c
fix: example TypeError
2022-09-20 12:11:56 +05:30
Adhiraj Singh
bed9e384ba
feat: added played receipt
2022-08-04 11:55:35 +05:30
Adhiraj Singh
af1d5f6a01
feat: use store.loadMessage for getMessage in example
2022-07-16 09:42:16 +05:30
Adhiraj Singh
ba486f9367
feat: include chats.delete in example
2022-07-14 11:24:15 +05:30
Adhiraj Singh
7968abb0db
chore: log all messages.upsert
2022-07-04 16:58:18 +05:30
Adhiraj Singh
adc2c9cab9
docs: add a bit more info about events
2022-07-04 11:40:49 +05:30
Adhiraj Singh
5cc58d4aed
feat: add bulk "process" capability to BaileysBufferableEventEmitter
2022-07-04 11:34:41 +05:30
Adhiraj Singh
7421f55daa
feat: implement event buffer for offline msgs
...
!BREAKING_CHANGE
1. this allows all offline notifications to be combined into a batch -- to reduce the number of events being sent out
2. to enable the above, the "message.reaction" event has been made an array. Also removes the need for the "operation" field
3. have also now started processing all events under a single queue to prevent state sync problems
2022-06-27 13:38:29 +05:30
Adhiraj Singh
59652a5368
feat: handle chat deletes + message stars
2022-05-25 12:12:17 +05:30
Adhiraj Singh
06437e182d
feat: add "multi file auth state" implementation
...
1. add multi file auth state since it's far more efficient than single state
2. deprecate single file auth state (please don't use it anymore)
2022-05-22 21:21:35 +05:30
Adhiraj Singh
ae4aa67950
feat: handle call events
2022-05-09 15:00:53 +05:30
Adhiraj Singh
221b95050f
chore: make use of "msgRetryCounterMap" more explicit
2022-05-01 11:44:51 +05:30
Adhiraj Singh
dda909eb05
feat: add "--no-store" + "--no-reply" flags to example
2022-04-13 13:20:43 +05:30