@crawlee/browser-pool 4.0.0-beta.103 → 4.0.0-beta.105

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/browser-pool.js +3 -0
  2. package/package.json +4 -4
package/browser-pool.js CHANGED
@@ -176,6 +176,9 @@ export class BrowserPool extends TypedEmitter {
176
176
  // requests (https://github.com/apify/crawlee/issues/3670). Mirrors the
177
177
  // fix p-limit landed upstream in v5 (sindresorhus/p-limit#71); v5 is an
178
178
  // ESM-only rewrite, so we can't bump it in Crawlee v3.
179
+ // Besides the cancelTask leak, the wrapper also keeps the per-request *storage transaction*
180
+ // ALS-scoped: without it, a queued callback would resume in the previous request's async
181
+ // context and run request B's storage writes inside request A's transaction.
179
182
  // TODO(crawlee@v4): bump p-limit to v5 and drop this AsyncResource.bind wrapper.
180
183
  // Limiter is necessary - https://github.com/apify/crawlee/issues/1126
181
184
  return this.limiter(AsyncResource.bind(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/browser-pool",
3
- "version": "4.0.0-beta.103",
3
+ "version": "4.0.0-beta.105",
4
4
  "description": "Rotate multiple browsers using popular automation libraries such as Playwright or Puppeteer.",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@apify/timeout": "^0.4.4",
34
- "@crawlee/core": "4.0.0-beta.103",
35
- "@crawlee/types": "4.0.0-beta.103",
34
+ "@crawlee/core": "4.0.0-beta.105",
35
+ "@crawlee/types": "4.0.0-beta.105",
36
36
  "fingerprint-generator": "^2.1.68",
37
37
  "fingerprint-injector": "^2.1.68",
38
38
  "lodash.merge": "^4.6.2",
@@ -63,5 +63,5 @@
63
63
  }
64
64
  }
65
65
  },
66
- "gitHead": "fe5d0ae11067683e27a2d17b4edd226ccf112cf5"
66
+ "gitHead": "26073a822c7699ac487931383a39192bc3daae7a"
67
67
  }