diff --git a/blog/2025-07-30-nushell_0_106_1.md b/blog/2025-07-30-nushell_0_106_1.md new file mode 100644 index 00000000000..d1eb603fa92 --- /dev/null +++ b/blog/2025-07-30-nushell_0_106_1.md @@ -0,0 +1,74 @@ +--- +title: Nushell 0.106.1 +author: The Nu Authors +author_site: https://www.nushell.sh/blog +author_image: https://www.nushell.sh/blog/images/nu_logo.png +excerpt: Today, we're releasing version 0.106.1 of Nu. This patch release fixes a regression with bare string interpolation from 0.106.0, the const version of `get`, and several build-related issues. +--- + +# Nushell 0.106.1 + +Today, we're releasing version 0.106.1 of Nu. This patch release fixes a regression with bare string interpolation from 0.106.0, the const version of `get`, and several build-related issues. + +# Where to get it + +Nu 0.106.1 is available as [pre-built binaries](https://github.com/nushell/nushell/releases/tag/0.106.1) or from [crates.io](https://crates.io/crates/nu). If you have Rust installed you can install it using `cargo install nu`. + +As part of this release, we also publish a set of optional [plugins](https://www.nushell.sh/book/plugins.html) you can install and use with Nushell. + +# Table of contents + +- [_Changes_](#changes-toc) + - [_Bug fixes and other changes_](#bug-fixes-and-other-changes-toc) + - [_Fixed regression in the bare string interpolation_](#fixed-regression-in-the-bare-string-interpolation-toc) + - [_Fixed flag handling of `get` in the const version_](#fixed-flag-handling-of-get-in-the-const-version-toc) + - [_Fix for builds on NetBSD and FreeBSD_](#fix-for-builds-on-netbsd-and-freebsd-toc) + - [_Fixed warnings for plugin builds_](#fixed-warnings-for-plugin-builds-toc) +- [_Full changelog_](#full-changelog-toc) + +# Changes [[toc](#table-of-contents)] + +## Bug fixes and other changes [[toc](#table-of-contents)] + +### Fixed regression in the bare string interpolation [[toc](#table-of-contents)] + +While fixing another parser bug in 0.106.0 we accidentally introduced a [regression which restricted certain forms of direct string interpolation using parenthesized expressions with bare words](https://www.nushell.sh/blog/2025-07-23-nushell_0_106_0.html#regression-bare-word-interpolation-on-both-sides-does-not-work-toc). +Thanks to [#16235] by [@Bahex] the following form of string interpolation again works without issue: + +```nushell +let x = 123 +($x)/foo/($x) +# => 123/foo/123 +``` + +### Fixed flag handling of `get` in the const version [[toc](#table-of-contents)] + +The recent change to [`get` to rename `--ignore-errors` to `--optional`](https://www.nushell.sh/blog/2025-07-23-nushell_0_106_0.html#ignore-errors-i-renamed-to-optional-o-toc) was incorrectly handled if the command was used in a `const` context. This has been fixed with this release thanks to [#16268] by [@Bahex]. + +### Fix for builds on NetBSD and FreeBSD [[toc](#table-of-contents)] + +BSD builds failed due to more restrictive Rust compiler warnings triggered in our BSD platform code. This has been fixed in [#16266] and [#16275] by [@0323pin] and [@sholderbach] + +### Fixed warnings for plugin builds [[toc](#table-of-contents)] + +When building plugins with our Rust `nu-plugin-core 0.106.0` crate you may have encountered compiler warnings. This has been addressed by [@cptpiepmatz] in [#16279] + +# Full changelog [[toc](#table-of-contents)] + +| author | title | link | +| ------------- | ----------------------------------------------------------------- | -------- | +| [Bahex] | fix bare interpolation regression | [#16235] | +| [Bahex] | fix(get): run_const uses `--optional` flag | [#16268] | +| [0323pin] | Fix #16261 | [#16266] | +| [sholderbach] | Port `unsafe_op_in_unsafe_fn` fix to FreeBSD | [#16275] | +| [cptpiepmatz] | Don't import `IoError` on `nu-plugin-core` without `local-socket` | [#16279] | + +[@0323pin]: https://github.com/0323pin +[@Bahex]: https://github.com/Bahex +[@cptpiepmatz]: https://github.com/cptpiepmatz +[@sholderbach]: https://github.com/sholderbach +[#16235]: https://github.com/nushell/nushell/pulls/16235 +[#16266]: https://github.com/nushell/nushell/pulls/16266 +[#16268]: https://github.com/nushell/nushell/pulls/16268 +[#16275]: https://github.com/nushell/nushell/pulls/16275 +[#16279]: https://github.com/nushell/nushell/pulls/16279