@quereus/plugin-leveldb 4.3.1 → 4.4.0
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/README.md +2 -2
- package/dist/src/plugin.d.ts +2 -1
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/plugin.js.map +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ LevelDB storage plugin for Quereus. Provides persistent storage for Node.js envi
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- **Fast**: LevelDB offers excellent read/write performance for key-value workloads
|
|
8
|
-
- **Transaction isolation**: Read-your-own-writes
|
|
8
|
+
- **Transaction isolation**: Read-committed + read-your-own-writes by default (no write-write conflict detection; not snapshot isolation)
|
|
9
9
|
- **Sorted keys**: Efficient range queries with ordered iteration
|
|
10
10
|
- **Crash-safe commits**: A whole transaction's data + secondary-index writes commit in one atomic, durable LevelDB batch (see [Storage layout](#storage-layout))
|
|
11
11
|
- **Compression**: Built-in Snappy compression for reduced disk usage
|
|
@@ -155,7 +155,7 @@ await provider.closeAll(); // closes the shared root
|
|
|
155
155
|
| `createIfMissing` | boolean | `true` | Create the database if it doesn't exist |
|
|
156
156
|
| `syncCommits` | boolean | `true` | `fsync` each transaction commit so it survives power loss (slower commits when on) |
|
|
157
157
|
| `moduleName` | string | `'store'` | Name to register the virtual table module under |
|
|
158
|
-
| `isolation` | boolean | `true` | Wrap with the isolation layer (read-your-own-writes, snapshot isolation) |
|
|
158
|
+
| `isolation` | boolean | `true` | Wrap with the isolation layer (read-committed + read-your-own-writes; no write-write conflict detection, not snapshot isolation) |
|
|
159
159
|
|
|
160
160
|
### LevelDBStore Options (standalone `open`)
|
|
161
161
|
|
package/dist/src/plugin.d.ts
CHANGED
|
@@ -33,7 +33,8 @@ export interface LevelDBPluginConfig {
|
|
|
33
33
|
*/
|
|
34
34
|
moduleName?: string;
|
|
35
35
|
/**
|
|
36
|
-
* Enable transaction isolation (read-your-own-writes,
|
|
36
|
+
* Enable transaction isolation (read-committed + read-your-own-writes, no
|
|
37
|
+
* write-write conflict detection — NOT snapshot isolation).
|
|
37
38
|
* When true, wraps the store module with an isolation layer.
|
|
38
39
|
* @default true
|
|
39
40
|
*/
|
package/dist/src/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAA6B,MAAM,gBAAgB,CAAC;AAGxE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAA6B,MAAM,gBAAgB,CAAC;AAGxE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC/B,GAAG,EAAE,QAAQ,EACb,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAM;;;;;EA0BrC"}
|
package/dist/src/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AA0ChD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC/B,GAAa,EACb,SAAmC,EAAE;IAErC,MAAM,QAAQ,GAAI,MAAM,CAAC,QAAmB,IAAI,QAAQ,CAAC;IACzD,MAAM,eAAe,GAAG,MAAM,CAAC,eAAe,KAAK,KAAK,CAAC;IACzD,MAAM,UAAU,GAAI,MAAM,CAAC,UAAqB,IAAI,OAAO,CAAC;IAC5D,MAAM,SAAS,GAAI,MAAM,CAAC,SAAqB,IAAI,IAAI,CAAC;IACxD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,KAAK,KAAK,CAAC;IAEjD,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC;QACpC,QAAQ;QACR,eAAe;QACf,WAAW;KACX,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,SAAS;QAC5B,CAAC,CAAC,yBAAyB,CAAC,EAAE,QAAQ,EAAE,CAAC;QACzC,CAAC,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,CAAC;IAE7B,OAAO;QACN,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,WAAW;aACnB;SACD;KACD,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quereus/plugin-leveldb",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "LevelDB storage plugin for Quereus - Node.js persistent storage",
|
|
6
6
|
"keywords": [
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@quereus/isolation": "^4.
|
|
41
|
-
"@quereus/quereus": "^4.
|
|
42
|
-
"@quereus/store": "^4.
|
|
40
|
+
"@quereus/isolation": "^4.4.0",
|
|
41
|
+
"@quereus/quereus": "^4.4.0",
|
|
42
|
+
"@quereus/store": "^4.4.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"quereus": "^0.24.0"
|
|
@@ -91,12 +91,13 @@
|
|
|
91
91
|
"scripts": {
|
|
92
92
|
"clean": "rimraf dist",
|
|
93
93
|
"build": "tsc",
|
|
94
|
+
"lint": "echo 'No lint configured'",
|
|
94
95
|
"typecheck": "tsc --noEmit",
|
|
95
96
|
"test": "cd ../.. && node --import ./packages/quereus-plugin-leveldb/register.mjs node_modules/mocha/bin/mocha.js \"packages/quereus-plugin-leveldb/test/**/*.spec.ts\" --reporter min --colors"
|
|
96
97
|
},
|
|
97
98
|
"dependencies": {
|
|
98
|
-
"@quereus/quereus": "^4.
|
|
99
|
-
"@quereus/store": "^4.
|
|
99
|
+
"@quereus/quereus": "^4.4.0",
|
|
100
|
+
"@quereus/store": "^4.4.0",
|
|
100
101
|
"abstract-level": "^3.1.0",
|
|
101
102
|
"classic-level": "^3.0.0"
|
|
102
103
|
},
|