Skip to content

Commit 8b2b0bb

Browse files
VinciGit00claude
andcommitted
docs(js): call out scrapegraph-js β‰₯ 2.0.1 requirement
Pin the minimum supported version explicitly on the JS SDK page, in the transition guide, and on every service page that references the JS SDK β€” the pre-2.0.1 releases expose a different, deprecated API and the new docs don't work with them. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 692e6c9 commit 8b2b0bb

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

β€Žsdks/javascript.mdxβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@ icon: "js"
2020
</CardGroup>
2121

2222
<Note>
23-
`scrapegraph-js@2` is **ESM-only** and requires **Node β‰₯ 22**.
23+
These docs cover **`scrapegraph-js` β‰₯ 2.0.1**. The v2 SDK is **ESM-only** and requires **Node β‰₯ 22**. Earlier `0.x`/`1.x` releases expose a different, deprecated API.
2424
</Note>
2525

2626
## Installation
2727

2828
```bash
2929
# npm
30-
npm i scrapegraph-js
30+
npm i scrapegraph-js@latest # pins a version >= 2.0.1
3131

3232
# pnpm
33-
pnpm add scrapegraph-js
33+
pnpm add scrapegraph-js@latest
3434

3535
# yarn
36-
yarn add scrapegraph-js
36+
yarn add scrapegraph-js@latest
3737

3838
# bun
39-
bun add scrapegraph-js
39+
bun add scrapegraph-js@latest
4040
```
4141

4242
## What's new in v2

β€Žservices/crawl.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ asyncio.run(main())
231231

232232
### Official SDKs
233233
- [Python SDK](/sdks/python)
234-
- [JavaScript SDK](/sdks/javascript) (Node β‰₯ 22)
234+
- [JavaScript SDK](/sdks/javascript) (`scrapegraph-js` β‰₯ 2.0.1, Node β‰₯ 22)
235235

236236
### AI Framework Integrations
237237
- [LangChain Integration](/integrations/langchain)

β€Žservices/extract.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ asyncio.run(main())
244244
245245
### Official SDKs
246246
- [Python SDK](/sdks/python)
247-
- [JavaScript SDK](/sdks/javascript) (Node β‰₯ 22)
247+
- [JavaScript SDK](/sdks/javascript) (`scrapegraph-js` β‰₯ 2.0.1, Node β‰₯ 22)
248248
249249
### AI Framework Integrations
250250
- [LangChain Integration](/integrations/langchain)

β€Žservices/monitor.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ asyncio.run(main())
222222
223223
### Official SDKs
224224
- [Python SDK](/sdks/python)
225-
- [JavaScript SDK](/sdks/javascript) (Node β‰₯ 22)
225+
- [JavaScript SDK](/sdks/javascript) (`scrapegraph-js` β‰₯ 2.0.1, Node β‰₯ 22)
226226
227227
## Support & Resources
228228

β€Žservices/scrape.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ asyncio.run(main())
340340
341341
### Official SDKs
342342
- [Python SDK](/sdks/python) β€” perfect for automation and data processing
343-
- [JavaScript SDK](/sdks/javascript) β€” ideal for web applications and Node.js (β‰₯ 22)
343+
- [JavaScript SDK](/sdks/javascript) β€” ideal for web applications and Node.js (`scrapegraph-js` β‰₯ 2.0.1, Node β‰₯ 22)
344344
345345
### AI Framework Integrations
346346
- [LangChain Integration](/integrations/langchain) β€” use Scrape in your content pipelines

β€Žservices/search.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ asyncio.run(main())
199199
200200
### Official SDKs
201201
- [Python SDK](/sdks/python)
202-
- [JavaScript SDK](/sdks/javascript) (Node β‰₯ 22)
202+
- [JavaScript SDK](/sdks/javascript) (`scrapegraph-js` β‰₯ 2.0.1, Node β‰₯ 22)
203203
204204
### AI Framework Integrations
205205
- [LangChain Integration](/integrations/langchain)

β€Žtransition-from-v1-to-v2.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Exact paths and payloads are listed under each service (for example [Scrape](/se
231231
1. Log in at [scrapegraphai.com/login](https://scrapegraphai.com/login)
232232
2. Start from [Introduction](/introduction)
233233
3. Follow [Installation](/install)
234-
4. Upgrade packages: `pip install -U scrapegraph-py` / `npm i scrapegraph-js@latest` (Node **β‰₯ 22** for JS v2)
234+
4. Upgrade packages: `pip install -U scrapegraph-py` / `npm i scrapegraph-js@latest` (requires **`scrapegraph-js` β‰₯ 2.0.1** and **Node β‰₯ 22**)
235235

236236
## SDK migration guides (detailed changelogs)
237237

0 commit comments

Comments
Β (0)