dataply 0.0.13 → 0.0.15

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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/readme.md +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataply",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "A lightweight storage engine for Node.js with support for MVCC, WAL.",
5
5
  "license": "MIT",
6
6
  "author": "izure <admin@izure.org>",
@@ -10,7 +10,8 @@
10
10
  "exports": {
11
11
  ".": {
12
12
  "types": "./dist/types/index.d.ts",
13
- "require": "./dist/cjs/index.js"
13
+ "require": "./dist/cjs/index.js",
14
+ "import": "./dist/cjs/index.js"
14
15
  }
15
16
  },
16
17
  "files": [
package/readme.md CHANGED
@@ -147,7 +147,7 @@ Updates existing data.
147
147
  #### `async delete(pk: number, tx?: Transaction): Promise<void>`
148
148
  Marks data as deleted.
149
149
 
150
- #### `async getMetadata(): Promise<DataplyMetadata>`
150
+ #### `async getMetadata(tx?: Transaction): Promise<DataplyMetadata>`
151
151
  Returns the current metadata of the dataply, including `pageSize`, `pageCount`, and `rowCount`.
152
152
 
153
153
  #### `createTransaction(): Transaction`