Skip to content

Releases: pedroslopez/whatsapp-web.js

v1.15.4

26 Jan 00:53
Compare
Choose a tag to compare

This release contains important fixes for proper compatibility with WhatsApp Web v2.2202.8.

Change log

4e6a00d - chore: mark version v1.15.4
b93c7b4 - fix invalid jsdoc
a37ff69 - fix: restore node 12 support
3705d1f - Update supported WhatsApp Web version to v2.2202.8 (#1084)
7950aae - fix: find Store in v2.2202.8 (#1130)
bdff59f - fix: remove problematic import
d058030 - update MessageMedia.fromUrl (#811)
d86c39d - fix: Fix inactivity issue (#946)
46ba9c5 - Add isGif to message._patch (#963)
d7a493e - fix: use correct @types/node-fetch ver, use working node-fetch ver from puppeteer, add test
da95d92 - chore(deps): bump puppeteer from 10.4.0 to 13.0.0 (#1057)
92bc5e6 - chore(deps-dev): bump eslint from 7.32.0 to 8.4.1 (#1038)
73a3e28 - chore(deps-dev): bump @types/node-fetch from 2.5.12 to 3.0.3 (#911)
4f376fc - chore(deps-dev): bump sinon from 11.1.2 to 12.0.1 (#1024)
a20c8ef - chore(deps): bump mime from 2.6.0 to 3.0.0 (#1023)
2052e04 - Fix: multiple list sections (#1004)

v1.15.3

08 Dec 03:09
Compare
Choose a tag to compare

This release contains important fixes for proper compatibility with WhatsApp Web v2.2147.14

Change log

c55db82 - mark version v1.15.3
4e837b0 - Update supported WhatsApp Web version to v2.2147.14 (#1033)
89a06b1 - Hot Fix WA 2.2147.14 (#1035)
5524757 - add script to get change log

v1.15.2

24 Nov 13:57
Compare
Choose a tag to compare

This release contains important fixes for proper compatibility with WhatsApp Web v2.2146.9.

Change log

8a1f6f0 - chore: mark version v1.15.2
254ca88 - Update supported WhatsApp Web version to v2.2146.9 (#969)
3958105 - Fix WA 2.2146.9 (#990)
818bf48 - fix: convert button ids to string
d715445 - move links section in readme
187aa50 - Url updates for wwebjs.dev (#944)

v1.15.1

30 Oct 04:47
Compare
Choose a tag to compare

This is a hotfix to address issues with replying to messages with v1.15.0

Patch notes since last version didn't have them:

Patch notes for 1.15.0 and 1.15.1:

  • muteChat's duration parameter is now optional, it defaults to being infinite
  • GroupNotification.getChat() now gives you the group chat the notification occurred in, instead of the client's chat (bugfix)
  • Buttons and List messages are now added.
    example usage
const { Buttons, List } = require('whatsapp-web.js');

// sending buttons
client.sendMessage(to, new Buttons('Body text/ MessageMedia instance', [{id:'customId',body:'button1'},{body:'button2'},{body:'button3'},{body:'button4'}], 'Title here, doesn\'t work with media', 'Footer here'), {caption: 'if you used a MessageMedia instance, use the caption here'})

// sending lists
client.sendMessage(to, new List('Body text/ MessageMedia instance', 'List message button text', [{title: 'sectionTitle', rows: [{id: 'customId', title: 'ListItem2', description: 'desc'}, {title: 'ListItem2'}]}] 'Title here, doesn\'t work with media', 'Footer here'), {caption: 'if you used a MessageMedia instance, use the caption here'})

//getting response
client.on('message', m => {
  if (m.type == 'buttons_response') {
    const {selectedButtonId: bid} = message;
    if (bid == 'customId') m.reply('You chose button 1')
    // this is a buttons message response
  } else if (m.type == 'list_response' /* not sure */) {
    const {selectedButtonId: bid} = message;
    if (bid == 'customId') m.reply('You chose list item 2')
    // this is a list message response
  }
});

docs: https://docs.wwebjs.dev/List.html
https://docs.wewbjs.dev/Buttons.html

  • Incoming payment message type (no sending) supported:
client.on('message', async m => {
   if (message.type == 'payment') {
    const paymentInfo = await m.getPayment();
    // do hat you want here
  }
});

docs: class missing from docs :D

  • force-stop MD users from running a script that's not compatible

  • A new clientOption: qrMaxRetries that allows X qr incoming events before giving up. Defaults to 0 (unlimited)

  • Typescript improvements:

    • Buttons and Lists don't throw errors when sending a message (MessageContent)
    • puppeteer: args and puppeteer: headless don't throw an error
  • Format Ids into human readable phone numbers:

    • Client instance
      .getFormattedNumber(id) and .getCountryCode(id)

    • Contact instance
      .getFormattedId() and .getCountryCode()

both return a Promise (use await)

  • Get the people the client blocked on whatsapp:
const blockedIds = await client.getBlockedIds();
//['[email protected]', '[email protected]']
  • More tests and related fixes

v1.15.0

30 Oct 04:21
Compare
Choose a tag to compare

Summary

This release includes several bug fixes and improvements. Take a look at the change log for a detailed list of changes!

Note that multi-device versions of WhatsApp Web are not yet supported in this version. Check out #889 for progress.

Change log

d82cf44 - chore: mark version v1.15.0
3f576c9 - Update supported WhatsApp Web version to v2.2142.12 (#827)
d44a525 - fix: serialize message id remote when fetching messages
d821702 - add test for maxQrRetries
2a7337b - max qr refresh before giving up (#852)
1fcfaa0 - Update README.md (#907)
c434e04 - fix countrycode and formatted number functions, add tests
97a1d39 - Format phone numbers (#650)
dbf9bf2 - Type file improvements (#855)
353af13 - remove unnecessary default
06107af - Allow a chat to be muted indefinitely (#849)
4338664 - Add getBlockedContacts method (#770)
95facee - Fixes GroupNotification.getChat() returning client's chat. (#699)
1f38b76 - add warning for multidevice, keep working for forced upgrade
b60029e - feat: Send buttons and Lists (#756)
ab415ff - feat: Include payment info (#684)

v1.14.1

01 Sep 13:21
Compare
Choose a tag to compare

Fixes an issue getting chats on the latest version of WhatsApp Web

v1.14.0

02 Aug 04:39
Compare
Choose a tag to compare

Summary

  • Node v12 support has been restored
  • You can now get info about incoming calls
  • Build MessageMedia from a url (MessageMedia.fromUrl(), docs)
  • Connect to a remote browser with browserWSEndpoint option

...and more!

New Message.links usage

For the most part you should be able to update without any issues, though there is a notable change in how message links are returned. More specifically, Message.links now returns an array of objects instead of an array of strings.

Example:

[
    {link: "https://google.com", isSuspicious: false},
    {link: "https://ẉhatsapp.com/free-tickets", isSuspicious: true}
]

Changelog

be018e6 - update .npmignore
64189d2 - chore: mark version v1.14.0
38e31a0 - Update package.json and readme for node 12 support
40cec51 - fix: node v12 support
d9ccb6f - fix: correctly resolve media that hasn't been downloaded (#763)
628b6e4 - Update supported WhatsApp Web version to v2.2126.14 (#806)
cd774be - feat: Add MessageMedia.fromUrl method (#769)
9c2592e - chore: temporarily stop update action from auto running
ae6d61b - fix: correctly serialize messages with replyButtons
98acd23 - delete gh branch automatically when closing update PR
62c7c15 - chore: update links
e12c53f - chore: specify minimum required node version
1b5e9d2 - chore(deps-dev): bump mocha from 8.4.0 to 9.0.2 (#776)
3398501 - Update supported WhatsApp Web version to v2.2126.11 (#766)
3398501 - Update supported WhatsApp Web version to v2.2126.11 (#766)
cdede83 - Include Calls (#720)
a03cc41 - Add tests and detect WhatsApp Web updates (#686)
04d2308 - Update node-webpmux 2.x syntax to 3.x (support upstream breaking change) (#762)
dc9b7e5 - Update minimum moduleRaid version to 5.0.2
cc7a729 - chore(deps): bump puppeteer from 5.5.0 to 10.1.0 (#750)
2ec46f6 - chore(deps): bump sharp from 0.26.3 to 0.28.3 (#751)
22993fc - chore(deps): bump node-webpmux from 2.0.3 to 3.0.0 (#749)
cd52075 - Add the option to use "browserWSEndpoint" (#727)
54a07fa - feat: Add support to suspicious links (#642)
efa6cf9 - fix: location class type (#718)
9d71573 - feat: message forwarding score (#716)

v1.13.2

09 Jul 14:25
Compare
Choose a tag to compare

Fixes compatibility issues with WhatsApp Web v2.2126.10 and adds new features.

Please note that Node v14 or higher is now required (see #688).

Changelog

4afff38 - Fix download media (v1.13.2)
b13dea0 - chore: mark version v1.13.1
0ef6061 - Fix downloading media for WhatsApp Web v2.2126.10 (#735)
0465507 - chore: mark version v1.13.0
2fd96e7 - update readme to indicate node 14 is required
caab11c - bump minimum required moduleraid version
cdc00e9 - feat: acceptGroupV4Invite (#677)
795570a - chore: update eslint and ecmaVersion (#680)
0465742 - chore: update lint action (#679)
3897655 - feat(dev): add argument bypassCSP to use in pupperter (#635)
b895437 - add searchMessages method (#586)
0a061f9 - feat: Add from which device the message was sent (#648)
63d11d3 - feat: disable / enable WA Web features (#543)
5177a25 - feat: Get Orders and Products (#612)
f506c17 - add extra option to MessageSendOptions (#600)
64e2cc4 - feat: openChatWindow can open new chats (#592)
6c66ab2 - Add sendVideoAsGif option (#578)
efc7018 - Add support for sticker Name and author (#527)
5991b28 - update supported whatsapp web ver to v2.2114.8

v1.12.6

21 Apr 03:04
Compare
Choose a tag to compare

This release fixes some issues with reading QR codes after some time being inactive, as well as issuing the disconnect event when logging out from the device.

Changelog

6cece4a - fix: emit disconnected event on page navigation
f1e2f32 - fix: click correct element on manual qr code refresh

v1.12.5 - WhatsApp Web v2.2106.5

25 Feb 04:55
Compare
Choose a tag to compare

Important update

WhatsApp Web v2.2106.5 has upgraded their module system to webpack version 5, which broke the method we had been using to get access to internal modules. This update addresses these issues, so upgrading is required.

Changelog

f564e41 - chore: bump version to v1.12.5
e601516 - fix(docs): media type in MessageSendOptions (#554)
bc90ffc - fix: WhatsApp Web v2.2106.5 compatibility
2702757 - fix: star() & unstar() functions (#547)
56171f9 - chore: don't auto set bug label on issues