diff --git a/core/storage-engine/src/storage-engine.ts b/core/storage-engine/src/storage-engine.ts index e0fc26dbc..43a5de2be 100644 --- a/core/storage-engine/src/storage-engine.ts +++ b/core/storage-engine/src/storage-engine.ts @@ -1,15 +1,13 @@ import {resolve} from 'node:path'; -import {createLogger, globalAlwatr} from '@alwatr/logger'; +import {createLogger, globalAlwatr, type AlwatrLogger} from '@alwatr/logger'; +import {type AlwatrDocumentStorage, type AlwatrDocumentObject} from '@alwatr/type'; import exitHook from 'exit-hook'; +import {type AlwatrStorageEngineConfig} from './type.js'; import {readJsonFile, writeJsonFile} from './util.js'; -import type {AlwatrStorageEngineConfig} from './type.js'; -import type {AlwatrLogger} from '@alwatr/logger'; -import type {AlwatrDocumentStorage, AlwatrDocumentObject} from '@alwatr/type'; - -export type {AlwatrDocumentObject, AlwatrDocumentStorage}; +export {type AlwatrDocumentObject, type AlwatrDocumentStorage}; globalAlwatr.registeredList.push({ name: '@alwatr/storage-engine', @@ -71,7 +69,7 @@ globalAlwatr.registeredList.push({ * ``` */ export class AlwatrStorageEngine { - static readonly formatVersion = 4; + static readonly formatVersion = 5; /** * Storage name like database table name. @@ -157,6 +155,10 @@ export class AlwatrStorageEngine