Fixes
-
Typings (d.ts) correction of Dexie.exists() and Dexie.delete()#497
-
Bubble up
QuotaExceededError
instead ofAbortError: Transaction aborted
#514Fixes #323
Rather than throwing Unhandled rejection: AbortError: Transaction aborted when the user is out of disk space, the underlying transaction error (QuotaExceededError) is bubbled up. This allows consumers of the Dexie API to identify QuotaExceededErrors and handle them accordingly.
NOTE: I used http://www.cylog.org/utilities/filldisk.jsp to fill up my hard disk to try this code locally.
-
Update typescript Promise definition #518
Dexie.Promise typings needed adjustments to compile correctly with tsc > v2.3.
Breaking Change
-
Don't use IndexedDBShim just because it's included #511
Resolves #342 and #148This change is a breaking change (though to the better), since the shim will no more be used on browsers where it's not needed. We need to collect some user feedback about how this affects apps. What we know is that we now go over letting the shim to its job to detect whether it should be applied or not. To be backward compatible, call shimIndexedDB.__useShim(); before including dexie.