pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.17k stars 3.62k forks source link

Add warning for outdated 2.x cache versions #3253

Closed gkp1 closed 1 month ago

gkp1 commented 1 month ago

PR Details

Just warn users trying to use outdated cache versions. Many new users get stuck and we get a spam of help requests on the discord that could be solved by a simple warning

Description

Just log a [warning] line when detect any 2.x version

Motivation and Context

Dozens of help requests spam in discord

How Has This Been Tested

Warning works, tested locally with:

CACHED_WAWEB_VERSION_TO_USE=2.2410.1
CACHE_TYPE=remote
REMOTE_PATH= https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2410.1.html

Types of changes

Checklist