Skip to content

Commit f25ce95

Browse files
0.4.0
1 parent c3e2687 commit f25ce95

File tree

4 files changed

+25
-24
lines changed

4 files changed

+25
-24
lines changed

.changeset/add-custom-chrome-args.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## 0.4.0
4+
5+
### Minor Changes
6+
7+
- 5af2479: Add support for custom Chrome args in launchBrowser
8+
9+
Adds a new `args` option to the `launchBrowser` function that allows passing custom Chrome arguments to append to the default `CHROME_ARGS`. This is useful for headless server environments (Docker, CI/CD) that require additional flags like `--no-sandbox`, `--disable-setuid-sandbox`, or `--disable-dev-shm-usage`.
10+
11+
Usage example:
12+
13+
```javascript
14+
import { launchBrowser } from 'browser-commander';
15+
16+
const { browser, page } = await launchBrowser({
17+
engine: 'puppeteer',
18+
headless: true,
19+
args: ['--no-sandbox', '--disable-setuid-sandbox'],
20+
});
21+
```
22+
23+
Fixes #11
24+
325
## 0.3.0
426

527
### Minor Changes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browser-commander",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Universal browser automation library that supports both Playwright and Puppeteer with a unified API",
55
"main": "src/index.js",
66
"type": "module",

0 commit comments

Comments
 (0)