Skip to content

Commit 4029f7d

Browse files
authored
ntd pr release notes (#1673)
1 parent f10207e commit 4029f7d

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

blog/2024-12-24-nushell_0_101_0.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,41 @@ excerpt: Today, we're releasing version 0.101.0 of Nu. This release adds...
1414

1515
<!-- TODO: write this excerpt -->
1616

17-
Today, we're releasing version 0.101.0 of Nu. This release adds...
17+
Today, we're releasing version 0.101.0 of Nu. This release adds a simplified startup configuration, ...
1818

1919
# Where to get it
2020

21-
Nu 0.101.0 is available as [pre-built binaries](https://github.com/nushell/nushell/releases/tag/0.101.0) or from [crates.io](https://crates.io/crates/nu). If you have Rust installed you can install it using `cargo install nu`.
21+
Nushell 0.101.0 is available as [pre-built binaries](https://github.com/nushell/nushell/releases/tag/0.101.0) or from [crates.io](https://crates.io/crates/nu). If you have Rust installed, you can also install it using `cargo install nu`.
2222

23-
As part of this release, we also publish a set of optional plugins you can install and use with Nu. To install, use `cargo install nu_plugin_<plugin name>`.
23+
As part of this release, we also publish a set of optional [plugins](/book/plugins.md) you can install and use with Nushell.
2424

2525
# Table of contents
2626

2727
<!-- TODO: once all the content below is finished and committed, `use nu_scripts/make_release/release-note/notes.nu *` and run `write-toc $this_file`. -->
2828

2929
# Highlights and themes of this release
3030

31+
## Simplified Startup Configuration
32+
33+
With [#14249](https://github.com/nushell/nushell/pull/14249), Nushell now always loads its internal `default_env.nu` before the user `env.nu` is loaded, then loads the internal `default_config.nu` before the user's `config.nu` is loaded. This allows for a simpler user-configuration experience. Details are in [this blog entry](https://www.nushell.sh/blog/2024-12-04-configuration_preview.html) along with an updated [Configuration Chapter](https://www.nushell.sh/book/configuration.html) which should go live sometime today.
34+
35+
### Related Startup Config Changes
36+
37+
- [#14345](https://github.com/nushell/nushell/pull/14345): Hooks fields are non-optional
38+
- [#14341](https://github.com/nushell/nushell/pull/14341): Hooks now default to an empty value of the proper type (e.g., `[]` or `{}`) when not otherwise specified. This means that you can always safely append or merge a new hook without first needing to check if it was a valid list/record.
39+
- [#14435](https://github.com/nushell/nushell/pull/14435): An `$env.config` is always created at startup, populated with default values, even when no configuration files are loaded.
40+
- [#14549](https://github.com/nushell/nushell/pull/14549): The `const` version of `NU_LIB_DIRS` is now populated by default instead of `$env.NU_LIB_DIRS`.
41+
- [#14553](https://github.com/nushell/nushell/pull/14553): The `const` version of `NU_PLUGIN_DIRS` is now populated by default instead of `$env.NU_PLUGIN_DIRS`.
42+
- [#14566](https://github.com/nushell/nushell/pull/14566): `ENV_CONVERSIONS` is now an empty record by default. The `PATH`/`Path` conversions are handled internally.
43+
- [#14579](https://github.com/nushell/nushell/pull/14579): More defaults are set in Rust. Also sets a default, empty `TRANSIENT_PROMPT_COMMAND_RIGHT` and `TRANSIENT_PROMPT_MULTILINE_INDICATOR`.
44+
45+
### Breaking Startup Config Changes
46+
47+
There may be (hopefully) minor breaking changes due to the startup configuration handling. Known possible issues include:
48+
49+
- Cannot merge changes to default menus since their definitions are no longer in `config.nu` by default. Instead, the entire menu should be redefined.
50+
- Querying the `$env.NU_LIB_DIRS` will return an empty result by default. Query the constant `$NU_LIB_DIRS` instead.
51+
3152
<!-- NOTE: if you wanna write a section about a breaking change, when it's a very important one,
3253
please add the following snippet to have a "warning" banner :)
3354
> see [an example](https://www.nushell.sh/blog/2023-09-19-nushell_0_85_0.html#pythonesque-operators-removal)
@@ -46,6 +67,10 @@ As part of this release, we also publish a set of optional plugins you can insta
4667

4768
## Additions
4869

70+
### Duration/Date Arithmetic
71+
72+
With [#14295](https://github.com/nushell/nushell/pull/14295), dates can now be added to durations. Previously only durations could be added to dates.
73+
4974
## Breaking changes
5075

5176
### `++` operator
@@ -105,6 +130,11 @@ The `cpu_usage` column outputted by `sys cpu` works by sampling the CPU over a 4
105130

106131
In [#14019](https://github.com/nushell/nushell/pull/14019), the `split-by` command was deprecated. Instead, please use `group-by` with multiple groupers.
107132

133+
### `date to-record` and `date to-table`
134+
135+
- `date to-record` has been deprecated and will be removed in a future release. Please use `into record` in its place.
136+
- `date to-table` has been deprecated and will be removed in a future release. Please use `into record | transpose | transpose -r` in its place.
137+
108138
## Removals
109139

110140
## Bug fixes and other changes

0 commit comments

Comments
 (0)