firecrawl-sdk 1.17.7 → 1.18.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22543b5053874d9d1a815949df7212abbcca9a72738a23ecfc696194696b6ad6
4
- data.tar.gz: a53387ffdbb11b21ce357368f617dd83fdf341619a022db5997b8a4e3bfab6b1
3
+ metadata.gz: 6127c4b3f294f6ed277ec8bb3ff5e6509e77433574f464059e2ee132a538d8a7
4
+ data.tar.gz: 381b43134f7413951f904b74898c1ecff899c1b1e3aa110ab3a127dc818fec15
5
5
  SHA512:
6
- metadata.gz: 7345b8e668fd1ece22c0de23408a7f99e6e5da42f2a573973cb32b4db18cd5bb2d8f61f505e0de5df4e0a0c96fd11af8c35531cd98bcdaa2aab470227678a9ac
7
- data.tar.gz: 7a4ec95b23cd3e767e93742600a01c8a51123d9c9589823bf62f6a2fb2561ad77fb05c95a45324e44a0ef7322aea4fcd94a46ce6e3b705f61ec5831901ff27ec
6
+ metadata.gz: 240a043cdb953f513bebfc8081a7c3174a5057a94f1f5d1d579b0a988ed358701cc905a04d218f6d05c7ba57e6ac9d4a6b459f4348dc6d3916d7de9334f0ba09
7
+ data.tar.gz: fb24f0b5f108a67de0fe602d2c852f0b2933ec75a8345badf4498b88a658c670ffc0b8714a5fb6e885da502dcf1d4231f4b0a1f93c4090793c6ae95a88432a59
data/README.md CHANGED
@@ -195,7 +195,7 @@ results = client.search("latest news",
195
195
 
196
196
  ### Developer Search
197
197
 
198
- Search public repositories, GitHub issues, merged pull requests, READMEs and code documentation. `developer_search` replaces the deprecated `search_github`.
198
+ Search public repositories, GitHub issues, merged pull requests, READMEs and code documentation. It replaces the research index GitHub search, which was removed after 2026-11-03.
199
199
 
200
200
  ```ruby
201
201
  response = client.developer_search(
@@ -131,11 +131,21 @@ module Firecrawl
131
131
  @http.get("#{path}#{query(options.merge("intent" => intent, "origin" => "ruby-sdk@#{Firecrawl::VERSION}"))}")
132
132
  end
133
133
 
134
+ # Look up a protein's UniProt location, function and GO cellular-component terms.
135
+ # The response's "notice" is the UniProt credit and license. Show it with the results.
136
+ #
137
+ # @param protein [String] UniProt accession, entry name, gene symbol or protein name
138
+ # @param options [Hash] optional query parameters
139
+ # @return [Hash]
140
+ def lookup_protein(protein, options = {})
141
+ raise ArgumentError, "Protein is required" if protein.nil?
142
+ @http.get("/v2/search/research/proteins#{query(options.merge("protein" => protein, "origin" => "ruby-sdk@#{Firecrawl::VERSION}"))}")
143
+ end
144
+
134
145
  # Search GitHub research content.
135
146
  #
136
- # @deprecated Stops responding after 2026-11-03. Use {#developer_search},
137
- # which does not carry over the score breakdown or the web fallback
138
- # results.
147
+ # @deprecated The research index GitHub search endpoint was removed after
148
+ # 2026-11-03. Use {#developer_search} instead.
139
149
  # @param query_text [String] GitHub query
140
150
  # @param options [Hash] optional query parameters
141
151
  # @return [Hash]
@@ -26,13 +26,14 @@ module Firecrawl
26
26
  end
27
27
  end
28
28
 
29
- # Stock availability information for a variant. Always present.
29
+ # Stock availability information for a variant. Always present;
30
+ # in_stock is nil when the page does not state whether it is in stock.
30
31
  class Availability
31
32
  attr_reader :in_stock, :text
32
33
 
33
34
  def initialize(data)
34
35
  data ||= {}
35
- @in_stock = data["inStock"] || false
36
+ @in_stock = data["inStock"]
36
37
  @text = data["text"]
37
38
  end
38
39
  end
@@ -49,12 +50,15 @@ module Firecrawl
49
50
  # A purchasable variant of a product. Pricing, availability, and images
50
51
  # live here rather than on the top-level product.
51
52
  class Variant
52
- attr_reader :id, :sku, :title, :values, :price, :sale,
53
- :availability, :images
53
+ attr_reader :id, :sku, :gtin, :mpn, :condition, :title, :values,
54
+ :price, :sale, :availability, :images
54
55
 
55
56
  def initialize(data)
56
57
  @id = data["id"]
57
58
  @sku = data["sku"]
59
+ @gtin = data["gtin"]
60
+ @mpn = data["mpn"]
61
+ @condition = data["condition"]
58
62
  @title = data["title"]
59
63
  @values = data["values"]
60
64
  @price = data["price"] && Price.new(data["price"])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Firecrawl
4
- VERSION = "1.17.7"
4
+ VERSION = "1.18.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firecrawl-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.7
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firecrawl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-20 00:00:00.000000000 Z
11
+ date: 2026-11-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'A type-safe Ruby client for the Firecrawl v2 API: search, scrape, parse,
14
14
  crawl, map, and interact with the web, run batch scrapes, and run Agent and Monitor