Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 38 additions & 34 deletions blog/2024-12-24-nushell_0_101_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ With [#14295](https://github.com/nushell/nushell/pull/14295), dates can now be a

In [#14468](https://github.com/nushell/nushell/pull/14468) thanks to [@paulie4](https://github.com/paulie4), more default keybindings were added to `explore` to better match `less`.

### Version in Startup banner

With [#14625](https://github.com/nushell/nushell/pull/14625), the Nushell version now displays at startup in the banner.

### `input --default`

Thanks to [@WindSoilder](https://github.com/WindSoilder) in [#14374](https://github.com/nushell/nushell/pull/14374), the `input` command now has a `--default` parameter to set a default value when none is provided in the input.

## Breaking changes

### `++` operator
Expand Down Expand Up @@ -372,6 +380,10 @@ In [#14424](https://github.com/nushell/nushell/pull/14424), some changes were ma

Thanks to [@sgvictorino](https://github.com/sgvictorino) in [#14353](https://github.com/nushell/nushell/pull/14353), modules with special characters in their name will be normalized by converting these special characters to underscores (`_`). Previously, it was not possible to use these modules after importing them.

### `du` flag changes

Thanks to [@WindSoilder](https://github.com/WindSoilder) in [#14407](https://github.com/nushell/nushell/pull/14407), the `du` command shows a more condensed output by default. The `files` and (recursive) `directories` are not shown by default. Use `du --long (-l)` to show these columns. The `--all (-a)` switch has been removed -- Files and directories will both be shown with `--long (-l)`.

## Deprecations

### `split-by`
Expand All @@ -380,9 +392,15 @@ In [#14019](https://github.com/nushell/nushell/pull/14019), the `split-by` comma

### `date to-record` and `date to-table`

In [#14319](https://github.com/nushell/nushell/pull/14319):

- `date to-record` has been deprecated and will be removed in a future release. Please use `into record` in its place.
- `date to-table` has been deprecated and will be removed in a future release. Please use `into record | transpose | transpose -r` in its place.

### `do --ignore-shell-errors` and `--ignore-program-errors`

Thanks to [@WindSoilder](https://github.com/WindSoilder) in [#14385](https://github.com/nushell/nushell/pull/14385), `--ignore-shell-errors` and `--ignore-program-errors` for the `do` command have been deprecated. Use `--ignore-errors (-i)` instead.

## Removals

### `NU_DISABLE_IR`
Expand Down Expand Up @@ -488,38 +506,28 @@ Thanks to all the contributors below for helping us solve issues, improve docume
|[@IanManske](https://github.com/IanManske)|Add `--long` flag for `sys cpu`|[#14485](https://github.com/nushell/nushell/pull/14485)|
|[@Jasha10](https://github.com/Jasha10)|enable test_cp_recurse on macos|[#14358](https://github.com/nushell/nushell/pull/14358)|
|[@Kissaki](https://github.com/Kissaki)|Fix doc and code comment typos|[#14366](https://github.com/nushell/nushell/pull/14366)|

<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Load `default_env.nu`/`default_config.nu` before user `env.nu`/`config.nu`|[#14249](https://github.com/nushell/nushell/pull/14249)| -->
<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Allow date to be added to duration|[#14295](https://github.com/nushell/nushell/pull/14295)| -->
<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Deprecate `date to-record` and `date to-table`|[#14319](https://github.com/nushell/nushell/pull/14319)| -->
<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Add proper config defaults for hooks|[#14341](https://github.com/nushell/nushell/pull/14341)| -->

|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Load `default_env.nu`/`default_config.nu` before user `env.nu`/`config.nu`|[#14249](https://github.com/nushell/nushell/pull/14249)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Allow date to be added to duration|[#14295](https://github.com/nushell/nushell/pull/14295)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Deprecate `date to-record` and `date to-table`|[#14319](https://github.com/nushell/nushell/pull/14319)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Add proper config defaults for hooks|[#14341](https://github.com/nushell/nushell/pull/14341)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Fix small typos in std/dirs|[#14422](https://github.com/nushell/nushell/pull/14422)|

<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Always populate config record during startup|[#14435](https://github.com/nushell/nushell/pull/14435)| -->

|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Always populate config record during startup|[#14435](https://github.com/nushell/nushell/pull/14435)
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Remove long-unused `autoenv` tests|[#14436](https://github.com/nushell/nushell/pull/14436)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Add example for PROMPT_COMMAND_RIGHT|[#14439](https://github.com/nushell/nushell/pull/14439)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Bump reedline to current main|[#14455](https://github.com/nushell/nushell/pull/14455)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Update default-files README|[#14461](https://github.com/nushell/nushell/pull/14461)|

<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Allow inherited environment variables|[#14467](https://github.com/nushell/nushell/pull/14467)| -->
<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Only run `from_string` conversion on strings|[#14509](https://github.com/nushell/nushell/pull/14509)| -->
<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Use const NU_LIB_DIRS in startup|[#14549](https://github.com/nushell/nushell/pull/14549)| -->
<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Allow both NU_PLUGIN_DIRS const and env at the same time|[#14553](https://github.com/nushell/nushell/pull/14553)| -->
<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Set empty `ENV_CONVERSIONS` record by default|[#14566](https://github.com/nushell/nushell/pull/14566)| -->

|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Allow inherited environment variables|[#14467](https://github.com/nushell/nushell/pull/14467)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Only run `from_string` conversion on strings|[#14509](https://github.com/nushell/nushell/pull/14509)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Use const NU_LIB_DIRS in startup|[#14549](https://github.com/nushell/nushell/pull/14549)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Allow both NU_PLUGIN_DIRS const and env at the same time|[#14553](https://github.com/nushell/nushell/pull/14553)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Set empty `ENV_CONVERSIONS` record by default|[#14566](https://github.com/nushell/nushell/pull/14566)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Update sample and scaffold files|[#14568](https://github.com/nushell/nushell/pull/14568)|

<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Moves additional env vars out of default_env and updates some transient prompt vars|[#14579](https://github.com/nushell/nushell/pull/14579)| -->
<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Add missing color_config settings|[#14603](https://github.com/nushell/nushell/pull/14603)| -->

|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Moves additional env vars out of default_env and updates some transient prompt vars|[#14579](https://github.com/nushell/nushell/pull/14579)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Add missing color_config settings|[#14603](https://github.com/nushell/nushell/pull/14603)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Doc file fixes|[#14608](https://github.com/nushell/nushell/pull/14608)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Remove duplicate version line|[#14611](https://github.com/nushell/nushell/pull/14611)|

<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Add version info to startup banner|[#14625](https://github.com/nushell/nushell/pull/14625)| -->
<!-- |[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Add shape_garbage|[#14626](https://github.com/nushell/nushell/pull/14626)| -->

|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Add version info to startup banner|[#14625](https://github.com/nushell/nushell/pull/14625)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Add shape_garbage|[#14626](https://github.com/nushell/nushell/pull/14626)|
|[@NotTheDr01ds](https://github.com/NotTheDr01ds)|Set `split-by` doc category to "deprecated"|[#14633](https://github.com/nushell/nushell/pull/14633)|
|[@PegasusPlusUS](https://github.com/PegasusPlusUS)|Feature: PWD-per-drive to facilitate working on multiple drives at Windows|[#14411](https://github.com/nushell/nushell/pull/14411)|
|[@PegasusPlusUS](https://github.com/PegasusPlusUS)|Fix unstable test case: One time my windows report drive letter as lowercase|[#14451](https://github.com/nushell/nushell/pull/14451)|
Expand All @@ -528,20 +536,16 @@ Thanks to all the contributors below for helping us solve issues, improve docume
|[@RobbingDaHood](https://github.com/RobbingDaHood)|For `#` to start a comment, then it either need to be the first chara…|[#14562](https://github.com/nushell/nushell/pull/14562)|
|[@WindSoilder](https://github.com/WindSoilder)|Tests: add a test to make sure that function can't use mutable variable|[#14314](https://github.com/nushell/nushell/pull/14314)|
|[@WindSoilder](https://github.com/WindSoilder)|make std help more user friendly|[#14347](https://github.com/nushell/nushell/pull/14347)|

<!-- |[@WindSoilder](https://github.com/WindSoilder)|add `--default` flag to input command|[#14374](https://github.com/nushell/nushell/pull/14374)| -->
<!-- |[@WindSoilder](https://github.com/WindSoilder)|deprecate --ignore-shell-errors and --ignore-program-errors in `do` |[#14385](https://github.com/nushell/nushell/pull/14385)| -->
<!-- |[@WindSoilder](https://github.com/WindSoilder)|remove deprecated warnings|[#14386](https://github.com/nushell/nushell/pull/14386)| -->
<!-- |[@WindSoilder](https://github.com/WindSoilder)|raise ParseError if assign to a non-variable or non-mutable-variable|[#14405](https://github.com/nushell/nushell/pull/14405)| -->
<!-- |[@WindSoilder](https://github.com/WindSoilder)|du: add `-l/--long` flag, remove `-a/--all` flag|[#14407](https://github.com/nushell/nushell/pull/14407)| -->

|[@WindSoilder](https://github.com/WindSoilder)|add `--default` flag to input command|[#14374](https://github.com/nushell/nushell/pull/14374)
|[@WindSoilder](https://github.com/WindSoilder)|deprecate --ignore-shell-errors and --ignore-program-errors in `do` |[#14385](https://github.com/nushell/nushell/pull/14385)|
|[@WindSoilder](https://github.com/WindSoilder)|remove deprecated warnings|[#14386](https://github.com/nushell/nushell/pull/14386)|
|[@WindSoilder](https://github.com/WindSoilder)|raise ParseError if assign to a non-variable or non-mutable-variable|[#14405](https://github.com/nushell/nushell/pull/14405)|
|[@WindSoilder](https://github.com/WindSoilder)|du: add `-l/--long` flag, remove `-a/--all` flag|[#14407](https://github.com/nushell/nushell/pull/14407)|
|[@WindSoilder](https://github.com/WindSoilder)|update miette to 7.3|[#14454](https://github.com/nushell/nushell/pull/14454)|
|[@WindSoilder](https://github.com/WindSoilder)|update unicode-width to 0.2|[#14456](https://github.com/nushell/nushell/pull/14456)|
|[@WindSoilder](https://github.com/WindSoilder)|run `cargo update` manually to update dependencies|[#14569](https://github.com/nushell/nushell/pull/14569)|
|[@WindSoilder](https://github.com/WindSoilder)|update shadow-rs to 0.37|[#14617](https://github.com/nushell/nushell/pull/14617)|

<!-- |[@WindSoilder](https://github.com/WindSoilder)|Remove `-a/-all` flag in du.|[#14618](https://github.com/nushell/nushell/pull/14618)| -->

|[@WindSoilder](https://github.com/WindSoilder)|Remove `-a/-all` flag in du.|[#14618](https://github.com/nushell/nushell/pull/14618)|
|[@alex-kattathra-johnson](https://github.com/alex-kattathra-johnson)|Shorten --max-time in tests and use a more stable error check|[#14494](https://github.com/nushell/nushell/pull/14494)|
|[@amtoine](https://github.com/amtoine)|add `from ndnuon` and `to ndnuon` to stdlib|[#14334](https://github.com/nushell/nushell/pull/14334)|
|[@amtoine](https://github.com/amtoine)|fix multiline strings in NDNUON|[#14519](https://github.com/nushell/nushell/pull/14519)|
Expand Down
Loading