Skip to content

Commit c26277a

Browse files
committed
do some cleanup, reordering
1 parent 4e3a2db commit c26277a

File tree

1 file changed

+47
-8
lines changed

1 file changed

+47
-8
lines changed

blog/2024-11-12-nushell_0_100_0.md

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@ title: Nushell 0.100.0
33
author: The Nu Authors
44
author_site: https://twitter.com/nu_shell
55
author_image: https://www.nushell.sh/blog/images/nu_logo.png
6-
excerpt: Today, we're releasing version 0.100.0 of Nu. This release adds...
6+
excerpt: Today, we're releasing version 0.100.0 of Nu. In addition to being a major milestone, this release adds two new operators for working with strings, improves plugin management, and includes a very large number of other minor improvements and fixes.
77
---
88

9-
<!-- TODO: complete the excerpt above -->
10-
119
# Nushell 0.100.0
1210

1311
Nushell, or Nu for short, is a new shell that takes a modern, structured approach to your command line. It works seamlessly with the data from your filesystem, operating system, and a growing number of file formats to make it easy to build powerful command line pipelines.
1412

15-
<!-- TODO: write this excerpt -->
16-
17-
Today, we're releasing version 0.100.0 of Nu. This release adds...
13+
Today, we're releasing version 0.100.0 of Nu. In addition to being a major milestone, this release adds two new operators for working with strings, improves plugin management, and includes a very large number of other minor improvements and fixes.
1814

1915
# Where to get it
2016

@@ -26,9 +22,10 @@ As part of this release, we also publish a set of optional plugins you can insta
2622

2723
- [_Highlights and themes of this release_](#highlights-and-themes-of-this-release-toc)
2824
- [_Cheers to a century!_](#cheers-to-a-century-toc)
25+
- [_`like` and `not-like` operators_](#like-and-not-like-operators-toc)
26+
- [_`plugin list`_](#plugin-list-toc)
2927
- [_Changes_](#changes-toc)
3028
- [_Additions_](#additions-toc)
31-
- [_`like` and `not-like` operators_](#like-and-not-like-operators-toc)
3229
- [_`catch` error record_](#catch-error-record-toc)
3330
- [_`help commands` and `scope commands`_](#help-commands-and-scope-commands-toc)
3431
- [_`ps -l`_](#ps-l-toc)
@@ -40,7 +37,6 @@ As part of this release, we also publish a set of optional plugins you can insta
4037
- [_`$env.config.table.footer_inheritance`_](#env-config-table-footer-inheritance-toc)
4138
- [_Breaking changes_](#breaking-changes-toc)
4239
- [_Lone, leading pipe in closures_](#lone-leading-pipe-in-closures-toc)
43-
- [_`plugin list`_](#plugin-list-toc)
4440
- [_Deprecations_](#deprecations-toc)
4541
- [_AST evaluation engine_](#ast-evaluation-engine-toc)
4642
- [_Removals_](#removals-toc)
@@ -96,6 +92,43 @@ As part of this release, we also publish a set of optional plugins you can insta
9692

9793
We wish to express our heartfelt gratitude and congratulations to all of our contributors and users on releasing version 0.100.0! Thanks for sticking with us and making Nushell great. Here's to a hundred more! 🎉
9894

95+
## `like` and `not-like` operators [[toc](#table-of-content)]
96+
97+
With [#14072](https://github.com/nushell/nushell/pull/14072), this release adds two "new" operators: `like` and `not-like`. These operators are alternative forms of the preexisting `=~` and `!~` operators, respectively. The only reason to use one form over the other is preference. For example, people familiar with SQL may prefer using `like` and `not-like`. In the future, there is a chance that the shorter forms may be removed, but there are no plans to do so yet, if at all.
98+
99+
## `plugin list` [[toc](#table-of-content)]
100+
101+
::: warning Breaking change
102+
See a full overview of the [breaking changes](#breaking-changes-toc)
103+
:::
104+
105+
The `plugin list` command has been changed in [#14085](https://github.com/nushell/nushell/pull/14085) to consider both the plugins currently present in the engine state as well as the plugins stored in the registry file. Changes made by `plugin add` and `plugin rm` should now be more obvious.
106+
107+
As part of this change, the `is_running` column has been replaced by a `status` column, which now displays many possible states a plugin can be in:
108+
109+
- `added`: The plugin is present in the plugin registry file, but not in the engine.
110+
- `loaded`: The plugin is present both in the plugin registry file and in the engine, but is not running.
111+
- `running`: The plugin is currently running, and the `pid` column should contain its process ID.
112+
- `modified`: The plugin state present in the plugin registry file is different from the state in the engine.
113+
- `removed`: The plugin is still loaded in the engine, but is not present in the plugin registry file.
114+
- `invalid`: The data in the plugin registry file couldn't be deserialized, and the plugin most likely needs to be added again.
115+
116+
`running` always has high priority as a state, so other statuses won't be visible if a plugin is currently running. This means that
117+
118+
```nushell
119+
# 0.99.0
120+
plugin list | where is_running
121+
```
122+
123+
can now always be replaced by:
124+
125+
```nushell
126+
# 0.100.0
127+
plugin list | where status == running
128+
```
129+
130+
In case you want to avoid loading the plugin registry file (e.g. for performance reasons), you can now use the `--engine` flag to do so. Similarly, the `--registry` flag will only display the contents of the registry, without comparing them against the state of the engine (but all plugins will appear as `added`). The `--plugin-config` flag is now supported to allow use of a separate plugin registry file, identically to the other `plugin` commands.
131+
99132
# Changes [[toc](#table-of-content)]
100133

101134
## Additions [[toc](#table-of-content)]
@@ -297,6 +330,10 @@ Otherwise, the implementation of all the division related operators has been imp
297330

298331
### Lone, leading pipe in closures [[toc](#table-of-content)]
299332

333+
::: warning Breaking change
334+
See a full overview of the [breaking changes](#breaking-changes-toc)
335+
:::
336+
300337
Currently, a leading pipe character is allowed for pipelines in Nushell:
301338

302339
```nu
@@ -378,6 +415,8 @@ The method used for case insensitive comparisons and sorting has been updated/im
378415

379416
In [#14184](https://github.com/nushell/nushell/pull/14184), `ansi clear_entire_screen_plus_buffer` now returns an ansi code that clears both the screen and scrollback buffer. Previously, it would only clear the scrollback buffer. In addition, a new `clear_scrollback_buffer` entry has been added to the `ansi` command. This will clear only the scrollback buffer.
380417

418+
## Deprecations [[toc](#table-of-content)]
419+
381420
### AST evaluation engine [[toc](#table-of-content)]
382421

383422
The `NU_DISABLE_IR` environment variable as well as the AST evaluation engine itself is planned to be removed in the next release, and is now deprecated. We consider the IR evaluator to now be mature enough that it's time to stop maintaining the old evaluator.

0 commit comments

Comments
 (0)