Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Runtime - [Breaking Change] Empty spread should not count as an … #361

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## CHANGELOG

### v0.9.0

* Fix: Runtime - \[Breaking Change\] Empty spread should not count as an empty string argument #354

### v0.8.20 (2023-06-15)

* Maintenance: Upgrade dependencies
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion duckscript/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "duckscript"
version = "0.7.5"
version = "0.8.0"
authors = ["Sagie Gur-Ari <[email protected]>"]
description = "Simple, extendable and embeddable scripting language."
license = "Apache-2.0"
Expand Down
6 changes: 5 additions & 1 deletion duckscript/src/expansion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ pub(crate) fn expand_by_wrapper(
}

if value_string.is_empty() {
ExpandedValue::None
if single_type {
ExpandedValue::None
} else {
ExpandedValue::Multi(vec![])
}
} else if single_type {
ExpandedValue::Single(value_string.to_string())
} else {
Expand Down
8 changes: 4 additions & 4 deletions duckscript_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "duckscript_cli"
version = "0.8.20"
version = "0.9.0"
authors = ["Sagie Gur-Ari <[email protected]>"]
description = "The duckscript command line executable."
license = "Apache-2.0"
Expand All @@ -27,13 +27,13 @@ name = "duck"
path = "src/main.rs"

[dependencies]
duckscript = { version = "^0.7.5", path = "../duckscript" }
duckscriptsdk = { version = "^0.8.20", path = "../duckscript_sdk", default-features = false }
duckscript = { version = "^0.8.0", path = "../duckscript" }
duckscriptsdk = { version = "^0.9.0", path = "../duckscript_sdk", default-features = false }

[features]
tls-rustls = ["duckscriptsdk/tls-rustls"]
tls-native = ["duckscriptsdk/tls-native"]
tls = ["tls-rustls"] # alias for backward compatibility
tls = ["tls-rustls"] # alias for backward compatibility
default = ["tls-rustls"]

[badges.codecov]
Expand Down
6 changes: 3 additions & 3 deletions duckscript_sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "duckscriptsdk"
version = "0.8.20"
version = "0.9.0"
authors = ["Sagie Gur-Ari <[email protected]>"]
description = "The duckscript SDK."
license = "Apache-2.0"
Expand Down Expand Up @@ -29,7 +29,7 @@ attohttpc = { version = "^0.25", default-features = false, features = [
base64 = "^0.21"
cfg-if = "^1"
colored = "^2"
duckscript = { version = "^0.7.5", path = "../duckscript" }
duckscript = { version = "^0.8.0", path = "../duckscript" }
evalexpr = "^11"
fs_extra = "^1"
fsio = { version = "^0.4", features = ["temp-path"] }
Expand Down Expand Up @@ -59,7 +59,7 @@ uname = "^0.1"
[features]
tls-rustls = ["attohttpc/rustls"]
tls-native = ["attohttpc/tls"]
tls = ["tls-rustls"] # alias for backward compatibility
tls = ["tls-rustls"] # alias for backward compatibility
default = ["tls-rustls"]

[badges.codecov]
Expand Down