Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release notes for 0.93.0 #1357

Merged
merged 11 commits into from
Apr 30, 2024
Prev Previous commit
Next Next commit
Add last migration example
  • Loading branch information
IanManske committed Apr 23, 2024
commit 4ebbc154df01b99b73c4994e6d714b6bb4402b47
5 changes: 5 additions & 0 deletions blog/2024-04-30-nushell_0_93_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ See a full overview of the [breaking changes](#breaking-changes-toc)

To be consistent with `first` and other commands, `last` now errors if the input is empty ([#12478](https://github.com/nushell/nushell/pull/12478)).

To suppress the error and return null if an input is empty, wrap `last` in a `try` block:
```nushell
[] | try { last }
```

#### `drop` [[toc](#table-of-content)]

::: warning Breaking change
Expand Down