ameybh / ww-wra

Whatsapp Web bot to query and get results to and from WolframAlpha API
5 stars 2 forks source link

Bump whatsapp-web.js from 1.15.2 to 1.16.2 #20

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps whatsapp-web.js from 1.15.2 to 1.16.2.

Release notes

Sourced from whatsapp-web.js's releases.

v1.16.2

Change log

fcb78a1 - chore: mark version v1.16.2 f88bd27 - fix(LocalAuth): logout method (#1267) c45fae5 - Fix get order. (#1274) 1b75d0d - fix(LocalAuth): only throw user-supplied userDataDir error if path is different cc78e98 - add typings for LocalAuth attributes (#1262) fc205ff - fix: Cannot destructure property 'session' of 'undefined' as it is undefined. (#1259)

v1.16.1

client.info.me should not have been removed in the previous release since it would constitute a breaking change. This adds it back.

Change log

6ab98a5 - chore: mark version v1.16.1 3c24df0 - add back deprecated info.me

v1.16.0 - Multi Device Support

This release brings support for multidevice-enabled accounts to whatsapp-web.js. Thank you to everyone that contributed to the multidevice branch for making this possible. This release also brings a new way of handling authentication / session restoring.

Auth Strategies

To bring support for multidevice, we had to rethink how the library handles authentication due to internal changes in WhatsApp Web for how tokens are handled on MD.

To make changing how authentication works easier going forward and allow for more extensibility, 1.16 introduces the concept of Authentication Strategies. For more information on the available auth strategies and how they work, please check out the Guide.

Because of this change, the old way of passing session as a client option is now deprecated. But don't worry, you can keep using it via the LegacySessionAuth strategy until WhatsApp eventually removes non-md support.

We recommend everyone move to the LocalAuth strategy if possible, since it supports both MD and Non-MD accounts. We are aware that this method of authentication is less flexible and more difficult to move around, but we are working on ways of making this easier in the future.

Deprecations

These features are still available on 1.16, but will be removed in a later release.

session and restartOnAuthFail client options

As mentioned in the previous section, we are moving towards using auth strategies so these options have been deprecated. You should instead set them as options on the LegacySessionAuth strategy:

const authStrategy = new LegacySessionAuth({
    session: {},
    restartOnAuthFail: false
})
const client = new Client({ authStrategy })

Phone-related properties and events

Because they are not available on MultiDevice and will be removed by WhatsApp in the future, properties and events that access information about the connected phone have been deprecated. This includes the battery events and client.info.phone.

... (truncated)

Commits
  • fcb78a1 chore: mark version v1.16.2
  • f88bd27 fix(LocalAuth): logout method (#1267)
  • c45fae5 Fix get order. (#1274)
  • 1b75d0d fix(LocalAuth): only throw user-supplied userDataDir error if path is different
  • cc78e98 add typings for LocalAuth attributes (#1262)
  • fc205ff fix: Cannot destructure property 'session' of 'undefined' as it is undefined....
  • 6ab98a5 chore: mark version v1.16.1
  • 3c24df0 add back deprecated info.me
  • 979e97e chore: mark version v1.16.0
  • 1f4328c fix tests
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #21.