teamplay 0.5.0-alpha.32 → 0.5.0-alpha.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/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/Compat/eventsCompat.js';
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/Compat/eventsCompat.js';
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";
package/dist/orm/$.js CHANGED
@@ -4,7 +4,7 @@
4
4
  import getSignal from "./getSignal.js";
5
5
  import Signal from "./Signal.js";
6
6
  import { LOCAL, valueSubscriptions } from './Value.js';
7
- import { reactionSubscriptions } from './Reaction.js';
7
+ import { reactionSubscriptions } from './reactionSubscriptions.js';
8
8
  export { LOCAL } from './Value.js';
9
9
  let counter = 0;
10
10
  function newIncrementalId() {
@@ -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 './eventsCompat.js';
11
- import { waitForImperativeQueryReady } from './queryReadiness.js';
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';
@@ -0,0 +1,6 @@
1
+ export const emit: any
2
+ export const on: any
3
+ export const removeListener: any
4
+ export const useOn: any
5
+ export const useEmit: any
6
+ export const __resetEventsForTests: any
@@ -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,4 +1,4 @@
1
- import type { PathSegment } from '../types/path.js'
1
+ import type { PathSegment } from './types/path.js'
2
2
 
3
3
  export function isDocReady (segments: readonly PathSegment[]): boolean
4
4
 
@@ -1,12 +1,12 @@
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";
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) {
@@ -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/Compat/queryReadiness.js';
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.32",
3
+ "version": "0.5.0-alpha.34",
4
4
  "description": "Full-stack signals ORM with multiplayer",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,3 +0,0 @@
1
- export const emit: any
2
- export const useOn: any
3
- export const useEmit: any