npm dexie 3.0.0-beta.1

latest releases: 4.0.9, 4.1.0-alpha.12, 4.1.0-alpha.8...
5 years ago

First beta release:

Features

Virtual Indexes

VirtualIndex makes it possible to use the first part of a compound index as if it was an ordinary index.
Dexie will emulate an ordinary index so that it will works with algorithms such as equalsIgnoreCase() etc.

Example:

const db = new Dexie("mydb");
db.version(1).stores({
  friends: '++id, [lastName,firstName]'
});

function findFriendByLastName(prefix) {
   // Note: You can use 'lastName' because it's the first part of a compound index.
   return db.friends.where('lastName').startsWith(prefix);
}

In earlier versions, you would have to specify 'lastName' index side by side with [lastName+firstName]

Most important bug fixes

  • Fixed CSP compliance (#722)
  • Fixed bug that omitted changes of properties with non-primitive intrinsic types (Date, ArrayBuffer, etc) in call to update hook (#841)

Don't miss a new dexie release

NewReleases is sending notifications on new releases.