fix(registry): increase default maxRetries in fetchWithRetry from 3 to 6 to improve resilience when fetching registry resources

This commit is contained in:
2026-02-07 12:58:44 +00:00
parent 4585801f32
commit a4552498ac
3 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,12 @@
# Changelog # Changelog
## 2026-02-07 - 1.17.3 - fix(registry)
increase default maxRetries in fetchWithRetry from 3 to 6 to improve resilience when fetching registry resources
- Changed default maxRetries from 3 to 6 in ts/classes.registrycopy.ts
- Reduces failures from transient network or registry errors by allowing more retry attempts
- No API or behavior changes besides the increased default retry count
## 2026-02-07 - 1.17.2 - fix(registry) ## 2026-02-07 - 1.17.2 - fix(registry)
improve HTTP fetch retry logging, backoff calculation, and token-cache warning improve HTTP fetch retry logging, backoff calculation, and token-cache warning

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tsdocker', name: '@git.zone/tsdocker',
version: '1.17.2', version: '1.17.3',
description: 'develop npm modules cross platform with docker' description: 'develop npm modules cross platform with docker'
} }

View File

@@ -29,7 +29,7 @@ export class RegistryCopy {
url: string, url: string,
options: RequestInit & { duplex?: string }, options: RequestInit & { duplex?: string },
timeoutMs: number = 300_000, timeoutMs: number = 300_000,
maxRetries: number = 3, maxRetries: number = 6,
): Promise<Response> { ): Promise<Response> {
const method = (options.method || 'GET').toUpperCase(); const method = (options.method || 'GET').toUpperCase();
let lastError: Error | null = null; let lastError: Error | null = null;