doxum 0.1.33 → 0.1.34
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/README.md +6 -7
- package/dist/advanced.cjs +1 -1
- package/dist/advanced.js +1 -1
- package/dist/index.cjs +340 -124
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +340 -124
- package/dist/index.js.map +1 -1
- package/dist/{transform-CSPGdBe5.cjs → transform-Bt1Mwgrj.cjs} +140 -157
- package/dist/transform-Bt1Mwgrj.cjs.map +1 -0
- package/dist/{transform-A9Lx5R2l.js → transform-RghG_Qxs.js} +141 -152
- package/dist/transform-RghG_Qxs.js.map +1 -0
- package/package.json +1 -1
- package/skills/doxum-runtime/SKILL.md +1 -1
- package/skills/doxum-runtime/references/integrations.md +2 -2
- package/skills/doxum-runtime/references/invariants.md +6 -3
- package/skills/doxum-runtime/references/projections.md +21 -20
- package/skills/doxum-runtime/references/public-api.md +3 -7
- package/skills/doxum-runtime/references/recipes.md +2 -2
- package/dist/transform-A9Lx5R2l.js.map +0 -1
- package/dist/transform-CSPGdBe5.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -93,10 +93,6 @@ type ProjectionItems<K extends string, V> = {
|
|
|
93
93
|
};
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region core/src/projection/runtime.d.ts
|
|
96
|
-
type BatchRead = {
|
|
97
|
-
<T>(input: Input<T>): T;
|
|
98
|
-
<K extends string, V>(input: CollectionInput<K, V>): ReadonlyMap<K, V>;
|
|
99
|
-
};
|
|
100
96
|
type ProjectionRuntime = {
|
|
101
97
|
read<T>(projection: Projection<T>): T;
|
|
102
98
|
select<T>(projection: Projection<T>): Readable<T>;
|
|
@@ -104,7 +100,7 @@ type ProjectionRuntime = {
|
|
|
104
100
|
items<K extends string, V>(projection: KeyedProjection<K, V>): ProjectionItems<K, V>;
|
|
105
101
|
update<T>(input: Input<T>, value: NoInfer<T>): void;
|
|
106
102
|
update<K extends string, V, R>(input: CollectionInput<K, V>, run: (draft: CollectionInputDraft<K, V>) => Synchronous<R>): void;
|
|
107
|
-
batch<T>(run: (
|
|
103
|
+
batch<T>(run: () => Synchronous<T>, options?: {
|
|
108
104
|
readonly cause?: unknown;
|
|
109
105
|
}): T;
|
|
110
106
|
scope(): ProjectionScope;
|
|
@@ -122,7 +118,7 @@ type ProjectionScope = {
|
|
|
122
118
|
items<K extends string, V>(projection: KeyedProjection<K, V>): ProjectionItems<K, V>;
|
|
123
119
|
update<T>(input: Input<T>, value: NoInfer<T>): void;
|
|
124
120
|
update<K extends string, V, R>(input: CollectionInput<K, V>, run: (draft: CollectionInputDraft<K, V>) => Synchronous<R>): void;
|
|
125
|
-
batch<T>(run: (
|
|
121
|
+
batch<T>(run: () => Synchronous<T>, options?: {
|
|
126
122
|
readonly cause?: unknown;
|
|
127
123
|
}): T;
|
|
128
124
|
dispose(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -93,10 +93,6 @@ type ProjectionItems<K extends string, V> = {
|
|
|
93
93
|
};
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region core/src/projection/runtime.d.ts
|
|
96
|
-
type BatchRead = {
|
|
97
|
-
<T>(input: Input<T>): T;
|
|
98
|
-
<K extends string, V>(input: CollectionInput<K, V>): ReadonlyMap<K, V>;
|
|
99
|
-
};
|
|
100
96
|
type ProjectionRuntime = {
|
|
101
97
|
read<T>(projection: Projection<T>): T;
|
|
102
98
|
select<T>(projection: Projection<T>): Readable<T>;
|
|
@@ -104,7 +100,7 @@ type ProjectionRuntime = {
|
|
|
104
100
|
items<K extends string, V>(projection: KeyedProjection<K, V>): ProjectionItems<K, V>;
|
|
105
101
|
update<T>(input: Input<T>, value: NoInfer<T>): void;
|
|
106
102
|
update<K extends string, V, R>(input: CollectionInput<K, V>, run: (draft: CollectionInputDraft<K, V>) => Synchronous<R>): void;
|
|
107
|
-
batch<T>(run: (
|
|
103
|
+
batch<T>(run: () => Synchronous<T>, options?: {
|
|
108
104
|
readonly cause?: unknown;
|
|
109
105
|
}): T;
|
|
110
106
|
scope(): ProjectionScope;
|
|
@@ -122,7 +118,7 @@ type ProjectionScope = {
|
|
|
122
118
|
items<K extends string, V>(projection: KeyedProjection<K, V>): ProjectionItems<K, V>;
|
|
123
119
|
update<T>(input: Input<T>, value: NoInfer<T>): void;
|
|
124
120
|
update<K extends string, V, R>(input: CollectionInput<K, V>, run: (draft: CollectionInputDraft<K, V>) => Synchronous<R>): void;
|
|
125
|
-
batch<T>(run: (
|
|
121
|
+
batch<T>(run: () => Synchronous<T>, options?: {
|
|
126
122
|
readonly cause?: unknown;
|
|
127
123
|
}): T;
|
|
128
124
|
dispose(): void;
|