11.. currentmodule :: click
22
3+ Version 8.2.2
4+ -------------
5+
6+ Released 2025-07-31
7+
8+ - Fix reconciliation of `default `, `flag_value ` and `type ` parameters for
9+ flag options, as well as parsing and normalization of environment variables.
10+ :issue: `2952 ` :pr: `2956 `
11+ - Fix typing issue in ``BadParameter `` and ``MissingParameter `` exceptions for the
12+ parameter ``param_hint `` that did not allow for a sequence of string where the
13+ underlying functino ``_join_param_hints `` allows for it. :issue: `2777 ` :pr: `2990 `
14+ - Use the value of ``Enum `` choices to render their default value in help
15+ screen. Refs :issue: `2911 ` :pr: `3004 `
16+ - Fix completion for the Z shell (``zsh ``) for completion items containing
17+ colons. :issue: `2703 ` :pr: `2846 `
18+ - Don't include envvar in error hint when not configured. :issue: `2971 ` :pr: `2972 `
19+ - Fix a rare race in ``click.testing.StreamMixer ``'s finalization that manifested
20+ as a ``ValueError `` on close in a multi-threaded test session.
21+ :issue: `2993 ` :pr: `2991 `
22+
23+ Version 8.2.1
24+ -------------
25+
26+ Released 2025-05-20
27+
28+ - Fix flag value handling for flag options with a provided type. :issue: `2894 `
29+ :issue: `2897 ` :pr: `2930 `
30+ - Fix shell completion for nested groups. :issue: `2906 ` :pr: `2907 `
31+ - Flush ``sys.stderr `` at the end of ``CliRunner.invoke ``. :issue: `2682 `
32+ - Fix EOF handling for stdin input in CliRunner. :issue: `2787 `
33+
334Version 8.2.0
435-------------
536
6- Released 2025-01-12
37+ Released 2025-05-10
738
8- - Drop support for Python 3.7. :pr: `2588 `
39+ - Drop support for Python 3.7, 3.8, and 3.9. :pr: `2588 ` :pr: ` 2893 `
940- Use modern packaging metadata with ``pyproject.toml `` instead of ``setup.cfg ``.
1041 :pr: `2438 `
1142- Use ``flit_core `` instead of ``setuptools `` as build backend. :pr: `2543 `
@@ -89,8 +120,8 @@ Released 2025-01-12
89120 - A warning will be printed when something deprecated is used.
90121
91122- Add a ``catch_exceptions `` parameter to ``CliRunner ``. If
92- ``catch_exceptions `` is not passed to ``CliRunner.invoke ``,
93- the value from ``CliRunner ``. :issue: `2817 ` :pr: `2818 `
123+ ``catch_exceptions `` is not passed to ``CliRunner.invoke ``, the value
124+ from ``CliRunner `` is used . :issue: `2817 ` :pr: `2818 `
94125- ``Option.flag_value `` will no longer have a default value set based on
95126 ``Option.default `` if ``Option.is_flag `` is ``False ``. This results in
96127 ``Option.default `` not needing to implement `__bool__ `. :pr: `2829 `
@@ -104,7 +135,7 @@ Released 2025-01-12
104135Version 8.1.8
105136-------------
106137
107- Unreleased
138+ Released 2024-12-19
108139
109140- Fix an issue with type hints for ``click.open_file() ``. :issue: `2717 `
110141- Fix issue where error message for invalid ``click.Path `` displays on
@@ -117,6 +148,19 @@ Unreleased
117148 :issue: `2632 `
118149- Fix ``click.echo(color=...) `` passing ``color `` to coloroma so it can be
119150 forced on Windows. :issue: `2606 `.
151+ - More robust bash version check, fixing problem on Windows with git-bash.
152+ :issue: `2638 `
153+ - Cache the help option generated by the ``help_option_names `` setting to
154+ respect its eagerness. :pr: `2811 `
155+ - Replace uses of ``os.system `` with ``subprocess.Popen ``. :issue: `1476 `
156+ - Exceptions generated during a command will use the context's ``color ``
157+ setting when being displayed. :issue: `2193 `
158+ - Error message when defining option with invalid name is more descriptive.
159+ :issue: `2452 `
160+ - Refactor code generating default ``--help `` option to deduplicate code.
161+ :pr: `2563 `
162+ - Test ``CLIRunner `` resets patched ``_compat.should_strip_ansi ``.
163+ :issue: `2732 `
120164
121165
122166Version 8.1.7
0 commit comments