@spoosh/react 0.14.0 → 0.14.1
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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -282,6 +282,8 @@ type UseQueueResult<TData, TError, TTriggerInput, TMeta = object> = {
|
|
|
282
282
|
removeSettled: () => void;
|
|
283
283
|
/** Abort all and clear queue */
|
|
284
284
|
clear: () => void;
|
|
285
|
+
/** Update concurrency limit */
|
|
286
|
+
setConcurrency: (concurrency: number) => void;
|
|
285
287
|
};
|
|
286
288
|
/**
|
|
287
289
|
* API client type for queue selector.
|
package/dist/index.d.ts
CHANGED
|
@@ -282,6 +282,8 @@ type UseQueueResult<TData, TError, TTriggerInput, TMeta = object> = {
|
|
|
282
282
|
removeSettled: () => void;
|
|
283
283
|
/** Abort all and clear queue */
|
|
284
284
|
clear: () => void;
|
|
285
|
+
/** Update concurrency limit */
|
|
286
|
+
setConcurrency: (concurrency: number) => void;
|
|
285
287
|
};
|
|
286
288
|
/**
|
|
287
289
|
* API client type for queue selector.
|
package/dist/index.js
CHANGED
|
@@ -655,7 +655,8 @@ function createUseQueue(options) {
|
|
|
655
655
|
retry: controller.retry,
|
|
656
656
|
remove: controller.remove,
|
|
657
657
|
removeSettled: controller.removeSettled,
|
|
658
|
-
clear: controller.clear
|
|
658
|
+
clear: controller.clear,
|
|
659
|
+
setConcurrency: controller.setConcurrency
|
|
659
660
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
660
661
|
};
|
|
661
662
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -668,7 +668,8 @@ function createUseQueue(options) {
|
|
|
668
668
|
retry: controller.retry,
|
|
669
669
|
remove: controller.remove,
|
|
670
670
|
removeSettled: controller.removeSettled,
|
|
671
|
-
clear: controller.clear
|
|
671
|
+
clear: controller.clear,
|
|
672
|
+
setConcurrency: controller.setConcurrency
|
|
672
673
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
673
674
|
};
|
|
674
675
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spoosh/react",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React hooks for Spoosh API toolkit",
|
|
6
6
|
"keywords": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@spoosh/core": ">=0.17.
|
|
37
|
+
"@spoosh/core": ">=0.17.1",
|
|
38
38
|
"@spoosh/transport-sse": ">=0.1.0",
|
|
39
39
|
"react": "^18 || ^19"
|
|
40
40
|
},
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@testing-library/react": "^16.0.0",
|
|
48
48
|
"jsdom": "^26.0.0",
|
|
49
|
-
"@spoosh/core": "0.17.
|
|
49
|
+
"@spoosh/core": "0.17.1",
|
|
50
50
|
"@spoosh/transport-sse": "0.1.1",
|
|
51
51
|
"@spoosh/test-utils": "0.3.0"
|
|
52
52
|
},
|