@optave/codegraph 2.4.0 → 2.5.0

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.
@@ -109,6 +109,7 @@ export async function checkForUpdates(currentVersion, options = {}) {
109
109
  if (process.env.CI) return null;
110
110
  if (process.env.NO_UPDATE_CHECK) return null;
111
111
  if (!process.stderr.isTTY) return null;
112
+ if (currentVersion.includes('-')) return null;
112
113
 
113
114
  const cachePath = options.cachePath || CACHE_PATH;
114
115
  const fetchFn = options._fetchLatest || fetchLatestVersion;
package/src/watcher.js CHANGED
@@ -2,7 +2,7 @@ import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import { readFileSafe } from './builder.js';
4
4
  import { EXTENSIONS, IGNORE_DIRS, normalizePath } from './constants.js';
5
- import { initSchema, openDb } from './db.js';
5
+ import { closeDb, initSchema, openDb } from './db.js';
6
6
  import { appendJournalEntries } from './journal.js';
7
7
  import { info, warn } from './logger.js';
8
8
  import { createParseTreeCache, getActiveEngine, parseFileIncremental } from './parser.js';
@@ -261,7 +261,7 @@ export async function watchProject(rootDir, opts = {}) {
261
261
  }
262
262
  }
263
263
  if (cache) cache.clear();
264
- db.close();
264
+ closeDb(db);
265
265
  process.exit(0);
266
266
  });
267
267
  }