Dist::Z...Release(3)
π NAME π
Dist::Zilla::Plugin::NextRelease β bestie, this one updates the next release number in your changelog. That's it. That's the job. π«Ά
This page lives in the User Contributed Perl Documentation manual, and we're gonna walk it together like it's a little group chat. π
β¨ VERSION β¨
version 6.040 β yes queen, we're on 6.040. π
πΈ SYNOPSIS πΈ
In your dist.ini:
[NextRelease]
In your Changes file:
{{$NEXT}}
Like. That's the whole vibe. Two little lines and you're done. π
π¦ DESCRIPTION π¦
Okay so real talk: are you tired of having to update your Changes file by hand with the new version and release date / time every single time you release your distribution? Because same. That is literally the worst. Well β this plugin is for you. π
Add this plugin to your dist.ini, and the following to your Changes file:
{{$NEXT}}
And then the NextRelease plugin is gonna do 2 things for you, no cap:
- π οΈ At build time, this special marker gets replaced with the version and the build date, forming a standard changelog header. And important: this happens to the in-memory file β the original
Changesfile does not get updated. Chill. It's fine. π - π After release (when you're running
dzil release), since the version and build date are now part of your dist's history, the realChangesfile (not the in-memory one) gets updated with this piece of information. Iconic behaviour, honestly.
The module accepts the following options in its dist.ini section:
filenameβ the name of your changelog file; defaults toChanges. πupdate_filenameβ the file to which to write an updated changelog to; defaults to thefilename. ποΈformatβ a sprintf-like string used to compute the next value of{{$NEXT}}; defaults to%-9v %{yyyy-MM-dd HH:mm:ssZZZZZ VVVV}d%{ (TRIAL RELEASE)}T. πtime_zoneβ the timezone to use when generating the date; defaults to local. π°οΈuser_stashβ the name of the stash where the user's name and email address can be found; defaults to%User. π
The module allows the following sprintf-like format codes in the format:
%vβ The distribution version. β%{-TRIAL}Tβ Expands to-TRIAL(or any other supplied string) if this is a trial release, or the empty string if not. And btw a bare%Tmeans%{-TRIAL}T. π%{-TRIAL}Vβ Equivalent to%v%{-TRIAL}T, to allow for the application of modifiers such as space padding to the entire version string produced. Lowkey clever.%{CLDR format}dβ The date of the release. You can use any CLDR format supported by DateTime. And heads up: you must specify the format; there is no default. ποΈ%Uβ The name of the user making this release (fromuser_stash). π«Ά%Eβ The email address of the user making this release (fromuser_stash). π§%Pβ The CPAN (PAUSE) id of the user making this release (from-Releaserplugins; see[UploadToCPAN]). π%nβ A newline. β©οΈ%tβ A tab. β‘οΈ
π PERL VERSION π
This module should work on any version of perl still receiving updates from the Perl 5 Porters. Which means it should work on any version of perl released in the last two to three years. (That is, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.) β¨
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. So likeβ¦ don't come for me about it. π
π SEE ALSO π
Core Dist::Zilla plugins: AutoVersion, PkgVersion, PodVersion. π₯
Dist::Zilla roles: AfterRelease, FileMunger, TextTemplate. π
π AUTHOR π
Ricardo SIGNES π <cpan@semiotic.systems>
π§ COPYRIGHT AND LICENSE π§
This software is copyright (c) 2026 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Okay bestie, that's the whole page!! π«Ά This was perl v5.42.3, dated 2026-10-19, and you were reading the Dist::Z...Release(3) page in the User Contributed Perl Documentation manual. Go forth and ship your dist. mwah ππβ¨
π¦ where this page comes from
- fedora 44: perl-Dist-Zilla 6.040-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms