browserless 13.1.3 → 13.1.5

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 +7 -7
  2. package/src/driver.js +8 -4
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "browserless",
3
3
  "description": "The headless Chrome/Chromium driver on top of Puppeteer. Take screenshots, generate PDFs, extract text and HTML with a production-ready API.",
4
4
  "homepage": "https://browserless.js.org",
5
- "version": "13.1.3",
5
+ "version": "13.1.5",
6
6
  "types": "index.d.ts",
7
7
  "main": "src/index.js",
8
8
  "author": {
@@ -35,10 +35,10 @@
35
35
  "web-scraping"
36
36
  ],
37
37
  "dependencies": {
38
- "@browserless/errors": "13.0.0",
39
- "@browserless/goto": "13.1.3",
40
- "@browserless/pdf": "13.1.3",
41
- "@browserless/screenshot": "13.1.3",
38
+ "@browserless/errors": "13.1.5",
39
+ "@browserless/goto": "13.1.5",
40
+ "@browserless/pdf": "13.1.5",
41
+ "@browserless/screenshot": "13.1.5",
42
42
  "debug-logfmt": "~1.4.10",
43
43
  "kill-process-group": "~1.0.13",
44
44
  "p-reflect": "~2.1.0",
@@ -48,7 +48,7 @@
48
48
  "superlock": "~1.2.7"
49
49
  },
50
50
  "devDependencies": {
51
- "@browserless/test": "13.1.3",
51
+ "@browserless/test": "13.1.5",
52
52
  "ava": "5",
53
53
  "ps-list": "7",
54
54
  "puppeteer": "25",
@@ -70,5 +70,5 @@
70
70
  "timeout": "2m",
71
71
  "workerThreads": false
72
72
  },
73
- "gitHead": "f3d2960a419e6efd841b8d5830f03393e387ebe5"
73
+ "gitHead": "9a7d700eced6febad30d2592b4296a5a49270d31"
74
74
  }
package/src/driver.js CHANGED
@@ -23,16 +23,20 @@ const defaultArgs = [
23
23
  '--disk-cache-size=33554432', // https://source.chromium.org/search?q=lang:cpp+symbol:kDiskCacheSize&ss=chromium
24
24
  '--font-render-hinting=none', // https://github.com/puppeteer/puppeteer/issues/2410#issuecomment-2886054614
25
25
  '--ignore-gpu-blocklist', // https://source.chromium.org/search?q=lang:cpp+symbol:kIgnoreGpuBlocklist&ss=chromium
26
- '--in-process-gpu', // https://github.com/search?q=repo%3Achromium%2Fchromium%20in-process-gpu&type=code
27
26
  '--no-default-browser-check', // https://source.chromium.org/search?q=lang:cpp+symbol:kNoDefaultBrowserCheck&ss=chromium
28
27
  '--no-pings', // https://source.chromium.org/search?q=lang:cpp+symbol:kNoPings&ss=chromium
29
28
  '--no-sandbox', // https://source.chromium.org/search?q=lang:cpp+symbol:kNoSandbox&ss=chromium
30
29
  '--no-startup-window',
31
30
  `--enable-features=${['SharedArrayBuffer'].join(',')}`,
32
31
  '--no-zygote', // https://source.chromium.org/search?q=lang:cpp+symbol:kNoZygote&ss=chromium
33
- '--disable-gpu',
34
- '--use-angle=swiftshader', // https://chromium.googlesource.com/chromium/src/+/main/docs/gpu/swiftshader.md
35
- '--use-gl=angle', // https://chromium.googlesource.com/chromium/src/+/main/docs/gpu/swiftshader.md
32
+ // Route WebGL through ANGLE -> system OpenGL, which resolves to Mesa llvmpipe
33
+ // (software). On a GPU-less host this renders WebGL ~4x faster than the
34
+ // SwiftShader fallback (measured: ~7s vs ~30s for a 3D chart). Requires Mesa
35
+ // (libgl1-mesa-dri) installed and a display (Xvfb) so ANGLE can bind a GL
36
+ // surface; see .github/workflows for the CI setup. Do NOT add
37
+ // --disable-gpu/--in-process-gpu: they force the SwiftShader path and disable
38
+ // the GL surface respectively.
39
+ '--use-angle=gl', // https://chromium.googlesource.com/angle/angle/+/main/doc/DevSetup.md
36
40
  `--disable-features=${[
37
41
  'AudioServiceOutOfProcess',
38
42
  'CalculateNativeWinOcclusion',