Skip to content

Commit 35d851c

Browse files
committed
ntd pr release notes
1 parent c0bd8ad commit 35d851c

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

blog/2024-12-24-nushell_0_101_0.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ author_site: https://twitter.com/nu_shell
55
author_image: https://www.nushell.sh/blog/images/nu_logo.png
66
excerpt: Today, we're releasing version 0.101.0 of Nu. This release adds...
77
---
8+
89
<!-- TODO: complete the excerpt above -->
910

1011
<!-- NOTE: start from the TODO all the way at the bottom (and sort of work your way up) -->
1112

1213
# Nushell 0.101.0
1314

1415
<!-- TODO: write this excerpt -->
15-
Today, we're releasing version 0.101.0 of Nu. This release adds...
16+
17+
Today, we're releasing version 0.101.0 of Nu. This release adds a simplified startup configuration, ...
1618

1719
# Where to get it
1820

@@ -26,6 +28,24 @@ As part of this release, we also publish a set of optional plugins you can insta
2628

2729
# Highlights and themes of this release
2830

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+
42+
### Breaking Startup Config Changes
43+
44+
There may be (hopefully) minor breaking changes due to the startup configuration handling. Known possible issues include:
45+
46+
- Cannot merge changes to default menus since their definitions are no longer in `config.nu` by default. Instead, the entire menu should be redefined.
47+
- Querying the `$env.NU_LIB_DIRS` will return an empty result by default. Query the constant `$NU_LIB_DIRS` instead.
48+
2949
<!-- NOTE: if you wanna write a section about a breaking change, when it's a very important one,
3050
please add the following snippet to have a "warning" banner :)
3151
> see [an example](https://www.nushell.sh/blog/2023-09-19-nushell_0_85_0.html#pythonesque-operators-removal)
@@ -44,10 +64,17 @@ As part of this release, we also publish a set of optional plugins you can insta
4464

4565
## Additions
4666

67+
### Duration/Date Arithmetic
68+
69+
With [#14295](https://github.com/nushell/nushell/pull/14295), dates can now be added to durations. Previously only durations could be added to dates.
70+
4771
## Breaking changes
4872

4973
## Deprecations
5074

75+
- `date to-record` has been deprecated and will be removed in a future release. Please use `into record` in its place.
76+
- `date to-table` has been deprecated and will be removed in a future release. Please use `into record | transpose | transpose -r` in its place.
77+
5178
## Removals
5279

5380
## Bug fixes and other changes
@@ -58,9 +85,9 @@ As part of this release, we also publish a set of optional plugins you can insta
5885

5986
Thanks to all the contributors below for helping us solve issues, improve documentation, refactor code, and more! :pray:
6087

61-
| author | title | link |
62-
| ------------------------------------ | ----------- | ------------------------------------------------------- |
63-
| [@author](https://github.com/author) | ... | [#12345](https://github.com/nushell/nushell/pull/12345) |
88+
| author | title | link |
89+
| ------------------------------------ | ----- | ------------------------------------------------------- |
90+
| [@author](https://github.com/author) | ... | [#12345](https://github.com/nushell/nushell/pull/12345) |
6491

6592
# Full changelog
6693

0 commit comments

Comments
 (0)