@procedures/sqlite 0.54.0 → 0.55.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/CHANGELOG.md +15 -0
- package/README.md +7 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @procedures/sqlite
|
|
2
2
|
|
|
3
|
+
## 0.55.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [fd9c6d4]
|
|
8
|
+
- @procedures/client@0.55.0
|
|
9
|
+
|
|
10
|
+
## 0.54.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 8dc3e6c: The README has no typed benchmark numbers. The site page of the package shows the median times of the newest nightly run, with its date, its commit and its version. The Pages build fails when these numbers are more than 3 days old.
|
|
15
|
+
- Updated dependencies [13c3a8b]
|
|
16
|
+
- @procedures/client@0.54.1
|
|
17
|
+
|
|
3
18
|
## 0.54.0
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -527,12 +527,16 @@ The storage has two SQLite engines. The option `engine` selects one.
|
|
|
527
527
|
- The two engines use the same file format. A file that one engine writes opens with the other engine, with its items and its versions.
|
|
528
528
|
- `getEngine()` gives the engine of the storage. `getMetadata()` gives it in `stats.engine`. `isNodeSqliteAvailable()` tells if this Node.js has `node:sqlite`.
|
|
529
529
|
|
|
530
|
-
|
|
530
|
+
<!-- measured
|
|
531
|
+
The nightly benchmarks (`bench/storage.bench.ts`) measure the two engines in a file. These are the median times of [the nightly run of {run.date}]({run.url}), on the code of commit `{run.commit}` (`@procedures/sqlite` {engine:@procedures/sqlite}), with Node.js 26 on Linux. The site takes them from the newest nightly run, and its build fails when they are more than {run.limit} days old:
|
|
531
532
|
|
|
532
533
|
| The benchmark | `node` | `sqljs` |
|
|
533
534
|
|---|---|---|
|
|
534
|
-
| 1,000 calls of `set()`, one after the other, in a table of 1,000 items |
|
|
535
|
-
| One `getAll()` of a table of 10,000 items |
|
|
535
|
+
| 1,000 calls of `set()`, one after the other, in a table of 1,000 items | {nightly.sqlite-node-file-write-1000} | {nightly.sqlite-sqljs-file-write-1000} |
|
|
536
|
+
| One `getAll()` of a table of 10,000 items | {nightly.sqlite-node-file-read-10000} | {nightly.sqlite-sqljs-file-read-10000} |
|
|
537
|
+
-->
|
|
538
|
+
The nightly benchmarks (`bench/storage.bench.ts`) measure the two engines in a file. [The page of this package on the site](https://mark1russell7.github.io/client/docs/packages/client-sqlite/) shows the times of the newest nightly run, with its date and its commit.
|
|
539
|
+
<!-- /measured -->
|
|
536
540
|
|
|
537
541
|
The engine `sqljs` writes the whole file at each write, so its write time grows with the size of the file.
|
|
538
542
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@procedures/sqlite",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.55.0",
|
|
5
5
|
"description": "SQLite procedures with sql.js and no native build: queries, tables and schemas, transactions, migrations, backups and structured logs, safe for concurrent writes, and SqliteStorage, a durable collection storage with a change log on node:sqlite or sql.js.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"sqlite",
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@mark1russell7/docker-sqlite": "^0.3.0",
|
|
70
|
-
"@procedures/client": "0.
|
|
70
|
+
"@procedures/client": "0.55.0",
|
|
71
71
|
"zod": "^4.6.5"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@mark1russell7/cue": "^2.1.1",
|
|
75
|
-
"@procedures/collections": "0.
|
|
76
|
-
"@procedures/fs": "0.
|
|
77
|
-
"@procedures/store": "0.
|
|
75
|
+
"@procedures/collections": "0.55.0",
|
|
76
|
+
"@procedures/fs": "0.55.0",
|
|
77
|
+
"@procedures/store": "0.55.0",
|
|
78
78
|
"@types/node": "^22.0.0",
|
|
79
79
|
"typescript": "^7.0.2",
|
|
80
80
|
"vitest": "^5.0.3"
|