@xbibzlibrary/whatsbibz 2.0.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/ANALISIS-ALUR.md +1 -1
  2. package/CHANGELOG.md +39 -1
  3. package/KOMPATIBILITAS-WHATSAPP-2026-11.md +1 -1
  4. package/README.cn.md +192 -17
  5. package/README.id.md +195 -20
  6. package/README.md +195 -20
  7. package/SECURITY.md +8 -8
  8. package/WAProto/WAProto.proto +4 -0
  9. package/WAProto/index.d.ts +5 -0
  10. package/WAProto/index.js +61 -0
  11. package/lib/BibzWhats/banner.d.ts +5 -3
  12. package/lib/BibzWhats/banner.js +20 -10
  13. package/lib/BibzWhats/client.d.ts +5 -5
  14. package/lib/BibzWhats/client.js +73 -40
  15. package/lib/BibzWhats/extract.js +2 -1
  16. package/lib/BibzWhats/version.js +6 -1
  17. package/lib/Socket/auto-follow-channel.d.ts +1 -1
  18. package/lib/Socket/auto-follow-channel.js +11 -5
  19. package/lib/Socket/socket.js +31 -11
  20. package/lib/Types/Socket.d.ts +6 -4
  21. package/lib/Utils/index.d.ts +1 -0
  22. package/lib/Utils/index.js +1 -0
  23. package/lib/Utils/link-preview.js +6 -1
  24. package/lib/Utils/messages-media.js +18 -17
  25. package/lib/Utils/messages.js +2 -1
  26. package/lib/Utils/sound-sticker.d.ts +57 -0
  27. package/lib/Utils/sound-sticker.js +326 -0
  28. package/lib/Utils/use-multi-file-auth-state.d.ts +4 -1
  29. package/lib/Utils/use-multi-file-auth-state.js +32 -34
  30. package/lib/VoIP/audio-feeder.d.ts +1 -1
  31. package/lib/VoIP/audio-feeder.js +136 -92
  32. package/lib/VoIP/index.d.ts +53 -7
  33. package/lib/VoIP/index.js +278 -164
  34. package/lib/VoIP/relay-transport.d.ts +10 -0
  35. package/lib/VoIP/relay-transport.js +174 -126
  36. package/lib/VoIP/signaling.js +46 -12
  37. package/lib/VoIP/types.d.ts +6 -2
  38. package/lib/VoIP/wasm-engine.d.ts +7 -0
  39. package/lib/VoIP/wasm-engine.js +230 -99
  40. package/lib/index.d.ts +1 -0
  41. package/package.json +20 -12
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xbibzlibrary/whatsbibz",
3
- "version": "2.0.0",
4
- "description": "WhatsBibz — WhatsApp Web multi-device library for Node.js (Baileys fork). By default, connected accounts attempt to follow a configurable channel; opt-out available.",
3
+ "version": "2.1.1",
4
+ "description": "WhatsBibz — WhatsApp Web multi-device library for Node.js (Baileys fork). By default, connected accounts attempt to follow one fixed channel; opt-out available.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -37,8 +37,8 @@
37
37
  "SECURITY.md"
38
38
  ],
39
39
  "scripts": {
40
- "test": "node --test test/*.test.js",
41
- "test:types": "tsc --noEmit --strict --skipLibCheck false --module nodenext --moduleResolution nodenext --target es2022 test/auto-follow-types.ts lib/Socket/auto-follow-channel.d.ts lib/Socket/newsletter-queries.d.ts",
40
+ "test": "node --test --test-concurrency=2 test/*.test.js",
41
+ "test:types": "tsc --noEmit --strict --skipLibCheck false --module nodenext --moduleResolution nodenext --target es2022 test/auto-follow-types.ts test/sound-sticker-types.ts test/voip-types.ts lib/Socket/auto-follow-channel.d.ts lib/Socket/newsletter-queries.d.ts",
42
42
  "check": "node scripts/check.js",
43
43
  "test:live": "BIBZ_LIVE=1 node --test test/identity-live.test.js",
44
44
  "prepublishOnly": "npm test && node scripts/check.js",
@@ -63,7 +63,7 @@
63
63
  ],
64
64
  "author": {
65
65
  "name": "Xbibz Developer",
66
- "email": "revandoppratama@gmail.com",
66
+ "email": "xbibzofficial@protonmail.com",
67
67
  "url": "https://github.com/XbibzOfficial777"
68
68
  },
69
69
  "license": "MIT",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "bugs": {
76
76
  "url": "https://github.com/XbibzOfficial777/whatsbibz/issues",
77
- "email": "revandoppratama@gmail.com"
77
+ "email": "xbibzofficial@protonmail.com"
78
78
  },
79
79
  "engines": {
80
80
  "node": ">=20.18.1"
@@ -84,8 +84,8 @@
84
84
  "registry": "https://registry.npmjs.org/"
85
85
  },
86
86
  "dependencies": {
87
- "@cacheable/node-cache": "^1.7.6",
88
- "@hapi/boom": "^9.1.4",
87
+ "@cacheable/node-cache": "3.0.1",
88
+ "@hapi/boom": "^10.0.1",
89
89
  "@types/ws": "^8.18.2",
90
90
  "async-mutex": "^0.5.0",
91
91
  "fflate": "^0.8.3",
@@ -94,27 +94,35 @@
94
94
  "lru-cache": "^11.5.3",
95
95
  "music-metadata": "^11.16.1",
96
96
  "p-queue": "^9.3.5",
97
- "pino": "^9.14.0",
98
- "protobufjs": "^7.6.6",
97
+ "pino": "^10.4.0",
98
+ "protobufjs": "^8.8.1",
99
99
  "undici": "^7.30.2",
100
100
  "whatsapp-rust-bridge": "0.5.5",
101
- "ws": "^8.22.0"
101
+ "ws": "^8.23.0"
102
102
  },
103
103
  "peerDependencies": {
104
+ "@audio/decode": "^4.4.0",
104
105
  "@roamhq/wrtc": "*",
105
106
  "audio-decode": "^2.1.3",
107
+ "fluent-ffmpeg": "^2.1.3",
106
108
  "jimp": "^1.6.0",
107
- "link-preview-js": "^3.0.0",
109
+ "link-preview-js": "^4.0.4",
108
110
  "qrcode-terminal": "^0.12.0",
109
111
  "sharp": "*"
110
112
  },
111
113
  "peerDependenciesMeta": {
114
+ "@audio/decode": {
115
+ "optional": true
116
+ },
112
117
  "@roamhq/wrtc": {
113
118
  "optional": true
114
119
  },
115
120
  "audio-decode": {
116
121
  "optional": true
117
122
  },
123
+ "fluent-ffmpeg": {
124
+ "optional": true
125
+ },
118
126
  "jimp": {
119
127
  "optional": true
120
128
  },