Dexie.version

Static property containing the version number of the Dexie library as a decimal number that is comparable.

Dexie.version is the number representation of Dexie.semVer calculated by:

Dexie.version = Dexie.semVer.split('.')
  .map(n => parseInt(n))
  .reduce((p,c,i) => p + (c/Math.pow(10,i*2)));
Dexie.semVerDexie.version
"1.0.0"1.0
"1.0.1"1.0001
"1.1.0"1.01
"1.3.4"1.0304

Sample

if (Dexie.version < 1.03) 
    throw new Error("Dexie v1.3.0 or higher is required");

Table of Contents