Skip to content

Commit 225381e

Browse files
feat: TanStack Store upgrade and fix devtool issues (#178)
* feat: tanstack store and devtools upgrades * fix more devtool things * fix lint * ci: apply automated fixes * add changeset --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent b07a3b9 commit 225381e

267 files changed

Lines changed: 4932 additions & 3789 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/silent-pandas-crash.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@tanstack/preact-pacer-devtools': minor
3+
'@tanstack/react-pacer-devtools': minor
4+
'@tanstack/solid-pacer-devtools': minor
5+
'@tanstack/pacer-devtools': minor
6+
'@tanstack/angular-pacer': minor
7+
'@tanstack/preact-pacer': minor
8+
'@tanstack/react-pacer': minor
9+
'@tanstack/solid-pacer': minor
10+
'@tanstack/pacer': minor
11+
---
12+
13+
feat: TanStack Store Upgrade to alien signals

docs/framework/react/reference/functions/PacerProvider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: PacerProvider
99
function PacerProvider(__namedParameters): Element;
1010
```
1111

12-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:44](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L44)
12+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:48](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L48)
1313

1414
## Parameters
1515

docs/framework/react/reference/functions/useDefaultPacerOptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: useDefaultPacerOptions
99
function useDefaultPacerOptions(): PacerProviderOptions;
1010
```
1111

12-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:66](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L66)
12+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:70](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L70)
1313

1414
## Returns
1515

docs/framework/react/reference/functions/usePacerContext.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: usePacerContext
99
function usePacerContext(): PacerContextValue | null;
1010
```
1111

12-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:62](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L62)
12+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:66](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L66)
1313

1414
## Returns
1515

docs/framework/react/reference/interfaces/PacerProviderOptions.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: PacerProviderOptions
55

66
# Interface: PacerProviderOptions
77

8-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:18](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L18)
8+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:22](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L22)
99

1010
## Properties
1111

@@ -15,7 +15,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:18](https://github.com/T
1515
optional asyncBatcher: Partial<AsyncBatcherOptions<any>>;
1616
```
1717

18-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:19](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L19)
18+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:23](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L23)
1919

2020
***
2121

@@ -25,7 +25,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:19](https://github.com/T
2525
optional asyncDebouncer: Partial<AsyncDebouncerOptions<AnyAsyncFunction>>;
2626
```
2727

28-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:20](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L20)
28+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:24](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L24)
2929

3030
***
3131

@@ -35,7 +35,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:20](https://github.com/T
3535
optional asyncQueuer: Partial<AsyncQueuerOptions<any>>;
3636
```
3737

38-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:21](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L21)
38+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:25](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L25)
3939

4040
***
4141

@@ -45,7 +45,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:21](https://github.com/T
4545
optional asyncRateLimiter: Partial<AsyncRateLimiterOptions<AnyAsyncFunction>>;
4646
```
4747

48-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:22](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L22)
48+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:26](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L26)
4949

5050
***
5151

@@ -55,7 +55,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:22](https://github.com/T
5555
optional asyncThrottler: Partial<AsyncThrottlerOptions<AnyAsyncFunction>>;
5656
```
5757

58-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:23](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L23)
58+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:27](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L27)
5959

6060
***
6161

@@ -65,7 +65,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:23](https://github.com/T
6565
optional batcher: Partial<BatcherOptions<any>>;
6666
```
6767

68-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:24](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L24)
68+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:28](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L28)
6969

7070
***
7171

@@ -75,7 +75,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:24](https://github.com/T
7575
optional debouncer: Partial<DebouncerOptions<AnyFunction>>;
7676
```
7777

78-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:25](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L25)
78+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:29](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L29)
7979

8080
***
8181

@@ -85,7 +85,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:25](https://github.com/T
8585
optional queuer: Partial<QueuerOptions<any>>;
8686
```
8787

88-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:26](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L26)
88+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:30](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L30)
8989

9090
***
9191

@@ -95,7 +95,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:26](https://github.com/T
9595
optional rateLimiter: Partial<RateLimiterOptions<AnyFunction>>;
9696
```
9797

98-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:27](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L27)
98+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:31](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L31)
9999

100100
***
101101

@@ -105,4 +105,4 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:27](https://github.com/T
105105
optional throttler: Partial<ThrottlerOptions<AnyFunction>>;
106106
```
107107

108-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:28](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L28)
108+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:32](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L32)

docs/framework/react/reference/interfaces/PacerProviderProps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: PacerProviderProps
55

66
# Interface: PacerProviderProps
77

8-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:37](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L37)
8+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:41](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L41)
99

1010
## Properties
1111

@@ -15,7 +15,7 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:37](https://github.com/T
1515
children: ReactNode;
1616
```
1717

18-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:38](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L38)
18+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:42](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L42)
1919

2020
***
2121

