@evanp/activitypub-bot 0.45.18 → 0.45.19
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/CHANGELOG.md +11 -0
- package/lib/activitypubclient.js +1 -1
- package/lib/safeagent.js +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,17 @@ and this project adheres to
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.45.19] - 2026-05-14
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Use connection keep-alive for outgoing requests in SafeAgent.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Use AbortSignal.timeout() in fetch() in ActivityPubClient instead of obsolete
|
|
21
|
+
and ignored `timeout` option.
|
|
22
|
+
|
|
12
23
|
## [0.45.18] - 2026-05-12
|
|
13
24
|
|
|
14
25
|
### Fixed
|
package/lib/activitypubclient.js
CHANGED
package/lib/safeagent.js
CHANGED
|
@@ -19,6 +19,16 @@ class PrivateNetworkError extends Error {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export class SafeAgent extends https.Agent {
|
|
22
|
+
constructor (options = {}) {
|
|
23
|
+
super({
|
|
24
|
+
keepAlive: true,
|
|
25
|
+
keepAliveMsecs: 1000,
|
|
26
|
+
maxSockets: 64,
|
|
27
|
+
maxFreeSockets: 256,
|
|
28
|
+
...options
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
|
|
22
32
|
createConnection (options, callback) {
|
|
23
33
|
dns.lookup(options.hostname, (err, address) => {
|
|
24
34
|
if (err) {
|