@hardkas/core 0.9.1-alpha → 0.9.3-alpha

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.
package/dist/index.d.ts CHANGED
@@ -1055,7 +1055,7 @@ declare class AppendCoordinator {
1055
1055
  };
1056
1056
  }
1057
1057
 
1058
- declare const CURRENT_RUNTIME_VERSION = "0.9.1-alpha";
1058
+ declare const CURRENT_RUNTIME_VERSION = "0.9.3-alpha";
1059
1059
  declare const MIN_SUPPORTED_VERSION = "0.5.0-alpha";
1060
1060
  interface MigrationStatus {
1061
1061
  needsMigration: boolean;
package/dist/index.js CHANGED
@@ -546,7 +546,7 @@ var AppendCoordinator = class _AppendCoordinator {
546
546
  originalTail: lastLine,
547
547
  originalSize: stat.size,
548
548
  recoveredSize: truncateTo,
549
- reason: err instanceof Error ? err.message : "Invalid JSON syntax"
549
+ reason: err instanceof Error ? err instanceof Error ? err instanceof Error ? err.message : String(err) : String(err) : "Invalid JSON syntax"
550
550
  };
551
551
  }
552
552
  } catch (e) {
@@ -1199,7 +1199,7 @@ async function createSnapshot(options) {
1199
1199
  const manifest = {
1200
1200
  snapshotVersion: 1,
1201
1201
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
1202
- hardkasVersion: "0.9.1-alpha",
1202
+ hardkasVersion: "0.9.3-alpha",
1203
1203
  stateAuthority: "filesystem",
1204
1204
  projectionAuthority: "sqlite",
1205
1205
  deterministicScope,
@@ -1275,7 +1275,7 @@ var TelemetryRotator = class {
1275
1275
  bytesRotated: stats.size
1276
1276
  };
1277
1277
  } catch (err) {
1278
- return { rotated: false, reason: `Rename failed: ${err.message}` };
1278
+ return { rotated: false, reason: `Rename failed: ${err instanceof Error ? err instanceof Error ? err.message : String(err) : String(err)}` };
1279
1279
  }
1280
1280
  }
1281
1281
  /**
@@ -1448,7 +1448,7 @@ Resolution Command: ${report.exactReplayCommand}`
1448
1448
  // src/migrations.ts
1449
1449
  import fs6 from "fs";
1450
1450
  import path8 from "path";
1451
- var CURRENT_RUNTIME_VERSION = "0.9.1-alpha";
1451
+ var CURRENT_RUNTIME_VERSION = "0.9.3-alpha";
1452
1452
  var MIN_SUPPORTED_VERSION = "0.5.0-alpha";
1453
1453
  var MigrationManager = class {
1454
1454
  static checkVersion(rootDir) {
@@ -1481,7 +1481,7 @@ var MigrationManager = class {
1481
1481
  if (err instanceof HardkasError) throw err;
1482
1482
  throw new HardkasError(
1483
1483
  "MIGRATION_ERROR",
1484
- `Failed to parse version.json: ${err.message}`
1484
+ `Failed to parse version.json: ${err instanceof Error ? err instanceof Error ? err.message : String(err) : String(err)}`
1485
1485
  );
1486
1486
  }
1487
1487
  }
@@ -1511,11 +1511,11 @@ var MigrationManager = class {
1511
1511
  "EXTERNAL_MUTATION",
1512
1512
  "critical",
1513
1513
  "projection",
1514
- `Migration failed: ${err.message}`
1514
+ `Migration failed: ${err instanceof Error ? err instanceof Error ? err.message : String(err) : String(err)}`
1515
1515
  );
1516
1516
  throw new HardkasError(
1517
1517
  "MIGRATION_FAILED",
1518
- `Migration failed, workspace might be corrupted: ${err.message}`
1518
+ `Migration failed, workspace might be corrupted: ${err instanceof Error ? err instanceof Error ? err.message : String(err) : String(err)}`
1519
1519
  );
1520
1520
  }
1521
1521
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardkas/core",
3
- "version": "0.9.1-alpha",
3
+ "version": "0.9.3-alpha",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",