waengine 1.7.3 โ†’ 1.7.4

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.7.4] - 2026-02-02
6
+
7
+ ### ๐Ÿšจ Critical Session Authentication Fixes
8
+
9
+ #### ๐Ÿ” Session Authentication System Overhaul
10
+ - **FIXED:** "Successfully connected" messages appearing before QR-code scan
11
+ - **FIXED:** "Device erfolgreich authentifiziert" showing without authentication
12
+ - **FIXED:** Premature success messages when only socket connection exists
13
+ - **FIXED:** Missing distinction between socket-open vs authenticated-user
14
+
15
+ #### ๐Ÿ“ฑ Enhanced QR-Code System
16
+ - **FIXED:** Multiple QR-codes appearing (Single Device Mode default)
17
+ - **FIXED:** QR-code size issues (always small/extra-small)
18
+ - **FIXED:** QR-code showing when valid session already exists
19
+ - **FIXED:** Session validation not checking auth folder existence
20
+
21
+ #### ๐Ÿ”ง Technical Improvements
22
+ - **NEW:** `truly_connected` event - Only fires after real authentication
23
+ - **NEW:** `sessionManager.hasAuthFolder()` - Check auth folder existence
24
+ - **ENHANCED:** Connection flow with proper timing and validation
25
+ - **ENHANCED:** Console logger with authentication state awareness
26
+
27
+ #### ๐Ÿ“ Files Modified
28
+ - `src/client.js` - Main connection handling logic
29
+ - `src/core.js` - Core connection implementation
30
+ - `src/console-logger.js` - Enhanced success message logic
31
+ - `src/session-manager.js` - Auth folder existence check
32
+ - `src/multi-client.js` - Multi-device authentication fixes
33
+
5
34
  ## [1.1.0] - 2025-01-31
6
35
 
7
36
  ### ๐Ÿš€ Major Feature Release
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ๐Ÿš€ WAEngine v1.7.3 - Advanced Features Edition
1
+ # ๐Ÿš€ WAEngine v1.7.4 - Session Authentication Fix Edition
2
2
 
3
3
  [![NPM Version](https://img.shields.io/npm/v/waengine)](https://www.npmjs.com/package/waengine)
4
4
  [![Downloads](https://img.shields.io/npm/dm/waengine)](https://www.npmjs.com/package/waengine)
@@ -11,7 +11,7 @@
11
11
  ๐ŸŽฏ **Sequential Multi-Device** - Professional QR scanning, one at a time
12
12
  ๐Ÿงน **Clean Terminal** - Anti-spam QR system, professional output
13
13
  โšก **3-Line Bot Creation** - From beginners to enterprise
14
- ๐Ÿš€ **400+ Advanced Features** โฌ†๏ธ **NEW in v1.7.3**
14
+ ๐Ÿš€ **400+ Advanced Features** โฌ†๏ธ **FIXED in v1.7.4**
15
15
  ๐Ÿ”Œ **Plugin System 2.0** - 8 built-in plugins with hot-loading
16
16
  ๐ŸŽต **Advanced Media** - Voice, Video, GIFs, Thumbnails
17
17
  ๐Ÿ’ฌ **Rich Content** - Buttons, Lists, Templates, Carousels
@@ -50,7 +50,38 @@ npm install waengine
50
50
 
51
51
  ---
52
52
 
53
- ## ๐Ÿ†• What's New in v1.7.3 - Advanced Features Edition
53
+ ## ๐Ÿ†• What's New in v1.7.4 - Session Authentication Fix Edition
54
+
55
+ ### ๐Ÿšจ **Critical Authentication Fixes**
56
+ - **FIXED:** "Successfully connected" messages before QR-code scan
57
+ - **FIXED:** "Device erfolgreich authentifiziert" without authentication
58
+ - **FIXED:** Premature success messages with socket-only connection
59
+ - **FIXED:** Missing distinction between socket vs authenticated state
60
+
61
+ ### ๐Ÿ“ฑ **Enhanced QR-Code System**
62
+ - **FIXED:** Multiple QR-codes (Single Device Mode default)
63
+ - **FIXED:** QR-code size issues (always small/extra-small)
64
+ - **FIXED:** QR-code showing with existing valid session
65
+ - **ROBUST:** Auth folder existence validation
66
+
67
+ ### ๐Ÿ” **New Authentication Events**
68
+ ```javascript
69
+ // NEW: Only fires after real authentication
70
+ client.on('truly_connected', (data) => {
71
+ console.log(`๐ŸŽ‰ Authenticated as: ${data.userId}`);
72
+ });
73
+ ```
74
+
75
+ ### ๐ŸŽฏ **Perfect Authentication Flow**
76
+ 1. **Socket connects** โ†’ "Socket verbunden - warte auf Authentifizierung..."
77
+ 2. **QR-code displayed** โ†’ User scans QR-code
78
+ 3. **Authentication happens** โ†’ `creds.update` event
79
+ 4. **Success messages** โ†’ Only after `creds.me?.id` exists
80
+ 5. **Bot ready** โ†’ `truly_connected` event fired
81
+
82
+ ---
83
+
84
+ ## ๐Ÿ†• Previous Features (v1.7.3)
54
85
 
55
86
  ### ๐ŸŽต **Advanced Media Features**
56
87
  - **Voice Messages** - Send voice notes with `msg.sendVoiceMessage()`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waengine",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "๐Ÿš€ WAEngine - The most powerful WhatsApp Bot Library with 400+ Advanced Features, Multi-Device Support & EasyBot API",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -62,7 +62,8 @@
62
62
  "pino": "^8.0.0",
63
63
  "qrcode": "^1.5.4",
64
64
  "qrcode-terminal": "^0.12.0",
65
- "sharp": "^0.33.5"
65
+ "sharp": "^0.33.5",
66
+ "waengine": "^1.7.3"
66
67
  },
67
68
  "optionalDependencies": {
68
69
  "playwright": "^1.58.1"