Skip to content

Commit b37af95

Browse files
committed
chore: release v4.7.2
1 parent 2285bd7 commit b37af95

4 files changed

Lines changed: 16 additions & 19 deletions

File tree

.changeset/lazy-peers-typings.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/spurious-logout-guard.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# zaileys
22

3+
## 4.7.2
4+
5+
### Patch Changes
6+
7+
- 61bb53c: Remove `pg`/`redis` type imports from published typings — consumers without the optional peer deps no longer fail typecheck (TS2307). Declarations are now emitted by TypeScript 7 directly instead of bundled, and the packaging guard fails the build if any optional peer ever leaks into `dist` typings again.
8+
- 2285bd7: Stop wiping a valid session on a spurious 401 (issue #54). WhatsApp sometimes emits a `logged-out` close right after a successful connect; the client now reconnects to confirm before clearing credentials. A genuine logout (the retry never re-opens) is still cleared, so no orphaned sessions are left behind.
9+
310
## 4.7.1
411

512
### Patch Changes
@@ -130,19 +137,19 @@ side-by-side upgrade guide.
130137
GHSA-qvv5-jq5g-4cgg** message-spoofing via `protocolMessage.type`. See
131138
[SECURITY.md](./SECURITY.md).
132139
- **Typed event handlers** — `client.on('text' | 'image' | 'video' | 'audio' | 'document'
133-
| 'sticker' | 'reaction' | 'edit' | 'delete' | 'poll-vote' | 'button-click' |
134-
'list-select' | 'mention' | 'mention-all' | 'group-update' | 'group-join' |
135-
'group-leave' | 'member-tag' | 'call-incoming' | 'call-ended' | 'history-sync' |
136-
'limited' | 'presence' | 'newsletter', ...)` plus connection events (`connect`,
140+
| 'sticker' | 'reaction' | 'edit' | 'delete' | 'poll-vote' | 'button-click' |
141+
'list-select' | 'mention' | 'mention-all' | 'group-update' | 'group-join' |
142+
'group-leave' | 'member-tag' | 'call-incoming' | 'call-ended' | 'history-sync' |
143+
'limited' | 'presence' | 'newsletter', ...)` plus connection events (`connect`,
137144
`disconnect`, `qr`, `pairing-code`, `reconnecting`, `error`), each with a fully typed
138145
payload.
139146
- **Chainable builder** — `client.send(jid).text().reply().mentions().mentionAll()
140-
.image().video().audio().document().sticker().album().buttons().list().poll()
141-
.location().contact()`; awaiting returns the sent `WAMessageKey`. Mutations:
147+
.image().video().audio().document().sticker().album().buttons().list().poll()
148+
.location().contact()`; awaiting returns the sent `WAMessageKey`. Mutations:
142149
`client.edit(key)`, `client.delete(key, { forEveryone })`, `client.react(key, emoji)`,
143150
`client.forward(key, to)`.
144151
- **Auto-connect lifecycle**`new Client()` connects automatically (no `await
145-
connect()`); auto-reconnect with backoff; QR or pairing-code selection from config.
152+
connect()`); auto-reconnect with backoff; QR or pairing-code selection from config.
146153
- **Interactive messages** — native `buttons()` (`reply` / `url` / `copy` / `call` /
147154
`reminder` / `cancel-reminder` / `location` / `address`), `carousel()`, and `list()`
148155
(rendered via the modern nativeFlow `single_select` so they show on personal accounts),
@@ -156,7 +163,7 @@ side-by-side upgrade guide.
156163
`file` (default), `memory`, `sqlite`, `redis`, `postgres`, and `convex` adapters. Auth and
157164
message backends can differ.
158165
- **Message-context actions everywhere** — every inbound context exposes `msg.reply(content,
159-
{ rich? })` (quotes the message) and `msg.react(emoji)`, not just command contexts.
166+
{ rich? })` (quotes the message) and `msg.react(emoji)`, not just command contexts.
160167
- **Command framework**`client.command(name, handler)`, `client.use(middleware)`,
161168
configurable `commandPrefix`, argument parsing, and a typed context (`ctx.args`,
162169
`ctx.reply`, `ctx.react`, `ctx.edit`).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zaileys",
33
"description": "Zaileys - Simplified WhatsApp Node.js TypeScript/JavaScript API",
4-
"version": "4.7.1",
4+
"version": "4.7.2",
55
"license": "MIT",
66
"type": "module",
77
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)