npm whatsapp-web.js 1.0.0
v1.0.0 - We're stable!

4 years ago

After a burst of work, nearly all essential features have been implemented into the library. This release brings lots of improvements, such as:

  • Mention users and get mentioned users from messages
  • Send messages with attachments (documents, images, audio..)
  • Send messages with Location
  • Get quoted message
  • Get contacts
  • Join groups by invite code
  • Set your status message

Furthermore, improvements have been made to the general process of sending messages, such as:

  • Returning the message you just sent
  • Accepting an options object where you can specify messages you want to reply to, users to mention, media to attach and more in the future.

New documentation

The first steps to publishing documentation for the library have been taken, and you can find a very preliminary version of it at https://pedroslopez.me/whatsapp-web.js. It's pretty barebones and merely contains the models and functions available, but it means you won't have to go digging in the code to check what kind of stuff you can do.

The next goal here in terms of documentation is to work on a nice and clear guide that explains how the library works and how to use it, in plain english.

Breaking changes

There's only one breaking change in this release, which affects users that have used Message.downloadMedia(). Specifically, this function used to return an object where the data prop was a data url. Now this returns an instance of the MessageMedia class for compatibility with sending media. The structure is pretty much the same as the old object that was returned by downloadMedia(), but the data prop is now a base64 encoded representation of the media file.

Raw changelog

f947f75 - docs: add location to supported content types
d1dba0f - add disconnect reason
64ed2c1 - more message types
5616613 - feat: Mention users, get user number from Contact model
ef80f96 - fix: correctly get message contact in group chats
edc2c70 - feat: change status message
f2b286a - feat: get contact's profile picture
004312a - expose some more fields on contacts
2896aeb - fix some doc related stuff
065a921 - add another location example
7b229a3 - feat: Send and receive location
4b17684 - Get Mentions (#35)
0cbc24f - Update puppeteer to version 2.1.1 (#36)
a247b39 - docs(readme): add whatsapp web version tested
bf70eb1 - docs: regenerate docs
1ad9cac - docs: better readme
62e2642 - docs: add generated docs
2f0480c - docs: add more documentation
a098d61 - feat: send messages with attachments
e717915 - fix: don't get chat after accepting invite
e2351db - Added Contact Model (#34)
b597e4a - Added delete event message(#33)
b99744a - Create lint.yml
cc477f9 - Add eslint config and fix linting issues
8eb461e - Update puppeteer to v2.1.0
7243240 - fix !quoteinfo example
5b9413d - [FIX] Expose Wap module
8ddf4c2 - Add .editorconfig (close #25)
caa8598 - [+] Join groups by invite code
a6cc5e5 - [+] Get quoted message [FIX] Properly reply to messages sent by the current user
ba8edc8 - [+] Expose information about the logged in client (#19)
88c56b1 - Return new message after sending
2a3f404 - Merge pull request #32 from gabriel-tandil/master
d2889a8 - Improvement in KEEP_PHONE_CONNECTED_IMG_SELECTOR

Don't miss a new whatsapp-web.js release

NewReleases is sending notifications on new releases.