Skip to content

Commit

Permalink
Adding a deprecation warning to update Crystal beyond 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink committed Mar 30, 2024
1 parent 0bb26e6 commit 929e3de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lucky/routable.cr
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ module Lucky::Routable
unless query_params.empty?
io << '?'
{% if compare_versions(Crystal::VERSION, "1.10.0") < 0 %}
{% @type.warning("[Deprecated] Please update your Crystal version #{Crystal::VERSION}. Using Lucky with a version below 1.10.0 is deprecated.") %}
io << HTTP::Params.encode(query_params)
{% else %}
HTTP::Params.encode(io, query_params)
Expand Down

0 comments on commit 929e3de

Please sign in to comment.