new depreciation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -14,5 +14,13 @@
|
||||
"message": "getServiceString() is deprecated and will be removed",
|
||||
"removeVersion": "0.9.80",
|
||||
"replacement": "Use wtvshared.getServiceString() instead"
|
||||
},
|
||||
{
|
||||
"id": "moveArrayKey",
|
||||
"pattern": "(?<!wtvshared\\.)moveArrayKey\\s*\\(",
|
||||
"flags": "g",
|
||||
"message": "moveArrayKey() is deprecated and will be removed",
|
||||
"removeVersion": "0.9.80",
|
||||
"replacement": "Use wtvshared.moveArrayKey() instead"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user