Skip to content

Commit 1d476b3

Browse files
VinciGit00claude
andauthored
chore: deprecate v1.x — add warning and bump to 1.0.1 (#12)
* chore: add deprecation warning for v1 and bump to 1.0.1 Log a console.warn on import to notify users that v1.x is deprecated and they should upgrade to v2 for the latest features and API v2 support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: update deprecation warning link to docs site Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * style: fix biome formatter indentation in src/index.ts --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 70b75d5 commit 1d476b3

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scrapegraph-js",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Official JavaScript/TypeScript SDK for the ScrapeGraph AI API — smart web scraping powered by AI",
55
"type": "module",
66
"main": "dist/index.js",

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
console.warn(
2+
"[scrapegraph-js] WARNING: This version (1.x) is deprecated and will no longer receive updates. " +
3+
"Please upgrade to scrapegraph-js v2 for the latest features, bug fixes, and API v2 support. " +
4+
"See the migration guide: https://docs.scrapegraphai.com/transition-from-v1-to-v2",
5+
);
6+
17
export {
28
smartScraper,
39
searchScraper,

0 commit comments

Comments
 (0)