@mendable/firecrawl 1.22.1 → 1.23.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mendable/firecrawl",
3
- "version": "1.22.1",
3
+ "version": "1.23.6",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,6 @@
25
25
  "author": "Mendable.ai",
26
26
  "license": "MIT",
27
27
  "dependencies": {
28
- "axios": "^1.6.8",
29
28
  "typescript-event-target": "^1.1.1",
30
29
  "zod": "^3.23.8",
31
30
  "zod-to-json-schema": "^3.23.0"
@@ -38,10 +37,11 @@
38
37
  "@jest/globals": "^29.7.0",
39
38
  "@types/axios": "^0.14.0",
40
39
  "@types/dotenv": "^8.2.0",
41
- "@types/jest": "^29.5.12",
40
+ "@types/jest": "^29.5.14",
42
41
  "@types/mocha": "^10.0.6",
43
42
  "@types/node": "^20.12.12",
44
43
  "@types/uuid": "^9.0.8",
44
+ "axios": "^1.6.8",
45
45
  "dotenv": "^16.4.5",
46
46
  "jest": "^29.7.0",
47
47
  "ts-jest": "^29.2.2",
package/src/index.ts CHANGED
@@ -72,6 +72,27 @@ export interface FirecrawlDocument<T = any, ActionsSchema extends (ActionsResult
72
72
  previousScrapeAt: string | null;
73
73
  changeStatus: "new" | "same" | "changed" | "removed";
74
74
  visibility: "visible" | "hidden";
75
+ diff?: {
76
+ text: string;
77
+ json: {
78
+ files: Array<{
79
+ from: string | null;
80
+ to: string | null;
81
+ chunks: Array<{
82
+ content: string;
83
+ changes: Array<{
84
+ type: string;
85
+ normal?: boolean;
86
+ ln?: number;
87
+ ln1?: number;
88
+ ln2?: number;
89
+ content: string;
90
+ }>;
91
+ }>;
92
+ }>;
93
+ };
94
+ };
95
+ json?: any;
75
96
  };
76
97
  // v1 search only
77
98
  title?: string;
@@ -140,6 +161,11 @@ export interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchem
140
161
  schema?: LLMSchema;
141
162
  systemPrompt?: string;
142
163
  }
164
+ changeTrackingOptions?: {
165
+ prompt?: string;
166
+ schema?: any;
167
+ modes?: ("json" | "git-diff")[];
168
+ }
143
169
  actions?: ActionsSchema;
144
170
  }
145
171