Skip to content

Commit ed49645

Browse files
committed
bump versions
1 parent de2ef13 commit ed49645

4 files changed

Lines changed: 766 additions & 874 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.16.0
1+
24.18.0

README.md

Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,7 @@ limiter.schedule(() => object.doSomething());
230230
### Constructor
231231

232232
```js
233-
const limiter = new Bottleneck({
234-
/* options */
235-
});
233+
const limiter = new Bottleneck({/* options */});
236234
```
237235

238236
Basic options:
@@ -366,35 +364,14 @@ wrapped()
366364

367365
```js
368366
// Submit
369-
limiter.submit(
370-
{
371-
/* options */
372-
},
373-
someAsyncCall,
374-
arg1,
375-
arg2,
376-
callback,
377-
);
367+
limiter.submit({/* options */}, someAsyncCall, arg1, arg2, callback);
378368

379369
// Schedule
380-
limiter.schedule(
381-
{
382-
/* options */
383-
},
384-
fn,
385-
arg1,
386-
arg2,
387-
);
370+
limiter.schedule({/* options */}, fn, arg1, arg2);
388371

389372
// Wrap
390373
const wrapped = limiter.wrap(fn);
391-
wrapped.withOptions(
392-
{
393-
/* options */
394-
},
395-
arg1,
396-
arg2,
397-
);
374+
wrapped.withOptions({/* options */}, arg1, arg2);
398375
```
399376

400377
| Option | Default | Description |
@@ -934,9 +911,7 @@ This method returns a promise that resolves once the limiter is connected to Red
934911
As of v2.9.0, it's no longer necessary to wait for `.ready()` to resolve before issuing commands to a limiter. The commands will be queued until the limiter successfully connects. Make sure to listen to the `"error"` event to handle connection errors.
935912

936913
```js
937-
const limiter = new Bottleneck({
938-
/* options */
939-
});
914+
const limiter = new Bottleneck({/* options */});
940915

941916
limiter.on("error", (err) => {
942917
// handle network errors
@@ -952,9 +927,7 @@ limiter.ready().then(() => {
952927
This method broadcasts the `message` string to every limiter in the Cluster. It returns a promise.
953928

954929
```js
955-
const limiter = new Bottleneck({
956-
/* options */
957-
});
930+
const limiter = new Bottleneck({/* options */});
958931

959932
limiter.on("message", (msg) => {
960933
console.log(msg); // prints "this is a string"
@@ -1002,9 +975,7 @@ import Redis from "redis"; // or ioredis: import Redis from "ioredis";
1002975
// Use Bottleneck.IORedisConnection when using ioredis
1003976
const connection = new Bottleneck.RedisConnection({
1004977
Redis,
1005-
clientOptions: {
1006-
/* node-redis/ioredis options */
1007-
},
978+
clientOptions: {/* node-redis/ioredis options */},
1008979
// Bottleneck.IORedisConnection also accepts `clusterNodes` here
1009980
});
1010981

@@ -1030,9 +1001,7 @@ If you already have a node-redis/ioredis client, you can ask Bottleneck to reuse
10301001

10311002
```js
10321003
import { createClient } from "redis";
1033-
const client = createClient({
1034-
/* options */
1035-
});
1004+
const client = createClient({/* options */});
10361005
await client.connect();
10371006

10381007
const connection = new Bottleneck.RedisConnection({

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@
6969
"test:smoke": "pnpm exec vitest run --project light-smoke --project lib-smoke"
7070
},
7171
"devDependencies": {
72-
"@testcontainers/redis": "^12.0.1",
73-
"@types/node": "^24.12.3",
72+
"@testcontainers/redis": "^12.0.4",
73+
"@types/node": "^24.13.3",
7474
"husky": "^9.1.7",
7575
"ioredis": "^5.11.1",
76-
"lint-staged": "^17.0.7",
77-
"oxfmt": "^0.53.0",
78-
"oxlint": "^1.68.0",
79-
"redis": "^6.0.0",
80-
"testcontainers": "^12.0.1",
81-
"tsdown": "^0.22.2",
82-
"typescript": "^6.0.3",
83-
"vitest": "^4.1.8"
76+
"lint-staged": "^17.0.8",
77+
"oxfmt": "^0.58.0",
78+
"oxlint": "^1.73.0",
79+
"redis": "^6.1.0",
80+
"testcontainers": "^12.0.4",
81+
"tsdown": "^0.22.4",
82+
"typescript": "^6.0.0",
83+
"vitest": "^4.1.10"
8484
},
8585
"peerDependencies": {
8686
"ioredis": "^5",
@@ -97,5 +97,5 @@
9797
"engines": {
9898
"node": ">=16"
9999
},
100-
"packageManager": "pnpm@11.5.2+sha512.71c631e382066efc25625d5cf029075de07b61b37f6e27350fbd84b1bda5864c8c1967adc280776b45c30a715c0359a3be08fef42d5bb09e2b99029979692916"
100+
"packageManager": "pnpm@11.11.0+sha512.4463f65fd80ed80d69bc1d4bf163ee94f605c7380fc318bb5b2ebe15f8cd12d49c51a4d59e951b401e764d3b6ca751cbf51bc50ed7001a6bcb4935e684c34882"
101101
}

0 commit comments

Comments
 (0)