Version

Jedison exposes its package version at runtime as Jedison.version, and the same value is also available as a static property on the Create class: Jedison.Create.version. Both are sourced from package.json at build time, so they always match the published release.

import Jedison from 'jedison'

console.log(Jedison.version)
// '1.20.2'

console.log(Jedison.Create.version)
// '1.20.2'

Checking compatibility

This is most useful when Jedison is not bundled directly, but loaded at runtime by a host application — for example when the host runs third-party custom editors and wants to verify compatibility before executing that code, rather than let a mismatch surface as a broken form.

Compare it against a required version using a semver-aware check (e.g. the semver package's satisfies()), rather than a plain string or numeric comparison — version strings don't sort correctly as plain strings ('1.9.0' > '1.10.0' alphabetically, even though 1.10.0 is the newer release).