Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/silent-pandas-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@tanstack/preact-pacer-devtools': minor
'@tanstack/react-pacer-devtools': minor
'@tanstack/solid-pacer-devtools': minor
'@tanstack/pacer-devtools': minor
'@tanstack/angular-pacer': minor
'@tanstack/preact-pacer': minor
'@tanstack/react-pacer': minor
'@tanstack/solid-pacer': minor
'@tanstack/pacer': minor
---

feat: TanStack Store Upgrade to alien signals
2 changes: 1 addition & 1 deletion docs/framework/react/reference/functions/PacerProvider.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: PacerProvider
function PacerProvider(__namedParameters): Element;
```

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

## Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: useDefaultPacerOptions
function useDefaultPacerOptions(): PacerProviderOptions;
```

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

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: usePacerContext
function usePacerContext(): PacerContextValue | null;
```

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

## Returns

Expand Down
22 changes: 11 additions & 11 deletions docs/framework/react/reference/interfaces/PacerProviderOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: PacerProviderOptions

# Interface: PacerProviderOptions

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

## Properties

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

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

***

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

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

***

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

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

***

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

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

***

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

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

***

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

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

***

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

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

***

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

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

***

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

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

***

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

Defined in: [react-pacer/src/provider/PacerProvider.tsx:28](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L28)
Defined in: [react-pacer/src/provider/PacerProvider.tsx:32](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L32)
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: PacerProviderProps

# Interface: PacerProviderProps

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

## Properties

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

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

***

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

Defined in: [react-pacer/src/provider/PacerProvider.tsx:39](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L39)
Defined in: [react-pacer/src/provider/PacerProvider.tsx:43](https://github.com/TanStack/pacer/blob/main/packages/react-pacer/src/provider/PacerProvider.tsx#L43)
20 changes: 10 additions & 10 deletions docs/reference/classes/AsyncBatcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Defined in: [async-batcher.ts:266](https://github.com/TanStack/pacer/blob/main/p
abort(): void;
```

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

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

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

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

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

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

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

Removes all items from the async batcher

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

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

Processes the current batch of items immediately

Expand All @@ -269,7 +269,7 @@ Processes the current batch of items immediately
getAbortSignal(executeCount?): AbortSignal | null;
```

Defined in: [async-batcher.ts:479](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L479)
Defined in: [async-batcher.ts:483](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L483)

Returns the AbortSignal for a specific execution.
If no executeCount is provided, returns the signal for the most recent execution.
Expand Down Expand Up @@ -314,7 +314,7 @@ const batcher = new AsyncBatcher(
peekAllItems(): TValue[];
```

Defined in: [async-batcher.ts:433](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L433)
Defined in: [async-batcher.ts:437](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L437)

Returns a copy of all items in the async batcher

Expand All @@ -330,7 +330,7 @@ Returns a copy of all items in the async batcher
peekFailedItems(): TValue[];
```

Defined in: [async-batcher.ts:437](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L437)
Defined in: [async-batcher.ts:441](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L441)

#### Returns

Expand All @@ -344,7 +344,7 @@ Defined in: [async-batcher.ts:437](https://github.com/TanStack/pacer/blob/main/p
reset(): void;
```

Defined in: [async-batcher.ts:513](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L513)
Defined in: [async-batcher.ts:517](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L517)

Resets the async batcher state to its default values

Expand All @@ -360,7 +360,7 @@ Resets the async batcher state to its default values
setOptions(newOptions): void;
```

Defined in: [async-batcher.ts:301](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L301)
Defined in: [async-batcher.ts:305](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-batcher.ts#L305)

Updates the async batcher options

Expand Down
14 changes: 7 additions & 7 deletions docs/reference/classes/AsyncDebouncer.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Defined in: [async-debouncer.ts:219](https://github.com/TanStack/pacer/blob/main
abort(): void;
```

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

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

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

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

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

Processes the current pending execution immediately

Expand All @@ -199,7 +199,7 @@ Processes the current pending execution immediately
getAbortSignal(maybeExecuteCount?): AbortSignal | null;
```

Defined in: [async-debouncer.ts:455](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L455)
Defined in: [async-debouncer.ts:459](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L459)

Returns the AbortSignal for a specific execution.
If no maybeExecuteCount is provided, returns the signal for the most recent execution.
Expand Down Expand Up @@ -240,7 +240,7 @@ const debouncer = new AsyncDebouncer(
maybeExecute(...args): Promise<ReturnType<TFn> | undefined>;
```

Defined in: [async-debouncer.ts:314](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L314)
Defined in: [async-debouncer.ts:318](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L318)

Attempts to execute the debounced function.
If a call is already in progress, it will be queued.
Expand Down Expand Up @@ -276,7 +276,7 @@ The error from the debounced function if no onError handler is configured
reset(): void;
```

Defined in: [async-debouncer.ts:485](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L485)
Defined in: [async-debouncer.ts:489](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L489)

Resets the debouncer state to its default values

Expand All @@ -292,7 +292,7 @@ Resets the debouncer state to its default values
setOptions(newOptions): void;
```

Defined in: [async-debouncer.ts:254](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L254)
Defined in: [async-debouncer.ts:258](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-debouncer.ts#L258)

Updates the async debouncer options

Expand Down
Loading
Loading