There are three levels in that answer, and you can control all of them in cpanfile and Makefile.PL.

  1. The minimum version that your module requires to function as described. This might imply that some features are not supported, but you guarantee that your module passes tests when used with this version. In you meta, that would be required. It is completely up to you to raise that minimum for whatever reason even if you know it would work as well with a lower version. In that case I'd like to read about the reasoning in the README.md or equivalent.
  2. The version that you recommend. There might be several reasons for that: fixed CVE's, added functionality, raised stability, easier API, …. Again, fully your choise. You can mention that in the recommends sections of your meta. If you state a recommended version, end-users expect you to have tested your module with this.
  3. Last is the section suggested. You might want to have this when it features optional new stuff, speeds increases or whatever.

Here is an example from cpanfile for the dependency on ExtUtils::MakeMaker, based of availablility and solved CVE's:

on "configure" => sub { requires "ExtUtils::MakeMaker"; recommends "ExtUtils::MakeMaker" => "7.22"; suggests "ExtUtils::MakeMaker" => "7.70"; };

Enjoy, Have FUN! H.Merijn

In reply to Re: Deciding dependency versions by Tux
in thread Deciding dependency versions by Bod

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.