From d38fc84029d22a21847ff314e44b116e0d87ba42 Mon Sep 17 00:00:00 2001 From: itlackey Date: Fri, 27 Nov 2026 00:48:11 -0600 Subject: [PATCH] Upgrade inkjs to 2.4.0 Read the bundled inkjs package metadata directly because 2.4 no longer exports package.json. Keep the existing native compilers and export behavior unchanged. Verified real Electron startup and About version, native includes and unsaved edits, replay and rewind, JSON/JS/web exports, and Classic Chrome file playback with both routes and save/load/restart against the 2.2.3 baseline. --- app/main-process/aboutWindow.js | 2 +- .../ink/inkjs-compatible/inkjs-version.txt | 2 +- app/package-lock.json | 12 ++++++++---- app/package.json | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/main-process/aboutWindow.js b/app/main-process/aboutWindow.js index 06de1d50..de0db3ed 100644 --- a/app/main-process/aboutWindow.js +++ b/app/main-process/aboutWindow.js @@ -2,7 +2,7 @@ const electron = require('electron'); const BrowserWindow = electron.BrowserWindow; const path = require("path"); const fs = require("fs"); -const inkjsPackage = require('inkjs/package.json'); +const inkjsPackage = require(path.join(path.dirname(require.resolve('inkjs')), '..', 'package.json')); const i18n = require('./i18n/i18n.js'); diff --git a/app/main-process/ink/inkjs-compatible/inkjs-version.txt b/app/main-process/ink/inkjs-compatible/inkjs-version.txt index f7ca2efe..407849d6 100644 --- a/app/main-process/ink/inkjs-compatible/inkjs-version.txt +++ b/app/main-process/ink/inkjs-compatible/inkjs-version.txt @@ -1,4 +1,4 @@ -inkjs is currently: 2.2.3 +inkjs is currently: 2.4.0 compatible with ink: 1.2.0 ..which is the version of inklecate in this folder. \ No newline at end of file diff --git a/app/package-lock.json b/app/package-lock.json index 7ebf5736..5500ebd7 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -12,7 +12,7 @@ "dependencies": { "chokidar": "^3.6.0", "fuzzaldrin-plus": "^0.6.0", - "inkjs": "^2.2.3", + "inkjs": "^2.4.0", "lodash": "^4.17.21", "mkdirp": "^3.0.1", "randomstring": "^1.3.0" @@ -2191,9 +2191,13 @@ "dev": true }, "node_modules/inkjs": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/inkjs/-/inkjs-2.2.3.tgz", - "integrity": "sha512-WLvjBEeyMpg6MlgFdkyyJhdU5upAXdBGeWV2Utc+B+jQaEHD8P3osE9ZunvEACs+43rwRWLNwdQkcvXZnB3zMw==" + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/inkjs/-/inkjs-2.4.0.tgz", + "integrity": "sha512-EoPCYESIbMtfI8SqEDZCJwn+A5is0QozMLw250iic1ReJCgZpRKIezWj0VqgRUzAx0f3MmEbsUjY/ILe2815JQ==", + "license": "MIT", + "bin": { + "inkjs-compiler": "bin/inkjs-compiler.js" + } }, "node_modules/is-arrayish": { "version": "0.2.1", diff --git a/app/package.json b/app/package.json index c8d379c9..0cbd835c 100644 --- a/app/package.json +++ b/app/package.json @@ -29,7 +29,7 @@ "dependencies": { "chokidar": "^3.6.0", "fuzzaldrin-plus": "^0.6.0", - "inkjs": "^2.2.3", + "inkjs": "^2.4.0", "lodash": "^4.17.21", "mkdirp": "^3.0.1", "randomstring": "^1.3.0"