teamplay 0.5.0-alpha.32 → 0.5.0-alpha.33
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/orm/Compat/SignalCompat.js +2 -2
- package/dist/orm/events.d.ts +6 -0
- package/dist/orm/{Compat/eventsCompat.js → events.js} +0 -2
- package/dist/orm/{Compat/queryReadiness.d.ts → queryReadiness.d.ts} +1 -1
- package/dist/orm/{Compat/queryReadiness.js → queryReadiness.js} +9 -9
- package/dist/react/useSub.js +1 -1
- package/package.json +3 -2
- package/dist/orm/Compat/eventsCompat.d.ts +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export type { SubMode, SubOptions } from './orm/sub.js';
|
|
|
58
58
|
export { default as useSub, useAsyncSub, useBatchSub, setUseDeferredValue as __setUseDeferredValue, setDefaultDefer as __setDefaultDefer } from './react/useSub.js';
|
|
59
59
|
export { default as useSuspendMemo, useSuspendMemoByKey } from './react/useSuspendMemo.js';
|
|
60
60
|
export declare const observer: ObserverFunction;
|
|
61
|
-
export { emit, useOn, useEmit } from './orm/
|
|
61
|
+
export { emit, useOn, useEmit } from './orm/events.js';
|
|
62
62
|
export { default as reaction } from './orm/reaction.js';
|
|
63
63
|
export type { ReactionHandle, ReactionOptions } from './orm/reaction.js';
|
|
64
64
|
export { useDidUpdate, useOnce, useSyncEffect } from './react/helpers.js';
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { default as sub, unsub } from "./orm/sub.js";
|
|
|
18
18
|
export { default as useSub, useAsyncSub, useBatchSub, setUseDeferredValue as __setUseDeferredValue, setDefaultDefer as __setDefaultDefer } from "./react/useSub.js";
|
|
19
19
|
export { default as useSuspendMemo, useSuspendMemoByKey } from "./react/useSuspendMemo.js";
|
|
20
20
|
export const observer = runtimeObserver;
|
|
21
|
-
export { emit, useOn, useEmit } from './orm/
|
|
21
|
+
export { emit, useOn, useEmit } from './orm/events.js';
|
|
22
22
|
export { default as reaction } from "./orm/reaction.js";
|
|
23
23
|
export { useDidUpdate, useOnce, useSyncEffect } from "./react/helpers.js";
|
|
24
24
|
export { connection, setConnection, getConnection, getDefaultFetchOnly, setDefaultFetchOnly, publicOnly, setPublicOnly } from "./orm/connection.js";
|
|
@@ -7,8 +7,8 @@ import { IS_QUERY, querySubscriptions } from '../Query.js';
|
|
|
7
7
|
import { AGGREGATIONS, IS_AGGREGATION, aggregationSubscriptions } from '../Aggregation.js';
|
|
8
8
|
import { getIdFieldsForSegments, isIdFieldPath, isPublicDocPath, normalizeIdFields, isPlainObject } from "../idFields.js";
|
|
9
9
|
import { incrementPublic as _incrementPublic, arrayPushPublic as _arrayPushPublic, arrayUnshiftPublic as _arrayUnshiftPublic, arrayInsertPublic as _arrayInsertPublic, arrayPopPublic as _arrayPopPublic, arrayShiftPublic as _arrayShiftPublic, arrayRemovePublic as _arrayRemovePublic, arrayMovePublic as _arrayMovePublic, setPublicDocReplace as _setPublicDocReplace, stringInsertPublic as _stringInsertPublic, stringRemovePublic as _stringRemovePublic } from '../dataTree.js';
|
|
10
|
-
import { on as onCustomEvent, removeListener as removeCustomEventListener } from '
|
|
11
|
-
import { waitForImperativeQueryReady } from '
|
|
10
|
+
import { on as onCustomEvent, removeListener as removeCustomEventListener } from '../events.js';
|
|
11
|
+
import { waitForImperativeQueryReady } from '../queryReadiness.js';
|
|
12
12
|
import { isModelEventsEnabled } from './modelEvents.js';
|
|
13
13
|
import { setRefLink, removeRefLink, getAllRefLinks } from './refRegistry.js';
|
|
14
14
|
import { REF_TARGET, resolveRefSignalSafe, resolveRefSegmentsSafe } from './refFallback.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useLayoutEffect } from 'react';
|
|
2
|
-
import { __resetModelEventsForTests } from './modelEvents.js';
|
|
3
2
|
const listeners = new Map();
|
|
4
3
|
export function emit(eventName, ...args) {
|
|
5
4
|
const subs = listeners.get(eventName);
|
|
@@ -46,5 +45,4 @@ export function useEmit() {
|
|
|
46
45
|
}
|
|
47
46
|
export function __resetEventsForTests() {
|
|
48
47
|
listeners.clear();
|
|
49
|
-
__resetModelEventsForTests();
|
|
50
48
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { getRaw } from '
|
|
2
|
-
import { getConnection } from "
|
|
3
|
-
import { isMissingShareDoc } from '
|
|
4
|
-
import { QUERIES, HASH, PARAMS, COLLECTION_NAME, querySubscriptions } from '
|
|
5
|
-
import { AGGREGATIONS, IS_AGGREGATION, aggregationSubscriptions } from '
|
|
6
|
-
import { getPrivateData, setPrivateData } from '
|
|
7
|
-
import { getRoot, ROOT_ID } from "
|
|
8
|
-
import { isRootContextClosed } from "
|
|
9
|
-
import { getScopedSignalHash, normalizeRootId } from "
|
|
1
|
+
import { getRaw } from './dataTree.js';
|
|
2
|
+
import { getConnection } from "./connection.js";
|
|
3
|
+
import { isMissingShareDoc } from './missingDoc.js';
|
|
4
|
+
import { QUERIES, HASH, PARAMS, COLLECTION_NAME, querySubscriptions } from './Query.js';
|
|
5
|
+
import { AGGREGATIONS, IS_AGGREGATION, aggregationSubscriptions } from './Aggregation.js';
|
|
6
|
+
import { getPrivateData, setPrivateData } from './privateData.js';
|
|
7
|
+
import { getRoot, ROOT_ID } from "./Root.js";
|
|
8
|
+
import { isRootContextClosed } from "./rootContext.js";
|
|
9
|
+
import { getScopedSignalHash, normalizeRootId } from "./rootScope.js";
|
|
10
10
|
let imperativeQueryReadyTimeoutMs = 1000;
|
|
11
11
|
export function isQueryReady(collection, idsSegments, docsSegments, extraSegments, aggregationSegments, isAggregate, hasExtraResult) {
|
|
12
12
|
if (hasExtraResult) {
|
package/dist/react/useSub.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useScheduleUpdate, useCache, useDefer } from "./helpers.js";
|
|
|
4
4
|
import executionContextTracker from "./executionContextTracker.js";
|
|
5
5
|
import * as promiseBatcher from "./promiseBatcher.js";
|
|
6
6
|
import { getPrivateData } from '../orm/privateData.js';
|
|
7
|
-
import { isDocReady } from '../orm/
|
|
7
|
+
import { isDocReady } from '../orm/queryReadiness.js';
|
|
8
8
|
import { getRoot, ROOT_ID } from "../orm/Root.js";
|
|
9
9
|
import { COLLECTION_NAME, HASH, IS_QUERY, PARAMS, QUERIES, querySubscriptions, materializeQueryDataDocsToCollection } from '../orm/Query.js';
|
|
10
10
|
import { AGGREGATIONS, IS_AGGREGATION, aggregationSubscriptions } from '../orm/Aggregation.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teamplay",
|
|
3
|
-
"version": "0.5.0-alpha.
|
|
3
|
+
"version": "0.5.0-alpha.33",
|
|
4
4
|
"description": "Full-stack signals ORM with multiplayer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -138,5 +138,6 @@
|
|
|
138
138
|
"<rootDir>/test_client/helpers"
|
|
139
139
|
]
|
|
140
140
|
},
|
|
141
|
-
"license": "MIT"
|
|
141
|
+
"license": "MIT",
|
|
142
|
+
"gitHead": "5355598efe68ec4d94d0a08b0450a1bd35358caa"
|
|
142
143
|
}
|