Updated CHANGELOG for 0.17.0

This commit is contained in:
Gil Forsyth 2024-06-18 08:47:50 -04:00
parent fe8448c2c1
commit 5332d75505
42 changed files with 86 additions and 952 deletions

View file

@ -4,6 +4,92 @@ Xonsh Change Log
.. current developments
v0.17.0
====================
**Added:**
* Added section "Use the Nix Package manager with Xonsh" to "Platform-specific tips and tricks".
* Added ``env.detype_all()`` to get all available variables that is possible to detype.
* Reading stop signals from the process and update the process state (#5361).
* Added support of NixOS core tools in ``predict_threadable``.
* Added catching an exceptions during load a history backend to avoid shell exiting e.g. on permission error.
* Added catching an exception when cache file is not writable.
* Added FuncAlias to process callable aliases.
* Added alias name printing in case of exception in alias.
* Saving history in case of any type of exiting the shell.
* Added catching ChildProcessError in jobs. Avoiding hanging aliases in some cases.
* Added xonsh support into Jupytext project! Jupytext is to store Jupyter notebooks as a plain text documents.
* Now last executed CommandPipeline is available in ``__xonsh__.last``.
* Added ``xonsh --no-env`` option to run xonsh without inheriting the environment variables. Now by running ``xonsh --no-rc --no-env`` you have pure xonsh session.
* Added thread class, name, func and alias names to thread exception for easy understanding the source of issue.
* Added shortcut ``-st`` for ``--shell-type``.
* Saving history on SIGINT. Development tools like PyCharm send SIGINT before killing the run
and doing this is the last chance to save history.
* Added ``spec.raise_subproc_error`` for fine-tuning exceptions via ``SpecModifierAlias`` (#5494).
* Added ``$XONSH_SUBPROC_OUTPUT_FORMAT`` to switch the way to return the output lines.
Default ``stream_lines`` to return text. Alternative ``list_lines`` to return
the list of lines. Now you can run ``du $(ls)`` without additional stripping.
Also supported custom lambda function to process lines (if you're looking for
alternative to bash IFS).
* Added ``xthread`` and ``xunthread`` aliases to force command running as threaded and unthreaded.
* Added ``SpecModifierAlias`` class to have an ability to create alias that modifies spec before run e.g. ``xthread`` alias.
* Added mode ``$XONSH_TRACE_SUBPROC=3`` to show more information about pipeline.
* Added "Callable alias and capturing" to the tutorial.
* Xonfig: show sensitive env variables that could affect the shell behavior.
* We started `Zulip Community <https://xonsh.zulipchat.com/join/hbvue5rimpdkwkdjuiqfs7tv/>`_ to publish news and chatting.
**Changed:**
* Minor cleanup of ``commands_cache``, unifying behavior across platforms.
* Xonsh AppImage downgraded to Python 3.11. We need to resolve 3.12 parser support (5166) before upgrade.
* Env variables completion: now use substring for search and then sort results by the position of substring and then alphabetically. PR 5388.
* jobs: default representation changed to dict.
* The CommandPipeline repr will not show descriptors by default. Use XONSH_DEBUG mode to see them.
* Prompt: ``env_name`` will have yellow color by default.
* Show ``root`` and ``@#`` in prompt if user is superuser.
* Cleaning logic and functions around threading and capturing in ``procs/specs.py`` file.
* Now the ending new line symbol ``\n`` will be stripped from the single line output.
For ``$(whoami)`` you will get ``'user'`` instead of ``'user\n'``.
* ``$XONSH_TRACE_SUBPROC=2`` returns more useful details.
* The home based ``~/.xonshrc`` will not be executed in non-interactive mode (#5491).
**Removed:**
* No longer is ``.`` implied for running commands on Windows. Instead the behavior is the same across platforms. Windows users will need to prefix ``./`` or ``.\`` to run commands from the current directory (#5476).
* Unpin prompt-toolkit version (#5438).
**Fixed:**
* Commands on Windows now honor the case as they appear on the file system (#5469).
* Prevent exception on start up if ``dircolors`` util is wrong.
* Fixed ``Bad file descriptor`` and I/O errors after running callable alias (#5435).
* Fixed showing exception message in some cases.
* Fixed empty stacktrace for CalledProcessError.
* Fixed redirect with python substitution e.g. ``echo 1 > @('/tmp/file')`` is working now.
* Fixed showing alias description using superhelp e.g. ``which?``.
* Fixed ``xonsh -DVAR=VAL`` behavior: initiate env variables before shell initialization.
* Fixed processing exit signals and exceptions (e.g. SIGHUP in #5381) to provide careful exiting with right exit code and TTY cleaning.
* Fixed ``TypeError`` in xoreutils.
* Fixed populating the return code for interrupted process.
* Windows: fixed path to RC file in ``xonfig web``.
**Authors:**
* Gil Forsyth
* Noortheen Raja
* anki-code
* pre-commit-ci[bot]
* Peter Ye
* Jason R. Coombs
* dependabot[bot]
* doronz88
* jyn
* l-no
* amacfie-tc
v0.16.0
====================

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* Minor cleanup of ``commands_cache``, unifying behavior across platforms.
**Deprecated:**
* <news item>
**Removed:**
* No longer is ``.`` implied for running commands on Windows. Instead the behavior is the same across platforms. Windows users will need to prefix ``./`` or ``.\`` to run commands from the current directory (#5476).
**Fixed:**
* Commands on Windows now honor the case as they appear on the file system (#5469).
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* Xonsh AppImage downgraded to Python 3.11. We need to resolve 3.12 parser support (5166) before upgrade.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added section "Use the Nix Package manager with Xonsh" to "Platform-specific tips and tricks".
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* Env variables completion: now use substring for search and then sort results by the position of substring and then alphabetically. PR 5388.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added ``env.detype_all()`` to get all available variables that is possible to detype.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Prevent exception on start up if ``dircolors`` util is wrong.
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Reading stop signals from the process and update the process state (#5361).
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed ``Bad file descriptor`` and I/O errors after running callable alias (#5435).
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added support of NixOS core tools in ``predict_threadable``.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,24 +0,0 @@
**Added:**
* Added catching an exceptions during load a history backend to avoid shell exiting e.g. on permission error.
* Added catching an exception when cache file is not writable.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed showing exception message in some cases.
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed empty stacktrace for CalledProcessError.
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed redirect with python substitution e.g. ``echo 1 > @('/tmp/file')`` is working now.
**Security:**
* <news item>

View file

@ -1,24 +0,0 @@
**Added:**
* Added FuncAlias to process callable aliases.
* Added alias name printing in case of exception in alias.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed showing alias description using superhelp e.g. ``which?``.
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Saving history in case of any type of exiting the shell.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added catching ChildProcessError in jobs. Avoiding hanging aliases in some cases.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* jobs: default representation changed to dict.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added xonsh support into Jupytext project! Jupytext is to store Jupyter notebooks as a plain text documents.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Now last executed CommandPipeline is available in ``__xonsh__.last``.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed ``xonsh -DVAR=VAL`` behavior: initiate env variables before shell initialization.
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* The CommandPipeline repr will not show descriptors by default. Use XONSH_DEBUG mode to see them.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added ``xonsh --no-env`` option to run xonsh without inheriting the environment variables. Now by running ``xonsh --no-rc --no-env`` you have pure xonsh session.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added thread class, name, func and alias names to thread exception for easy understanding the source of issue.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* Prompt: ``env_name`` will have yellow color by default.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* Show ``root`` and ``@#`` in prompt if user is superuser.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* Cleaning logic and functions around threading and capturing in ``procs/specs.py`` file.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added shortcut ``-st`` for ``--shell-type``.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed processing exit signals and exceptions (e.g. SIGHUP in #5381) to provide careful exiting with right exit code and TTY cleaning.
**Security:**
* <news item>

View file

@ -1,24 +0,0 @@
**Added:**
* Saving history on SIGINT. Development tools like PyCharm send SIGINT before killing the run
and doing this is the last chance to save history.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added ``spec.raise_subproc_error`` for fine-tuning exceptions via ``SpecModifierAlias`` (#5494).
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,28 +0,0 @@
**Added:**
* Added ``$XONSH_SUBPROC_OUTPUT_FORMAT`` to switch the way to return the output lines.
Default ``stream_lines`` to return text. Alternative ``list_lines`` to return
the list of lines. Now you can run ``du $(ls)`` without additional stripping.
Also supported custom lambda function to process lines (if you're looking for
alternative to bash IFS).
**Changed:**
* Now the ending new line symbol ``\n`` will be stripped from the single line output.
For ``$(whoami)`` you will get ``'user'`` instead of ``'user\n'``.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,24 +0,0 @@
**Added:**
* Added ``xthread`` and ``xunthread`` aliases to force command running as threaded and unthreaded.
* Added ``SpecModifierAlias`` class to have an ability to create alias that modifies spec before run e.g. ``xthread`` alias.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added mode ``$XONSH_TRACE_SUBPROC=3`` to show more information about pipeline.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* ``$XONSH_TRACE_SUBPROC=2`` returns more useful details.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Added "Callable alias and capturing" to the tutorial.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed ``TypeError`` in xoreutils.
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* Unpin prompt-toolkit version (#5438).
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed populating the return code for interrupted process.
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* Xonfig: show sensitive env variables that could affect the shell behavior.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* <news item>
**Changed:**
* The home based ``~/.xonshrc`` will not be executed in non-interactive mode (#5491).
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Windows: fixed path to RC file in ``xonfig web``.
**Security:**
* <news item>

View file

@ -1,23 +0,0 @@
**Added:**
* We started `Zulip Community <https://xonsh.zulipchat.com/join/hbvue5rimpdkwkdjuiqfs7tv/>`_ to publish news and chatting.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>