Skip to content

Commit 4398fdd

Browse files
committed
Update package version to 0.1.21, expand exports in index.ts to include new configuration types for improved subscription management.
1 parent f0e385c commit 4398fdd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

examples/todomvc/src/subs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Todos, Showing } from './db';
33
import { SUB_IDS } from './sub-ids';
44

55
// Root subscriptions
6-
regSub(SUB_IDS.TODOS);
6+
regSub(SUB_IDS.TODOS, 'todos');
77
regSub(SUB_IDS.SHOWING);
88

99
// Computed subscriptions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flexsurfer/reflex",
3-
"version": "0.1.20",
3+
"version": "0.1.21",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export { regEvent, regEventErrorHandler, defaultErrorHandler } from './events';
77
export { regSub, getSubscriptionValue } from './subs';
88
export { regEffect, DISPATCH_LATER, DISPATCH } from './fx';
99
export { regCoeffect, NOW, RANDOM } from './cofx';
10-
export { regGlobalInterceptor, getGlobalInterceptors, clearGlobalInterceptors } from './settings';
10+
export { regGlobalInterceptor, getGlobalInterceptors, clearGlobalInterceptors, setGlobalEqualityCheck, getGlobalEqualityCheck } from './settings';
1111
export { getHandler, getHandlers, clearHandlers, clearReactions, clearSubs, getReactions } from './registrar';
1212

1313
export { dispatch } from './router';
@@ -40,5 +40,7 @@ export type {
4040
EffectHandler,
4141
Context,
4242
DispatchLaterEffect,
43-
ErrorHandler
43+
ErrorHandler,
44+
SubConfig,
45+
EqualityCheckFn
4446
} from './types';

0 commit comments

Comments
 (0)