Skip to content

Commit

Permalink
deprecate Bormashino::Fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
keyasuda committed Jan 2, 2023
1 parent 1420181 commit 0dc05f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gem/lib/bormashino/fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class Fetch
attr_accessor :resource, :init, :resolved_to, :options

def initialize(resource:, resolved_to:, init: {}, options: {})
JS.eval("console.warn('Bormashino::Fetch is deprecated. Use Fetch API and JS::Object#await')")

@resource = resource
@init = init
@resolved_to = resolved_to
Expand Down

0 comments on commit 0dc05f5

Please sign in to comment.