@voltro/database 0.84.0 → 0.85.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.
@@ -27,6 +27,6 @@ var t = class extends e.TaggedError()("VersionConflict", {
27
27
  expected: e.expected,
28
28
  actual: e.current
29
29
  });
30
- }, a = 1, o = e.DateFromNumber, s = e.NullOr(o);
30
+ }, a = 1, o = e.DateFromMillis.annotate({ description: "A point in time: a Date in the handler, epoch milliseconds on the wire." }), s = e.NullOr(o);
31
31
  //#endregion
32
32
  export { r as a, t as i, s as n, i as o, a as r, n as s, o as t };
package/dist/wire.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Schema } from 'effect';
2
+ import { YieldableError } from 'effect/Cause';
2
3
 
3
4
  /**
4
5
  * The timestamp mapping as a STANDALONE field schema: `Date` in the
@@ -27,7 +28,7 @@ import { Schema } from 'effect';
27
28
  * There is deliberately no `timestampMsOptional`: an absent field is
28
29
  * `Schema.optional(timestampMs)`, which composes without a third export.
29
30
  */
30
- export declare const timestampMs: Schema.Schema<Date, number>;
31
+ export declare const timestampMs: Schema.Codec<Date, number>;
31
32
 
32
33
  /**
33
34
  * `timestampMs` for a NULLABLE timestamp column — `Date | null` in the
@@ -39,7 +40,7 @@ export declare const timestampMs: Schema.Schema<Date, number>;
39
40
  * instead of as nothing. Mirrors what `columnSchema` does for a
40
41
  * `.nullable()` timestamp.
41
42
  */
42
- export declare const timestampMsOrNull: Schema.Schema<Date | null, number | null>;
43
+ export declare const timestampMsOrNull: Schema.Codec<Date | null, number | null>;
43
44
 
44
45
  /**
45
46
  * A write lost the race.
@@ -51,15 +52,13 @@ export declare const timestampMsOrNull: Schema.Schema<Date | null, number | null
51
52
  export declare class VersionConflict extends VersionConflict_base {
52
53
  }
53
54
 
54
- declare const VersionConflict_base: Schema.TaggedErrorClass<VersionConflict, "VersionConflict", {
55
- readonly _tag: Schema.tag<"VersionConflict">;
56
- } & {
57
- table: typeof Schema.String;
58
- id: typeof Schema.String;
55
+ declare const VersionConflict_base: Schema.Class<VersionConflict, Schema.TaggedStruct<"VersionConflict", {
56
+ readonly table: Schema.String;
57
+ readonly id: Schema.String;
59
58
  /** What the caller believed the row was at. */
60
- expected: typeof Schema.Number;
59
+ readonly expected: Schema.Number;
61
60
  /** What it is actually at. `null` when the row is gone entirely. */
62
- actual: Schema.NullOr<typeof Schema.Number>;
63
- }>;
61
+ readonly actual: Schema.NullOr<Schema.Number>;
62
+ }>, YieldableError>;
64
63
 
65
64
  export { }
package/dist/wire.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, t as n } from "./wire-B28cPjEp.js";
1
+ import { i as e, n as t, t as n } from "./wire-CG2j7J3f.js";
2
2
  export { e as VersionConflict, n as timestampMs, t as timestampMsOrNull };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/database",
3
- "version": "0.84.0",
3
+ "version": "0.85.0",
4
4
  "description": "Browser-safe schema DSL, query builder, and cross-dialect migration planner for Voltro — one schema, every SQL backend.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -43,14 +43,12 @@
43
43
  "node": ">=24.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@effect/experimental": "^0.61.1",
47
- "@effect/sql": "^0.52.1",
48
- "@voltro/logger": "0.84.0",
46
+ "@voltro/logger": "0.85.0",
49
47
  "typeid-js": "^1.2.0",
50
48
  "ulidx": "^2.4.1"
51
49
  },
52
50
  "peerDependencies": {
53
- "effect": "^3.22.2"
51
+ "effect": "4.0.1"
54
52
  },
55
53
  "publishConfig": {
56
54
  "access": "public"