masterrecord 1.31.0 → 1.31.1
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/CHANGES.md +22 -0
- package/package.json +2 -2
- package/readme.md +17 -14
package/CHANGES.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# MasterRecord Changelog
|
|
2
2
|
|
|
3
|
+
## v1.31.1 — better-sqlite3 range back to `>=12.6.2 <14`
|
|
4
|
+
|
|
5
|
+
**Fix for a build break introduced in 1.31.0.** 1.31.0 raised the floor to
|
|
6
|
+
`better-sqlite3@^13.0.3`. An app that pins `better-sqlite3@12` itself could then no longer
|
|
7
|
+
share its copy: npm installed a second, nested 13.x under `masterrecord/node_modules`. npm 10
|
|
8
|
+
(bundled with Node 20 and 22) runs `node-gyp rebuild` for that copy, which needs Python and
|
|
9
|
+
a compiler, so builds on slim images failed (`gyp ERR! find Python`). Three production apps
|
|
10
|
+
built with Nixpacks hit exactly this.
|
|
11
|
+
|
|
12
|
+
- The range is `>=12.6.2 <14` again, as in 1.30: npm shares an app-pinned 12.x, and a fresh
|
|
13
|
+
install still gets 13.x. 12.6.2+ ships prebuilt binaries for Node 22 and 24 (12.11.1 also
|
|
14
|
+
for Node 26), so no compiler is needed on either line.
|
|
15
|
+
- New test `test/better-sqlite3-range.test.js` keeps the range from being narrowed again.
|
|
16
|
+
The full suite also passes against `better-sqlite3@12.11.1` (SQLite 3.53.2).
|
|
17
|
+
- README install note corrected: 1.31.0 said npm 11.19+ blocks dependency install scripts.
|
|
18
|
+
Only npm 12 does; npm 11 runs them with a notice. The note now has a table for 12.x vs
|
|
19
|
+
13.x on npm 10/11 vs 12 — `deny` is only right on 13.x, and a pinned 12.x must be
|
|
20
|
+
approved under npm 12.
|
|
21
|
+
|
|
22
|
+
Engines stay at `>=22.12.0`. If you are on 1.31.0 with a pinned `better-sqlite3@12`, upgrade
|
|
23
|
+
and re-lock: `npm install masterrecord@^1.31.1` leaves one copy in the lockfile.
|
|
24
|
+
|
|
3
25
|
## v1.31.0 — security maintenance: Node 22.12+, patched SQLite, clean audit
|
|
4
26
|
|
|
5
27
|
Node 20 reached end-of-life on 2026-04-30 and no longer receives security releases,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "masterrecord",
|
|
3
|
-
"version": "1.31.
|
|
3
|
+
"version": "1.31.1",
|
|
4
4
|
"description": "An Object-relational mapping for the Master framework. Master Record connects classes to relational database tables to establish a database with almost zero-configuration ",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./MasterRecord.js",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"masterrecord"
|
|
86
86
|
],
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"better-sqlite3": "
|
|
88
|
+
"better-sqlite3": ">=12.6.2 <14",
|
|
89
89
|
"commander": "^14.0.3",
|
|
90
90
|
"deep-object-diff": "^1.1.9",
|
|
91
91
|
"glob": "^13.0.6",
|
package/readme.md
CHANGED
|
@@ -207,27 +207,30 @@ npm install masterrecord better-sqlite3 # SQLite
|
|
|
207
207
|
MasterRecord includes the following database drivers by default:
|
|
208
208
|
- `pg@^8.22.0` - PostgreSQL (async)
|
|
209
209
|
- `mysql2@^3.23.2` - MySQL (async with connection pooling)
|
|
210
|
-
- `better-sqlite3
|
|
210
|
+
- `better-sqlite3@>=12.6.2 <14` - SQLite (async API wrapper for consistency; an app-pinned 12.x is shared)
|
|
211
211
|
|
|
212
212
|
### npm install-script note (native SQLite build)
|
|
213
213
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
214
|
+
How `better-sqlite3` gets its native binary depends on its major version and your npm:
|
|
215
|
+
|
|
216
|
+
| | npm 10 / 11 (Node 20–24) | npm 12 |
|
|
217
|
+
|---|---|---|
|
|
218
|
+
| **13.x** (what a fresh install gets) | runs `node-gyp rebuild` — needs `python3`, `make` and `g++` in the build image | script blocked by default; the bundled prebuilt binary is used — nothing to approve |
|
|
219
|
+
| **12.x** (if your app pins it) | runs its install script, which downloads a prebuilt binary — no compiler needed | script blocked by default — **approve it**, or SQLite fails with "Could not locate the bindings file" |
|
|
220
|
+
|
|
221
|
+
npm 11 runs dependency install scripts but lists them with a notice; npm 12 blocks
|
|
222
|
+
them unless your `package.json` `allowScripts` allows them. Record the decision once:
|
|
220
223
|
|
|
221
224
|
```bash
|
|
222
|
-
npm install-scripts deny better-sqlite3 #
|
|
223
|
-
#
|
|
224
|
-
npm install-scripts approve better-sqlite3
|
|
225
|
+
npm install-scripts deny better-sqlite3 # on 13.x: the bundled binary is enough
|
|
226
|
+
npm install-scripts approve better-sqlite3 # on 12.x, or on a platform with no prebuilt binary
|
|
225
227
|
```
|
|
226
228
|
|
|
227
|
-
Either command writes `allowScripts` into your `package.json`; commit it.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
Postgres, you can drop `better-sqlite3` entirely and
|
|
229
|
+
Either command writes `allowScripts` into your `package.json`; commit it. On a slim
|
|
230
|
+
Docker or Nixpacks image with npm 10/11 and no Python, pin `better-sqlite3@^12.6.2`
|
|
231
|
+
in your app — masterrecord accepts `>=12.6.2 <14` and shares your copy, so nothing
|
|
232
|
+
compiles. If you only use MySQL or Postgres, you can drop `better-sqlite3` entirely and
|
|
233
|
+
this doesn't apply.
|
|
231
234
|
|
|
232
235
|
## Two Patterns: Entity Framework & Active Record
|
|
233
236
|
|