Skip to content

Commit 814bd86

Browse files
committed
Add requirements
1 parent f25d194 commit 814bd86

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

docs/guide/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ outline: deep
55
# Quickstart
66
[[toc]]
77

8+
## Requirements
9+
* **Server-side library:** At least Node 14. Most modern Bun or Deno versions should work too. If you're using Glitch, make sure to set node 14 or higher in your `engines` field in `package.json`
10+
11+
* **Client-side widget:** All modern browsers should be supported, but the build script specifically targets the last 10 versions of Chrome, Firefox, Safari and Edge.
12+
813
## Client-side
914

1015
Start by adding importing the Cap widget library from a CDN:

docs/guide/server.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ npm i @cap.js/server
77
```
88

99
> [!NOTE]
10-
> It is recommended to use at least Node.js 14 or Bun 1.0.0. You might experience multiple issues on older versions of these runtimes.
10+
> It is recommended to use at least Node.js 14 or Bun 1.0.0. You might experience multiple issues on older versions of these runtimes.
11+
> If you're using Glitch, make sure to set node 14 or higher in your `engines` field in `package.json`
1112
1213
## Example code
1314

docs/guide/widget.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# @cap.js/widget
22

3+
> [!NOTE]
4+
> **Requirements:** All modern browsers should be supported, but the build script specifically targets the last 10 versions of Chrome, Firefox, Safari and Edge.
5+
6+
37
`@cap.js/widget` is Cap's client-side library. It includes the `cap-widget` web component, the invisible mode and the Captcha solver. It is recommended to use unpkg to install it:
48

59
```html

0 commit comments

Comments
 (0)