@vinikjkkj/wa-version
v2.3000.1040652321-41ae483
Published
WhatsApp Web version string — daily-extracted from the bundle manifest. Exports `WA_VERSION` so consumers can pin their handshake / WAM event-version / pairing-flow checks to the same build wa-spec was generated from.
Downloads
465
Maintainers
Readme
@vinikjkkj/wa-version
The WhatsApp Web version string the rest of wa-spec was extracted from,
shipped as a tiny standalone package so consumers can pin their handshake
/ WAM event-version / pairing-flow checks to the same build without having
to install (or load at runtime) any of the larger schema packages.
npm i @vinikjkkj/wa-versionimport { WA_VERSION } from '@vinikjkkj/wa-version'
console.log(WA_VERSION) // → '2.3000.1040208462'Or via CommonJS:
const { WA_VERSION } = require('@vinikjkkj/wa-version')The same value is also available as JSON if you'd rather not load JS:
const { waWeb } = require('@vinikjkkj/wa-version/version.json')How it works
@vinikjkkj/wa-version is generated daily by the
wa-spec workflow. Every WA Web
bundle drop bumps the version, regenerates this package, and republishes
to npm. The package version mirrors 2.3000.<build>-<sha> so
npm view @vinikjkkj/wa-version version always reflects the latest WA
Web release wa-spec has seen.
Generate locally
npx wa-fetcher --out dump/ # download bundles
node packages/version/scripts/apply.cjs --manifest dump/manifest.json