Skip to content

Commit 9d63c54

Browse files
authored
Release note addition for 'to yal' (#1828)
1 parent a353ae8 commit 9d63c54

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

blog/2025-03-18-nushell_0_103_0.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,27 @@ As part of this release, we also publish a set of [optional plugins](https://www
2828

2929
# Highlights and themes of this release
3030

31+
| author | title | link |
32+
| ------ | ----- | ---- |
3133
| [@Bahex](https://github.com/Bahex) | Custom command attributes | [#14906](https://github.com/nushell/nushell/pull/14906) |
3234
| [@cosineblast](https://github.com/cosineblast) | Jobs | [#14883](https://github.com/nushell/nushell/pull/14883) |
3335

36+
## Save to YAML files with either `to yaml` or `to yml`
37+
38+
As pointed out in [#15240](https://github.com/nushell/nushell/issues/15240), it was previously possible to load data from YAML files using the `from yaml` or `from yml` commands, but only possible to save data using `to yaml`.
39+
Now you can use either `to yaml` or `to yml` indistinctly to save data into YAML files.
40+
41+
```nu
42+
> [[foo bar]; ["1" "2"]] | to yml
43+
- foo: '1'
44+
bar: '2'
45+
```
46+
47+
Thanks to this, the `save` command can also be used with the `.yml` extension:
48+
```nu
49+
> [[foo bar]; ["1" "2"]] | save test.yml
50+
```
51+
3452
<!-- NOTE: if you wanna write a section about a breaking change, when it's a very important one,
3553
please add the following snippet to have a "warning" banner :)
3654
> see [an example](https://www.nushell.sh/blog/2023-09-19-nushell_0_85_0.html#pythonesque-operators-removal)
@@ -49,6 +67,8 @@ As part of this release, we also publish a set of [optional plugins](https://www
4967

5068
## Additions
5169

70+
| author | title | link |
71+
| ------ | ----- | ---- |
5272
| [@132ikl](https://github.com/132ikl) | Parse XML documents with DTDs by default, and add `--disallow-dtd` flag | [#15272](https://github.com/nushell/nushell/pull/15272) |
5373
| [@Bahex](https://github.com/Bahex) | Custom command attributes | [#14906](https://github.com/nushell/nushell/pull/14906) |
5474
| [@IanManske](https://github.com/IanManske) | Add `filesize.show_unit` config option | [#15276](https://github.com/nushell/nushell/pull/15276) |
@@ -63,6 +83,8 @@ As part of this release, we also publish a set of [optional plugins](https://www
6383

6484
## Breaking changes
6585

86+
| author | title | link |
87+
| ------ | ----- | ---- |
6688
| [@132ikl](https://github.com/132ikl) | Fix match running closures as block | [#15032](https://github.com/nushell/nushell/pull/15032) |
6789
| [@Bahex](https://github.com/Bahex) | use 0-indexing in `explore` | [#15079](https://github.com/nushell/nushell/pull/15079) |
6890
| [@Bahex](https://github.com/Bahex) | `split list`: add streaming, closure argument, and splitting before/after a separator | [#15161](https://github.com/nushell/nushell/pull/15161) |
@@ -73,12 +95,16 @@ As part of this release, we also publish a set of [optional plugins](https://www
7395

7496
## Removals
7597

98+
| author | title | link |
99+
| ------ | ----- | ---- |
76100
| [@sholderbach](https://github.com/sholderbach) | Remove `range` command after deprecation | [#15038](https://github.com/nushell/nushell/pull/15038) |
77101
| [@sholderbach](https://github.com/sholderbach) | Remove `into bits` after deprecation | [#15039](https://github.com/nushell/nushell/pull/15039) |
78102
| [@sholderbach](https://github.com/sholderbach) | Remove `fmt` after deprecation | [#15040](https://github.com/nushell/nushell/pull/15040) |
79103

80104
## Bug fixes and other changes
81105

106+
| author | title | link |
107+
| ------ | ----- | ---- |
82108
| [@Bahex](https://github.com/Bahex) | make `echo` const | [#14997](https://github.com/nushell/nushell/pull/14997) |
83109
| [@Bahex](https://github.com/Bahex) | feat(std/dirs): retain state in subshells or with exec-restarts | [#15080](https://github.com/nushell/nushell/pull/15080) |
84110
| [@Bahex](https://github.com/Bahex) | feat(overlay): expose constants with `overlay use` | [#15081](https://github.com/nushell/nushell/pull/15081) |

0 commit comments

Comments
 (0)