Commit Graph

1962 Commits

Author SHA1 Message Date
Francisco Pessano
5d27a70d6e fix: move TypeScript compilation to prepack and prepare scripts 2025-08-31 23:27:07 +00:00
Francisco Pessano
d34d9fa121 fix: add postinstall script to run TypeScript compiler after installation 2025-08-31 23:22:24 +00:00
Francisco Pessano
1a178b392f fix: remove redundant prepack and prepare scripts from package.json 2025-08-14 17:44:37 +00:00
Francisco Pessano
7e676ae9a8 fix: update socket type exports to 'any' for improved flexibility 2025-08-14 17:42:51 +00:00
Francisco Pessano
0104bf87fe fix: add 'any' return type to socket creation functions for improved type safety 2025-08-14 17:35:08 +00:00
Francisco Pessano
8a9fec3281 fix: add 'as const' assertion to socket return types for improved type safety 2025-08-14 17:26:49 +00:00
Francisco Pessano
16633c51ea fix: update TypeScript version and ensure proper command usage in package scripts 2025-08-14 17:03:10 +00:00
Francisco Pessano
7bb958416e fix: improve readability by formatting importKey options in hkdf function 2025-08-14 16:50:22 +00:00
Francisco Pessano
b0a973e24c fix: ensure proper type casting for cache and message handling 2025-08-14 16:50:03 +00:00
Francisco Pessano
84fcd13907 chore: update dependencies and add type definitions for long, node-cache, qrcode, and uuid 2025-08-14 16:39:15 +00:00
Francisco Pessano
93236f6c6f yarn -> pnpm 2025-08-14 16:27:43 +00:00
Davidson Gomes
748ea48478 Merge branch 'WhiskeySockets:master' into master 2025-07-09 10:59:45 -03:00
DevAstro
44c5e16c05 add owner country code attribute (#1565)
name says it all
2025-07-05 23:59:24 +03:00
DevAstro
3cdb0f4dd9 Bump Jimp && Sharp (#1575)
* Bump Jimp && Sharp

Upgrade and use the latest version of jimp and sharp libraries

* lint
2025-07-05 23:58:57 +03:00
Rajeh Taher
719a57b275 Added message range to the clear chat action (#1534)
* chat-utils: Added message range to the clear chat action

* Chat: add field to type (thanks @Kiss from discord)

* Update src/Utils/chat-utils.ts
2025-07-05 23:58:44 +03:00
João Lucas de Oliveira Lopes
92b4c68de0 fix: Handle data: URIs in getStream to prevent server crash (#1524) 2025-07-04 19:25:19 -03:00
Cassio Santos
4ccec1f6ce fix: do not throw error on socket closed while opening (#1576) 2025-07-04 17:31:46 -03:00
fwidjaja94
34188a3a22 fix: remove chat attribute deletions in history.ts (#1590) 2025-07-04 17:29:04 -03:00
Pedro Dias
691b40a8f7 uSync error for disappear_mode (#1589)
Fixed the problem that occurred when pushing the disappear_mode.
2025-07-04 17:28:52 -03:00
Cassio Santos
9b5afc8c6b fix: add lid sutff to message.key type (#1586)
* fix: add lid sutff to message.key type

* feat: add view once information to msg key
2025-07-03 17:08:58 -03:00
João Lucas de Oliveira Lopes
8391c02e0b [READY FOR MERGE] Implement newsletter (#1532)
* feat: implement basic newsletter functionality with socket integration and event handling

* feat: enhance media handling for newsletters with raw media upload support

* feat: working updatePicture, removePicure, adminCount, mute, Unmute

* fix: fetchMessages

* chore: cleanup

* fix: update newsletter metadata path and query ID for consistency. newsletterMetadata works now

* chore: enhance newsletter metadata parsing and error handling

* fix: correct DELETE QueryId value in Newsletter.ts

* chore: split mex stuffs to own file

* chore: remove as any
2025-06-30 23:22:09 -03:00
devlikeapro
5ffb19120d Show poll on the sender device (#1567)
fix #675
2025-06-30 16:15:11 -03:00
DevAstro
a4b96ed37e [READY FOR MERGE] Add support for custom profile picture dimensions (#1563)
* Add support for custom profile picture dimensions

The updateProfilePicture and generateProfilePicture functions now accept an optional dimensions parameter, allowing custom width and height for profile pictures. This provides more flexibility for image resizing beyond the default 640x640 size.

* minor corrections

Replaces 'w' and 'h' with 'width' and 'height' in profile picture related functions for improved clarity and consistency.

* fix lint
2025-06-30 16:04:37 -03:00
João Lucas de Oliveira Lopes
591c98f3e6 fix: validate media URL before downloading content from message (#1560) 2025-06-30 16:02:40 -03:00
Davidson Gomes
f1bb8c62bf Merge pull request #4 from nathanbritonsb/master
Fix: LinkPreview
2025-06-27 09:57:29 -03:00
Nathan Brito
ec32ed7614 fix LinkPreview 2025-06-26 12:38:28 -03:00
João Lucas de Oliveira Lopes
210338c747 fix: handle potential null values when creating Buffers from signing keys (#1558) 2025-06-25 14:58:13 -03:00
Alι Aryαɴ
42112ac389 chore: add participantPn to WAMessageKey (#1540) 2025-06-25 09:35:56 -03:00
DevAstro
60577cf8d3 allow custom pairing code (#1550) 2025-06-25 09:05:12 -03:00
João Lucas de Oliveira Lopes
38b4ada997 fix: handle string format for signing keys in SenderKeyState (#1552) 2025-06-24 18:50:57 -03:00
ganglike
89b51e4040 fix: correct spelling errors in README.md (#1541)
- Fix Chromimum to Chromium on line 31
2025-06-24 17:54:17 -03:00
DevAstro
7bf06ed3f5 Add PNPM install command to PR comment workflow (#1549)
Included a PNPM add command alongside npm and yarn in the PR comment workflow to support projects using PNPM for dependency management.
2025-06-24 17:54:01 -03:00
Wender Teixeira
83a6956b44 fix disconnect error when using sendPresenceUpdate with LID (#1545)
* chore: change version web

* fix: enhance pairing response validation and adjust HMAC handling for hosted devices

* refactor: remove unused 'from' attribute in chatstate message

* feat: update chatstate message to conditionally set 'from' attribute based on server type
2025-06-24 17:51:46 -03:00
vini
8b6ea34b07 fix: Connection error when add @ at start of your name (#1536) 2025-06-21 12:37:36 -03:00
João Lucas de Oliveira Lopes
482db6edc5 refactor: migrate WASignalGroup to TypeScript and remove deprecated files (#1320)
* refactor: migrate WASignalGroup to TypeScript and remove deprecated files

* chore: remove WASignalGroup JavaScript files from package.json

* refactor: update SenderKeyStore and SenderKeyStateStructure interfaces to export and add deserialize method. Fix types

* chore: lint issue

* refactor: improve constructor type checking and getSeed method in SenderChainKey

* refactor: update key handling to use Buffer for improved consistency

* signal: consistent naming and dir structure + add some missing types

* fix: lint issues

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-06-21 18:02:15 +03:00
Borewit
f404147736 Use parseFile for audio file paths instead of converting to stream (#1529)
When extracting duration from an audio file provided as a file path,
use music-metadata's parseFile method instead of manually creating a
read stream and using parseStream.

parseFile utilizes random access, which can significantly improve
performance over streaming in many cases. However, actual speed gains
depend on the file format and the structure of tag headers.

Co-authored-by: Borewit <Borewit@users.noreply.github.com>
2025-06-20 13:11:29 +03:00
João Lucas de Oliveira Lopes
f8a538eee2 chore: update whatsapp version, tokens and increment dict version (#1366)
* chore: update whatsapp version, tokens and increment dict version

* revert: baileys version bump
2025-06-18 11:55:11 -03:00
Gustavo Quadri
cf514fa8d7 Fix Removed Reactions Events: Emit a Socket Event in "messages.reaction" (#1371)
* fix: emit event with empty reactions

* chore: fix lint

---------

Co-authored-by: Cassio Santos <cassio@economicros.com.br>
2025-06-18 08:30:19 -03:00
Wender Teixeira
e2ce275949 fix: reading qr code with hosted connection (#1520)
* chore: change version web

* fix: enhance pairing response validation and adjust HMAC handling for hosted devices
2025-06-18 08:10:22 -03:00
devlikeapro
b8464d3665 Add lid to Contact - contact sync, history sync, group participants (#1472) 2025-06-18 08:08:09 -03:00
Cassio Santos
6b4dce897d feat: add lid to message key (#1510)
* feat: add lid to message key

* chore: review suggestion
2025-06-11 08:39:19 -03:00
Nurutomo
99bbafeae5 feat: extra metadata on groupMetadata (#1374) 2025-06-10 08:25:08 -03:00
canove
bd53572e37 chore: fix lint 2025-06-09 23:14:31 -03:00
Cassio Santos
9b781665a0 Merge pull request #1389 from WhiskeySockets/fix-eslint-prettier-editorconfig-rules
Fix eslint prettier editorconfig rules
2025-05-28 22:53:33 -03:00
canove
ae0de94307 chore: fix format 2025-05-28 22:44:21 -03:00
canove
eb6c6c8ba9 Merge branch 'master' of https://github.com/WhiskeySockets/Baileys into fix-eslint-prettier-editorconfig-rules 2025-05-28 22:42:28 -03:00
github-actions[bot]
68d057f34f chore(release): v6.7.18 2025-05-28 08:23:03 +00:00
vini
d7eb653d85 docs: return temporally the old README (#1471) 2025-05-28 11:21:03 +03:00
Rajeh Taher
7cdb9660e9 Create README.md 2025-05-28 11:20:47 +03:00
Wender Teixeira
73704064a0 chore: change version web (#1473) 2025-05-28 11:11:38 +03:00