Secreto31126 / whatsapp-api-js

A TypeScript server agnostic Whatsapp's Official API framework
MIT License
128 stars 31 forks source link

Show a warning if the API version is not defined #307

Closed Secreto31126 closed 4 months ago

Secreto31126 commented 4 months ago

At production time it's strongly recommended pinning the API version, so package updates which change the default version are less likely to break user code. The warning might look as follow:

[whatsapp-api-js] API's version was not defined. In production, it's strongly recommended pinning it to the desired version with the "v" argument. Defaulting to ${default_version}.