Skip to content

Commit

Permalink
deprecate: Nokogiri::CSS.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jun 6, 2024
1 parent 3222897 commit 0fe0b2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nokogiri/css.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class << self
# TODO: Deprecate this method ahead of 2.0 and delete it in 2.0.
# It is not used by Nokogiri and shouldn't be part of the public API.
def parse(selector) # :nodoc:
warn("Nokogiri::CSS.parse is deprecated and will be removed in a future version of Nokogiri. Use Nokogiri::CSS::Parser#parse instead.", uplevel: 1, category: :deprecated)
Parser.new.parse(selector)
end

Expand Down

0 comments on commit 0fe0b2f

Please sign in to comment.