@@ -25,4 +25,4 @@ Defined in: [react-pacer/src/provider/PacerProvider.tsx:38](https://github.com/T
2525
optional defaultOptions: PacerProviderOptions;
2626
```
2727

28-
Defined in: [react-pacer/src/provider/PacerProvider.tsx:39](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L39)
28+
Defined in: [react-pacer/src/provider/PacerProvider.tsx:43](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L43)

docs/reference/classes/AsyncBatcher.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Defined in: [async-batcher.ts:266](https://github.com/TanStack/pacer/blob/main/p
172172
abort(): void;
173173
```
174174

175-
Defined in: [async-batcher.ts:490](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L490)
175+
Defined in: [async-batcher.ts:494](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L494)
176176

177177
Aborts all ongoing executions with the internal abort controllers.
178178
Does NOT cancel any pending execution that have not started yet.
@@ -190,7 +190,7 @@ Does NOT clear out the items.
190190
addItem(item): Promise<any>;
191191
```
192192

193-
Defined in: [async-batcher.ts:342](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L342)
193+
Defined in: [async-batcher.ts:346](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L346)
194194

195195
Adds an item to the async batcher
196196
If the batch size is reached, timeout occurs, or shouldProcess returns true, the batch will be processed
@@ -219,7 +219,7 @@ The error from the batch function if no onError handler is configured or throwOn
219219
cancel(): void;
220220
```
221221

222-
Defined in: [async-batcher.ts:503](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L503)
222+
Defined in: [async-batcher.ts:507](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L507)
223223

224224
Cancels any pending execution that have not started yet.
225225
Does NOT abort any execution already in progress.
@@ -237,7 +237,7 @@ Does NOT clear out the items.
237237
clear(): void;
238238
```
239239

240-
Defined in: [async-batcher.ts:451](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L451)
240+
Defined in: [async-batcher.ts:455](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L455)
241241

242242
Removes all items from the async batcher
243243

@@ -253,7 +253,7 @@ Removes all items from the async batcher
253253
flush(): Promise<any>;
254254
```
255255

256-
Defined in: [async-batcher.ts:425](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L425)
256+
Defined in: [async-batcher.ts:429](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L429)
257257

258258
Processes the current batch of items immediately
259259

@@ -269,7 +269,7 @@ Processes the current batch of items immediately
269269
getAbortSignal(executeCount?): AbortSignal | null;
270270
```
271271
272-
Defined in: [async-batcher.ts:479](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L479)
272+
Defined in: [async-batcher.ts:483](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L483)
273273
274274
Returns the AbortSignal for a specific execution.
275275
If no executeCount is provided, returns the signal for the most recent execution.
@@ -314,7 +314,7 @@ const batcher = new AsyncBatcher(
314314
peekAllItems(): TValue[];
315315
```
316316
317-
Defined in: [async-batcher.ts:433](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L433)
317+
Defined in: [async-batcher.ts:437](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L437)
318318
319319
Returns a copy of all items in the async batcher
320320
@@ -330,7 +330,7 @@ Returns a copy of all items in the async batcher
330330
peekFailedItems(): TValue[];
331331
```
332332
333-
Defined in: [async-batcher.ts:437](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L437)
333+
Defined in: [async-batcher.ts:441](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L441)
334334
335335
#### Returns
336336
@@ -344,7 +344,7 @@ Defined in: [async-batcher.ts:437](https://github.com/TanStack/pacer/blob/main/p
344344
reset(): void;
345345
```
346346
347-
Defined in: [async-batcher.ts:513](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L513)
347+
Defined in: [async-batcher.ts:517](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L517)
348348
349349
Resets the async batcher state to its default values
350350
@@ -360,7 +360,7 @@ Resets the async batcher state to its default values
360360
setOptions(newOptions): void;
361361
```
362362
363-
Defined in: [async-batcher.ts:301](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L301)
363+
Defined in: [async-batcher.ts:305](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L305)
364364
365365
Updates the async batcher options
366366

docs/reference/classes/AsyncDebouncer.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Defined in: [async-debouncer.ts:219](https://github.com/TanStack/pacer/blob/main
149149
abort(): void;
150150
```
151151

152-
Defined in: [async-debouncer.ts:465](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L465)
152+
Defined in: [async-debouncer.ts:469](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L469)
153153

154154
Aborts all ongoing executions with the internal abort controllers.
155155
Does NOT cancel any pending execution that have not started yet.
@@ -166,7 +166,7 @@ Does NOT cancel any pending execution that have not started yet.
166166
cancel(): void;
167167
```
168168

169-
Defined in: [async-debouncer.ts:477](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L477)
169+
Defined in: [async-debouncer.ts:481](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L481)
170170

171171
Cancels any pending execution that have not started yet.
172172
Does NOT abort any execution already in progress.
@@ -183,7 +183,7 @@ Does NOT abort any execution already in progress.
183183
flush(): Promise<ReturnType<TFn> | undefined>;
184184
```
185185

186-
Defined in: [async-debouncer.ts:400](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L400)
186+
Defined in: [async-debouncer.ts:404](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L404)
187187

188188
Processes the current pending execution immediately
189189

@@ -199,7 +199,7 @@ Processes the current pending execution immediately
199199
getAbortSignal(maybeExecuteCount?): AbortSignal | null;
200200
```
201201
202-
Defined in: [async-debouncer.ts:455](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L455)
202+
Defined in: [async-debouncer.ts:459](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L459)
203203
204204
Returns the AbortSignal for a specific execution.
205205
If no maybeExecuteCount is provided, returns the signal for the most recent execution.
@@ -240,7 +240,7 @@ const debouncer = new AsyncDebouncer(
240240
maybeExecute(...args): Promise<ReturnType<TFn> | undefined>;
241241
```
242242
243-
Defined in: [async-debouncer.ts:314](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L314)
243+
Defined in: [async-debouncer.ts:318](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L318)
244244
245245
Attempts to execute the debounced function.
246246
If a call is already in progress, it will be queued.
@@ -276,7 +276,7 @@ The error from the debounced function if no onError handler is configured
276276
reset(): void;
277277
```
278278
279-
Defined in: [async-debouncer.ts:485](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L485)
279+
Defined in: [async-debouncer.ts:489](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L489)
280280
281281
Resets the debouncer state to its default values
282282
@@ -292,7 +292,7 @@ Resets the debouncer state to its default values
292292
setOptions(newOptions): void;
293293
```
294294
295-
Defined in: [async-debouncer.ts:254](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L254)
295+
Defined in: [async-debouncer.ts:258](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L258)
296296
297297
Updates the async debouncer options
298298

0 commit comments

Comments
 (0)