@voltro/database 0.83.1 → 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.
- package/CHANGELOG.md +1191 -0
- package/THIRD-PARTY-NOTICES.md +1 -57
- package/dist/index.d.ts +171 -90
- package/dist/index.js +816 -710
- package/dist/replaceInProgress-DC88Pdiy.js +3735 -0
- package/dist/sql.d.ts +226 -22
- package/dist/sql.js +3050 -1722
- package/dist/{wire-B28cPjEp.js → wire-CG2j7J3f.js} +1 -1
- package/dist/wire.d.ts +9 -10
- package/dist/wire.js +1 -1
- package/package.json +3 -5
- package/dist/replaceInProgress-Z1aAw3GD.js +0 -2365
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
55
|
-
readonly
|
|
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:
|
|
59
|
+
readonly expected: Schema.Number;
|
|
61
60
|
/** What it is actually at. `null` when the row is gone entirely. */
|
|
62
|
-
actual: Schema.NullOr<
|
|
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-
|
|
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.
|
|
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
|
-
"@
|
|
47
|
-
"@effect/sql": "^0.52.1",
|
|
48
|
-
"@voltro/logger": "0.83.1",
|
|
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": "
|
|
51
|
+
"effect": "4.0.1"
|
|
54
52
|
},
|
|
55
53
|
"publishConfig": {
|
|
56
54
|
"access": "public"
|