Merge branch 'main' into add_agg_by_command

This commit is contained in:
Darren Schroeder
2024-11-14 12:37:45 -06:00
51 changed files with 329 additions and 281 deletions

View File

@ -5,27 +5,27 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-cli"
edition = "2021"
license = "MIT"
name = "nu-cli"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
[dev-dependencies]
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.99.2" }
nu-command = { path = "../nu-command", version = "0.99.2" }
nu-test-support = { path = "../nu-test-support", version = "0.99.2" }
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.100.1" }
nu-command = { path = "../nu-command", version = "0.100.1" }
nu-test-support = { path = "../nu-test-support", version = "0.100.1" }
rstest = { workspace = true, default-features = false }
tempfile = { workspace = true }
[dependencies]
nu-cmd-base = { path = "../nu-cmd-base", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-parser = { path = "../nu-parser", version = "0.99.2" }
nu-plugin-engine = { path = "../nu-plugin-engine", version = "0.99.2", optional = true }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-color-config = { path = "../nu-color-config", version = "0.99.2" }
nu-cmd-base = { path = "../nu-cmd-base", version = "0.100.1" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-parser = { path = "../nu-parser", version = "0.100.1" }
nu-plugin-engine = { path = "../nu-plugin-engine", version = "0.100.1", optional = true }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
nu-color-config = { path = "../nu-color-config", version = "0.100.1" }
nu-ansi-term = { workspace = true }
reedline = { workspace = true, features = ["bashisms", "sqlite"] }

View File

@ -5,7 +5,7 @@ edition = "2021"
license = "MIT"
name = "nu-cmd-base"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-cmd-base"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -13,10 +13,10 @@ version = "0.99.2"
workspace = true
[dependencies]
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-parser = { path = "../nu-parser", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-parser = { path = "../nu-parser", version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
indexmap = { workspace = true }
miette = { workspace = true }

View File

@ -5,7 +5,7 @@ edition = "2021"
license = "MIT"
name = "nu-cmd-extra"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-cmd-extra"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -16,13 +16,13 @@ bench = false
workspace = true
[dependencies]
nu-cmd-base = { path = "../nu-cmd-base", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-json = { version = "0.99.2", path = "../nu-json" }
nu-parser = { path = "../nu-parser", version = "0.99.2" }
nu-pretty-hex = { version = "0.99.2", path = "../nu-pretty-hex" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-cmd-base = { path = "../nu-cmd-base", version = "0.100.1" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-json = { version = "0.100.1", path = "../nu-json" }
nu-parser = { path = "../nu-parser", version = "0.100.1" }
nu-pretty-hex = { version = "0.100.1", path = "../nu-pretty-hex" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
# Potential dependencies for extras
heck = { workspace = true }
@ -36,6 +36,6 @@ v_htmlescape = { workspace = true }
itertools = { workspace = true }
[dev-dependencies]
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.99.2" }
nu-command = { path = "../nu-command", version = "0.99.2" }
nu-test-support = { path = "../nu-test-support", version = "0.99.2" }
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.100.1" }
nu-command = { path = "../nu-command", version = "0.100.1" }
nu-test-support = { path = "../nu-test-support", version = "0.100.1" }

View File

@ -6,7 +6,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-cmd-lang"
edition = "2021"
license = "MIT"
name = "nu-cmd-lang"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -15,10 +15,10 @@ bench = false
workspace = true
[dependencies]
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-parser = { path = "../nu-parser", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-parser = { path = "../nu-parser", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
itertools = { workspace = true }
shadow-rs = { version = "0.35", default-features = false }

View File

@ -5,7 +5,7 @@ edition = "2021"
license = "MIT"
name = "nu-cmd-plugin"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-cmd-plugin"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -13,10 +13,10 @@ version = "0.99.2"
workspace = true
[dependencies]
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2", features = ["plugin"] }
nu-plugin-engine = { path = "../nu-plugin-engine", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1", features = ["plugin"] }
nu-plugin-engine = { path = "../nu-plugin-engine", version = "0.100.1" }
itertools = { workspace = true }

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-color-confi
edition = "2021"
license = "MIT"
name = "nu-color-config"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -14,12 +14,12 @@ bench = false
workspace = true
[dependencies]
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-json = { path = "../nu-json", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-json = { path = "../nu-json", version = "0.100.1" }
nu-ansi-term = { workspace = true }
serde = { workspace = true, features = ["derive"] }
[dev-dependencies]
nu-test-support = { path = "../nu-test-support", version = "0.99.2" }
nu-test-support = { path = "../nu-test-support", version = "0.100.1" }

View File

@ -5,7 +5,7 @@ edition = "2021"
license = "MIT"
name = "nu-command"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-command"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -16,21 +16,21 @@ bench = false
workspace = true
[dependencies]
nu-cmd-base = { path = "../nu-cmd-base", version = "0.99.2" }
nu-color-config = { path = "../nu-color-config", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-glob = { path = "../nu-glob", version = "0.99.2" }
nu-json = { path = "../nu-json", version = "0.99.2" }
nu-parser = { path = "../nu-parser", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-pretty-hex = { path = "../nu-pretty-hex", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-system = { path = "../nu-system", version = "0.99.2" }
nu-table = { path = "../nu-table", version = "0.99.2" }
nu-term-grid = { path = "../nu-term-grid", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-cmd-base = { path = "../nu-cmd-base", version = "0.100.1" }
nu-color-config = { path = "../nu-color-config", version = "0.100.1" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-glob = { path = "../nu-glob", version = "0.100.1" }
nu-json = { path = "../nu-json", version = "0.100.1" }
nu-parser = { path = "../nu-parser", version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-pretty-hex = { path = "../nu-pretty-hex", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-system = { path = "../nu-system", version = "0.100.1" }
nu-table = { path = "../nu-table", version = "0.100.1" }
nu-term-grid = { path = "../nu-term-grid", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
nu-ansi-term = { workspace = true }
nuon = { path = "../nuon", version = "0.99.2" }
nuon = { path = "../nuon", version = "0.100.1" }
alphanumeric-sort = { workspace = true }
base64 = { workspace = true }
@ -139,8 +139,8 @@ sqlite = ["rusqlite"]
trash-support = ["trash"]
[dev-dependencies]
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.99.2" }
nu-test-support = { path = "../nu-test-support", version = "0.99.2" }
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.100.1" }
nu-test-support = { path = "../nu-test-support", version = "0.100.1" }
dirs = { workspace = true }
mockito = { workspace = true, default-features = false }

View File

@ -128,8 +128,13 @@ impl Command for SubCommand {
result: None,
},
Example {
description: "Upload a file to example.com",
example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.mp3 | into binary) }",
description: "Upload a binary file to example.com",
example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.mp3) }",
result: None,
},
Example {
description: "Convert a text file into binary and upload it to example.com",
example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.txt | into binary) }",
result: None,
},
]

View File

@ -141,3 +141,10 @@ fn mut_raw_string() {
let actual = nu!(r#"mut x = r#'abc'#; $x"#);
assert_eq!(actual.out, "abc");
}
#[test]
fn def_should_not_mutate_mut() {
let actual = nu!("mut a = 3; def foo [] { $a = 4}");
assert!(actual.err.contains("capture of mutable variable"));
assert!(!actual.status.success())
}

View File

@ -5,7 +5,7 @@ edition = "2021"
license = "MIT"
name = "nu-derive-value"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-derive-value"
version = "0.99.2"
version = "0.100.1"
[lib]
proc-macro = true

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-engine"
edition = "2021"
license = "MIT"
name = "nu-engine"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -14,10 +14,10 @@ bench = false
workspace = true
[dependencies]
nu-protocol = { path = "../nu-protocol", features = ["plugin"], version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-glob = { path = "../nu-glob", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", features = ["plugin"], version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-glob = { path = "../nu-glob", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
log = { workspace = true }
terminal_size = { workspace = true }

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-explore"
edition = "2021"
license = "MIT"
name = "nu-explore"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -14,16 +14,16 @@ bench = false
workspace = true
[dependencies]
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-parser = { path = "../nu-parser", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-color-config = { path = "../nu-color-config", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-table = { path = "../nu-table", version = "0.99.2" }
nu-json = { path = "../nu-json", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-parser = { path = "../nu-parser", version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-color-config = { path = "../nu-color-config", version = "0.100.1" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-table = { path = "../nu-table", version = "0.100.1" }
nu-json = { path = "../nu-json", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
nu-ansi-term = { workspace = true }
nu-pretty-hex = { path = "../nu-pretty-hex", version = "0.99.2" }
nu-pretty-hex = { path = "../nu-pretty-hex", version = "0.100.1" }
anyhow = { workspace = true }
log = { workspace = true }

View File

@ -1,6 +1,6 @@
[package]
name = "nu-glob"
version = "0.99.2"
version = "0.100.1"
authors = ["The Nushell Project Developers", "The Rust Project Developers"]
license = "MIT/Apache-2.0"
description = """

View File

@ -1144,18 +1144,28 @@ mod test {
use std::io;
let mut iter = glob("/root/*").unwrap();
// Skip test if running with permissions to read /root
if std::fs::read_dir("/root/").is_err() {
// GlobErrors shouldn't halt iteration
let next = iter.next();
assert!(next.is_some());
match std::fs::read_dir("/root/") {
// skip if running with permissions to read /root
Ok(_) => {}
let err = next.unwrap();
assert!(err.is_err());
// skip if /root doesn't exist
Err(err) if err.kind() == io::ErrorKind::NotFound => {
assert!(iter.count() == 0);
}
let err = err.err().unwrap();
assert!(err.path() == Path::new("/root"));
assert!(err.error().kind() == io::ErrorKind::PermissionDenied);
// should otherwise return a single match with permission error
Err(_) => {
// GlobErrors shouldn't halt iteration
let next = iter.next();
assert!(next.is_some());
let err = next.unwrap();
assert!(err.is_err());
let err = err.err().unwrap();
assert!(err.path() == Path::new("/root"));
assert!(err.error().kind() == io::ErrorKind::PermissionDenied);
}
}
}

View File

@ -8,7 +8,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-json"
edition = "2021"
license = "MIT"
name = "nu-json"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -26,8 +26,8 @@ serde = { workspace = true }
serde_json = { workspace = true }
[dev-dependencies]
nu-test-support = { path = "../nu-test-support", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-test-support = { path = "../nu-test-support", version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
serde_json = "1.0"
fancy-regex = "0.14.0"

View File

@ -3,14 +3,14 @@ authors = ["The Nushell Project Developers"]
description = "Nushell's integrated LSP server"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-lsp"
name = "nu-lsp"
version = "0.99.2"
version = "0.100.1"
edition = "2021"
license = "MIT"
[dependencies]
nu-cli = { path = "../nu-cli", version = "0.99.2" }
nu-parser = { path = "../nu-parser", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-cli = { path = "../nu-cli", version = "0.100.1" }
nu-parser = { path = "../nu-parser", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
reedline = { workspace = true }
@ -23,9 +23,9 @@ serde = { workspace = true }
serde_json = { workspace = true }
[dev-dependencies]
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.99.2" }
nu-command = { path = "../nu-command", version = "0.99.2" }
nu-test-support = { path = "../nu-test-support", version = "0.99.2" }
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.100.1" }
nu-command = { path = "../nu-command", version = "0.100.1" }
nu-test-support = { path = "../nu-test-support", version = "0.100.1" }
assert-json-diff = "2.0"

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-parser"
edition = "2021"
license = "MIT"
name = "nu-parser"
version = "0.99.2"
version = "0.100.1"
exclude = ["/fuzz"]
[lib]
@ -15,11 +15,11 @@ bench = false
workspace = true
[dependencies]
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-plugin-engine = { path = "../nu-plugin-engine", optional = true, version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-plugin-engine = { path = "../nu-plugin-engine", optional = true, version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
bytesize = { workspace = true }
chrono = { default-features = false, features = ['std'], workspace = true }

View File

@ -88,6 +88,7 @@ pub fn math_result_type(
(Type::Float, Type::Number) => (Type::Number, None),
(Type::String, Type::String) => (Type::String, None),
(Type::Date, Type::Duration) => (Type::Date, None),
(Type::Duration, Type::Date) => (Type::Date, None),
(Type::Duration, Type::Duration) => (Type::Duration, None),
(Type::Filesize, Type::Filesize) => (Type::Filesize, None),

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-path"
edition = "2021"
license = "MIT"
name = "nu-path"
version = "0.99.2"
version = "0.100.1"
exclude = ["/fuzz"]
[lib]

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-plugin-core
edition = "2021"
license = "MIT"
name = "nu-plugin-core"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -14,8 +14,8 @@ bench = false
workspace = true
[dependencies]
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-plugin-protocol = { path = "../nu-plugin-protocol", version = "0.99.2", default-features = false }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-plugin-protocol = { path = "../nu-plugin-protocol", version = "0.100.1", default-features = false }
rmp-serde = { workspace = true }
serde = { workspace = true }

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-plugin-engi
edition = "2021"
license = "MIT"
name = "nu-plugin-engine"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -14,12 +14,12 @@ bench = false
workspace = true
[dependencies]
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-system = { path = "../nu-system", version = "0.99.2" }
nu-plugin-protocol = { path = "../nu-plugin-protocol", version = "0.99.2" }
nu-plugin-core = { path = "../nu-plugin-core", version = "0.99.2", default-features = false }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-system = { path = "../nu-system", version = "0.100.1" }
nu-plugin-protocol = { path = "../nu-plugin-protocol", version = "0.100.1" }
nu-plugin-core = { path = "../nu-plugin-core", version = "0.100.1", default-features = false }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
serde = { workspace = true }
log = { workspace = true }

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-plugin-prot
edition = "2021"
license = "MIT"
name = "nu-plugin-protocol"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -14,8 +14,8 @@ bench = false
workspace = true
[dependencies]
nu-protocol = { path = "../nu-protocol", version = "0.99.2", features = ["plugin"] }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1", features = ["plugin"] }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
rmp-serde = { workspace = true }
serde = { workspace = true, features = ["derive"] }

View File

@ -1,6 +1,6 @@
[package]
name = "nu-plugin-test-support"
version = "0.99.2"
version = "0.100.1"
edition = "2021"
license = "MIT"
description = "Testing support for Nushell plugins"
@ -15,14 +15,14 @@ workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
nu-engine = { path = "../nu-engine", version = "0.99.2", features = ["plugin"] }
nu-protocol = { path = "../nu-protocol", version = "0.99.2", features = ["plugin"] }
nu-parser = { path = "../nu-parser", version = "0.99.2", features = ["plugin"] }
nu-plugin = { path = "../nu-plugin", version = "0.99.2" }
nu-plugin-core = { path = "../nu-plugin-core", version = "0.99.2" }
nu-plugin-engine = { path = "../nu-plugin-engine", version = "0.99.2" }
nu-plugin-protocol = { path = "../nu-plugin-protocol", version = "0.99.2" }
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.100.1", features = ["plugin"] }
nu-protocol = { path = "../nu-protocol", version = "0.100.1", features = ["plugin"] }
nu-parser = { path = "../nu-parser", version = "0.100.1", features = ["plugin"] }
nu-plugin = { path = "../nu-plugin", version = "0.100.1" }
nu-plugin-core = { path = "../nu-plugin-core", version = "0.100.1" }
nu-plugin-engine = { path = "../nu-plugin-engine", version = "0.100.1" }
nu-plugin-protocol = { path = "../nu-plugin-protocol", version = "0.100.1" }
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.100.1" }
nu-ansi-term = { workspace = true }
similar = "2.6"

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-plugin"
edition = "2021"
license = "MIT"
name = "nu-plugin"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -14,11 +14,11 @@ bench = false
workspace = true
[dependencies]
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-plugin-protocol = { path = "../nu-plugin-protocol", version = "0.99.2" }
nu-plugin-core = { path = "../nu-plugin-core", version = "0.99.2", default-features = false }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-plugin-protocol = { path = "../nu-plugin-protocol", version = "0.100.1" }
nu-plugin-core = { path = "../nu-plugin-core", version = "0.100.1", default-features = false }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
log = { workspace = true }
thiserror = "1.0"

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-pretty-hex"
edition = "2021"
license = "MIT"
name = "nu-pretty-hex"
version = "0.99.2"
version = "0.100.1"
[lib]
doctest = false

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-protocol"
edition = "2021"
license = "MIT"
name = "nu-protocol"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -16,10 +16,10 @@ bench = false
workspace = true
[dependencies]
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-system = { path = "../nu-system", version = "0.99.2" }
nu-derive-value = { path = "../nu-derive-value", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-system = { path = "../nu-system", version = "0.100.1" }
nu-derive-value = { path = "../nu-derive-value", version = "0.100.1" }
brotli = { workspace = true, optional = true }
bytes = { workspace = true }
@ -58,8 +58,8 @@ plugin = [
serde_json = { workspace = true }
strum = "0.26"
strum_macros = "0.26"
nu-test-support = { path = "../nu-test-support", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-test-support = { path = "../nu-test-support", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
pretty_assertions = { workspace = true }
rstest = { workspace = true }
tempfile = { workspace = true }

View File

@ -2444,6 +2444,17 @@ impl Value {
Ok(Value::string(lhs.to_string() + rhs, span))
}
(Value::Duration { val: lhs, .. }, Value::Date { val: rhs, .. }) => {
if let Some(val) = rhs.checked_add_signed(chrono::Duration::nanoseconds(*lhs)) {
Ok(Value::date(val, span))
} else {
Err(ShellError::OperatorOverflow {
msg: "addition operation overflowed".into(),
span,
help: None,
})
}
}
(Value::Date { val: lhs, .. }, Value::Duration { val: rhs, .. }) => {
if let Some(val) = lhs.checked_add_signed(chrono::Duration::nanoseconds(*rhs)) {
Ok(Value::date(val, span))

View File

@ -5,12 +5,12 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-std"
edition = "2021"
license = "MIT"
name = "nu-std"
version = "0.99.2"
version = "0.100.1"
[dependencies]
nu-parser = { version = "0.99.2", path = "../nu-parser" }
nu-protocol = { version = "0.99.2", path = "../nu-protocol" }
nu-engine = { version = "0.99.2", path = "../nu-engine" }
nu-parser = { version = "0.100.1", path = "../nu-parser" }
nu-protocol = { version = "0.100.1", path = "../nu-protocol" }
nu-engine = { version = "0.100.1", path = "../nu-engine" }
miette = { workspace = true, features = ["fancy-no-backtrace"] }
log = "0.4"

View File

@ -3,7 +3,7 @@ authors = ["The Nushell Project Developers", "procs creators"]
description = "Nushell system querying"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-system"
name = "nu-system"
version = "0.99.2"
version = "0.100.1"
edition = "2021"
license = "MIT"

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-table"
edition = "2021"
license = "MIT"
name = "nu-table"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -14,14 +14,14 @@ bench = false
workspace = true
[dependencies]
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-color-config = { path = "../nu-color-config", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-color-config = { path = "../nu-color-config", version = "0.100.1" }
nu-ansi-term = { workspace = true }
fancy-regex = { workspace = true }
tabled = { workspace = true, features = ["ansi"], default-features = false }
terminal_size = { workspace = true }
[dev-dependencies]
# nu-test-support = { path="../nu-test-support", version = "0.99.2" }
# nu-test-support = { path="../nu-test-support", version = "0.100.1" }

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-term-grid"
edition = "2021"
license = "MIT"
name = "nu-term-grid"
version = "0.99.2"
version = "0.100.1"
[lib]
bench = false
@ -14,6 +14,6 @@ bench = false
workspace = true
[dependencies]
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
unicode-width = { workspace = true }

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-test-suppor
edition = "2021"
license = "MIT"
name = "nu-test-support"
version = "0.99.2"
version = "0.100.1"
[lib]
doctest = false
@ -15,9 +15,9 @@ bench = false
workspace = true
[dependencies]
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-glob = { path = "../nu-glob", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-glob = { path = "../nu-glob", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
num-format = { workspace = true }
which = { workspace = true }

View File

@ -5,7 +5,7 @@ edition = "2021"
license = "MIT"
name = "nu-utils"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-utils"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]

View File

@ -1,6 +1,6 @@
# Nushell Config File
#
# version = "0.99.2"
# version = "0.100.1"
# For more information on defining custom themes, see
# https://www.nushell.sh/book/coloring_and_theming.html

View File

@ -1,6 +1,6 @@
# Nushell Environment Config File
#
# version = "0.99.2"
# version = "0.100.1"
def create_left_prompt [] {
let dir = match (do --ignore-shell-errors { $env.PWD | path relative-to $nu.home-path }) {

View File

@ -10,10 +10,10 @@ name = "nu_plugin_custom_values"
bench = false
[dependencies]
nu-plugin = { path = "../nu-plugin", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2", features = ["plugin"] }
nu-plugin = { path = "../nu-plugin", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1", features = ["plugin"] }
serde = { workspace = true }
typetag = "0.2"
[dev-dependencies]
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.99.2" }
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.100.1" }

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_exam
edition = "2021"
license = "MIT"
name = "nu_plugin_example"
version = "0.99.2"
version = "0.100.1"
[[bin]]
name = "nu_plugin_example"
@ -15,9 +15,9 @@ bench = false
bench = false
[dependencies]
nu-plugin = { path = "../nu-plugin", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2", features = ["plugin"] }
nu-plugin = { path = "../nu-plugin", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1", features = ["plugin"] }
[dev-dependencies]
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.99.2" }
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.99.2" }
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.100.1" }
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.100.1" }

View File

@ -5,12 +5,12 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_form
edition = "2021"
license = "MIT"
name = "nu_plugin_formats"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
nu-plugin = { path = "../nu-plugin", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2", features = ["plugin"] }
nu-plugin = { path = "../nu-plugin", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1", features = ["plugin"] }
indexmap = { workspace = true }
eml-parser = "0.1"
@ -20,4 +20,4 @@ plist = "1.7"
chrono = "0.4"
[dev-dependencies]
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.99.2" }
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.100.1" }

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_gsta
edition = "2021"
license = "MIT"
name = "nu_plugin_gstat"
version = "0.99.2"
version = "0.100.1"
[lib]
doctest = false
@ -16,7 +16,7 @@ name = "nu_plugin_gstat"
bench = false
[dependencies]
nu-plugin = { path = "../nu-plugin", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-plugin = { path = "../nu-plugin", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
git2 = "0.19"

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_inc"
edition = "2021"
license = "MIT"
name = "nu_plugin_inc"
version = "0.99.2"
version = "0.100.1"
[lib]
doctest = false
@ -16,7 +16,7 @@ name = "nu_plugin_inc"
bench = false
[dependencies]
nu-plugin = { path = "../nu-plugin", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2", features = ["plugin"] }
nu-plugin = { path = "../nu-plugin", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1", features = ["plugin"] }
semver = "1.0"

View File

@ -6,7 +6,7 @@
# it also allows us to test the plugin interface with something manually implemented in a scripting
# language without adding any extra dependencies to our tests.
const NUSHELL_VERSION = "0.99.2"
const NUSHELL_VERSION = "0.100.1"
const PLUGIN_VERSION = "0.1.1" # bump if you change commands!
def main [--stdio] {

View File

@ -5,7 +5,7 @@ edition = "2021"
license = "MIT"
name = "nu_plugin_polars"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_polars"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -17,10 +17,10 @@ bench = false
bench = false
[dependencies]
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-plugin = { path = "../nu-plugin", version = "0.99.2" }
nu-path = { path = "../nu-path", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-plugin = { path = "../nu-plugin", version = "0.100.1" }
nu-path = { path = "../nu-path", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
# Potential dependencies for extras
chrono = { workspace = true, features = ["std", "unstable-locales"], default-features = false }
@ -84,9 +84,9 @@ optional = false
version = "0.43"
[dev-dependencies]
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-parser = { path = "../nu-parser", version = "0.99.2" }
nu-command = { path = "../nu-command", version = "0.99.2" }
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.99.2" }
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.100.1" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-parser = { path = "../nu-parser", version = "0.100.1" }
nu-command = { path = "../nu-command", version = "0.100.1" }
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.100.1" }
tempfile.workspace = true

View File

@ -27,7 +27,7 @@ import sys
import json
NUSHELL_VERSION = "0.99.2"
NUSHELL_VERSION = "0.100.1"
PLUGIN_VERSION = "0.1.1" # bump if you change commands!

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_quer
edition = "2021"
license = "MIT"
name = "nu_plugin_query"
version = "0.99.2"
version = "0.100.1"
[lib]
doctest = false
@ -16,8 +16,8 @@ name = "nu_plugin_query"
bench = false
[dependencies]
nu-plugin = { path = "../nu-plugin", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-plugin = { path = "../nu-plugin", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
gjson = "0.8"
scraper = { default-features = false, version = "0.21" }

View File

@ -5,7 +5,7 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_stre
edition = "2021"
license = "MIT"
name = "nu_plugin_stress_internals"
version = "0.99.2"
version = "0.100.1"
[[bin]]
name = "nu_plugin_stress_internals"

View File

@ -5,15 +5,15 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nuon"
edition = "2021"
license = "MIT"
name = "nuon"
version = "0.99.2"
version = "0.100.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
nu-parser = { path = "../nu-parser", version = "0.99.2" }
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
nu-engine = { path = "../nu-engine", version = "0.99.2" }
nu-utils = { path = "../nu-utils", version = "0.99.2" }
nu-parser = { path = "../nu-parser", version = "0.100.1" }
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
nu-engine = { path = "../nu-engine", version = "0.100.1" }
nu-utils = { path = "../nu-utils", version = "0.100.1" }
[dev-dependencies]
chrono = { workspace = true }