From e73e5a8a90241fde199f30afc9d50cbeebee2758 Mon Sep 17 00:00:00 2001 From: Marco Vinciguerra Date: Wed, 8 Apr 2026 19:47:05 +0200 Subject: [PATCH 1/2] 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) --- package.json | 2 +- src/index.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0dc8b8c..81fbd10 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scrapegraph-js", - "version": "1.0.0", + "version": "1.0.1", "description": "Official JavaScript/TypeScript SDK for the ScrapeGraph AI API — smart web scraping powered by AI", "type": "module", "main": "dist/index.js", diff --git a/src/index.ts b/src/index.ts index cb73196..5e07eee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,9 @@ +console.warn( + "[scrapegraph-js] WARNING: This version (1.x) is deprecated and will no longer receive updates. " + + "Please upgrade to scrapegraph-js v2 for the latest features, bug fixes, and API v2 support. " + + "See the migration guide: https://github.com/ScrapeGraphAI/scrapegraph-js/blob/main/MIGRATION.md", +); + export { smartScraper, searchScraper, From 3a22ddfd9e6d9f0dbe9b77f9c80ca44ff0f8564a Mon Sep 17 00:00:00 2001 From: Marco Vinciguerra Date: Wed, 8 Apr 2026 19:50:54 +0200 Subject: [PATCH 2/2] fix: update deprecation warning link to docs site Co-Authored-By: Claude Opus 4.6 (1M context) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5e07eee..213f50a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ console.warn( "[scrapegraph-js] WARNING: This version (1.x) is deprecated and will no longer receive updates. " + "Please upgrade to scrapegraph-js v2 for the latest features, bug fixes, and API v2 support. " + - "See the migration guide: https://github.com/ScrapeGraphAI/scrapegraph-js/blob/main/MIGRATION.md", + "See the migration guide: https://docs.scrapegraphai.com/transition-from-v1-to-v2", ); export {