Skip to content

Commit 47840bd

Browse files
committed
Meta tweaks
1 parent 08ded97 commit 47840bd

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
],
4545
"dependencies": {
4646
"eventemitter3": "^4.0.7",
47-
"p-timeout": "^5.0.0"
47+
"p-timeout": "^5.0.2"
4848
},
4949
"devDependencies": {
5050
"@sindresorhus/tsconfig": "^2.0.0",
5151
"@types/benchmark": "^2.1.1",
52-
"@types/node": "^16.7.2",
53-
"ava": "^3.15.0",
52+
"@types/node": "^17.0.13",
53+
"ava": "^4.0.1",
5454
"benchmark": "^2.1.4",
5555
"codecov": "^3.8.3",
5656
"del-cli": "^4.0.1",
@@ -59,8 +59,8 @@
5959
"nyc": "^15.1.0",
6060
"random-int": "^3.0.0",
6161
"time-span": "^5.0.0",
62-
"ts-node": "^10.2.1",
63-
"typescript": "^4.4.2",
62+
"ts-node": "^10.4.0",
63+
"typescript": "^4.5.5",
6464
"xo": "^0.44.0"
6565
},
6666
"ava": {
@@ -70,9 +70,6 @@
7070
"extensions": {
7171
"ts": "module"
7272
},
73-
"nonSemVerExperiments": {
74-
"configurableModuleFormat": true
75-
},
7673
"nodeArguments": [
7774
"--loader=ts-node/esm"
7875
]

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ Priority of operation. Operations with greater priority will be scheduled first.
133133

134134
##### signal
135135

136+
*Requires Node.js 16 or later.*
137+
136138
[`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) for cancellation of the operation. When aborted, it will be removed from the queue and the `queue.add()` call will reject with an `AbortError`. If the operation is already running, the signal will need to be handled by the operation itself.
137139

138140
```js

test/test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,6 @@ test('should verify timeout overrides passed to add', async t => {
10651065

10661066
test('should skip an aborted job', async t => {
10671067
const queue = new PQueue();
1068-
10691068
const controller = new AbortController();
10701069

10711070
controller.abort();
@@ -1077,10 +1076,9 @@ test('should skip an aborted job', async t => {
10771076

10781077
test('should pass AbortSignal instance to job', async t => {
10791078
const queue = new PQueue();
1080-
10811079
const controller = new AbortController();
10821080

10831081
await queue.add(async ({signal}) => {
1084-
t.is(controller.signal, signal);
1082+
t.is(controller.signal, signal!);
10851083
}, {signal: controller.signal});
10861084
});

0 commit comments

Comments
 (0)