

import { CURRENT_FRAMEWORK_STORAGE_VERSION } from "./updates.mjs";
import { isFirstVersionEqualToSecond, isFirstVersionHigherThanSecond, parseVersionString } from "../../utils/version.mjs";

//#region src/storage/migration/isUpToDate.ts
function isStorageUpToDate(storageVersion, updateToVersion) {
	const currentStorageVersion = parseVersionString(storageVersion);
	const compareToVersion = parseVersionString(updateToVersion ?? CURRENT_FRAMEWORK_STORAGE_VERSION);
	return isFirstVersionEqualToSecond(currentStorageVersion, compareToVersion) || isFirstVersionHigherThanSecond(currentStorageVersion, compareToVersion);
}

//#endregion
export { isStorageUpToDate };
//# sourceMappingURL=isUpToDate.mjs.map