@crawlee/types 4.0.0-rc.1 → 4.0.0-rc.2

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/storages.d.ts +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/types",
3
- "version": "4.0.0-rc.1",
3
+ "version": "4.0.0-rc.2",
4
4
  "description": "Shared types for the crawlee projects",
5
5
  "engines": {
6
6
  "node": ">=22.13.0"
@@ -43,7 +43,7 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "tslib": "^2.8.1"
46
+ "tslib": "^2.9.1"
47
47
  },
48
48
  "lerna": {
49
49
  "command": {
@@ -52,5 +52,5 @@
52
52
  }
53
53
  }
54
54
  },
55
- "gitHead": "f354ca5e943bed1a5c657a1fce1974c053f9fff0"
55
+ "gitHead": "a9b623229cd7d1bff5063fc82940efebaea47165"
56
56
  }
package/storages.d.ts CHANGED
@@ -209,14 +209,14 @@ export interface RequestSchema {
209
209
  url: string;
210
210
  uniqueKey: string;
211
211
  method?: AllowedHttpMethods;
212
- payload?: string;
213
- noRetry?: boolean;
212
+ payload?: string | null;
213
+ noRetry?: boolean | null;
214
214
  retryCount?: number;
215
- errorMessages?: string[];
216
- headers?: Dictionary<string>;
215
+ errorMessages?: string[] | null;
216
+ headers?: Dictionary<string> | null;
217
217
  userData?: Dictionary;
218
- handledAt?: string;
219
- loadedUrl?: string;
218
+ handledAt?: string | null;
219
+ loadedUrl?: string | null;
220
220
  }
221
221
  export interface UpdateRequestSchema extends RequestSchema {
222
222
  id: string;
@@ -335,7 +335,7 @@ export interface RequestQueueBackend {
335
335
  * this long, so that a long-running consumer does not have its request handed out again while it is
336
336
  * still being processed. Clients that do not lock may ignore it.
337
337
  */
338
- setExpectedRequestProcessingTimeSecs?(secs: number): Promise<void>;
338
+ setExpectedRequestProcessingTime?(processingTimeSecs: number): Promise<void>;
339
339
  /**
340
340
  * Extends the lock on a request previously handed out by {@link fetchNextRequest}, for a consumer
341
341
  * that needs more time than the sizing hint reserved.
@@ -344,7 +344,7 @@ export interface RequestQueueBackend {
344
344
  * does not lock at all). `false` is information, not an error: the request may be processed twice.
345
345
  * Non-locking backends leave this unimplemented.
346
346
  */
347
- extendRequestProcessingTimeSecs?(requestId: string, secs: number): Promise<boolean>;
347
+ extendRequestProcessingTime?(requestId: string, extensionSecs: number): Promise<boolean>;
348
348
  }
349
349
  /**
350
350
  * Identifies a storage by its ID, name, or alias. At most one may be provided.