You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
excerpt: Today, we're releasing version 0.101.0 of Nu. This release adds...
7
7
---
8
+
8
9
<!-- TODO: complete the excerpt above -->
9
10
10
11
<!-- NOTE: start from the TODO all the way at the bottom (and sort of work your way up) -->
11
12
12
13
# Nushell 0.101.0
13
14
14
15
<!-- 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, ...
16
18
17
19
# Where to get it
18
20
@@ -26,6 +28,24 @@ As part of this release, we also publish a set of optional plugins you can insta
26
28
27
29
# Highlights and themes of this release
28
30
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
+
29
49
<!-- NOTE: if you wanna write a section about a breaking change, when it's a very important one,
30
50
please add the following snippet to have a "warning" banner :)
31
51
> 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
44
64
45
65
## Additions
46
66
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
+
47
71
## Breaking changes
48
72
49
73
## Deprecations
50
74
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
+
51
78
## Removals
52
79
53
80
## 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
58
85
59
86
Thanks to all the contributors below for helping us solve issues, improve documentation, refactor code, and more! :pray:
0 commit comments