firecrawl 4.24.0 → 4.24.2

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.
@@ -8,7 +8,7 @@ var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@mendable/firecrawl-js",
11
- version: "4.24.0",
11
+ version: "4.24.2",
12
12
  description: "JavaScript SDK for Firecrawl API",
13
13
  main: "dist/index.js",
14
14
  types: "dist/index.d.ts",
@@ -77,7 +77,7 @@ var require_package = __commonJS({
77
77
  "rollup@<4.59.0": ">=4.59.0",
78
78
  "picomatch@<4.0.4": ">=4.0.4",
79
79
  handlebars: ">=4.7.9",
80
- "brace-expansion": ">=5.0.5",
80
+ "brace-expansion": ">=5.0.6",
81
81
  "axios@<1.15.2": "1.15.2",
82
82
  "follow-redirects@<1.16.0": ">=1.16.0 <2.0.0"
83
83
  }
package/dist/index.cjs CHANGED
@@ -35,7 +35,7 @@ var require_package = __commonJS({
35
35
  "package.json"(exports2, module2) {
36
36
  module2.exports = {
37
37
  name: "@mendable/firecrawl-js",
38
- version: "4.24.0",
38
+ version: "4.24.2",
39
39
  description: "JavaScript SDK for Firecrawl API",
40
40
  main: "dist/index.js",
41
41
  types: "dist/index.d.ts",
@@ -104,7 +104,7 @@ var require_package = __commonJS({
104
104
  "rollup@<4.59.0": ">=4.59.0",
105
105
  "picomatch@<4.0.4": ">=4.0.4",
106
106
  handlebars: ">=4.7.9",
107
- "brace-expansion": ">=5.0.5",
107
+ "brace-expansion": ">=5.0.6",
108
108
  "axios@<1.15.2": "1.15.2",
109
109
  "follow-redirects@<1.16.0": ">=1.16.0 <2.0.0"
110
110
  }
package/dist/index.d.cts CHANGED
@@ -29,7 +29,12 @@ interface ScreenshotFormat {
29
29
  interface ChangeTrackingFormat extends Format {
30
30
  type: "changeTracking";
31
31
  modes: ("git-diff" | "json")[];
32
- schema?: Record<string, unknown>;
32
+ /**
33
+ * Either a JSON Schema object or a Zod schema. Zod schemas are
34
+ * auto-converted to JSON Schema by the SDK before being sent — see
35
+ * `utils/validation.ts`.
36
+ */
37
+ schema?: Record<string, unknown> | ZodTypeAny;
33
38
  prompt?: string;
34
39
  tag?: string;
35
40
  }
@@ -495,8 +500,21 @@ interface MapOptions {
495
500
  origin?: string;
496
501
  location?: LocationConfig$1;
497
502
  }
503
+ /**
504
+ * Schedule for a monitor.
505
+ *
506
+ * On create/update, provide exactly one of `cron` or `text`:
507
+ * - `cron`: a 5-field cron expression (e.g. `"*\u002F30 * * * *"`).
508
+ * - `text`: a natural-language schedule (e.g. `"every 30 minutes"`,
509
+ * `"hourly"`, `"daily at 9:00"`). Firecrawl normalizes this to a cron
510
+ * expression server-side.
511
+ *
512
+ * On read, the API always returns the normalized `cron` value, so `cron`
513
+ * is populated in responses even when the monitor was created with `text`.
514
+ */
498
515
  interface MonitorSchedule {
499
- cron: string;
516
+ cron?: string;
517
+ text?: string;
500
518
  timezone?: string;
501
519
  }
502
520
  interface MonitorEmailNotification {
package/dist/index.d.ts CHANGED
@@ -29,7 +29,12 @@ interface ScreenshotFormat {
29
29
  interface ChangeTrackingFormat extends Format {
30
30
  type: "changeTracking";
31
31
  modes: ("git-diff" | "json")[];
32
- schema?: Record<string, unknown>;
32
+ /**
33
+ * Either a JSON Schema object or a Zod schema. Zod schemas are
34
+ * auto-converted to JSON Schema by the SDK before being sent — see
35
+ * `utils/validation.ts`.
36
+ */
37
+ schema?: Record<string, unknown> | ZodTypeAny;
33
38
  prompt?: string;
34
39
  tag?: string;
35
40
  }
@@ -495,8 +500,21 @@ interface MapOptions {
495
500
  origin?: string;
496
501
  location?: LocationConfig$1;
497
502
  }
503
+ /**
504
+ * Schedule for a monitor.
505
+ *
506
+ * On create/update, provide exactly one of `cron` or `text`:
507
+ * - `cron`: a 5-field cron expression (e.g. `"*\u002F30 * * * *"`).
508
+ * - `text`: a natural-language schedule (e.g. `"every 30 minutes"`,
509
+ * `"hourly"`, `"daily at 9:00"`). Firecrawl normalizes this to a cron
510
+ * expression server-side.
511
+ *
512
+ * On read, the API always returns the normalized `cron` value, so `cron`
513
+ * is populated in responses even when the monitor was created with `text`.
514
+ */
498
515
  interface MonitorSchedule {
499
- cron: string;
516
+ cron?: string;
517
+ text?: string;
500
518
  timezone?: string;
501
519
  }
502
520
  interface MonitorEmailNotification {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-C6HAA76K.js";
3
+ } from "./chunk-BI4QF6CM.js";
4
4
 
5
5
  // src/v2/utils/httpClient.ts
6
6
  import axios from "axios";
@@ -2042,7 +2042,7 @@ var FirecrawlApp = class {
2042
2042
  if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
2043
2043
  return process.env.npm_package_version;
2044
2044
  }
2045
- const packageJson = await import("./package-7NEHWGT6.js");
2045
+ const packageJson = await import("./package-J5WRLHEQ.js");
2046
2046
  return packageJson.default.version;
2047
2047
  } catch (error) {
2048
2048
  const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
@@ -1,4 +1,4 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-C6HAA76K.js";
3
+ } from "./chunk-BI4QF6CM.js";
4
4
  export default require_package();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firecrawl",
3
- "version": "4.24.0",
3
+ "version": "4.24.2",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/v2/types.ts CHANGED
@@ -41,7 +41,12 @@ export interface ScreenshotFormat {
41
41
  export interface ChangeTrackingFormat extends Format {
42
42
  type: "changeTracking";
43
43
  modes: ("git-diff" | "json")[];
44
- schema?: Record<string, unknown>;
44
+ /**
45
+ * Either a JSON Schema object or a Zod schema. Zod schemas are
46
+ * auto-converted to JSON Schema by the SDK before being sent — see
47
+ * `utils/validation.ts`.
48
+ */
49
+ schema?: Record<string, unknown> | ZodTypeAny;
45
50
  prompt?: string;
46
51
  tag?: string;
47
52
  }
@@ -631,8 +636,21 @@ export interface MapOptions {
631
636
  location?: LocationConfig;
632
637
  }
633
638
 
639
+ /**
640
+ * Schedule for a monitor.
641
+ *
642
+ * On create/update, provide exactly one of `cron` or `text`:
643
+ * - `cron`: a 5-field cron expression (e.g. `"*\u002F30 * * * *"`).
644
+ * - `text`: a natural-language schedule (e.g. `"every 30 minutes"`,
645
+ * `"hourly"`, `"daily at 9:00"`). Firecrawl normalizes this to a cron
646
+ * expression server-side.
647
+ *
648
+ * On read, the API always returns the normalized `cron` value, so `cron`
649
+ * is populated in responses even when the monitor was created with `text`.
650
+ */
634
651
  export interface MonitorSchedule {
635
- cron: string;
652
+ cron?: string;
653
+ text?: string;
636
654
  timezone?: string;
637
655
  }
638
656