From cf9cc22a1c3450066318bf40130262373ee87cbb Mon Sep 17 00:00:00 2001 From: zefie Date: Sun, 3 May 2026 15:26:38 -0400 Subject: [PATCH] new depreciation --- zefie_wtvp_minisrv/app.js | 2 +- zefie_wtvp_minisrv/includes/depreciated.json | 10 +++++++++- .../tools/scan_service_vault_deprecations.js | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/zefie_wtvp_minisrv/app.js b/zefie_wtvp_minisrv/app.js index 091f8825..1cf6d2d8 100644 --- a/zefie_wtvp_minisrv/app.js +++ b/zefie_wtvp_minisrv/app.js @@ -382,7 +382,7 @@ const runScriptInVM = function (script_data, user_contextObj = {}, privileged = "service_vaults": service_vaults, "service_deps": service_deps, "ssid_sessions": ssid_sessions, - "moveArrayKey": wtvshared.moveArrayKey, + "moveArrayKey": wtvshared.moveArrayKey, // deprecated - use wtvshared.moveArrayKey() instead "cwd": (filename) ? path.dirname(filename) : __dirname, // current working directory // Our prototype overrides diff --git a/zefie_wtvp_minisrv/includes/depreciated.json b/zefie_wtvp_minisrv/includes/depreciated.json index 333d1fa9..53ebadda 100644 --- a/zefie_wtvp_minisrv/includes/depreciated.json +++ b/zefie_wtvp_minisrv/includes/depreciated.json @@ -14,5 +14,13 @@ "message": "getServiceString() is deprecated and will be removed", "removeVersion": "0.9.80", "replacement": "Use wtvshared.getServiceString() instead" - } + }, + { + "id": "moveArrayKey", + "pattern": "(? ( path.isAbsolute(vault) ? path.resolve(vault) : path.resolve(process.cwd(), vault) )); @@ -307,6 +307,7 @@ function main() { console.log(JSON.stringify(payload, null, 2)); } else { console.log('ServiceVault deprecation scan'); + console.log('- Deprecation count: ' + deprecationPatterns.length); console.log(`- Vault roots: ${vaultsToScan.length}`); console.log(`- Missing vault roots: ${missingVaults.length}`); console.log(`- Files scanned: ${filesToScan.length}`);