@crawlee/cli 4.0.0-beta.340 → 4.0.0-beta.341
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/cli",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.341",
|
|
4
4
|
"description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.13.0"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@crawlee/templates": "4.0.0-beta.
|
|
48
|
+
"@crawlee/templates": "4.0.0-beta.341",
|
|
49
49
|
"@inquirer/prompts": "^8.8.1",
|
|
50
50
|
"ansi-colors": "^4.1.3",
|
|
51
51
|
"semver": "^7.8.5",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "146b6d8aa25332881dc59d46d21b5bb1bf7673b1"
|
|
63
63
|
}
|
|
@@ -158,6 +158,7 @@ If you implemented a custom `StorageBackend`, you need to:
|
|
|
158
158
|
1. Remove your `*CollectionClient` classes.
|
|
159
159
|
2. Replace the six getter methods (`dataset`, `datasets`, `keyValueStore`, `keyValueStores`, `requestQueue`, `requestQueues`) with three async factory methods (`createDatasetBackend`, `createKeyValueStoreBackend`, `createRequestQueueBackend`). Each factory should handle both opening an existing storage and creating a new one.
|
|
160
160
|
3. Apply the sub-backend renames listed above (`get` → `getMetadata`, `delete` → `drop`, etc.) and implement the new `purge()` method.
|
|
161
|
+
4. Retry transient failures inside the backend - crawlers no longer retry storage calls, so a rejection is final. `RequestQueueBackend.fetchNextRequest`, `markRequestAsHandled` and `reclaimRequest` now receive an optional `signal` that aborts when the crawler stops waiting for the call; pass it on to whatever does the I/O.
|
|
161
162
|
|
|
162
163
|
## Storage internals are no longer part of the public API
|
|
163
164
|
|