dexie 4.0.1-alpha.25 → 4.0.1-alpha.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/README.md ADDED
@@ -0,0 +1,46 @@
1
+ ## Can't find dexie.js?
2
+ Dexie's dist files are no longer checked in to github except temporarily when tagging
3
+ a release version (just so that bower will continue to work). The reason for this is because
4
+ checking in dist files bloats the commit history and makes it error prone to contribute to the
5
+ repo. To support bower though, we have to continue checking in dist files when releasing,
6
+ but that is now handled by the release.sh script, who also removes them directly afterwards.
7
+
8
+ If you still just want to download dexie.js to include in a test HTML page, go
9
+ to the following download site:
10
+
11
+ ### Download
12
+ [dexie.min.js](https://unpkg.com/dexie/dist/dexie.min.js)
13
+
14
+ [dexie.min.js.map](https://unpkg.com/dexie/dist/dexie.min.js.map)
15
+
16
+ ### Typings
17
+ [dexie.d.ts](https://unpkg.com/dexie/dist/dexie.d.ts)
18
+
19
+ ### Optional Stuff
20
+ [dexie.js (non-minified version)](https://unpkg.com/dexie/dist/dexie.js)
21
+
22
+ [dexie.js.map](https://unpkg.com/dexie/dist/dexie.js.map)
23
+
24
+ [dexie.min.js.gz (Minified and gzipped)](https://unpkg.com/dexie/dist/dexie.min.js.gz)
25
+
26
+ ## Install from NPM
27
+ ```
28
+ npm install dexie
29
+ ```
30
+
31
+ ## How to build
32
+ 1. cd to dexie package
33
+ 2. npm install
34
+ 3. npm run build
35
+
36
+ ## Contributing to Dexie.js?
37
+
38
+ Watch:
39
+ ```
40
+ npm run watch
41
+ ```
42
+
43
+ Test:
44
+ ```
45
+ npm test
46
+ ```
package/dist/dexie.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * By David Fahlander, david.fahlander@gmail.com
6
6
  *
7
- * Version 4.0.1-alpha.25, Sun Jul 16 2023
7
+ * Version 4.0.1-alpha.27, Fri Oct 13 2023
8
8
  *
9
9
  * https://dexie.org
10
10
  *
@@ -1085,6 +1085,7 @@ export interface DexieConstructor extends DexieExceptionClasses {
1085
1085
  dependencies: DexieDOMDependencies;
1086
1086
  default: Dexie; // Work-around for different build tools handling default imports differently.
1087
1087
  cache: GlobalQueryCache;
1088
+ debug: false | true | "dexie";
1088
1089
  Promise: PromiseExtendedConstructor;
1089
1090
  //TableSchema: {}; // Deprecate!
1090
1091
  //IndexSpec: {new():IndexSpec}; //? Deprecate
package/dist/dexie.js CHANGED
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * By David Fahlander, david.fahlander@gmail.com
6
6
  *
7
- * Version 4.0.1-alpha.25, Sun Jul 16 2023
7
+ * Version 4.0.1-alpha.27, Fri Oct 13 2023
8
8
  *
9
9
  * https://dexie.org
10
10
  *
@@ -149,7 +149,7 @@
149
149
  }
150
150
  }
151
151
  function getByKeyPath(obj, keyPath) {
152
- if (hasOwn(obj, keyPath))
152
+ if (typeof keyPath === 'string' && hasOwn(obj, keyPath))
153
153
  return obj[keyPath];
154
154
  if (!keyPath)
155
155
  return obj;
@@ -1271,7 +1271,7 @@
1271
1271
  }
1272
1272
  }
1273
1273
 
1274
- var DEXIE_VERSION = '4.0.1-alpha.25';
1274
+ var DEXIE_VERSION = '4.0.1-alpha.27';
1275
1275
  var maxString = String.fromCharCode(65535);
1276
1276
  var minKey = -Infinity;
1277
1277
  var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";
@@ -1406,7 +1406,7 @@
1406
1406
  }
1407
1407
  var wasRootExec = beginMicroTickScope();
1408
1408
  try {
1409
- return trans && trans.db === this.db ?
1409
+ return trans && trans.db._novip === this.db._novip ?
1410
1410
  trans === PSD.trans ?
1411
1411
  trans._promise(mode, checkTableInTransaction, writeLocked) :
1412
1412
  newScope(function () { return trans._promise(mode, checkTableInTransaction, writeLocked); }, { trans: trans, transless: PSD.transless || PSD }) :
@@ -3952,12 +3952,12 @@
3952
3952
  extendObservabilitySet(unsignaledParts, part);
3953
3953
  if (!isTaskEnqueued) {
3954
3954
  isTaskEnqueued = true;
3955
- queueMicrotask(function () {
3955
+ setTimeout(function () {
3956
3956
  isTaskEnqueued = false;
3957
3957
  var parts = unsignaledParts;
3958
3958
  unsignaledParts = {};
3959
3959
  signalSubscribersNow(parts);
3960
- });
3960
+ }, 0);
3961
3961
  }
3962
3962
  }
3963
3963
  function signalSubscribersNow(updatedParts, deleteAffectedCacheEntries) {