@flexsurfer/reflex 0.1.20 → 0.1.21
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.cjs +7 -0
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -48,6 +48,7 @@ __export(src_exports, {
|
|
|
48
48
|
enableTracePrint: () => enableTracePrint,
|
|
49
49
|
enableTracing: () => enableTracing,
|
|
50
50
|
getAppDb: () => getAppDb,
|
|
51
|
+
getGlobalEqualityCheck: () => getGlobalEqualityCheck,
|
|
51
52
|
getGlobalInterceptors: () => getGlobalInterceptors,
|
|
52
53
|
getHandler: () => getHandler,
|
|
53
54
|
getHandlers: () => getHandlers,
|
|
@@ -64,6 +65,7 @@ __export(src_exports, {
|
|
|
64
65
|
registerHotReloadCallback: () => registerHotReloadCallback,
|
|
65
66
|
registerTraceCb: () => registerTraceCb,
|
|
66
67
|
removeTraceCb: () => removeTraceCb,
|
|
68
|
+
setGlobalEqualityCheck: () => setGlobalEqualityCheck,
|
|
67
69
|
setupSubsHotReload: () => setupSubsHotReload,
|
|
68
70
|
throttleAndDispatch: () => throttleAndDispatch,
|
|
69
71
|
triggerHotReload: () => triggerHotReload,
|
|
@@ -632,6 +634,9 @@ function clearGlobalInterceptors(id) {
|
|
|
632
634
|
store.globalInterceptors = store.globalInterceptors.filter((interceptor) => interceptor.id !== id);
|
|
633
635
|
}
|
|
634
636
|
}
|
|
637
|
+
function setGlobalEqualityCheck(equalityCheck) {
|
|
638
|
+
store.globalEqualityCheck = equalityCheck;
|
|
639
|
+
}
|
|
635
640
|
function getGlobalEqualityCheck() {
|
|
636
641
|
return store.globalEqualityCheck;
|
|
637
642
|
}
|
|
@@ -1277,6 +1282,7 @@ function HotReloadWrapper({ children }) {
|
|
|
1277
1282
|
enableTracePrint,
|
|
1278
1283
|
enableTracing,
|
|
1279
1284
|
getAppDb,
|
|
1285
|
+
getGlobalEqualityCheck,
|
|
1280
1286
|
getGlobalInterceptors,
|
|
1281
1287
|
getHandler,
|
|
1282
1288
|
getHandlers,
|
|
@@ -1293,6 +1299,7 @@ function HotReloadWrapper({ children }) {
|
|
|
1293
1299
|
registerHotReloadCallback,
|
|
1294
1300
|
registerTraceCb,
|
|
1295
1301
|
removeTraceCb,
|
|
1302
|
+
setGlobalEqualityCheck,
|
|
1296
1303
|
setupSubsHotReload,
|
|
1297
1304
|
throttleAndDispatch,
|
|
1298
1305
|
triggerHotReload,
|
package/dist/index.d.cts
CHANGED
|
@@ -164,6 +164,14 @@ declare function getGlobalInterceptors(): Interceptor[];
|
|
|
164
164
|
*/
|
|
165
165
|
declare function clearGlobalInterceptors(): void;
|
|
166
166
|
declare function clearGlobalInterceptors(id: string): void;
|
|
167
|
+
/**
|
|
168
|
+
* Set the global equality check function used for reaction value comparisons
|
|
169
|
+
*/
|
|
170
|
+
declare function setGlobalEqualityCheck(equalityCheck: EqualityCheckFn): void;
|
|
171
|
+
/**
|
|
172
|
+
* Get the current global equality check function
|
|
173
|
+
*/
|
|
174
|
+
declare function getGlobalEqualityCheck(): EqualityCheckFn;
|
|
167
175
|
|
|
168
176
|
type Kind = 'event' | 'fx' | 'cofx' | 'sub' | 'subDeps' | 'error';
|
|
169
177
|
type RegistryHandler = EventHandler | EffectHandler | CoEffectHandler | ErrorHandler | SubHandler | SubDepsHandler;
|
|
@@ -260,4 +268,4 @@ declare function registerTraceCb(key: string, cb: TraceCallback): void;
|
|
|
260
268
|
declare function removeTraceCb(key: string): void;
|
|
261
269
|
declare function enableTracePrint(): void;
|
|
262
270
|
|
|
263
|
-
export { CoEffectHandler, CoEffects, Context, DISPATCH, DISPATCH_LATER, Db, DispatchLaterEffect, EffectHandler, Effects, ErrorHandler, EventHandler, EventVector, HotReloadWrapper, Id, Interceptor, NOW, RANDOM, SubVector, clearGlobalInterceptors, clearHandlers, clearHotReloadCallbacks, clearReactions, clearSubs, current, debounceAndDispatch, defaultErrorHandler, disableTracing, dispatch, enableTracePrint, enableTracing, getAppDb, getGlobalInterceptors, getHandler, getHandlers, getReactions, getSubscriptionValue, initAppDb, original, regCoeffect, regEffect, regEvent, regEventErrorHandler, regGlobalInterceptor, regSub, registerHotReloadCallback, registerTraceCb, removeTraceCb, setupSubsHotReload, throttleAndDispatch, triggerHotReload, useHotReload, useHotReloadKey, useSubscription };
|
|
271
|
+
export { CoEffectHandler, CoEffects, Context, DISPATCH, DISPATCH_LATER, Db, DispatchLaterEffect, EffectHandler, Effects, EqualityCheckFn, ErrorHandler, EventHandler, EventVector, HotReloadWrapper, Id, Interceptor, NOW, RANDOM, SubConfig, SubVector, clearGlobalInterceptors, clearHandlers, clearHotReloadCallbacks, clearReactions, clearSubs, current, debounceAndDispatch, defaultErrorHandler, disableTracing, dispatch, enableTracePrint, enableTracing, getAppDb, getGlobalEqualityCheck, getGlobalInterceptors, getHandler, getHandlers, getReactions, getSubscriptionValue, initAppDb, original, regCoeffect, regEffect, regEvent, regEventErrorHandler, regGlobalInterceptor, regSub, registerHotReloadCallback, registerTraceCb, removeTraceCb, setGlobalEqualityCheck, setupSubsHotReload, throttleAndDispatch, triggerHotReload, useHotReload, useHotReloadKey, useSubscription };
|
package/dist/index.d.ts
CHANGED
|
@@ -164,6 +164,14 @@ declare function getGlobalInterceptors(): Interceptor[];
|
|
|
164
164
|
*/
|
|
165
165
|
declare function clearGlobalInterceptors(): void;
|
|
166
166
|
declare function clearGlobalInterceptors(id: string): void;
|
|
167
|
+
/**
|
|
168
|
+
* Set the global equality check function used for reaction value comparisons
|
|
169
|
+
*/
|
|
170
|
+
declare function setGlobalEqualityCheck(equalityCheck: EqualityCheckFn): void;
|
|
171
|
+
/**
|
|
172
|
+
* Get the current global equality check function
|
|
173
|
+
*/
|
|
174
|
+
declare function getGlobalEqualityCheck(): EqualityCheckFn;
|
|
167
175
|
|
|
168
176
|
type Kind = 'event' | 'fx' | 'cofx' | 'sub' | 'subDeps' | 'error';
|
|
169
177
|
type RegistryHandler = EventHandler | EffectHandler | CoEffectHandler | ErrorHandler | SubHandler | SubDepsHandler;
|
|
@@ -260,4 +268,4 @@ declare function registerTraceCb(key: string, cb: TraceCallback): void;
|
|
|
260
268
|
declare function removeTraceCb(key: string): void;
|
|
261
269
|
declare function enableTracePrint(): void;
|
|
262
270
|
|
|
263
|
-
export { CoEffectHandler, CoEffects, Context, DISPATCH, DISPATCH_LATER, Db, DispatchLaterEffect, EffectHandler, Effects, ErrorHandler, EventHandler, EventVector, HotReloadWrapper, Id, Interceptor, NOW, RANDOM, SubVector, clearGlobalInterceptors, clearHandlers, clearHotReloadCallbacks, clearReactions, clearSubs, current, debounceAndDispatch, defaultErrorHandler, disableTracing, dispatch, enableTracePrint, enableTracing, getAppDb, getGlobalInterceptors, getHandler, getHandlers, getReactions, getSubscriptionValue, initAppDb, original, regCoeffect, regEffect, regEvent, regEventErrorHandler, regGlobalInterceptor, regSub, registerHotReloadCallback, registerTraceCb, removeTraceCb, setupSubsHotReload, throttleAndDispatch, triggerHotReload, useHotReload, useHotReloadKey, useSubscription };
|
|
271
|
+
export { CoEffectHandler, CoEffects, Context, DISPATCH, DISPATCH_LATER, Db, DispatchLaterEffect, EffectHandler, Effects, EqualityCheckFn, ErrorHandler, EventHandler, EventVector, HotReloadWrapper, Id, Interceptor, NOW, RANDOM, SubConfig, SubVector, clearGlobalInterceptors, clearHandlers, clearHotReloadCallbacks, clearReactions, clearSubs, current, debounceAndDispatch, defaultErrorHandler, disableTracing, dispatch, enableTracePrint, enableTracing, getAppDb, getGlobalEqualityCheck, getGlobalInterceptors, getHandler, getHandlers, getReactions, getSubscriptionValue, initAppDb, original, regCoeffect, regEffect, regEvent, regEventErrorHandler, regGlobalInterceptor, regSub, registerHotReloadCallback, registerTraceCb, removeTraceCb, setGlobalEqualityCheck, setupSubsHotReload, throttleAndDispatch, triggerHotReload, useHotReload, useHotReloadKey, useSubscription };
|
package/dist/index.mjs
CHANGED
|
@@ -557,6 +557,9 @@ function clearGlobalInterceptors(id) {
|
|
|
557
557
|
store.globalInterceptors = store.globalInterceptors.filter((interceptor) => interceptor.id !== id);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
+
function setGlobalEqualityCheck(equalityCheck) {
|
|
561
|
+
store.globalEqualityCheck = equalityCheck;
|
|
562
|
+
}
|
|
560
563
|
function getGlobalEqualityCheck() {
|
|
561
564
|
return store.globalEqualityCheck;
|
|
562
565
|
}
|
|
@@ -1201,6 +1204,7 @@ export {
|
|
|
1201
1204
|
enableTracePrint,
|
|
1202
1205
|
enableTracing,
|
|
1203
1206
|
getAppDb,
|
|
1207
|
+
getGlobalEqualityCheck,
|
|
1204
1208
|
getGlobalInterceptors,
|
|
1205
1209
|
getHandler,
|
|
1206
1210
|
getHandlers,
|
|
@@ -1217,6 +1221,7 @@ export {
|
|
|
1217
1221
|
registerHotReloadCallback,
|
|
1218
1222
|
registerTraceCb,
|
|
1219
1223
|
removeTraceCb,
|
|
1224
|
+
setGlobalEqualityCheck,
|
|
1220
1225
|
setupSubsHotReload,
|
|
1221
1226
|
throttleAndDispatch,
|
|
1222
1227
|
triggerHotReload,
|