mirror of
https://github.com/nushell/nushell.git
synced 2026-12-03 18:46:44 +08:00
df773941bf04bb6c8ec00f2d00daf4df23492a7c
11592
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
df773941bf |
fix(mcp): initialize start_time for MCP only in MCP mode to avoid cargo warning (#18530)
## Description Building nushell without `mcp` feature (`--no-default-features`) produces this warning about unused variable ## User-facing changes (Release notes) N/A |
||
|
|
63ca014ef3 |
fix(parser): infer for loop items from iterable unions (#18551)
## Description
`parse_for` inferred the loop variable from the type of the iterable
expression. That works for direct list, table, and range types, but
fails for iterable unions returned by commands like `skip`.
For `oneof<table, binary, list<any>>`, the loop variable was typed as
the whole iterable union instead of the yielded row or item type. With
`enforce-runtime-annotations` enabled, assigning the yielded value to
that loop variable raised a runtime type mismatch.
The parser now maps iterable types to their yielded types when inferring
the loop variable type, including alternatives inside `oneof`.
### example: filter output union
<table>
<tr>
<td>Code</td>
<td width="1000">
```nushell
let pending = ([a] | each {} | collect | skip 0)
for item in $pending { print $item }
```
</td>
</tr>
<tr>
<td>Before</td>
<td>
```ansi
Error: nu::shell::type_mismatch
× Type mismatch.
╭─[source:1:17]
1 │ let pending = ([a] | each {} | collect | skip 0); for item in $pending { print $item }
· ┬ ──┬─
· │ ╰── expected oneof<table, binary, list<any>>, got string
· ╰── the value is a string
╰────
```
</td>
</tr>
<tr>
<td>After</td>
<td>
```ansi
a
```
</td>
</tr>
</table>
## User-facing changes (Release notes)
- Fixed an issue in `for` loops where type of the looping variable was
inferred incorrectly when iterating over a value/stream with a union
type (`oneof<list, table, binary>`). This could manifest as a runtime
type checking error with `enforce-runtime-annotations` enabled.
---------
Co-authored-by: Bahex <17417311+Bahex@users.noreply.github.com>
|
||
|
|
ca9ebead14 |
fix: relax assignability of list types (#18555)
## Description see https://github.com/nushell/nushell/issues/18528#issuecomment-4915003067 ## User-facing changes (Release notes) - Type checking of lists are relaxed. |
||
|
|
17c6e81428 |
cargo update crossbeam crates (#18554)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description <!-- Explain what this PR does and why. This section is intentionally flexible: - Describe the problem - Explain your approach - Include technical details if relevant Good examples: - "In this PR, I fixed..." - "In this PR, I added support for..." - "This change improves X by..." Write as much or as little as needed for reviewers to understand your changes. --> In this PR I ran `cargo update` for all the crossbeam crates in our `Cargo.lock`. This should fix our security audit. ## User-facing changes (Release notes) <!-- This section is used (mostly as-is) for https://www.nushell.sh/blog/ Describe how Nushell behavior changes from a user's perspective. Do NOT describe internal Rust changes here. Write in a release note style, for example: - "Added support for..." - "Fixed an issue where..." - "Nushell now supports..." - "Improved performance of..." If your changes do NOT affect users (internal refactors, cleanup, etc.), just write: - "n/a" - "nan" - or similar This tells us the change should not appear in the changelog. Tips: - Focus on observable behavior - Include examples if helpful - Keep it concise You can: - Write a short paragraph (will appear as a bullet point), OR - Use headings (###) if your change needs more structure Avoid writing things like: - "In this PR, I refactored..." - "This updates internal code..." You may leave this blank until the PR is ready. --> n/a |
||
|
|
6e9105d88a | fix(idx): correct search context help example (#18550) | ||
|
|
65829326fb |
fix: closure's input type shouldn't be inherited from scope (#18540)
### Closure's input type is not inherited from the surrounding scope
With last release, pipeline input type and how it affects various
expressions are being tracked in a lot more cases.
In fact, at least one too many:
```nushell
def mk-add-suffix [suffix: string]: nothing -> closure {
{|| $in ++ $suffix }
}
```
```
Error: nu::parser::operator_unsupported_type
× The '++' operator does not work on values of type 'nothing'.
╭─[repl_entry #1:2:6]
1 │ def mk-add-suffix [suffix: string]: nothing -> closure {
2 │ {|| $in ++ $suffix }
· ─┬─ ─┬
· │ ╰── does not support 'nothing'
· ╰── nothing
3 │ }
╰────
```
This is now fixed, and closures' input type will be inferred as `any`,
the way it was before `0.114.0`.
|
||
|
|
d5ac4c6b45 |
fix: input listen's output type (#18535)
## Description
- brought up in: #18528
`input listen` command's signature output type does not match it's
actual return value.
The command was added in
|
||
|
|
8560eef575 |
fix: assigment errors point to the assigment (#18531)
## Description - #16832 Errors raised for assignment errors did not point to the relevant assignment, just pointed to the values origin. ## User-facing changes (Release notes) ### More helpful errors for failed assignments with `enforce-runtime-annotations` With `enforce-runtime-annotations` enabled, assignments with incorrect types raise errors. Previously this error was `nu::shell::cant_convert` originally used for unsuccessful type coercions of command arguments. Unfortunately, this error only pointed at the assigned values *origin* and not at the failed assignment. This error has been switched to `nu::shell::type_mismatch` and now points to the failed assignment in addition to the value's origin. ##### example 1 <table> <tr> <td>Code</td> <td width="1000"> ```nushell mut execution_time = -1 $execution_time = $env.CMD_DURATION_MS ``` </td> </tr> <tr> <td>Before</td> <td> ``` Error: nu::shell::cant_convert × Can't convert to int. ╭─[Host Environment Variables:1:1] 1 │ "LANG"="en_US.UTF-8" · ▲ · ╰── can't convert string to int 2 │ "LC_TIME"="en_DK.UTF-8" ╰──── ``` </td> </tr> <tr> <td>After</td> <td> ``` Error: nu::shell::type_mismatch × Type mismatch. ╭─[repl_entry #3:2:17] 1 │ mut execution_time = -1 2 │ $execution_time = $env.CMD_DURATION_MS · ┬ · ╰── expected int, got string ╰──── ``` </td> </tr> </table> ##### example 2 <table> <tr> <td>Code</td> <td width="1000"> ```nushell # delibarete type erasure # we need to bypass parse-time # type checking for this example let stuff: any = { foo: "bar" } mut x = 1 $x = $stuff.foo ``` </td> </tr> <tr> <td>Before</td> <td> ``` Error: nu::shell::cant_convert × Can't convert to int. ╭─[repl_entry #7:5:7] 4 │ let stuff: any = { 5 │ foo: "bar" · ──┬── · ╰── can't convert string to int 6 │ } ╰──── ``` </td> </tr> <tr> <td>After</td> <td> ``` Error: nu::shell::type_mismatch × Type mismatch. ╭─[repl_entry #1:5:7] 4 │ let stuff: any = { 5 │ foo: "bar" · ──┬── · ╰── the value is a string 6 │ } 7 │ 8 │ mut x = 1 9 │ 10 │ $x = $stuff.foo · ┬ · ╰── expected int, got string ╰──── ``` </td> </tr> </table> ## Additional notes - This should make it much easier to diagnose problems described in #18528 |
||
|
|
69965faa94 |
Fix run binding forwarded flags to the wrong parameter (#18533)
## Description Fixes #18532. When `run file.nu ...args` forwards a flag to a script's `def main`, the flag is resolved by `matches_named_flag` in `crates/nu-command/src/misc/run.rs`: ```rust fn matches_named_flag(named: &Flag, long: &str, short: Option<&str>) -> bool { named.long == long || short.and_then(|name| name.chars().next()) == named.short } ``` For a long flag token (`--name`) the parsed short part is `None`, so `short.and_then(...)` is `None`, and the fallback comparison becomes `None == named.short`. That is true for every flag that declares no short character, so `resolve_named_flag`'s `.find()` returned the first short-less flag regardless of its long name. With a `main` that declares more than one flag, this bound a passed flag to the first declared slot. When that first flag took a value it swallowed the following argument (shifting positionals), and the value bypassed type checking, for example a bare switch landing in an `int`-typed flag. The fix only falls back to short-character matching when the token actually was a short flag (`-c`); long flags now match by exact long name. Short-flag matching is unchanged. I added two regression tests in `crates/nu-command/tests/commands/run.rs`. Both fail on the current code and pass with the fix: - three `int` flags, `run flags.nu --gamma 3`: was `3/0/0` (bound to the first flag `--alpha`), now `0/0/3`. - `run switch.nu hello --verbose`: the `--verbose` switch was binding to the value-taking `--num` and gave `num=true verbose=false` (a bool in an `int` flag), now `num=0 verbose=true`. Verified locally on Windows: the full `commands::run::` suite passes (28 tests, including the existing single long-flag and short-flag cases), and `cargo clippy -p nu-command --tests -- -D warnings` plus `cargo fmt --check` are clean. ## User-facing changes (Release notes) Fixed an issue where `run script.nu --some-flag` could bind the value to the wrong flag of the script's `main` when `main` declared multiple flags, causing shifted positional arguments or a value being accepted into a flag of the wrong type. Flags passed to `run` are now matched to `main` parameters by name. ## Tests + Formatting - [x] `cargo fmt --all -- --check` - [x] `cargo clippy` on the changed crate with `-D warnings` - [x] Added regression tests (`cargo test -p nu-command --test tests commands::run`) ## After Submitting N/A |
||
|
|
57a036c4b0 | Prepare release (#18524) 0.114.0 | ||
|
|
cc8438358e | require "nu-test-support/os" in dev dependencies (#18518) | ||
|
|
1f0c69c9af | Fix locally running test suit by disabling colors (#18517) | ||
|
|
a6fefd3296 |
feat: from xlsx/ods datetime fixes (#18516)
|
||
|
|
0678acb1d2 |
Ignore cargo audit errors about quickxml (#18513)
|
||
|
|
96cb2126ab |
build(deps): bump lsp-server from 0.7.9 to 0.8.0 (#18505)
Bumps [lsp-server](https://github.com/rust-lang/rust-analyzer) from 0.7.9 to 0.8.0. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/rust-lang/rust-analyzer/commits">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
bb2d402c6f |
build(deps): bump quick-xml from 0.40.1 to 0.41.0 (#18503)
Bumps [quick-xml](https://github.com/tafia/quick-xml) from 0.40.1 to 0.41.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tafia/quick-xml/releases">quick-xml's releases</a>.</em></p> <blockquote> <h2>v0.41.0 - Secuirity fixes</h2> <h2>What's Changed</h2> <h3>New Features</h3> <ul> <li><a href="https://redirect.github.com/tafia/quick-xml/issues/970">#970</a>: Add <code>NsReader::resolver_mut()</code> and <code>NamespaceResolver::{max_declarations_per_element, set_max_declarations_per_element}</code>.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="https://redirect.github.com/tafia/quick-xml/issues/969">#969</a>: <code>Attributes</code> (and anything that iterates <code>BytesStart::attributes()</code> with the default <code>with_checks(true)</code>) no longer takes O(N²) time on a start tag with a large number of attributes. Small tags keep the previous linear scan; larger ones switch to a 64-bit hash pre-filter, so the whole tag is O(N). The exact <code>AttrError::Duplicated(new, prev)</code> positions are unchanged.</li> <li><a href="https://redirect.github.com/tafia/quick-xml/issues/970">#970</a>: <code>NamespaceResolver::push</code> (and hence every <code>NsReader</code> <code>Start</code>/<code>Empty</code> event) now rejects a start tag that declares more than <code>DEFAULT_MAX_DECLARATIONS_PER_ELEMENT</code> (256) <code>xmlns</code> / <code>xmlns:*</code> namespace bindings, returning the new <code>NamespaceError::TooManyDeclarations</code>. Previously <code>push</code> allocated one <code>NamespaceBinding</code> per declaration with no upper bound, before the event was returned to the caller, so an <code>NsReader</code> consumer could not bound its memory exposure on untrusted input. The limit is configurable via <code>NamespaceResolver::set_max_declarations_per_element</code> (use <code>usize::MAX</code> to disable).</li> </ul> <p><a href="https://redirect.github.com/tafia/quick-xml/issues/969">#969</a>: <a href="https://redirect.github.com/tafia/quick-xml/issues/969">tafia/quick-xml#969</a> <a href="https://redirect.github.com/tafia/quick-xml/issues/970">#970</a>: <a href="https://redirect.github.com/tafia/quick-xml/issues/970">tafia/quick-xml#970</a></p> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/qifan-sailboat"><code>@qifan-sailboat</code></a> made their first contribution in <a href="https://redirect.github.com/tafia/quick-xml/pull/972">tafia/quick-xml#972</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/tafia/quick-xml/compare/v0.40.1...v0.41.0">https://github.com/tafia/quick-xml/compare/v0.40.1...v0.41.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/tafia/quick-xml/blob/master/Changelog.md">quick-xml's changelog</a>.</em></p> <blockquote> <h2>0.41.0 -- 2026-06-29</h2> <h3>New Features</h3> <ul> <li><a href="https://redirect.github.com/tafia/quick-xml/issues/970">#970</a>: Add <code>NsReader::resolver_mut()</code> and <code>NamespaceResolver::{max_declarations_per_element, set_max_declarations_per_element}</code>.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="https://redirect.github.com/tafia/quick-xml/issues/969">#969</a>: <code>Attributes</code> (and anything that iterates <code>BytesStart::attributes()</code> with the default <code>with_checks(true)</code>) no longer takes O(N²) time on a start tag with a large number of attributes. Small tags keep the previous linear scan; larger ones switch to a 64-bit hash pre-filter, so the whole tag is O(N). The exact <code>AttrError::Duplicated(new, prev)</code> positions are unchanged.</li> <li><a href="https://redirect.github.com/tafia/quick-xml/issues/970">#970</a>: <code>NamespaceResolver::push</code> (and hence every <code>NsReader</code> <code>Start</code>/<code>Empty</code> event) now rejects a start tag that declares more than <code>DEFAULT_MAX_DECLARATIONS_PER_ELEMENT</code> (256) <code>xmlns</code> / <code>xmlns:*</code> namespace bindings, returning the new <code>NamespaceError::TooManyDeclarations</code>. Previously <code>push</code> allocated one <code>NamespaceBinding</code> per declaration with no upper bound, before the event was returned to the caller, so an <code>NsReader</code> consumer could not bound its memory exposure on untrusted input. The limit is configurable via <code>NamespaceResolver::set_max_declarations_per_element</code> (use <code>usize::MAX</code> to disable).</li> </ul> <p><a href="https://redirect.github.com/tafia/quick-xml/issues/969">#969</a>: <a href="https://redirect.github.com/tafia/quick-xml/issues/969">tafia/quick-xml#969</a> <a href="https://redirect.github.com/tafia/quick-xml/issues/970">#970</a>: <a href="https://redirect.github.com/tafia/quick-xml/issues/970">tafia/quick-xml#970</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tafia/quick-xml/commit/4deda08abeffdc188c269360229cf47e12a77a9f"><code>4deda08</code></a> Release 0.41.0</li> <li><a href="https://github.com/tafia/quick-xml/commit/1b3b73b4cc6e1e5c2f40fb1cb955d3bbe264368f"><code>1b3b73b</code></a> Remove unused argument to <code>check!</code></li> <li><a href="https://github.com/tafia/quick-xml/commit/07f3db8343cf152f5bc3483ef5b3164582489bea"><code>07f3db8</code></a> Fix O(N²) duplicate-attribute check in <code>Attributes</code> iterator</li> <li><a href="https://github.com/tafia/quick-xml/commit/7ca25266e94987210daa864889ab15c9332c8a2a"><code>7ca2526</code></a> Cap namespace declarations per element in <code>NamespaceResolver::push</code></li> <li>See full diff in <a href="https://github.com/tafia/quick-xml/compare/v0.40.1...v0.41.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
0c00ab8970 |
Assortment of std improvements (#18449)
## Description - Added type annotations - Made a bunch of commands stream - `std/iter` `intersperse` - `std/iter` `flat-map` - `std-rfc/conversion` `into list` - `std-rfc/tables` `select column-slices` - `std-rfc/tables` `reject column-slices` - Made some commands avoid eagerly consuming pipeline input: - `std-rfc/iter` `only` - `std-rfc/conversions` `name-values` - Changed the signature of `std/iter scan` to be the same as `reduce` - `std/iter find-index` returns `null` instead of `-1` when failing to find a suitable element |
||
|
|
f036236193 |
refactor: remove deprecated features of grid command (#18276)
## Description BREAKING: In https://github.com/nushell/nushell/pull/18187, some implicit behaviors of `grid` command were deprecated. This PR removed some of those features (record as input). ## User-facing changes (Release notes) Removed deprecated features of `grid` command. ```nushell # before { name: test } | grid # after [{ name: test }] | grid name ``` |
||
|
|
02c44c8b6c |
Error record passed to the catch block has more details (#18479)
### Errors with more `details` and file relative spans
The error record you receive in `try {..} catch {..}` blocks no longer
has a `json` field. A new field named `details` takes its place instead.
It holds the same information as the `json` field but requires no
deserialization stop like `from json`.
There is one small but significant difference: the error labels now have
additional field `location` in addition to `span`.
`location` contains the name of the file the label points to, with
`start` and `end` offsets that are relative to the file itself.
╭────────┬─────────────────────────────────────────────────────────────────────╮
│ msg │ These are not equal. │
│ │ ╭───┬──────────┬────────────────────┬─────────────────────────────╮ │
│ labels │ │ # │ text │ span │ location │ │
│ │ ├───┼──────────┼────────────────────┼─────────────────────────────┤ │
│ │ │ 0 │ left: 4 │ ╭───────┬────────╮ │ ╭───────┬─────────────────╮ │ │
│ │ │ │ │ │ start │ 239936 │ │ │ file │ /tmp/example.nu │ │ │
│ │ │ │ │ │ end │ 239943 │ │ │ start │ 52 │ │ │
│ │ │ │ │ ╰───────┴────────╯ │ │ end │ 59 │ │ │
│ │ │ │ │ │ ╰───────┴─────────────────╯ │ │
│ │ │ 1 │ right: 5 │ ╭───────┬────────╮ │ ╭───────┬─────────────────╮ │ │
│ │ │ │ │ │ start │ 239944 │ │ │ file │ /tmp/example.nu │ │ │
│ │ │ │ │ │ end │ 239945 │ │ │ start │ 60 │ │ │
│ │ │ │ │ ╰───────┴────────╯ │ │ end │ 61 │ │ │
│ │ │ │ │ │ ╰───────┴─────────────────╯ │ │
│ │ ╰───┴──────────┴────────────────────┴─────────────────────────────╯ │
│ code │ │
│ url │ │
│ help │ │
│ inner │ [list 0 items] │
╰────────┴─────────────────────────────────────────────────────────────────────╯
With these file relative spans, making external tools for reporting
nushell errors should be much easier.
|
||
|
|
583457db3c |
fix nu --plugins handling (#18500)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description A bug was reported on Discord that disallowed the `--plugins` from working. The problem was, when using with a shebang this would happen `nu --plugins '/usr/share/nutext/nu_plugin_nutext' /path/to/rhino-pkg` and then nushell would puke because the cli parsing thinks `/path/to/rhino-pkg` is another plugin but it's named wrong, which is wrong of course. The fix is to allow only 1 item to be passed as a plugin instead of many. This is what is acceptible now. ```nushell nu --plugins /path/to/nu_plugin_one --plugins /path/to/nu_plugin_two # mutliple --plugins params nu --plugins '[/path/to/nu_plugin_one, /path/to/nu_plugin_two]' # comma separation nu --plugins '[/path/to/nu_plugin_one /path/to/nu_plugin_two]' # no comma separation nu --plugins '["/path/to plugin/nu_plugin_one", "/path/to plugin/nu_plugin_two"]' # quoted paths, with or without commas ``` ## User-facing changes (Release notes) The nushell cli parsing now supports the `--plugins` parameter in these variations ```nushell nu --plugins /path/to/nu_plugin_one --plugins /path/to/nu_plugin_two # mutliple --plugins params nu --plugins '[/path/to/nu_plugin_one, /path/to/nu_plugin_two]' # comma separation nu --plugins '[/path/to/nu_plugin_one /path/to/nu_plugin_two]' # no comma separation nu --plugins '["/path/to plugin/nu_plugin_one", "/path/to plugin/nu_plugin_two"]' # quoted paths, with or without commas ``` ## Additional notes <!-- Optional. Examples: - fixes #123 - closes #456 - related #789 Anything else reviewers should know. Remove this section if not needed. --> |
||
|
|
02990a84c5 |
Fix --content-type flag being ignored for JSON body variants (#17640) (#18496)
Fixes #17640 `--content-type` is ignored for JSON-variant types like `application/json-patch+json` and `application/vnd.api+json` — nushell sends `application/json` instead. The detection in `BodyType::from` used `it.contains("application/json")` which is too broad. `"application/json-patch+json".contains("application/json")` is `true`, so these variant types get classified as `BodyType::Json` and the user's explicit content type is discarded. Switched to the `mime` crate (already a dep) for proper MIME type parsing. Only exact `application/json` (with or without charset) matches as JSON. Variants correctly fall through to `BodyType::Unknown` and the user's content type is preserved. ## Release notes summary `http post`/`put`/`patch`/`delete` now respects `--content-type` for JSON-variant MIME types like `application/json-patch+json`. |
||
|
|
ab31d2732d |
feat(mcp): add structured evaluate output (#18499)
## Description This PR improves Nushell's MCP `evaluate` tool response format. Previously, `evaluate` responses were wrapped entirely as strings instead of structured content. This change preserves the evaluated Nushell value in the `output` field, e.g. a record result now stays a record in the NUON response instead of becoming a quoted string. It also mirrors successful and error `evaluate` responses into MCP `structuredContent`, so MCP clients can consume the response as JSON without reparsing the text content. Existing truncation and `$history` behavior is preserved. ## User-facing changes (Release notes) Improved the MCP `evaluate` tool response: evaluation outputs NUON directly instead of wrapping everything as a string. Successful and error responses are also available as MCP `structuredContent` JSON for clients that support structured tool output. ## Additional notes The `| complete` approach still remains for the separation/inspection of external commands' stdout, stderr, or exit code. |
||
|
|
be844df9c9 |
fix(xlsx,ods): add --prefer-integers flag for whole-number float conversion (#18497)
Co-authored-by: chris <chris@example.com> |
||
|
|
554b032383 | suggest command categories in help messages (#18498) | ||
|
|
d4fb760bdf |
Even more type system improvements (#18450)
- Type inference for `let`:
- `.. | let x`
- `{ let x = do-sth-with-input }`
- `.. | let x | ..` (pipeline type information is not lost when passing
through `let`)
- Type inference in `def` blocks are now affected by the commands
input/output signatures
- Type inference for `$in`
- Conditionals (`if`, `match`) are now properly typed
- branch blocks get pipeline input type information
- output of the expression is a union of all possible output types
(based on the branches)
- without a fallback (`if {} else {}`, `match { _ => {} }`), the output
type includes `nothing`
|
||
|
|
fcfda921c5 |
add semver as a custom value type with support commands (#18473)
## Description
This PR refactors the original SemVer implementation (previous commits
in this PR) from a first-class `Value::SemVer` type to a `CustomValue`
implementation. This change improves the CustomValue trait system while
maintaining all functionality through more idiomatic Nushell patterns.
### 1. CustomValue Trait Changes
- Modified `Type::Custom` to preserve and return the actual type name
instead of "custom"
- Updated `style_computer` to use custom type names for style lookup
- Custom values can now have type-specific coloring in tables
### 2. Two Custom Types Created
- **`SemverValue`**: Wraps `semver::Version` with helper methods for
bumping versions
- **`SemverRangeValue`**: Wraps `semver::VersionReq` for range matching
### 3. Removed Components
- **Parser component**: No more REPL syntax highlighting for semver
literals (e.g., `1.2.3` is now a string, not a semver)
- **Redundant commands**: `semver from-record`, `semver to-record`,
`semver is-valid`, `semver sort`, `semver match-req`
- **Value::SemVer, Type::SemVer, Expr::SemVer**: Completely removed from
codebase
## User-facing changes (Release notes)
Nushell now understands and allows you to work with Semantic Versioning.
All functionality works through idiomatic Nushell patterns:
### Converting to SemVer
```nushell
> '1.2.3' | into semver # Convert string to semver
{major: 1, minor: 2, patch: 3} | into semver # Convert record to semver
```
### Decomposing SemVer to Record
```nushell
> '1.2.3-alpha.1+build.2' | into semver | into record
╭───────────────────┬───────────────╮
│ major │ 1 │
│ minor │ 2 │
│ patch │ 3 │
│ pre │ alpha.1 │
│ build │ build.2 │
│ │ ╭───┬───────╮ │
│ pre_identifiers │ │ 0 │ alpha │ │
│ │ │ 1 │ 1 │ │
│ │ ╰───┴───────╯ │
│ │ ╭───┬───────╮ │
│ build_identifiers │ │ 0 │ build │ │
│ │ │ 1 │ 2 │ │
│ │ ╰───┴───────╯ │
╰───────────────────┴───────────────╯
```
### Building SemVer from Record
```nushell
> {major: 1, minor: 2, patch: 3, pre: "alpha.1"} | into semver
1.2.3-alpha.1
```
### Bumping SemVer
```nushell
> '1.2.3' | into semver | semver bump major
2.0.0
> '1.2.3' | into semver | semver bump minor
1.3.0
> '1.2.3' | into semver | semver bump patch
1.2.4
> '1.2.3' | into semver | semver bump alpha
1.2.3-alpha.0
> '1.2.3-alpha.1' | into semver | semver bump alpha
1.2.3-alpha.2
> '1.2.3-alpha' | into semver | semver bump release
1.2.3
```
or just from strings
```nushell
> '1.2.3' | semver bump major
2.0.0
> '1.2.3' | semver bump minor
1.3.0
```
Tab completions available for `major`, `minor`, `patch`, `alpha`,
`beta`, `rc`, `release`.
```nushell
> 📎 '1.2.3' | semver bump
alpha major patch release
beta minor rc
```
Completions also work with variables.
```nushell
> let v = '1.2.3' | into semver
> 📎 $v.<tab>
build minor pre
major patch
```
### Sorting SemVer Values
```nushell
> ['2.0.0', '1.0.0', '1.2.3'] | each { into semver } | sort
╭───┬───────╮
│ 0 │ 1.0.0 │
│ 1 │ 1.2.3 │
│ 2 │ 2.0.0 │
╰───┴───────╯
> ['2.0.0', '1.0.0', '1.2.3'] | each { into semver } | sort --reverse
╭───┬───────╮
│ 0 │ 2.0.0 │
│ 1 │ 1.2.3 │
│ 2 │ 1.0.0 │
╰───┴───────╯
```
### Checking Valid SemVer
```nushell
> try { '1.2.3' | into semver } | is-not-empty # Returns true if valid
true
> try { 'not-valid' | into semver } | is-not-empty
false
```
### Matching SemVer Against Requirements
```nushell
> '1.2.3' | into semver | $in in ('>=1.0.0' | into semver-range)
true
> '1.0.0' | into semver | $in in ('>=2.0.0' | into semver-range)
false
> '1.3.0-alpha' | into semver | $in in ('>=1.2.3' | into semver-range)
false
```
### Converting SemVer Range
```nushell
> '>=1.0.0' | into semver-range
>=1.0.0
> '^1.2.3' | into semver-range
^1.2.3
> '~1.2' | into semver-range
~1.2
```
### Describe Command
```nushell
> '1.2.3' | into semver | describe -d
╭───────────────┬───────────────────────────────────────────────────────────────────────╮
│ type │ custom │
│ detailed_type │ semver │
│ subtype │ semver │
│ rust_type │ &alloc::boxed::Box<dyn nu_protocol::value::custom_value::CustomValue> │
│ value │ 1.2.3 │
╰───────────────┴───────────────────────────────────────────────────────────────────────╯
```
### Table Coloring
**SemVer values are colored in tables:**
```nushell
> [[string, semver, semver-range]; ['1.2.3', ('1.2.3' | into semver), ('>=1.0.0' | into semver-range)]]
╭───┬────────┬────────┬──────────────╮
│ # │ string │ semver │ semver-range │
├───┼────────┼────────┼──────────────┤
│ 0 │ 1.2.3 │ 1.2.3 │ >=1.0.0 │
╰───┴────────┴────────┴──────────────╯
```
Both `semver` and `semver-range` values are displayed in cyan bold by
default.
### Configuration
```nushell
$env.config.color_config.semver = "cyan_bold"
$env.config.color_config.semver-range = "cyan_bold"
```
### Serialization (to/from commands)
**Works with all `to` commands:**
```nushell
> '1.2.3' | into semver | to json
"1.2.3"
> '1.2.3' | into semver | to yaml
'1.2.3'
> '1.2.3' | into semver | to toml
'"1.2.3"'
```
## Additional notes
closes #16436
|
||
|
|
01c1f45a7f |
fix!: make from ods and from xlsx consistent (#18436)
- Remove some code that became redundant due to improvements to `FromValue` - Fix command signatures. These commands do not return tables, they return *records* that have *tables* as values. - De-duplicate code between `from xlsx` and `from ods`. - Properly handle more data types. Particularly date-time and duration. - Switch to a more functional, pipeline style of code. - remove `--header-row` flag in favor of `--noheaders` and `--first-row` |
||
|
|
fe968b54e1 |
fix: toolkit run pr runtime type checking issue (#18489)
## Description A command annotated to return `int` was returning `string`. This wasn't caught until recently, as the return value wasn't used in an operation that wouldn't also accept `string`. Enabling `enforce-runtime-annotations` (which has been made opt-out recently) caused type checking to occur on the call site (`return` itself is not type checked yet): ```nushell let workflow_id = get-workflow-run $commits $number.span # $workflow_id is inferred to be `int` due to `get-workflow-run`'s signature, # so it's equivalent to: let workflow_id: int = get-workflow-run $commits $number.span ``` ## User-facing changes (Release notes) N/A |
||
|
|
644ea6ea78 |
Fix showing target command name instead of alias name (#18483)
Fixes #18351 `get_alias_documentation()` used `sig.name` to display the alias name, but for internal command aliases, `Alias::signature()` delegates to the wrapped command's signature, returning the target command name instead of the alias name. Changed to `command.name()` which always returns the actual alias name via `Alias::name()`. ## Release notes summary `help aliases` now correctly shows the alias name (not the target command name) for aliases to internal commands. |
||
|
|
8c50b8de80 |
fix(math): propagate errors from table columns instead of silencing them (#18480)
## Description `math avg`, `math sum`, and other math commands that operate on tables iterate column by column in `helper_for_tables`. When the computation for a column failed, the error was silently discarded via `if let Ok(out) = mf(...)`. If all columns failed, the function fell through to a generic fallback error: "Unable to give a result with this input". The same operation on a list gave the real error (e.g. `operator_overflow` when summing `duration` values that exceed `i64::MAX`). This made the table and list paths inconsistent and the table error useless for debugging. Fix: propagate errors with `?` and remove the now-unreachable fallback. Before: ```nushell $durations | wrap distance | math avg # Error: Unable to give a result with this input ← not helpful ``` After: ```nushell $durations | wrap distance | math avg # Error: Operator overflow. ← same as the list path ``` ## User-facing changes (Release notes) Fixed an issue where `math avg`, `math sum`, and other math commands on tables produced a generic "Unable to give a result with this input" error instead of the real underlying error. List and table inputs now produce consistent error messages. ## Additional notes Fixes #16563 |
||
|
|
7b4aa4d267 |
feat(math): add math cbrt builtin (#18481)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description <!-- Explain what this PR does and why. This section is intentionally flexible: - Describe the problem - Explain your approach - Include technical details if relevant Good examples: - "In this PR, I fixed..." - "In this PR, I added support for..." - "This change improves X by..." Write as much or as little as needed for reviewers to understand your changes. --> literally the title. ## User-facing changes (Release notes) <!-- This section is used (mostly as-is) for https://www.nushell.sh/blog/ Describe how Nushell behavior changes from a user's perspective. Do NOT describe internal Rust changes here. Write in a release note style, for example: - "Added support for..." - "Fixed an issue where..." - "Nushell now supports..." - "Improved performance of..." If your changes do NOT affect users (internal refactors, cleanup, etc.), just write: - "n/a" - "nan" - or similar This tells us the change should not appear in the changelog. Tips: - Focus on observable behavior - Include examples if helpful - Keep it concise You can: - Write a short paragraph (will appear as a bullet point), OR - Use headings (###) if your change needs more structure Avoid writing things like: - "In this PR, I refactored..." - "This updates internal code..." You may leave this blank until the PR is ready. --> Added `math cbrt` (cube root) function. <!-- ## Additional notes Requires #18482 (well, not really, but will fail tests otherwise) Optional. Examples: - fixes #123 - closes #456 - related #789 Anything else reviewers should know. Remove this section if not needed. --> |
||
|
|
cddc963be8 |
fix multiple search items help message (#18482)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description <!-- Explain what this PR does and why. This section is intentionally flexible: - Describe the problem - Explain your approach - Include technical details if relevant Good examples: - "In this PR, I fixed..." - "In this PR, I added support for..." - "This change improves X by..." Write as much or as little as needed for reviewers to understand your changes. --> Adresses two issues. First, there was a bad test `no_search_term_duplicates` which despite its name merely checked whether search terms for all commands are not contained in the name of their own commands. ~~Which meant that for whatever reason redirecting people who want to use `sqrt` to `math sqrt` would violate tests. The test would make sense (before the second change in the PR) if it actually did what it's supposed to, but it didn't do even that, so I've opted to just remove it. Oh, also yes, I've added `sqrt` as `math sqrt` search term.~~ To avoid further confusion, I've renamed the test to `no_command_name_contains_search_terms` Second, help messages for search terms would only show the first command that satisfies. For example, try typing `root` into the shell. You will see this: ```sh ❯ root Error: nu::shell::external_command × External command failed ╭─[repl_entry #1:1:1] 1 │ root · ──┬─ · ╰── Command `root` not found ╰──── help: Did you mean `is-admin`? ``` And this is despite "math sqrt" also having "root" as its search terms. I've made it so all commands show up: ```sh Error: nu::shell::external_command × External command failed ╭─[source:1:1] 1 │ root · ──┬─ · ╰── Command `root` not found ╰──── help: Did you mean `is-admin` or `math sqrt`? ``` ## User-facing changes (Release notes) <!-- This section is used (mostly as-is) for https://www.nushell.sh/blog/ Describe how Nushell behavior changes from a user's perspective. Do NOT describe internal Rust changes here. Write in a release note style, for example: - "Added support for..." - "Fixed an issue where..." - "Nushell now supports..." - "Improved performance of..." If your changes do NOT affect users (internal refactors, cleanup, etc.), just write: - "n/a" - "nan" - or similar This tells us the change should not appear in the changelog. Tips: - Focus on observable behavior - Include examples if helpful - Keep it concise You can: - Write a short paragraph (will appear as a bullet point), OR - Use headings (###) if your change needs more structure Avoid writing things like: - "In this PR, I refactored..." - "This updates internal code..." You may leave this blank until the PR is ready. --> n/a really ## Additional notes <!-- Optional. Examples: - fixes #123 - closes #456 - related #789 Anything else reviewers should know. Remove this section if not needed. --> |
||
|
|
c642af622e |
add a few new commands (union, intersect, difference, permutations, combinations) (#18467)
## Description
This PR adds a few new commands `union`, `intersect`, `difference`,
`combinations`, and `permutations` as built-in filter commands. These
provide immutable, functional list operations.
These commands and presented as a starting point. I'm sure there are
edge cases where they do not work but we can continue to work on them as
time passes.
## User-facing changes (Release notes)
Added `union`, `intersect`, `difference`, `combinations`, and
`permutations` as built-in filter commands. These provide immutable,
functional list operations.
### Commands
#### `union`
Returns a deduplicated list of unique elements present in either the
input list or the given list.
```nushell
[1 2 3 4] | union [3 4 5 6]
# ╭─┬───╮
# │0│ 1 │
# │1│ 2 │
# │2│ 3 │
# │3│ 4 │
# │4│ 5 │
# │5│ 6 │
# ╰─┴───╯
[{a:1} {a:2}] | union [{a:2} {a:3}]
# ╭─┬───────╮
# │0│ a: 1 │
# │1│ a: 2 │
# │2│ a: 3 │
# ╰─┴───────╯
```
#### `intersect`
Returns a deduplicated list of unique elements present in both the input
list and the given list.
```nushell
[1 2 3 4] | intersect [3 4 5 6]
# ╭─┬───╮
# │0│ 3 │
# │1│ 4 │
# ╰─┴───╯
[1 2 3] | intersect [4 5 6]
# ╭──────────╮
# │ empty │
# ╰──────────╯
```
#### `difference`
Returns a deduplicated list of unique elements present in the input list
but not in the given list.
```nushell
[1 2 3 4] | difference [3 4 5 6]
# ╭─┬───╮
# │0│ 1 │
# │1│ 2 │
# ╰─┴───╯
[{a:1} {a:2} {a:3}] | difference [{a:2} {a:4}]
# ╭─┬───────╮
# │0│ a: 1 │
# │1│ a: 3 │
# ╰─┴───────╯
```
#### `combinations`
Generates all combinations of a given size k from the input list,
streamed lazily via `ListStream`. If k > n, returns an empty list.
```nushell
[1 2 3] | combinations 2
# ╭─┬──────────╮
# │0│ ╭─┬───╮ │
# │ │ │0│ 1 │ │
# │ │ │1│ 2 │ │
# │ │ ╰─┴───╯ │
# │1│ ╭─┬───╮ │
# │ │ │0│ 1 │ │
# │ │ │1│ 3 │ │
# │ │ ╰─┴───╯ │
# │2│ ╭─┬───╮ │
# │ │ │0│ 2 │ │
# │ │ │1│ 3 │ │
# │ │ ╰─┴───╯ │
# ╰─┴──────────╯
[1 2] | combinations 3
# ╭──────────╮
# │ empty │
# ╰──────────╯
```
#### `permutations`
Generates all permutations of the input list using Heap's algorithm,
streamed lazily via `ListStream`.
```nushell
[1 2 3] | permutations
# ╭─┬──────────╮
# │0│ ╭─┬───╮ │
# │ │ │0│ 1 │ │
# │ │ │1│ 2 │ │
# │ │ │2│ 3 │ │
# │ │ ╰─┴───╯ │
# │1│ ╭─┬───╮ │
# │ │ │0│ 2 │ │
# │ │ │1│ 1 │ │
# │ │ │2│ 3 │ │
# │ │ ╰─┴───╯ │
# │2│ ╭─┬───╮ │
# │ │ │0│ 3 │ │
# │ │ │1│ 1 │ │
# │ │ │2│ 2 │ │
# │ │ ╰─┴───╯ │
# │3│ ╭─┬───╮ │
# │ │ │0│ 1 │ │
# │ │ │1│ 3 │ │
# │ │ │2│ 2 │ │
# │ │ ╰─┴───╯ │
# │4│ ╭─┬───╮ │
# │ │ │0│ 2 │ │
# │ │ │1│ 3 │ │
# │ │ │2│ 1 │ │
# │ │ ╰─┴───╯ │
# │5│ ╭─┬───╮ │
# │ │ │0│ 3 │ │
# │ │ │1│ 2 │ │
# │ │ │2│ 1 │ │
# │ │ ╰─┴───╯ │
# ╰─┴──────────╯
[1 2] | permutations
# ╭─┬──────────╮
# │0│ ╭─┬───╮ │
# │ │ │0│ 1 │ │
# │ │ │1│ 2 │ │
# │ │ ╰─┴───╯ │
# │1│ ╭─┬───╮ │
# │ │ │0│ 2 │ │
# │ │ │1│ 1 │ │
# │ │ ╰─┴───╯ │
# ╰─┴──────────╯
```
## Additional notes
<!--
Optional.
Examples:
- fixes #123
- closes #456
- related #789
Anything else reviewers should know.
Remove this section if not needed.
-->
|
||
|
|
4451af5ca5 |
chore(reedline): bump reedline to 4a5ebce (#18478)
## Description Bumps reedline to nushell/reedline#1109, which unifies the caret/selection on a single `Cursor`, adds a per-mode rest policy, introduces a real vi **visual mode**, and folds in editing edge-case fixes. The caret/selection model changed under both vi and emacs, so both editing modes deserve a broad test pass. ### Nushell-side changes - Adapt to the `WordKind::Small`/`Big` → `Word`/`LongWord` rename (+ new `Unicode` variant), and the matching keybinding `word_kind` values `"word"`/`"longword"`. These names/values only ever existed on reedline `main` this cycle (introduced post-`v0.48.0` in nushell/reedline#1100), so no released version is affected. - Handle the new `PromptViMode::Visual` in both prompt-indicator impls. ## User-facing changes (Release notes) - Vi mode gains a real **visual mode**: press `v` to start a selection, then use motions and `d`/`c`/`y`/`r` (including across multiple lines). - In vi normal mode, the caret now rests *on* the last grapheme, and `h`/`l` move across line boundaries. - Visual mode uses its own prompt indicator, defaulting to the vi-normal indicator. ## Additional notes ### Test focus **Vi:** - new visual mode (`v` + motions + `d`/`c`/`y`/`r`, incl. multi-line) - normal caret now rests *on* the last grapheme; `h`/`l` cross line boundaries - word motions/operators on punctuation, contractions, multibyte - linewise `dd`/`yy` + paste (no stray blank line, incl. last line and single-line buffer) - abbreviation-on-Enter - caret position after history nav - multiline `j`/`k` **Emacs:** - word motions (`M-f`/`M-b`/`M-d`/`C-w`), especially mid-word - shift-selection + cut/copy/paste - completion while a selection is active **Cross-cutting:** - CRLF content, NFD/combining, emoji/ZWJ - undo/redo - custom keybindings ### Risk Editing-model change touching both vi and emacs. It's a broad surface. But I believe it's solving more problems than it creates. |
||
|
|
08a004b6bf |
Feature gate the nu-heavy-utils crate (#18476)
|
||
|
|
805a485c2a |
allow idx find and idx search to show hits relative to cwd (#18477)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description This PR changes how "hits" are displayed by making them relative to the cwd in the hopes that it makes them more usable. <!-- Explain what this PR does and why. This section is intentionally flexible: - Describe the problem - Explain your approach - Include technical details if relevant Good examples: - "In this PR, I fixed..." - "In this PR, I added support for..." - "This change improves X by..." Write as much or as little as needed for reviewers to understand your changes. --> ## User-facing changes (Release notes) We changed how "hits" are displayed by making them relative to the cwd in the hopes that it makes them more usable. It works this way for `idx find` and `idx search`. <!-- This section is used (mostly as-is) for https://www.nushell.sh/blog/ Describe how Nushell behavior changes from a user's perspective. Do NOT describe internal Rust changes here. Write in a release note style, for example: - "Added support for..." - "Fixed an issue where..." - "Nushell now supports..." - "Improved performance of..." If your changes do NOT affect users (internal refactors, cleanup, etc.), just write: - "n/a" - "nan" - or similar This tells us the change should not appear in the changelog. Tips: - Focus on observable behavior - Include examples if helpful - Keep it concise You can: - Write a short paragraph (will appear as a bullet point), OR - Use headings (###) if your change needs more structure Avoid writing things like: - "In this PR, I refactored..." - "This updates internal code..." You may leave this blank until the PR is ready. --> ## Additional notes closes https://github.com/nushell/nushell/issues/18475 <!-- Optional. Examples: - fixes #123 - closes #456 - related #789 Anything else reviewers should know. Remove this section if not needed. --> |
||
|
|
2e830bb0a0 | bump reedline to 4d20caf (#18474) | ||
|
|
304400d52a |
input list: improve streaming stability/perf + rendering (#18462)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description <!-- Explain what this PR does and why. This section is intentionally flexible: - Describe the problem - Explain your approach - Include technical details if relevant Good examples: - "In this PR, I fixed..." - "In this PR, I added support for..." - "This change improves X by..." Write as much or as little as needed for reviewers to understand your changes. --> This improves loading items from stream inputs so that streaming is faster, more responsive, and doesn't block the UI. Some minor improvements were also made to handling of control characters so that they don't mess up rendering as much, hopefully. On startup, if the input is a stream, `input list` waits up to 250ms for the input to collect before rendering the UI; if the stream hasn't finished collecting by the first paint, it will display a live-updating count in the footer as the items stream in. Pressing End to jump to the final list of the item will pin the cursor at the end so that it will stay there as new items stream in; the cursor will stay pinned until no items remain or until the user moves the cursor manually. Additionally, I fixed a rendering bug where the header rows in table mode would not properly redraw if columns in the rest of the table expanded during scrolling. ## User-facing changes (Release notes) <!-- This section is used (mostly as-is) for https://www.nushell.sh/blog/ Describe how Nushell behavior changes from a user's perspective. Do NOT describe internal Rust changes here. Write in a release note style, for example: - "Added support for..." - "Fixed an issue where..." - "Nushell now supports..." - "Improved performance of..." If your changes do NOT affect users (internal refactors, cleanup, etc.), just write: - "n/a" - "nan" - or similar This tells us the change should not appear in the changelog. Tips: - Focus on observable behavior - Include examples if helpful - Keep it concise You can: - Write a short paragraph (will appear as a bullet point), OR - Use headings (###) if your change needs more structure Avoid writing things like: - "In this PR, I refactored..." - "This updates internal code..." You may leave this blank until the PR is ready. --> - `input list` no longer blocks first paint until stream inputs are fully collected; now, it shows a live-updating count of currently collected items in the footer and allows the UI to be responsive as items stream in. - In table mode, header cells now properly expand as their respective columns expand when scrolling through the list. - Fixed an issue where certain control characters like tabs could throw off UI alignment during rendering. ## Additional notes <!-- Optional. Examples: - fixes #123 - closes #456 - related #789 Anything else reviewers should know. Remove this section if not needed. --> Related: #17963 |
||
|
|
49d7f6c753 |
bump rusqlite to 0.40.1 (#18469)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description This PR bumps rusqlite to 0.40.1 and bumps reedline to the latest commit. <!-- Explain what this PR does and why. This section is intentionally flexible: - Describe the problem - Explain your approach - Include technical details if relevant Good examples: - "In this PR, I fixed..." - "In this PR, I added support for..." - "This change improves X by..." Write as much or as little as needed for reviewers to understand your changes. --> ## User-facing changes (Release notes) <!-- This section is used (mostly as-is) for https://www.nushell.sh/blog/ Describe how Nushell behavior changes from a user's perspective. Do NOT describe internal Rust changes here. Write in a release note style, for example: - "Added support for..." - "Fixed an issue where..." - "Nushell now supports..." - "Improved performance of..." If your changes do NOT affect users (internal refactors, cleanup, etc.), just write: - "n/a" - "nan" - or similar This tells us the change should not appear in the changelog. Tips: - Focus on observable behavior - Include examples if helpful - Keep it concise You can: - Write a short paragraph (will appear as a bullet point), OR - Use headings (###) if your change needs more structure Avoid writing things like: - "In this PR, I refactored..." - "This updates internal code..." You may leave this blank until the PR is ready. --> ## Additional notes <!-- Optional. Examples: - fixes #123 - closes #456 - related #789 Anything else reviewers should know. Remove this section if not needed. --> |
||
|
|
b413ee73ab |
refactor(logging): simplify CLI filter parsing to allow target or module paths (#18464)
## Description Removed validation checks against strict log levels in `parse_log_filters` to accept arbitrary string filters (e.g., target or module paths). Those filters are not log levels. ## User-facing changes (Release notes) nu `--log-include` or `--log-exclude` now accept module or target name correctly. Previously it accepted log level instead. |
||
|
|
4a5475d434 |
tests(for): regression test for non-block for body (#13746) (#18466)
## Description Using the loop variable (or any non-block) as the `for` body — e.g. `for i in [1 2 3] $i` — used to panic. On current `main` it's already handled: `for` is lowered by the IR compiler, which returns `nu::compile::invalid_keyword_call` instead of panicking. There was no regression test covering this case, so this adds one (per the AGENTS.md "No panicking on user input" guideline): it asserts the error surfaces and the output never contains `panic`. No production code changes. ## User-facing changes (Release notes) - n/a (test-only; no behavior change) ## Additional notes Closes #13746. --------- Co-authored-by: max <max@example.com> |
||
|
|
f0fa83d306 |
add new log-level perf so we can more easily see only performance logging (#18468)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description This PR adds a new `--log-level` called `perf` that filters out everything except items that use the `perf!()` macro in the code. It's helpful to see only the perf and not clutter up the screen with other information. <!-- Explain what this PR does and why. This section is intentionally flexible: - Describe the problem - Explain your approach - Include technical details if relevant Good examples: - "In this PR, I fixed..." - "In this PR, I added support for..." - "This change improves X by..." Write as much or as little as needed for reviewers to understand your changes. --> ## User-facing changes (Release notes) For those debugging startup performance, we added a new `--log-level` called `perf` that shows performance information. <!-- This section is used (mostly as-is) for https://www.nushell.sh/blog/ Describe how Nushell behavior changes from a user's perspective. Do NOT describe internal Rust changes here. Write in a release note style, for example: - "Added support for..." - "Fixed an issue where..." - "Nushell now supports..." - "Improved performance of..." If your changes do NOT affect users (internal refactors, cleanup, etc.), just write: - "n/a" - "nan" - or similar This tells us the change should not appear in the changelog. Tips: - Focus on observable behavior - Include examples if helpful - Keep it concise You can: - Write a short paragraph (will appear as a bullet point), OR - Use headings (###) if your change needs more structure Avoid writing things like: - "In this PR, I refactored..." - "This updates internal code..." You may leave this blank until the PR is ready. --> ## Additional notes <!-- Optional. Examples: - fixes #123 - closes #456 - related #789 Anything else reviewers should know. Remove this section if not needed. --> |
||
|
|
8b995956f6 |
fix(compile): clone $in register for binary-op RHS to avoid clobbering LHS (#18323) (#18465)
## Description A binary op (`and`/`or`/comparison) whose right-hand side collects `$in` — via `not (…$in…)`, a `[$in…]` list literal, or a subexpression — inside a `where`/closure row condition raised a compiler error: ```nu [1 2] | where true and not $in # Error: nu::compile::register_uninitialized ``` In `compile_binary_op` (`crates/nu-engine/src/compile/operator.rs`), `lhs_reg = out_reg`, so for a `$in`-using binary op the input register aliases the LHS (`in_reg == lhs_reg`). The RHS is compiled with `rhs_in_reg = in_reg`, and several RHS paths in `compile_expression` then call `drop_input`, which emits `Drop` on that register and frees the still-live LHS — so the following `BinaryOp` reads a freed register → `register_uninitialized`. Fix: when the RHS uses `$in` and `in_reg` aliases `lhs_reg`, clone it so the RHS gets its own droppable input register. Applied to both the `and`/`or` and the comparison branches; it fires only on the exact aliasing condition that currently crashes, so all other binary ops are unchanged. This fixes the compiler crash only. Two pre-existing, unrelated runtime issues are out of scope: misusing `$in` (vs `$it`) in a `where` row condition still yields a runtime `variable_not_found`, and `where … in [$in.field]` list-literal `$in` resolution is a separate runtime gap. ## User-facing changes (Release notes) - Fixed a compiler error (`register_uninitialized`) when the right-hand side of an `and`/`or`/comparison collects `$in`, for example `... | where $in.x > 0 and not ($in.x > 5)`. ## Additional notes Fixes #18323. Added a regression test in `tests/eval/`. `cargo fmt --check`, `cargo clippy -p nu-engine`, and the `eval` suite (69 tests) pass. --------- Co-authored-by: max <max@example.com> |
||
|
|
2ccc4022a3 |
feat: add --right to split row and split column (#18444)
|
||
|
|
987b17c518 |
Fix usize underflow on insert/upsert into a nested path of an empty list (#18463)
## Description `[] | insert 0.0 1` and `[] | upsert 0.0 1` printed a confusing error containing `18446744073709551615` (`usize::MAX`). In the `ListStream` arm of both `insert` and `upsert`, when the cell path has a nested member and the list is empty, the code fell into the `AccessBeyondEnd` branch and computed `pre_elems.len() - 1`. With an empty `pre_elems` that subtraction underflows to `usize::MAX`, which then showed up verbatim in the error label. This PR adds an explicit empty check that returns `ShellError::AccessEmptyContent` when `pre_elems` is empty, and keeps `AccessBeyondEnd` for the genuine out of range case. That mirrors the convention already used for cell path mutation in `nu-protocol` (`Value::mutate`), where an empty list maps to `AccessEmptyContent` and a non empty one to `AccessBeyondEnd`. The change is intentionally small and self contained. It only fixes the underflowed error message. The separate behavioral question of whether `[] | insert 0.0 1` should auto create the nested structure is left to the issue author, who is handling that part. ## User-facing changes (Release notes) Fixed an issue where inserting or upserting into a nested cell path of an empty list, such as `[] | insert 0.0 1`, produced a confusing error mentioning `18446744073709551615`. It now reports a clear "Row number too large (empty content)" error. ## Additional notes Addresses the integer underflow and error message part of #18426. The author of that issue is taking the related refactor (#18433) and the behavioral consistency change separately, so this PR deliberately does not close the issue. Tests: added regression tests in `tests/commands/insert.rs` and `tests/commands/upsert.rs`. `cargo test -p nu-command`, `cargo fmt --check`, and `cargo clippy -p nu-command --tests` are green locally. |
||
|
|
517c078508 |
build(deps): bump bytes from 1.11.1 to 1.12.0 (#18459)
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.11.1 to 1.12.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/bytes/releases">bytes's releases</a>.</em></p> <blockquote> <h2>Bytes v1.12.0</h2> <h1>1.12.0 (June 18th, 2026)</h1> <h3>Added</h3> <ul> <li>Add <code>BytesMut::extend_from_within()</code> (<a href="https://redirect.github.com/tokio-rs/bytes/issues/818">#818</a>)</li> <li>Add <code>BytesMut::try_unsplit()</code> (<a href="https://redirect.github.com/tokio-rs/bytes/issues/746">#746</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Fix panic in <code>get_int</code> if <code>nbytes</code> is zero (<a href="https://redirect.github.com/tokio-rs/bytes/issues/806">#806</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Pass vtable data by value (<a href="https://redirect.github.com/tokio-rs/bytes/issues/826">#826</a>)</li> <li>Exclude development scripts from published package (<a href="https://redirect.github.com/tokio-rs/bytes/issues/810">#810</a>)</li> </ul> <h3>Documented</h3> <ul> <li>Document that <code>BytesMut::{reserve,try_reserve}</code> doesn't preserve unused capacity (<a href="https://redirect.github.com/tokio-rs/bytes/issues/808">#808</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md">bytes's changelog</a>.</em></p> <blockquote> <h1>1.12.0 (June 18th, 2026)</h1> <h3>Added</h3> <ul> <li>Add <code>BytesMut::extend_from_within()</code> (<a href="https://redirect.github.com/tokio-rs/bytes/issues/818">#818</a>)</li> <li>Add <code>BytesMut::try_unsplit()</code> (<a href="https://redirect.github.com/tokio-rs/bytes/issues/746">#746</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Fix panic in <code>get_int</code> if <code>nbytes</code> is zero (<a href="https://redirect.github.com/tokio-rs/bytes/issues/806">#806</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Pass vtable data by value (<a href="https://redirect.github.com/tokio-rs/bytes/issues/826">#826</a>)</li> <li>Exclude development scripts from published package (<a href="https://redirect.github.com/tokio-rs/bytes/issues/810">#810</a>)</li> </ul> <h3>Documented</h3> <ul> <li>Document that <code>BytesMut::{reserve,try_reserve}</code> doesn't preserve unused capacity (<a href="https://redirect.github.com/tokio-rs/bytes/issues/808">#808</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tokio-rs/bytes/commit/91402cee605b21bf530ac07ede463599182b5d32"><code>91402ce</code></a> Release bytes v1.12.0 (<a href="https://redirect.github.com/tokio-rs/bytes/issues/831">#831</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/2256e6dc3e82fc87600f2161658572b62bfdd214"><code>2256e6d</code></a> chore: add safety comments on unsafe blocks (<a href="https://redirect.github.com/tokio-rs/bytes/issues/827">#827</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/245adff079eb0cb1a706d35bab5f68b2d51919f6"><code>245adff</code></a> Pass vtable data by value (<a href="https://redirect.github.com/tokio-rs/bytes/issues/826">#826</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/00cc5ff2bd861f7b62603a268ec477c3cead5f1e"><code>00cc5ff</code></a> Implement <code>BytesMut::extend_from_within</code> (<a href="https://redirect.github.com/tokio-rs/bytes/issues/818">#818</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/5b79d316c92b88b836449f8956dc8430c370108b"><code>5b79d31</code></a> Merge tag 'v1.11.1'</li> <li><a href="https://github.com/tokio-rs/bytes/commit/804ee6d039bdea017f0f3faf91806c9771d7e555"><code>804ee6d</code></a> Make try_unsplit method public (<a href="https://redirect.github.com/tokio-rs/bytes/issues/746">#746</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/fd426ca0842cf9688def31d9ee4e027692ac6477"><code>fd426ca</code></a> Exclude development scripts from published package (<a href="https://redirect.github.com/tokio-rs/bytes/issues/810">#810</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/b4ed70daee06013a35a13832807e8f244d5419aa"><code>b4ed70d</code></a> Add test for copy_to_bytes() -> BytesMut avoiding clone (<a href="https://redirect.github.com/tokio-rs/bytes/issues/809">#809</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/94e42915a9a4bac7c2fbaa3d94f27bf0eb4dfb14"><code>94e4291</code></a> Document that <code>BytesMut::{reserve,try_reserve}</code> doesn't preserve unused capac...</li> <li><a href="https://github.com/tokio-rs/bytes/commit/acd1e0ffb8f076225759b8005d04f65ef77cccca"><code>acd1e0f</code></a> Fix <code>get_int</code> if <code>nbytes</code> is zero (<a href="https://redirect.github.com/tokio-rs/bytes/issues/806">#806</a>)</li> <li>See full diff in <a href="https://github.com/tokio-rs/bytes/compare/v1.11.1...v1.12.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
19eeaedc91 |
build(deps): bump rmcp from 1.7.0 to 1.8.0 (#18458)
Bumps [rmcp](https://github.com/modelcontextprotocol/rust-sdk) from 1.7.0 to 1.8.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/modelcontextprotocol/rust-sdk/releases">rmcp's releases</a>.</em></p> <blockquote> <h2>rmcp-macros-v1.8.0</h2> <h3>Added</h3> <ul> <li>deprecate roots, sampling, and logging (SEP-2577) (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/884">#884</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>strip and validate tool outputSchema and inputSchema (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/860">#860</a>)</li> <li>remove unnecessary fields from tools' inputSchema (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/856">#856</a>)</li> </ul> <h3>Other</h3> <ul> <li>refine mcpmate listing copy (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/885">#885</a>)</li> <li>added jilebi-mcp to the list of built with rmcp (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/861">#861</a>)</li> </ul> <h2>rmcp-v1.8.0</h2> <blockquote> <p>[!WARNING]</p> <h3>⚠️ Breaking Changes</h3> <p>Despite being a minor version bump, this release contains a <strong>source-breaking API change</strong> (it should have been <code>2.0.0</code>). If you depend on <code>rmcp = "1.7"</code>, Cargo will resolve to <code>1.8.0</code> automatically and your build may fail. Pin to <code>=1.7.x</code> if you are not ready to migrate.</p> <p><strong><code>Peer::peer_info()</code> return type changed</strong> (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/862">#862</a>):</p> <pre lang="diff"><code>- pub fn peer_info(&self) -> Option<&R::PeerInfo> + pub fn peer_info(&self) -> Option<Arc<R::PeerInfo>> </code></pre> <p>This was needed so peer info can be re-set on a duplicate <code>initialize</code> (it now lives behind an <code>RwLock</code>), which is why a borrow can no longer be returned.</p> <p><strong>Migration:</strong> field access still works through <code>Arc</code>'s <code>Deref</code>. If you need the old <code>&InitializeResult</code> (e.g. you bound the type explicitly), use <code>.as_deref()</code>:</p> <pre lang="rust"><code>// Before (1.7.x): info is &InitializeResult let info: Option<&InitializeResult> = client.peer_info(); <p>// After (1.8.0): info is Arc<InitializeResult> let info: Option<Arc<InitializeResult>> = client.peer_info();</p> <p>// To recover the old reference type: let info: Option<&InitializeResult> = client.peer_info().as_deref(); </code></pre></p> </blockquote> <h3>Added</h3> <ul> <li>standardize resource-not-found error code (SEP-2164) (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/899">#899</a>)</li> <li>validate OAuth authorization response issuer (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/896">#896</a>)</li> <li>specify OIDC application_type during dynamic client registration (SEP-837) (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/883">#883</a>)</li> <li>deprecate roots, sampling, and logging (SEP-2577) (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/pull/884">#884</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/25220361d5540715294c501c289d79de4bec2bfc"><code>2522036</code></a> chore: release v1.8.0 (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/issues/850">#850</a>)</li> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/6d020c9684876666dca3b8a6efe9b99ccba39c04"><code>6d020c9</code></a> fix(auth): preserve configured reqwest client (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/issues/917">#917</a>)</li> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/de898dd842016b84ba615070bd02499c214f94d7"><code>de898dd</code></a> Allow custom HTTP clients for OAuth (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/issues/908">#908</a>)</li> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/3c5ce2b0d78a5dee13457076c72971213829e670"><code>3c5ce2b</code></a> fix(auth): align OAuth metadata discovery ordering (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/issues/887">#887</a>)</li> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/443677ca313f84e8a64d368de9f6dd230ba2041f"><code>443677c</code></a> fix: align progress timeout token (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/issues/909">#909</a>)</li> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/4fd4986b6204e7bf580b23592a99bc338e2899e5"><code>4fd4986</code></a> fix(elicitation): preserve enumNames through ElicitationSchema serde round-tr...</li> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/bf71eb8b09dea9f808f8cf418d363ac56c7616c4"><code>bf71eb8</code></a> chore(deps): bump actions/checkout from 6 to 7 (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/issues/911">#911</a>)</li> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/5d00e20f2a44bd6697cdd11954dcdbc62861da7c"><code>5d00e20</code></a> Add progress-aware request timeout reset (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/issues/858">#858</a>)</li> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/4b82e41522a70468888c26944717201285d08563"><code>4b82e41</code></a> docs(server): document Err vs Ok(CallToolResult::error) visibility contract o...</li> <li><a href="https://github.com/modelcontextprotocol/rust-sdk/commit/95a8e961e0bbfa60e8264995487ee226449f6a79"><code>95a8e96</code></a> feat: standardize resource-not-found error code (SEP-2164) (<a href="https://redirect.github.com/modelcontextprotocol/rust-sdk/issues/899">#899</a>)</li> <li>Additional commits viewable in <a href="https://github.com/modelcontextprotocol/rust-sdk/compare/rmcp-v1.7.0...rmcp-v1.8.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
f495d8e966 |
build(deps): bump actions/checkout from 6 to 7 (#18457)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v7.0.0</h2> <h2>What's Changed</h2> <ul> <li>block checking out fork pr for pull_request_target and workflow_run by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li> <li>Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 in the minor-actions-dependencies group across 1 directory by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2458">actions/checkout#2458</a></li> <li>Bump flatted from 3.3.1 to 3.4.2 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2460">actions/checkout#2460</a></li> <li>Bump js-yaml from 4.1.0 to 4.2.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2461">actions/checkout#2461</a></li> <li>Bump <code>@actions/core</code> and <code>@actions/tool-cache</code> and Remove uuid by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2459">actions/checkout#2459</a></li> <li>upgrade module to esm and update dependencies by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2463">actions/checkout#2463</a></li> <li>Bump the minor-npm-dependencies group across 1 directory with 3 updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2462">actions/checkout#2462</a></li> <li>getting ready for checkout v7 release by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2464">actions/checkout#2464</a></li> <li>update error wording by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2467">actions/checkout#2467</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v6.0.3...v7.0.0">https://github.com/actions/checkout/compare/v6.0.3...v7.0.0</a></p> <h2>v6.0.3</h2> <h2>What's Changed</h2> <ul> <li>Update changelog by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2357">actions/checkout#2357</a></li> <li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li> <li>Fix checkout init for SHA-256 repositories by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li> <li>Update changelog for v6.0.3 by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2446">actions/checkout#2446</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/yaananth"><code>@yaananth</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v6...v6.0.3">https://github.com/actions/checkout/compare/v6...v6.0.3</a></p> <h2>v6.0.2</h2> <h2>What's Changed</h2> <ul> <li>Add orchestration_id to git user-agent when ACTIONS_ORCHESTRATION_ID is set by <a href="https://github.com/TingluoHuang"><code>@TingluoHuang</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2355">actions/checkout#2355</a></li> <li>Fix tag handling: preserve annotations and explicit fetch-tags by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v6.0.1...v6.0.2">https://github.com/actions/checkout/compare/v6.0.1...v6.0.2</a></p> <h2>v6.0.1</h2> <h2>What's Changed</h2> <ul> <li>Update all references from v5 and v4 to v6 by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2314">actions/checkout#2314</a></li> <li>Add worktree support for persist-credentials includeIf by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li> <li>Clarify v6 README by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2328">actions/checkout#2328</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v6...v6.0.1">https://github.com/actions/checkout/compare/v6...v6.0.1</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>v7.0.0</h2> <ul> <li>Block checking out fork PR for pull_request_target and workflow_run by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li> <li>Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 in the minor-actions-dependencies group across 1 directory by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2458">actions/checkout#2458</a></li> <li>Bump flatted from 3.3.1 to 3.4.2 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2460">actions/checkout#2460</a></li> <li>Bump js-yaml from 4.1.0 to 4.2.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2461">actions/checkout#2461</a></li> <li>Bump <code>@actions/core</code> and <code>@actions/tool-cache</code> and Remove uuid by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2459">actions/checkout#2459</a></li> <li>upgrade module to esm and update dependencies by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2463">actions/checkout#2463</a></li> <li>Bump the minor-npm-dependencies group across 1 directory with 3 updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2462">actions/checkout#2462</a></li> </ul> <h2>v6.0.3</h2> <ul> <li>Fix checkout init for SHA-256 repositories by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li> <li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li> </ul> <h2>v6.0.2</h2> <ul> <li>Fix tag handling: preserve annotations and explicit fetch-tags by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li> </ul> <h2>v6.0.1</h2> <ul> <li>Add worktree support for persist-credentials includeIf by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li> </ul> <h2>v6.0.0</h2> <ul> <li>Persist creds to a separate file by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2286">actions/checkout#2286</a></li> <li>Update README to include Node.js 24 support details and requirements by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2248">actions/checkout#2248</a></li> </ul> <h2>v5.0.1</h2> <ul> <li>Port v6 cleanup to v5 by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2301">actions/checkout#2301</a></li> </ul> <h2>v5.0.0</h2> <ul> <li>Update actions checkout to use node 24 by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2226">actions/checkout#2226</a></li> </ul> <h2>v4.3.1</h2> <ul> <li>Port v6 cleanup to v4 by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2305">actions/checkout#2305</a></li> </ul> <h2>v4.3.0</h2> <ul> <li>docs: update README.md by <a href="https://github.com/motss"><code>@motss</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1971">actions/checkout#1971</a></li> <li>Add internal repos for checking out multiple repositories by <a href="https://github.com/mouismail"><code>@mouismail</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1977">actions/checkout#1977</a></li> <li>Documentation update - add recommended permissions to Readme by <a href="https://github.com/benwells"><code>@benwells</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2043">actions/checkout#2043</a></li> <li>Adjust positioning of user email note and permissions heading by <a href="https://github.com/joshmgross"><code>@joshmgross</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2044">actions/checkout#2044</a></li> <li>Update README.md by <a href="https://github.com/nebuk89"><code>@nebuk89</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2194">actions/checkout#2194</a></li> <li>Update CODEOWNERS for actions by <a href="https://github.com/TingluoHuang"><code>@TingluoHuang</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2224">actions/checkout#2224</a></li> <li>Update package dependencies by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2236">actions/checkout#2236</a></li> </ul> <h2>v4.2.2</h2> <ul> <li><code>url-helper.ts</code> now leverages well-known environment variables by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1941">actions/checkout#1941</a></li> <li>Expand unit test coverage for <code>isGhes</code> by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1946">actions/checkout#1946</a></li> </ul> <h2>v4.2.1</h2> <ul> <li>Check out other refs/* by commit if provided, fall back to ref by <a href="https://github.com/orhantoy"><code>@orhantoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1924">actions/checkout#1924</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/checkout/commit/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0"><code>9c091bb</code></a> update error wording (<a href="https://redirect.github.com/actions/checkout/issues/2467">#2467</a>)</li> <li><a href="https://github.com/actions/checkout/commit/1044a6dea927916f2c38ba5aeffbc0a847b1221a"><code>1044a6d</code></a> getting ready for checkout v7 release (<a href="https://redirect.github.com/actions/checkout/issues/2464">#2464</a>)</li> <li><a href="https://github.com/actions/checkout/commit/f0282184c7ce73ab54c7e4ab5a617122602e575f"><code>f028218</code></a> Bump the minor-npm-dependencies group across 1 directory with 3 updates (<a href="https://redirect.github.com/actions/checkout/issues/2462">#2462</a>)</li> <li><a href="https://github.com/actions/checkout/commit/d914b262ffc244530a203ab40decab34c3abf34d"><code>d914b26</code></a> upgrade module to esm and update dependencies (<a href="https://redirect.github.com/actions/checkout/issues/2463">#2463</a>)</li> <li><a href="https://github.com/actions/checkout/commit/537c7ef99cef6e5ddb5e7ff5d16d14510503801d"><code>537c7ef</code></a> Bump <code>@actions/core</code> and <code>@actions/tool-cache</code> and Remove uuid (<a href="https://redirect.github.com/actions/checkout/issues/2459">#2459</a>)</li> <li><a href="https://github.com/actions/checkout/commit/130a169078a413d3a5246a393625e8e742f387f6"><code>130a169</code></a> Bump js-yaml from 4.1.0 to 4.2.0 (<a href="https://redirect.github.com/actions/checkout/issues/2461">#2461</a>)</li> <li><a href="https://github.com/actions/checkout/commit/7d09575332117a40b46e5e020664df234cd416f3"><code>7d09575</code></a> Bump flatted from 3.3.1 to 3.4.2 (<a href="https://redirect.github.com/actions/checkout/issues/2460">#2460</a>)</li> <li><a href="https://github.com/actions/checkout/commit/0f9f3aa320cb53abeb534aeb54048075d9697a0e"><code>0f9f3aa</code></a> Bump actions/publish-immutable-action (<a href="https://redirect.github.com/actions/checkout/issues/2458">#2458</a>)</li> <li><a href="https://github.com/actions/checkout/commit/f9e715a95fcd1f9253f77dd28f11e88d2d6460c7"><code>f9e715a</code></a> block checking out fork pr for pull_request_target and workflow_run (<a href="https://redirect.github.com/actions/checkout/issues/2454">#2454</a>)</li> <li>See full diff in <a href="https://github.com/actions/checkout/compare/v6...v7">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
4c18dea1f2 |
bump reedline to commit 31a91c3 (#18455)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description This PR bumps reedline to the latest commit 31a91c3 <!-- Explain what this PR does and why. This section is intentionally flexible: - Describe the problem - Explain your approach - Include technical details if relevant Good examples: - "In this PR, I fixed..." - "In this PR, I added support for..." - "This change improves X by..." Write as much or as little as needed for reviewers to understand your changes. --> ## User-facing changes (Release notes) <!-- This section is used (mostly as-is) for https://www.nushell.sh/blog/ Describe how Nushell behavior changes from a user's perspective. Do NOT describe internal Rust changes here. Write in a release note style, for example: - "Added support for..." - "Fixed an issue where..." - "Nushell now supports..." - "Improved performance of..." If your changes do NOT affect users (internal refactors, cleanup, etc.), just write: - "n/a" - "nan" - or similar This tells us the change should not appear in the changelog. Tips: - Focus on observable behavior - Include examples if helpful - Keep it concise You can: - Write a short paragraph (will appear as a bullet point), OR - Use headings (###) if your change needs more structure Avoid writing things like: - "In this PR, I refactored..." - "This updates internal code..." You may leave this blank until the PR is ready. --> ## Additional notes <!-- Optional. Examples: - fixes #123 - closes #456 - related #789 Anything else reviewers should know. Remove this section if not needed. --> |
||
|
|
56fcf3a304 |
build(bin,lsp): add lsp feature flag to executable (#18148)
<!-- Thanks for contributing to Nushell! Before submitting, please read the contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md This template helps reviewers understand your changes and allows us to generate high-quality release notes. --> ## Description <!-- This section is intentionally flexible: - Describe the problem - Explain your approach - Include technical details if relevant Good examples: - "In this PR, I fixed..." - "In this PR, I added support for..." - "This change improves X by..." Write as much or as little as needed for reviewers to understand your changes. --> Add `nu-lsp` feature flag to the executable. This change allows the Nushell LSP functionality to be feature gated to help slim down binary size for CI use cases. --- Here are some size comparisons: <img width="535" height="136" alt="image" src="https://github.com/user-attachments/assets/422781de-8573-4301-a1ba-034f5739f663" /> * `nushell-pre.tar.gz` is the tarball for `cargo build --release --no-default-features` on latest main ## User-facing changes (Release notes) <!-- This section is used (mostly as-is) for https://www.nushell.sh/blog/ Describe how Nushell behavior changes from a user's perspective. Do NOT describe internal Rust changes here. Write in a release note style, for example: - "Added support for..." - "Fixed an issue where..." - "Nushell now supports..." - "Improved performance of..." If your changes do NOT affect users (internal refactors, cleanup, etc.), just write: - "n/a" - "nan" - or similar This tells us the change should not appear in the changelog. Tips: - Focus on observable behavior - Include examples if helpful - Keep it concise You can: - Write a short paragraph (will appear as a bullet point), OR - Use headings (###) if your change needs more structure Avoid writing things like: - "In this PR, I refactored..." - "This updates internal code..." You may leave this blank until the PR is ready. --> Added support for feature gating LSP functionality. ## Additional notes <!-- Optional. Examples: - fixes #123 - closes #456 - related #789 Anything else reviewers should know. Remove this section if not needed. --> |