@wppconnect-team/wppconnect 2.3.2 → 2.3.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
@@ -1,3 +1,28 @@
1
+ ## <small>2.3.4 (2026-10-02)</small>
2
+
3
+ ### Bug Fixes
4
+
5
+ - bump wa-js version to 4.6.1 (#2898) ([dd904d4](https://github.com/wppconnect-team/wppconnect/commit/dd904d4)), closes [#2898](https://github.com/wppconnect-team/wppconnect/issues/2898)
6
+
7
+ ### Build System
8
+
9
+ - **deps-dev:** bump browserslist from 4.28.2 to 4.28.8 (#2883) ([ff9f551](https://github.com/wppconnect-team/wppconnect/commit/ff9f551)), closes [#2883](https://github.com/wppconnect-team/wppconnect/issues/2883)
10
+ - **deps-dev:** bump fast-uri from 3.1.5 to 3.1.7 (#2884) ([824f6e1](https://github.com/wppconnect-team/wppconnect/commit/824f6e1)), closes [#2884](https://github.com/wppconnect-team/wppconnect/issues/2884)
11
+ - **deps:** bump brace-expansion (#2900) ([f32645b](https://github.com/wppconnect-team/wppconnect/commit/f32645b)), closes [#2900](https://github.com/wppconnect-team/wppconnect/issues/2900)
12
+ - **deps:** bump ip-address from 10.5.0 to 10.7.2 (#2897) ([505466e](https://github.com/wppconnect-team/wppconnect/commit/505466e)), closes [#2897](https://github.com/wppconnect-team/wppconnect/issues/2897)
13
+ - **deps:** bump js-yaml from 4.3.1 to 4.3.2 (#2893) ([39a1e46](https://github.com/wppconnect-team/wppconnect/commit/39a1e46)), closes [#2893](https://github.com/wppconnect-team/wppconnect/issues/2893)
14
+ - **deps:** update dependency serialize-javascript to v7.1.2 [security] (#2899) ([b96bbd1](https://github.com/wppconnect-team/wppconnect/commit/b96bbd1)), closes [#2899](https://github.com/wppconnect-team/wppconnect/issues/2899)
15
+
16
+ ### Continuous Integration
17
+
18
+ - list every commit type in release notes (#2902) ([954be8c](https://github.com/wppconnect-team/wppconnect/commit/954be8c)), closes [#2902](https://github.com/wppconnect-team/wppconnect/issues/2902)
19
+
20
+ ## [2.3.3](https://github.com/wppconnect-team/wppconnect/compare/v2.3.2...v2.3.3) (2026-09-07)
21
+
22
+ ### Bug Fixes
23
+
24
+ - preserve QR authentication state during navigation ([#2891](https://github.com/wppconnect-team/wppconnect/issues/2891)) ([4951d60](https://github.com/wppconnect-team/wppconnect/commit/4951d60886338de1e19bb4f0bbeacf3e3777c0bc))
25
+
1
26
  ## [2.3.2](https://github.com/wppconnect-team/wppconnect/compare/v2.3.1...v2.3.2) (2026-09-03)
2
27
 
3
28
  ### Bug Fixes
@@ -152,6 +152,10 @@ class HostLayer {
152
152
  }
153
153
  async checkQrCode() {
154
154
  const needScan = await (0, auth_1.needsToScan)(this.page).catch(() => null);
155
+ // A navigation can invalidate the execution context while waiting for QR.
156
+ // An unknown result is not proof that the session has registered.
157
+ if (needScan === null)
158
+ return;
155
159
  this.isLogged = !needScan;
156
160
  if (!needScan) {
157
161
  this.attempt = 0;
@@ -260,6 +264,8 @@ class HostLayer {
260
264
  while (!this.page.isClosed() && !this.isLogged) {
261
265
  await (0, sleep_1.sleep)(200);
262
266
  const needScan = await (0, auth_1.needsToScan)(this.page).catch(() => null);
267
+ if (needScan === null)
268
+ continue;
263
269
  this.isLogged = !needScan;
264
270
  }
265
271
  }
@@ -277,7 +283,7 @@ class HostLayer {
277
283
  return false;
278
284
  }
279
285
  await (0, sleep_1.sleep)(1000);
280
- const inChat = (0, auth_1.isInsideChat)(this.page).catch(() => null);
286
+ const inChat = await (0, auth_1.isInsideChat)(this.page).catch(() => null);
281
287
  this.isInChat = !!inChat;
282
288
  }
283
289
  return this.isInChat;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect-team/wppconnect",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "description": "WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination... 😀🤔💭",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,9 +8,9 @@
8
8
  "build:client": "tsc",
9
9
  "build:wapi": "cd src/lib/wapi/ && webpack",
10
10
  "build": "npm run build:wapi && npm run build:client",
11
- "changelog:last": "conventional-changelog -p angular -r 2",
12
- "changelog:preview": "conventional-changelog -p angular -u",
13
- "changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s",
11
+ "changelog:last": "conventional-changelog -n ./changelog.config.cjs -r 2",
12
+ "changelog:preview": "conventional-changelog -n ./changelog.config.cjs -u",
13
+ "changelog:update": "conventional-changelog -n ./changelog.config.cjs -i CHANGELOG.md -s",
14
14
  "clean": "shx rm -rf session dist",
15
15
  "example": "node ./examples/basic/index.js",
16
16
  "commit": "cz",
@@ -75,7 +75,7 @@
75
75
  "commitizen": "^4.3.2",
76
76
  "concurrently": "^10.0.5",
77
77
  "conventional-changelog-cli": "^5.0.0",
78
- "eslint": "10.9.1",
78
+ "eslint": "10.10.0",
79
79
  "eslint-config-prettier": "^10.1.8",
80
80
  "eslint-plugin-prettier": "^5.5.6",
81
81
  "globals": "^17.12.0",
@@ -94,7 +94,7 @@
94
94
  "webpack-cli": "^6.0.1"
95
95
  },
96
96
  "dependencies": {
97
- "@wppconnect/wa-js": "^4.6.0",
97
+ "@wppconnect/wa-js": "^4.6.1",
98
98
  "@wppconnect/wa-version": "^1.5.4472",
99
99
  "atob": "^2.1.2",
100
100
  "axios": "^1.20.0",
@@ -123,7 +123,7 @@
123
123
  "ws": "^8.21.3"
124
124
  },
125
125
  "overrides": {
126
- "serialize-javascript": "7.1.1"
126
+ "serialize-javascript": "7.1.2"
127
127
  },
128
128
  "optionalDependencies": {
129
129
  "@img/sharp-win32-x64": "^0.35.4",