Gustavo Quadri
0043f8be21
Add: LID support with lid-map and migrations of sessions ( #1694 )
...
* fix: add lid-map logic
* fix: lint and simplified version
* fix: single device migration
* fix: lid map discovery
* fix: lint
* fix: lid migration in socket connection
* fix: lint
* fix: decode-wa-message consistency
* fix: yarn lock
* fix: lint
* fix: retry logic
* fix: logger level
2025-09-07 14:12:24 +03:00
João Lucas de Oliveira Lopes
d878f01efb
new testing proposal ( #1547 )
...
* feat: new testing proposal
* chore: pr review
2025-09-07 14:11:17 +03:00
github-actions[bot]
73d0a5f969
chore(release): v6.7.19
2025-08-31 02:31:24 +00:00
João Lucas de Oliveira Lopes
812e53e4eb
Refactor: Fix Event Buffer Deadlock with State Machine ( #1633 )
...
* feat: implement state machine for chat synchronization and buffer management
* test: Add Jest configuration and tests for connection deadlock handling
- Created a Jest configuration file to set up testing environment.
- Implemented utility functions for creating isolated authentication sessions and mocking WebSocket connections.
- Added a test case to ensure that the connection does not deadlock when history sync is disabled, verifying the correct handling of message events.
* feat: add GitHub Actions workflow for running tests
* chore: sort import lint
* fix: implement timeout handling for AwaitingInitialSync state in chat socket, maybe fix memory leak
* feat: enhance chat synchronization by refining AwaitingInitialSync handling and adding history sync checks
2025-08-07 01:15:41 +03:00
fwidjaja94
d4a42d5217
Update package.json ( #1660 )
2025-07-31 18:29:14 -03:00
αѕтяσχ11
3ba5595d5b
fix: build scripts for windows ( #1616 )
...
**Fix Windows path issue in `build` script**
**Issue**
The `build` script in `package.json` was written as:
```json
"build": "tsc -P tsconfig.build.json && tsc-esm-fix --tsconfig='tsconfig.build.json' --ext='.js'"
```
This works on Unix-based systems (macOS/Linux) but **breaks on Windows**, throwing an error:
```
Error: ENOENT: no such file or directory, open 'C:\path\to\project\'tsconfig.build.json''
```
> The single quotes `'` are treated **literally** on Windows CMD/PowerShell, resulting in a malformed path (e.g., `'tsconfig.build.json'` instead of `tsconfig.build.json`).
**Fixes**
Updated the script to remove single quotes around the `--tsconfig` and `--ext` arguments:
```json
"build": "tsc -P tsconfig.build.json && tsc-esm-fix --tsconfig=tsconfig.build.json --ext=.js"
```
**Result**
```
PS C:\Users\Astro\Documents\GitHub\Baileys> npm run build
> baileys@6.7.18 build
> tsc -P tsconfig.build.json && tsc-esm-fix --tsconfig=tsconfig.build.json --ext=.js
PS C:\Users\Astro\Documents\GitHub\Baileys>
```
2025-07-28 11:41:58 -03:00
Rajeh Taher
b7876da2e5
package: make scripts npm-based
2025-07-20 12:51:17 +03:00
Rajeh Taher
8dc852ee89
proto: fix proto generation, tsc: fix node imports of compiled code
2025-07-19 23:16:35 +03:00
Rajeh Taher
29f0ac83f8
tsc: fix builds & fix type errors
2025-07-19 17:16:07 +03:00
Rajeh Taher
90781ce0f2
eslint: upgrade to version 9 + tests: remove tests
2025-07-18 22:30:50 +03:00
Borewit
241fe3e691
Update to music-metadata from version 11.3.0 to 11.7.0 ( #1607 )
...
Remove `with { 'resolution-mode': 'import' }` in type import.
Co-authored-by: Borewit <Borewit@users.noreply.github.com >
2025-07-17 15:20:38 +03:00
Borewit
df303c8d43
Update to music-metadata from version 7.12.3 to 11.3.0 ( #1355 )
...
Co-authored-by: Borewit <borewit@users.noreply.github.com >
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2025-07-17 14:25:28 +03:00
Rajeh Taher
787aed88b8
project: Move to ESM Modules
2025-07-17 13:54:17 +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
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
canove
bd53572e37
chore: fix lint
2025-06-09 23:14:31 -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
canove
21e2fac339
chore: add temporary proto extract
2025-05-21 12:17:57 -03:00
github-actions[bot]
e565e8e551
chore(release): v6.7.17
2025-05-15 20:44:37 +00:00
canove
fa706d0b50
chore: format everything
2025-05-06 12:10:19 -03:00
canove
04afa20244
chore: adjust prettier and eslint config
2025-05-06 11:47:35 -03:00
canove
8aee55bc83
chore: add prettier and editorconfig
...
chore: update deps
2025-05-06 11:19:59 -03:00
João Lucas de Oliveira Lopes
a4aad45343
chore: update package.json to include TypeScript and JavaScript files from WAProto directory ( #1321 )
2025-04-09 02:53:47 +03:00
João Lucas de Oliveira Lopes
c2cf49cd68
refactor: remove unused dependencies and clean up type exports ( #1319 )
2025-04-09 02:51:33 +03:00
Rajeh Taher
2fdabb7f38
docs: downgrade markdown gen to prevent incompatibility
2025-03-18 00:57:23 +02:00
Rajeh Taher
8a54c81b94
Merge remote-tracking branch 'origin/master'
2025-03-18 00:54:13 +02:00
Rajeh Taher
d202241a6f
docs: generate markdown
2025-03-18 00:54:07 +02:00
João Lucas de Oliveira Lopes
88e9cfa4e3
refactor: replace async-lock with async-mutex ( #1304 )
...
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2025-03-15 00:45:30 +02:00
Rajeh Taher
63cc75d78e
docs: fix docs generation
2025-03-14 23:55:42 +02:00
Rajeh Taher
1c2af09b03
socket,config: deprecate printQRInTerminal option
...
This was done to reduce dependencies
2025-03-10 15:08:50 +02:00
Rajeh Taher
40b8cc5383
package: add async-mutex dep
...
This will allow us to clear Baileys of any race conditions on async workflows
2025-03-09 01:28:21 +02:00
Rajeh Taher
bb291ca6ed
package: update deps, audio-decode peer
...
Also removed libphonenumber-js library for efficiency
2025-03-08 23:55:01 +02:00
Rajeh Taher
76235c5e0d
Merge remote-tracking branch 'origin/master'
2025-03-06 21:06:29 +02:00
Rajeh Taher
f92291bb8e
crypto: improve older Node version and browser compatibility
2025-03-06 21:01:26 +02:00
Rajeh Taher
e7772a8e9a
package: missing field for node ver validation
2025-03-06 07:14:18 +02:00
Rajeh Taher
396297c897
package!: set new Node version minimum
...
breaking change
2025-03-06 04:24:04 +02:00
github-actions[bot]
9a175a6a08
chore(release): v6.7.16
2025-03-04 03:07:01 +00:00
Rajeh Taher
ce2820a590
package: revert version tag
2025-03-04 05:04:23 +02:00
github-actions[bot]
93b60dede5
chore(release): vv6.17.16
2025-03-04 02:32:44 +00:00
github-actions[bot]
2ecaaea153
chore(release): v6.7.15
2025-03-02 10:11:31 +00:00
github-actions[bot]
7466a8facb
chore(release): v6.7.14
2025-03-01 16:37:54 +00:00
João Lucas de Oliveira Lopes
8083754621
refactor: turn hkdf functions to async and remove extra deps ( #1272 )
...
* refactor: remove futoin-hkdf dependency and update hkdf implementation
* refactor: use crypto subtle and update functions to async
---------
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2025-03-01 18:31:48 +02:00
Claudemir Todo Bom
e6f98c3902
update pino dependency - fix #1249 ( #1250 )
...
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2025-03-01 18:31:30 +02:00
Jared Wray
588de6ce10
fix: migrating to @cacheable/node-cache as it is maintained ( #1074 )
2025-03-01 18:15:49 +02:00
github-actions[bot]
e254718488
chore(release): v6.7.13
2025-02-16 16:42:28 +00:00
github-actions[bot]
afa50f4f76
chore(release): v6.7.12
2025-01-31 23:19:57 +00:00
github-actions[bot]
38bd0b9880
chore(release): v6.7.11
2025-01-31 22:00:41 +00:00
github-actions[bot]
137b6ee970
chore(release): v6.7.10
2025-01-31 20:13:23 +00:00