npm dexie 1.5.0
Dexie v1.5.0

latest releases: 4.0.4, 4.0.3, 4.0.2...
7 years ago

News

This release is the first maintainence release of Dexie v1.x as version v2.0-beta is being developed on the master branch in parallell. Dexie v1.x is being maintained continously in parallell with the development of 2.x on the master-1 branch.

Support for 'unhandledrejection' event

It's incredibly easy to forget catching promises. The HTML standard has evolved to support a global 'unhandledrejection' event to make sure no error goes unseen for the developer. Dexie 1.5 now supports and embraces the use of this event instead of the previous custom Dexie.Promise.on('error', ...).

window.onunhandledrejection = function (event) {
    var reason = event.reason;
    console.warn('Unhandled Promise Rejection: ' + (reason && (reason.stack || reason));
    event.preventDefault(); // Prohibit default handler from logging to console.
};

Works also with window.addEventListener('unhandledrejection', ...);

Works on legacy browsers as well (Tested on IE11, Firefox 45, Edge 13 and Chrome 49).

Search your code for Promise.on('error, Promise.on("error or Promise.on.error to see if you should go over to the standard way instead. I've deprecated Promise.on.error but it will continue to work in 1.x. In 2.0 it's obsolete.

Bugfixes

Build- and deployment tools

  • Upgrading build and transpiler tools
  • Prepared for supporting maintainance releases on 1.x branch while continuing to develop Dexie v2.x.

Deprecations (See https://github.com/dfahlander/Dexie.js/wiki/Deprecations)

  • Transaction.table (will be continously supported in 2.x as well)
  • Transaction.[table] (will be continously supported in 2.x as well)
  • Transaction.tables (will be continously supported in 2.x as well)
  • Transaction.error (will be obsolete in 2.x)
  • Transaction.complete (will be obsolete in 2.x)
  • Dexie.Promise.on('error', ...) (Will be obsolete in 2.x)

Don't miss a new dexie release

NewReleases is sending notifications on new releases.