Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Use saveChanges instead of writeMode for profiles (#2927)
Developers Digest6a06034126cd
diff --git a/apps/api/src/controllers/v2/browser.ts b/apps/api/src/controllers/v2/browser.tsindex ee07ee588..aa69e12c9 100644--- a/apps/api/src/controllers/v2/browser.ts+++ b/apps/api/src/controllers/v2/browser.ts@@ -43,7 +43,7 @@ const browserCreateRequestSchema = z.object({streamWebView: z.boolean().default(true),profile: z.object({name: z.string().min(1).max(128),- writeMode: z.enum(["readonly", "readwrite"]).default("readwrite"),+ saveChanges: z.boolean().default(true),}).optional(),});@@ -260,7 +260,7 @@ export async function browserCreateController(.slice(0, 16);persistentStorage = {uniqueId: `${teamHash}_${profile.name}`,- write: profile.writeMode === "readwrite",+ write: profile.saveChanges !== false,};}@@ -285,7 +285,7 @@ export async function browserCreateController(});return res.status(409).json({success: false,- error: "Another session is currently writing to this profile. Only one writer is allowed at a time. You can still access it with writeMode \"readonly\", or try again later.",+ error: "Another session is currently writing to this profile. Only one writer is allowed at a time. You can still access it with saveChanges: false, or try again later.",});}diff --git a/apps/js-sdk/firecrawl/package.json b/apps/js-sdk/firecrawl/package.jsonindex 808f65e6c..5e6aa6ad7 100644--- a/apps/js-sdk/firecrawl/package.json+++ b/apps/js-sdk/firecrawl/package.json@@ -1,6 +1,6 @@{"name": "@mendable/firecrawl-js",- "version": "4.14.1",+ "version": "4.15.0","description": "JavaScript SDK for Firecrawl API","main": "dist/index.js","types": "dist/index.d.ts",diff --git a/apps/js-sdk/firecrawl/src/v2/methods/browser.ts b/apps/js-sdk/firecrawl/src/v2/methods/browser.tsindex 6858706f8..67dd39173 100644--- a/apps/js-sdk/firecrawl/src/v2/methods/browser.ts+++ b/apps/js-sdk/firecrawl/src/v2/methods/browser.ts@@ -15,7 +15,7 @@ export async function browser(streamWebView?: boolean;profile?: {name: string;- writeMode?: "readonly" | "readwrite";+ saveChanges?: boolean;};} = {}): Promise<BrowserCreateResponse> {diff --git a/apps/python-sdk/firecrawl/__init__.py b/apps/python-sdk/firecrawl/__init__.pyindex 1c27891f5..6b9ffb912 100644--- a/apps/python-sdk/firecrawl/__init__.py+++ b/apps/python-sdk/firecrawl/__init__.py@@ -17,7 +17,7 @@ from .v1 import (V1ChangeTrackingOptions,)-__version__ = "4.17.2"+__version__ = "4.18.0"# Define the logger for the Firecrawl projectlogger: logging.Logger = logging.getLogger("firecrawl")diff --git a/apps/python-sdk/firecrawl/v2/client.py b/apps/python-sdk/firecrawl/v2/client.pyindex a0d9360dc..54b65a4f8 100644--- a/apps/python-sdk/firecrawl/v2/client.py+++ b/apps/python-sdk/firecrawl/v2/client.py@@ -993,7 +993,7 @@ class FirecrawlClient:activity_ttl: Inactivity TTL in seconds (10-3600)stream_web_view: Whether to enable webview streamingprofile: Profile config with ``name`` (str) and- optional ``write_mode`` (``"readonly"`` | ``"readwrite"``, default ``"readwrite"``)+ optional ``save_changes`` (bool, default ``True``)Returns:BrowserCreateResponse with session id and CDP URLdiff --git a/apps/python-sdk/firecrawl/v2/client_async.py b/apps/python-sdk/firecrawl/v2/client_async.pyindex 4554cc64f..aaae8899e 100644--- a/apps/python-sdk/firecrawl/v2/client_async.py+++ b/apps/python-sdk/firecrawl/v2/client_async.py@@ -477,7 +477,7 @@ class AsyncFirecrawlClient:activity_ttl: Inactivity TTL in seconds (10-3600)stream_web_view: Whether to enable webview streamingprofile: Profile config with ``name`` (str) and- optional ``write_mode`` (``"readonly"`` | ``"readwrite"``, default ``"readwrite"``)+ optional ``save_changes`` (bool, default ``True``)Returns:BrowserCreateResponse with session id and CDP URLdiff --git a/apps/python-sdk/firecrawl/v2/methods/aio/browser.py b/apps/python-sdk/firecrawl/v2/methods/aio/browser.pyindex 81eee50f0..3be1bec89 100644--- a/apps/python-sdk/firecrawl/v2/methods/aio/browser.py+++ b/apps/python-sdk/firecrawl/v2/methods/aio/browser.py@@ -63,7 +63,7 @@ async def browser(activity_ttl: Inactivity TTL in seconds (10-3600)stream_web_view: Whether to enable webview streamingprofile: Profile config with ``name`` (str) and- optional ``write_mode`` (``"readonly"`` | ``"readwrite"``, default ``"readwrite"``)+ optional ``save_changes`` (bool, default ``True``)Returns:BrowserCreateResponse with session id and CDP URL@@ -78,7 +78,7 @@ async def browser(if profile is not None:body["profile"] = {"name": profile["name"],- "writeMode": profile.get("write_mode", "readwrite"),+ "saveChanges": profile.get("save_changes", True),}resp = await client.post("/v2/browser", body)diff --git a/apps/python-sdk/firecrawl/v2/methods/browser.py b/apps/python-sdk/firecrawl/v2/methods/browser.pyindex 14aecef10..671122f17 100644--- a/apps/python-sdk/firecrawl/v2/methods/browser.py+++ b/apps/python-sdk/firecrawl/v2/methods/browser.py@@ -64,7 +64,7 @@ def browser(activity_ttl: Inactivity TTL in seconds (10-3600)stream_web_view: Whether to enable webview streamingprofile: Profile config with ``name`` (str) and- optional ``write_mode`` (``"readonly"`` | ``"readwrite"``, default ``"readwrite"``)+ optional ``save_changes`` (bool, default ``True``)Returns:BrowserCreateResponse with session id and CDP URL@@ -79,7 +79,7 @@ def browser(if profile is not None:body["profile"] = {"name": profile["name"],- "writeMode": profile.get("write_mode", "readwrite"),+ "saveChanges": profile.get("save_changes", True),}resp = client.post("/v2/browser", body)