Skip to content

Commit 41c1eff

Browse files
committed
Add warning for proc-based visitors
1 parent 32cb740 commit 41c1eff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/graphql/language/visitor.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ class NodeVisitor
207207
attr_reader :leave
208208

209209
def initialize
210+
warn("Proc-based visitor hooks are deprecated and will be removed in 1.10.0. Migrate to a method-based visitor instead: http://graphql-ruby.org/language_tools/visitor")
210211
@enter = []
211212
@leave = []
212213
end

0 commit comments

Comments
 (0)