Skip to content

Commit 60aa8c5

Browse files
committed
Start 0.93.0 release notes
1 parent 0f51145 commit 60aa8c5

File tree

1 file changed

+112
-1
lines changed

1 file changed

+112
-1
lines changed

blog/2024-04-30-nushell_0_93_0.md

Lines changed: 112 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ As part of this release, we also publish a set of optional plugins you can insta
3232
- [*Our set of commands is evolving*](#our-set-of-commands-is-evolving-toc)
3333
- [*New commands*](#new-commands-toc)
3434
- [*Changes to existing commands*](#changes-to-existing-commands-toc)
35+
- [*`with-env`*](#with-env-toc)
36+
- [*`load-env`*](#load-env-toc)
37+
- [*`last`*](#last-toc)
38+
- [*`drop`*](#drop-toc)
39+
- [*`skip`*](#skip-toc)
40+
- [*`group-by`*](#group-by-toc)
41+
- [*`timeit`*](#timeit-toc)
42+
- [*`kill`*](#kill-toc)
43+
- [*`ls`*](#ls-toc)
44+
- [*`du`*](#du-toc)
45+
- [*`into-filesize`*](#into-filesize-toc)
46+
- [*`explain`*](#explain-toc)
3547
- [*Deprecated commands*](#deprecated-commands-toc)
3648
- [*Removed commands*](#removed-commands-toc)
3749
<!-- TODO: please add links to the other sections here
@@ -81,10 +93,109 @@ Thanks to all the contributors below for helping us making the documentation of
8193
| [@author](https://github.com/author) | ... | [#12345](https://github.com/nushell/nushell/pull/12345) |
8294

8395
## Our set of commands is evolving [[toc](#table-of-content)]
84-
As usual, new release rhyms with changes to commands!
8596

8697
### New commands [[toc](#table-of-content)]
8798
### Changes to existing commands [[toc](#table-of-content)]
99+
100+
#### `with-env` [[toc](#table-of-content)]
101+
102+
::: warning Breaking change
103+
See a full overview of the [breaking changes](#breaking-changes-toc)
104+
:::
105+
106+
The enviroment variable list form of `with-env` is now deprecated aftter [#12523](https://github.com/nushell/nushell/pull/12523):
107+
```nushell
108+
with-env [X Y W Z] { $env.X }
109+
```
110+
111+
Instead, one should use the record form:
112+
```nushell
113+
with-env { X: 'Y', W: 'Z' } { $env.X }
114+
```
115+
116+
Additionally, setting the `PWD` variable through `with-env` is now disallowed.
117+
118+
#### `load-env` [[toc](#table-of-content)]
119+
120+
::: warning Breaking change
121+
See a full overview of the [breaking changes](#breaking-changes-toc)
122+
:::
123+
124+
With [#12522](https://github.com/nushell/nushell/pull/12522), setting the `PWD` variable through `load-env` is now disallowed.
125+
126+
127+
#### `last` [[toc](#table-of-content)]
128+
129+
::: warning Breaking change
130+
See a full overview of the [breaking changes](#breaking-changes-toc)
131+
:::
132+
133+
To be consistent with `first` and other commands, `last` now errors if the input is empty ([#12478](https://github.com/nushell/nushell/pull/12478)).
134+
135+
#### `drop` [[toc](#table-of-content)]
136+
137+
::: warning Breaking change
138+
See a full overview of the [breaking changes](#breaking-changes-toc)
139+
:::
140+
141+
With [#12479](https://github.com/nushell/nushell/pull/12479), `drop` will now error if the number of rows/columns is negative.
142+
143+
#### `skip` [[toc](#table-of-content)]
144+
145+
::: warning Breaking change
146+
See a full overview of the [breaking changes](#breaking-changes-toc)
147+
:::
148+
149+
To be consistent with `take` and other commands, `skip` no longer accepts external streams as input ([#12559](https://github.com/nushell/nushell/pull/12559)).
150+
151+
#### `group-by` [[toc](#table-of-content)]
152+
153+
::: warning Breaking change
154+
See a full overview of the [breaking changes](#breaking-changes-toc)
155+
:::
156+
157+
If a closure was used as the grouper for `group-by`, then errors inside the closure would previously be ignored. Instead, `group-by` would put the row/item under the `error` group.
158+
With [#12508](https://github.com/nushell/nushell/pull/12508), errors are no longer ignored and will immediately be bubbled up.
159+
160+
#### `timeit` [[toc](#table-of-content)]
161+
162+
::: warning Breaking change
163+
See a full overview of the [breaking changes](#breaking-changes-toc)
164+
:::
165+
166+
After [#12465](https://github.com/nushell/nushell/pull/12465), the `timeit` command will no longer capture external command output, instead redirecting output to the terminal/stdio.
167+
168+
#### `kill` [[toc](#table-of-content)]
169+
170+
::: warning Breaking change
171+
See a full overview of the [breaking changes](#breaking-changes-toc)
172+
:::
173+
174+
The `kill` command used to return a stream of values in certain cases. In [#12480](https://github.com/nushell/nushell/pull/12480) this was changed so that `kill` now always returns a single value (null or a string).
175+
176+
#### `ls` [[toc](#table-of-content)]
177+
178+
Instead of a single optional path, the `ls` command now takes a rest argument of paths ([#12327](https://github.com/nushell/nushell/pull/12327)). I.e., you can spread a list into `ls`:
179+
```nushell
180+
ls ...[directory1 directory2]
181+
```
182+
or simply `ls` multiple directories:
183+
```nushell
184+
ls directory1 directory2
185+
```
186+
187+
#### `du` [[toc](#table-of-content)]
188+
189+
In the `ls` PR ([#12327](https://github.com/nushell/nushell/pull/12327)), the same changes were also made to `du`. So, `du` now also takes a rest argument of paths.
190+
191+
#### `into filesize` [[toc](#table-of-content)]
192+
193+
Thanks to [@singh-priyank](https://github.com/singh-priyank) in [#12443](https://github.com/nushell/nushell/pull/12443), `into filesize` can now parse negative filesizes from strings.
194+
195+
#### `explain` [[toc](#table-of-content)]
196+
197+
With [#12432](https://github.com/nushell/nushell/pull/12432), the `type` column returned from `explain` should no longer contain `string` for every row.
198+
88199
### Deprecated commands [[toc](#table-of-content)]
89200
### Removed commands [[toc](#table-of-content)]
90201

0 commit comments

Comments
 (0)