From 9e3214eb2e12fedd543429ab852be93bb9feb28d Mon Sep 17 00:00:00 2001 From: Anas Khan <83116240+anxkhn@users.noreply.github.com> Date: Fri, 3 Jul 2026 16:15:03 +0530 Subject: [PATCH] docs: fix default values of `maxClientErrors` and `snapshotHistorySecs` The JSDoc `@default` tags for `maxClientErrors` and `snapshotHistorySecs` in `SnapshotterOptions` did not match the effective defaults in the `Snapshotter` constructor. `maxClientErrors` defaults to 3 (not 1) and `snapshotHistorySecs` defaults to 30 (not 60), so the generated API reference on crawlee.dev showed the wrong values. Update the docs to match the implementation. Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com> --- packages/core/src/autoscaling/snapshotter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/autoscaling/snapshotter.ts b/packages/core/src/autoscaling/snapshotter.ts index 213b5bb33050..edf502913d5d 100644 --- a/packages/core/src/autoscaling/snapshotter.ts +++ b/packages/core/src/autoscaling/snapshotter.ts @@ -48,14 +48,14 @@ export interface SnapshotterOptions { /** * Defines the maximum number of new rate limit errors within * the given interval. - * @default 1 + * @default 3 */ maxClientErrors?: number; /** * Sets the interval in seconds for which a history of resource snapshots * will be kept. Increasing this to very high numbers will affect performance. - * @default 60 + * @default 30 */ snapshotHistorySecs?: number;