Skip to content

Commit a694671

Browse files
0.3.0
1 parent d669af7 commit a694671

File tree

4 files changed

+25
-24
lines changed

4 files changed

+25
-24
lines changed

.changeset/add-is-timeout-error.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.3.0
4+
5+
### Minor Changes
6+
7+
- 03e9ccb: Add isTimeoutError function for detecting timeout errors
8+
9+
Adds a new `isTimeoutError` function exported from the library that helps detect timeout errors from selector waiting operations. This function is complementary to `isNavigationError` and allows automation loops to handle timeout errors gracefully without crashing.
10+
11+
Usage example:
12+
13+
```javascript
14+
import { isTimeoutError } from 'browser-commander';
15+
16+
try {
17+
await page.waitForSelector('.button');
18+
} catch (error) {
19+
if (isTimeoutError(error)) {
20+
console.log('Timeout occurred, continuing with next item...');
21+
}
22+
}
23+
```
24+
325
## 0.2.1
426

527
### Patch 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.2.1",
3+
"version": "0.3.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)