on-zero 0.11.1 → 0.11.2
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/cjs/useStreamingField.cjs +1 -1
- package/dist/cjs/useStreamingField.native.js +1 -1
- package/dist/esm/useStreamingField.mjs +1 -1
- package/dist/esm/useStreamingField.native.js +1 -1
- package/package.json +3 -2
- package/src/useStreamingField.ts +2 -2
- package/types/useStreamingField.d.ts +1 -1
- package/types/useStreamingField.d.ts.map +1 -1
|
@@ -26,7 +26,7 @@ __export(useStreamingField_exports, {
|
|
|
26
26
|
createUseStreamingFields: () => createUseStreamingFields
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(useStreamingField_exports);
|
|
29
|
-
var import_realtime = require("orez-
|
|
29
|
+
var import_realtime = require("orez-sync-executor/realtime");
|
|
30
30
|
var import_react = require("react");
|
|
31
31
|
function createUseStreamingField(getStore) {
|
|
32
32
|
return function useStreamingField(handle, base) {
|
|
@@ -28,7 +28,7 @@ __export(useStreamingField_exports, {
|
|
|
28
28
|
createUseStreamingFields: () => createUseStreamingFields
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(useStreamingField_exports);
|
|
31
|
-
var import_realtime = require("orez-
|
|
31
|
+
var import_realtime = require("orez-sync-executor/realtime");
|
|
32
32
|
var import_react = require("react");
|
|
33
33
|
function _type_of(obj) {
|
|
34
34
|
"@swc/helpers - typeof";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { canonicalTopic } from "orez-
|
|
1
|
+
import { canonicalTopic } from "orez-sync-executor/realtime";
|
|
2
2
|
import { useCallback, useMemo, useSyncExternalStore } from "react";
|
|
3
3
|
function createUseStreamingField(getStore) {
|
|
4
4
|
return function useStreamingField(handle, base) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "on-zero",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "A typed layer over @rocicorp/zero with queries, mutations, and permissions",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -105,7 +105,8 @@
|
|
|
105
105
|
"chokidar": "^4.0.3",
|
|
106
106
|
"citty": "^0.1.6",
|
|
107
107
|
"dequal": "^2.0.3",
|
|
108
|
-
"orez-lite": "0.11.
|
|
108
|
+
"orez-lite": "0.11.2",
|
|
109
|
+
"orez-sync-executor": "0.11.2",
|
|
109
110
|
"valibot": "^1.1.0"
|
|
110
111
|
},
|
|
111
112
|
"peerDependencies": {
|
package/src/useStreamingField.ts
CHANGED
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
// is the property an app hand-rolls otherwise, usually as a global emitter plus
|
|
18
18
|
// a deep-equal projection to undo the over-broadcasting.
|
|
19
19
|
|
|
20
|
-
import { canonicalTopic } from 'orez-
|
|
20
|
+
import { canonicalTopic } from 'orez-sync-executor/realtime'
|
|
21
21
|
import { useCallback, useMemo, useSyncExternalStore } from 'react'
|
|
22
22
|
|
|
23
23
|
import type {
|
|
24
24
|
RealtimeStore,
|
|
25
25
|
StreamingFieldHandle,
|
|
26
26
|
StreamingFieldState,
|
|
27
|
-
} from 'orez-
|
|
27
|
+
} from 'orez-sync-executor/realtime'
|
|
28
28
|
|
|
29
29
|
// `streaming.message.content({ id })` returns a StreamingFieldHandle: the row's
|
|
30
30
|
// topic plus the manifest spec for that column, so a hook needs no lookup and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RealtimeStore, StreamingFieldHandle, StreamingFieldState } from 'orez-
|
|
1
|
+
import type { RealtimeStore, StreamingFieldHandle, StreamingFieldState } from 'orez-sync-executor/realtime';
|
|
2
2
|
export type { StreamingFieldHandle };
|
|
3
3
|
export type UseStreamingField = <Value>(handle: StreamingFieldHandle | null | undefined, base: Value) => StreamingFieldState<Value>;
|
|
4
4
|
export type StreamingFieldRequest<Value = unknown> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStreamingField.d.ts","sourceRoot":"","sources":["../src/useStreamingField.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,
|
|
1
|
+
{"version":3,"file":"useStreamingField.d.ts","sourceRoot":"","sources":["../src/useStreamingField.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,6BAA6B,CAAA;AAKpC,YAAY,EAAE,oBAAoB,EAAE,CAAA;AAKpC,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EACpC,MAAM,EAAE,oBAAoB,GAAG,IAAI,GAAG,SAAS,EAC/C,IAAI,EAAE,KAAK,KACR,mBAAmB,CAAC,KAAK,CAAC,CAAA;AAK/B,MAAM,MAAM,qBAAqB,CAAC,KAAK,GAAG,OAAO,IAAI;IACnD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAA;IACrC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EACrC,QAAQ,EAAE,SAAS,qBAAqB,CAAC,KAAK,CAAC,EAAE,KAC9C,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAKzD,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,MAAM,aAAa,GAAG,SAAS,GACxC,iBAAiB,CA6BnB;AASD,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,aAAa,GAAG,SAAS,GACxC,kBAAkB,CA2DpB"}
|