@hivemagnus/magnus 2.3.3 → 2.3.5

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/dist/install.js +2 -2
  2. package/package.json +9 -9
package/dist/install.js CHANGED
@@ -173,7 +173,7 @@ export async function pendingMigrations(io, project, version) {
173
173
  return (await migrationReport(io, project, version)).pending;
174
174
  }
175
175
  /** Native modules the server and console load at startup, checked before anything changes. */
176
- const NATIVE_MODULES = ['argon2', 'better-sqlite3', 'ssh2', 'sharp'];
176
+ const NATIVE_MODULES = ['argon2', 'better-sqlite3', '@photostructure/sqlite', 'ssh2', 'sharp'];
177
177
  /**
178
178
  * Before the backup: the new version starts on this Node.js (`--version`
179
179
  * prints its version, native modules load) and its configuration check
@@ -190,7 +190,7 @@ const req = createRequire(process.argv[1] + '/');
190
190
  const failed = [];
191
191
  for (const name of ${JSON.stringify(NATIVE_MODULES)}) {
192
192
  let path; try { path = req.resolve(name); } catch { continue; }
193
- try { const mod = await import(path); if (name === 'better-sqlite3') new mod.default(':memory:').close(); } catch (error) { failed.push(name + ': ' + String(error && error.message || error).split('\\n')[0]); }
193
+ try { const mod = await import(path); if (name === 'better-sqlite3') new mod.default(':memory:').close(); if (name === '@photostructure/sqlite') { const db=new (mod.DatabaseSync ?? mod.default.DatabaseSync)(':memory:'); if(db.prepare('SELECT sqlite_version() AS version').get().version!=='3.54.1')throw Error('Unverified embedded SQLite'); db.close(); } } catch (error) { failed.push(name + ': ' + String(error && error.message || error).split('\\n')[0]); }
194
194
  }
195
195
  if (failed.length) { console.error(failed.join('\\n')); process.exit(1); }`;
196
196
  const roots = [join(project.versionDir(version), 'node_modules', '@hivemagnus', 'magnus-server'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hivemagnus/magnus",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "Install, upgrade and roll back a Magnus server and console with one command: `npx @hivemagnus/magnus init`, then `magnus upgrade`. Pins exact, tested component versions, backs up PostgreSQL before every migration and reverts automatically when the new version fails its health check.",
5
5
  "keywords": [
6
6
  "magnus",
@@ -47,7 +47,7 @@
47
47
  "clean": "node -e \"const fs=require('node:fs');fs.rmSync('dist',{recursive:true,force:true});fs.rmSync('tsconfig.tsbuildinfo',{force:true})\""
48
48
  },
49
49
  "dependencies": {
50
- "@hivemagnus/magnus-contracts": "2.3.3"
50
+ "@hivemagnus/magnus-contracts": "2.3.5"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/node": "^24.19.2",
@@ -56,15 +56,15 @@
56
56
  },
57
57
  "magnusRelease": {
58
58
  "schema": 1,
59
- "version": "2.3.3",
59
+ "version": "2.3.5",
60
60
  "engines": {
61
61
  "node": "^24.22.1 || ^26.13.0"
62
62
  },
63
63
  "components": {
64
- "@hivemagnus/magnus-server": "2.3.3",
65
- "@hivemagnus/magnus-ui": "2.3.3",
66
- "@hivemagnus/magnus-contracts": "2.3.3",
67
- "@hivemagnus/magnus-agent": "2.3.3"
64
+ "@hivemagnus/magnus-server": "2.3.5",
65
+ "@hivemagnus/magnus-ui": "2.3.5",
66
+ "@hivemagnus/magnus-contracts": "2.3.5",
67
+ "@hivemagnus/magnus-agent": "2.3.5"
68
68
  },
69
69
  "breaking": false,
70
70
  "minUpgradeFrom": "1.0.0",
@@ -77,8 +77,8 @@
77
77
  "selfUpgradeProtocol": 1,
78
78
  "minLauncher": 1
79
79
  },
80
- "summary": "Refresh service and console dependencies and track Ardent 2.3.1 with the released DOCX codec.",
81
- "notesUrl": "https://github.com/ChefTaco/magnus/releases/tag/v2.3.3",
80
+ "summary": "Replace affected embedded SQLite and container runtime libraries while preserving offline context recovery.",
81
+ "notesUrl": "https://github.com/ChefTaco/magnus/releases/tag/v2.3.5",
82
82
  "allowScripts": {
83
83
  "@prisma/engines": true,
84
84
  "argon2": true,