|
1 | 1 | .. currentmodule:: click
|
2 | 2 |
|
| 3 | +Version 8.1.3 |
| 4 | +------------- |
| 5 | + |
| 6 | +Released 2022-04-28 |
| 7 | + |
| 8 | +- Use verbose form of ``typing.Callable`` for ``@command`` and |
| 9 | + ``@group``. :issue:`2255` |
| 10 | +- Show error when attempting to create an option with |
| 11 | + ``multiple=True, is_flag=True``. Use ``count`` instead. |
| 12 | + :issue:`2246` |
| 13 | + |
| 14 | + |
| 15 | +Version 8.1.2 |
| 16 | +------------- |
| 17 | + |
| 18 | +Released 2022-03-31 |
| 19 | + |
| 20 | +- Fix error message for readable path check that was mixed up with the |
| 21 | + executable check. :pr:`2236` |
| 22 | +- Restore parameter order for ``Path``, placing the ``executable`` |
| 23 | + parameter at the end. It is recommended to use keyword arguments |
| 24 | + instead of positional arguments. :issue:`2235` |
| 25 | + |
| 26 | + |
| 27 | +Version 8.1.1 |
| 28 | +------------- |
| 29 | + |
| 30 | +Released 2022-03-30 |
| 31 | + |
| 32 | +- Fix an issue with decorator typing that caused type checking to |
| 33 | + report that a command was not callable. :issue:`2227` |
| 34 | + |
| 35 | + |
| 36 | +Version 8.1.0 |
| 37 | +------------- |
| 38 | + |
| 39 | +Released 2022-03-28 |
| 40 | + |
| 41 | +- Drop support for Python 3.6. :pr:`2129` |
| 42 | +- Remove previously deprecated code. :pr:`2130` |
| 43 | + |
| 44 | + - ``Group.resultcallback`` is renamed to ``result_callback``. |
| 45 | + - ``autocompletion`` parameter to ``Command`` is renamed to |
| 46 | + ``shell_complete``. |
| 47 | + - ``get_terminal_size`` is removed, use |
| 48 | + ``shutil.get_terminal_size`` instead. |
| 49 | + - ``get_os_args`` is removed, use ``sys.argv[1:]`` instead. |
| 50 | + |
| 51 | +- Rely on :pep:`538` and :pep:`540` to handle selecting UTF-8 encoding |
| 52 | + instead of ASCII. Click's locale encoding detection is removed. |
| 53 | + :issue:`2198` |
| 54 | +- Single options boolean flags with ``show_default=True`` only show |
| 55 | + the default if it is ``True``. :issue:`1971` |
| 56 | +- The ``command`` and ``group`` decorators can be applied with or |
| 57 | + without parentheses. :issue:`1359` |
| 58 | +- The ``Path`` type can check whether the target is executable. |
| 59 | + :issue:`1961` |
| 60 | +- ``Command.show_default`` overrides ``Context.show_default``, instead |
| 61 | + of the other way around. :issue:`1963` |
| 62 | +- Parameter decorators and ``@group`` handles ``cls=None`` the same as |
| 63 | + not passing ``cls``. ``@option`` handles ``help=None`` the same as |
| 64 | + not passing ``help``. :issue:`#1959` |
| 65 | +- A flag option with ``required=True`` requires that the flag is |
| 66 | + passed instead of choosing the implicit default value. :issue:`1978` |
| 67 | +- Indentation in help text passed to ``Option`` and ``Command`` is |
| 68 | + cleaned the same as using the ``@option`` and ``@command`` |
| 69 | + decorators does. A command's ``epilog`` and ``short_help`` are also |
| 70 | + processed. :issue:`1985` |
| 71 | +- Store unprocessed ``Command.help``, ``epilog`` and ``short_help`` |
| 72 | + strings. Processing is only done when formatting help text for |
| 73 | + output. :issue:`2149` |
| 74 | +- Allow empty str input for ``prompt()`` when |
| 75 | + ``confirmation_prompt=True`` and ``default=""``. :issue:`2157` |
| 76 | +- Windows glob pattern expansion doesn't fail if a value is an invalid |
| 77 | + pattern. :issue:`2195` |
| 78 | +- It's possible to pass a list of ``params`` to ``@command``. Any |
| 79 | + params defined with decorators are appended to the passed params. |
| 80 | + :issue:`2131`. |
| 81 | +- ``@command`` decorator is annotated as returning the correct type if |
| 82 | + a ``cls`` argument is used. :issue:`2211` |
| 83 | +- A ``Group`` with ``invoke_without_command=True`` and ``chain=False`` |
| 84 | + will invoke its result callback with the group function's return |
| 85 | + value. :issue:`2124` |
| 86 | +- ``to_info_dict`` will not fail if a ``ParamType`` doesn't define a |
| 87 | + ``name``. :issue:`2168` |
| 88 | +- Shell completion prioritizes option values with option prefixes over |
| 89 | + new options. :issue:`2040` |
| 90 | +- Options that get an environment variable value using |
| 91 | + ``autoenvvar_prefix`` treat an empty value as ``None``, consistent |
| 92 | + with a direct ``envvar``. :issue:`2146` |
| 93 | + |
| 94 | + |
| 95 | +Version 8.0.4 |
| 96 | +------------- |
| 97 | + |
| 98 | +Released 2022-02-18 |
| 99 | + |
| 100 | +- ``open_file`` recognizes ``Path("-")`` as a standard stream, the |
| 101 | + same as the string ``"-"``. :issue:`2106` |
| 102 | +- The ``option`` and ``argument`` decorators preserve the type |
| 103 | + annotation of the decorated function. :pr:`2155` |
| 104 | +- A callable default value can customize its help text by overriding |
| 105 | + ``__str__`` instead of always showing ``(dynamic)``. :issue:`2099` |
| 106 | +- Fix a typo in the Bash completion script that affected file and |
| 107 | + directory completion. If this script was generated by a previous |
| 108 | + version, it should be regenerated. :issue:`2163` |
| 109 | +- Fix typing for ``echo`` and ``secho`` file argument. |
| 110 | + :issue:`2174, 2185` |
| 111 | + |
| 112 | + |
3 | 113 | Version 8.0.3
|
4 | 114 | -------------
|
5 | 115 |
|
|
0 commit comments