teamplay 0.5.0-alpha.28 → 0.5.0-alpha.29

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.
@@ -1,12 +1,11 @@
1
1
  import Cache from "./Cache.js";
2
- import Signal, { SEGMENTS, regularBindings, extremelyLateBindings, isPublicCollection, isPrivateCollection } from "./Signal.js";
2
+ import Signal, { regularBindings, extremelyLateBindings, isPublicCollection, isPrivateCollection } from "./Signal.js";
3
3
  import { findModel } from "./addModel.js";
4
4
  import { LOCAL } from './$.js';
5
5
  import { ROOT, ROOT_ID, GLOBAL_ROOT_ID } from "./Root.js";
6
6
  import { QUERIES } from './Query.js';
7
7
  import { AGGREGATIONS } from './Aggregation.js';
8
8
  import { isCompatEnv } from './compatEnv.js';
9
- import { getConnection } from "./connection.js";
10
9
  import { resolveRefSegmentsSafe } from './Compat/refFallback.js';
11
10
  import { getSignalIdentityHash } from "./rootScope.js";
12
11
  import { isRootContextClosed, registerRootOwnedSignalHash } from "./rootContext.js";
@@ -80,25 +79,7 @@ export default function getSignal($root, segments = [], { useExtremelyLateBindin
80
79
  return proxy;
81
80
  }
82
81
  function getDefaultProxyHandlers({ useExtremelyLateBindings } = {}) {
83
- const baseHandlers = (useExtremelyLateBindings ? extremelyLateBindings : regularBindings);
84
- if (!isCompatEnv() || baseHandlers !== extremelyLateBindings)
85
- return baseHandlers;
86
- return {
87
- ...baseHandlers,
88
- get(signal, key, receiver) {
89
- if (key === 'connection' && signal[SEGMENTS].length === 0) {
90
- try {
91
- return getConnection();
92
- }
93
- catch {
94
- return undefined;
95
- }
96
- }
97
- return baseHandlers.get
98
- ? baseHandlers.get(signal, key, receiver)
99
- : Reflect.get(signal, key, receiver);
100
- }
101
- };
82
+ return (useExtremelyLateBindings ? extremelyLateBindings : regularBindings);
102
83
  }
103
84
  export function getSignalClass(segments, rootId = GLOBAL_ROOT_ID) {
104
85
  let Model = findModel(segments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teamplay",
3
- "version": "0.5.0-alpha.28",
3
+ "version": "0.5.0-alpha.29",
4
4
  "description": "Full-stack signals ORM with multiplayer",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -134,5 +134,5 @@
134
134
  ]
135
135
  },
136
136
  "license": "MIT",
137
- "gitHead": "3b775365e270ca2f93918780d3be4d03c4e56d51"
137
+ "gitHead": "731a77d720afb01918969d9e02cc4eb0c2fa111e"
138
138
  }