@octanejs/tanstack-pacer 0.0.24 → 0.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/tanstack-pacer",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -47,16 +47,24 @@
47
47
  "@tanstack/pacer": "0.21.1"
48
48
  },
49
49
  "peerDependencies": {
50
- "@octanejs/tanstack-store": "0.0.29",
51
- "octane": "0.1.35"
50
+ "@octanejs/tanstack-store": "0.0.30",
51
+ "octane": "0.1.36"
52
52
  },
53
53
  "devDependencies": {
54
+ "@tanstack/react-pacer": "0.22.1",
55
+ "@tanstack/react-store": "0.11.0",
56
+ "@tsrx/react": "^0.2.56",
57
+ "@types/react": "19.2.17",
58
+ "@types/react-dom": "19.2.3",
59
+ "esbuild": "^0.28.1",
60
+ "react": "19.2.7",
61
+ "react-dom": "19.2.7",
54
62
  "vitest": "^4.1.10",
55
- "@octanejs/tanstack-store": "0.0.29",
56
- "octane": "0.1.35"
63
+ "@octanejs/tanstack-store": "0.0.30",
64
+ "octane": "0.1.36"
57
65
  },
58
66
  "scripts": {
59
67
  "test": "vitest run --project tanstack-pacer",
60
- "typecheck": "tsrx-tsc --noEmit"
68
+ "typecheck": "tsrx-tsc --noEmit && tsrx-tsc --noEmit -p typetests/octane-only/tsconfig.json"
61
69
  }
62
70
  }
@@ -96,8 +96,6 @@ export function useAsyncRateLimiter<TFn extends AnyAsyncFunction, TSelected = {}
96
96
  asyncRateLimiter.fn = fn;
97
97
  asyncRateLimiter.setOptions(mergedOptions);
98
98
 
99
- const state = useSelectorSlot(asyncRateLimiter.store, selector, { compare: shallow }, stateSlot);
100
-
101
99
  // Unmount cleanup only; empty deps keep teardown stable (as upstream).
102
100
  useEffect(() => {
103
101
  return () => {
@@ -109,6 +107,8 @@ export function useAsyncRateLimiter<TFn extends AnyAsyncFunction, TSelected = {}
109
107
  };
110
108
  }, []);
111
109
 
110
+ const state = useSelectorSlot(asyncRateLimiter.store, selector, { compare: shallow }, stateSlot);
111
+
112
112
  return useMemo(
113
113
  () =>
114
114
  ({
package/src/internal.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { useSelector } from '@octanejs/tanstack-store';
2
2
 
3
- // React type aliases used by upstream signatures (`React.Dispatch<React.SetStateAction<T>>`).
4
- // Octane's `useState` setter is structurally identical.
3
+ // Local aliases for upstream React.Dispatch / React.SetStateAction spellings.
4
+ // Octane's useState setter is structurally identical; accept/reject evidence lives
5
+ // in typetests/octane-only outside required React-parity ownership.
5
6
  export type SetStateAction<S> = S | ((prev: S) => S);
6
7
  export type Dispatch<A> = (value: A) => void;
7
8