diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fd7cb1f..cc82a5b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,40 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [v1.9.0](https://github.com/rash-sh/rash/tree/v1.9.0) - 2023-09-07 -### To be removed in v1.9.0 +### Added + +* task: Add `vars` optional field + +### Build + +* Upgrade to Rust 1.70 and fix new clippy warnings +* Update compatible versions +* Upgrade incompatible versions +* Add memfd feature to ipc-channel +* Disable memfd for ipc-channel +* Set resolver = "2" + +### Documentation + +* Add dotfile description +* Fix readme typo + +### Fixed + +* ci: Update workers to latest versions +* ci: Upgrade cache action version to v2 +* ci: Update to node16 github actions +* ci: Replace `actions-rs/toolchain` with `dtolnay/rust-toolchain` +* ci: Change dtolnay/rust-toolchaint to stable +* ci: Remove container and downgrade to ubuntu 20 +* core: Improve docopt performance prefiltering possible options +* core: Handle docopt edge cases with optiona arguments +* task: Improve error message when become fails +* Cargo clippy errors + +### Removed * Command module: `transfer_pid_1` (use `transfer_pid` instead) diff --git a/Cargo.lock b/Cargo.lock index df52b036..57936753 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -840,7 +840,7 @@ dependencies = [ [[package]] name = "mdbook_rash" -version = "1.8.6" +version = "1.9.0" dependencies = [ "chrono", "clap", @@ -1077,7 +1077,7 @@ dependencies = [ [[package]] name = "rash_core" -version = "1.8.6" +version = "1.9.0" dependencies = [ "byte-unit", "cargo-husky", @@ -1110,7 +1110,7 @@ dependencies = [ [[package]] name = "rash_derive" -version = "1.8.6" +version = "1.9.0" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 810d41e7..df95b345 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,9 +8,9 @@ resolver = "2" [workspace.package] -version = "1.8.6" +version = "1.9.0" authors = ["Pando85 "] -rust-version = "1.70" +rust-version = "1.72" edition = "2021" license-file = "LICENSE" homepage = "https://rash.sh" diff --git a/mdbook_rash/Cargo.toml b/mdbook_rash/Cargo.toml index 83547de5..74250943 100644 --- a/mdbook_rash/Cargo.toml +++ b/mdbook_rash/Cargo.toml @@ -15,7 +15,7 @@ path = "src/bin/mdbook-rash.rs" doc = false [dependencies] -rash_core = { path = "../rash_core", features = ["docs"], version = "1.8.6" } +rash_core = { path = "../rash_core", features = ["docs"], version = "1.9.0" } lazy_static.workspace = true log.workspace = true regex.workspace = true diff --git a/rash_core/Cargo.toml b/rash_core/Cargo.toml index a7e3473d..0d9fe955 100644 --- a/rash_core/Cargo.toml +++ b/rash_core/Cargo.toml @@ -21,7 +21,7 @@ path = "src/bin/rash.rs" docs = ["rash_derive/docs", "schemars"] [dependencies] -rash_derive = { path = "../rash_derive", version = "1.8.6" } +rash_derive = { path = "../rash_derive", version = "1.9.0" } lazy_static.workspace = true log.workspace = true regex.workspace = true diff --git a/rash_core/src/modules/command.rs b/rash_core/src/modules/command.rs index c0792562..28155069 100644 --- a/rash_core/src/modules/command.rs +++ b/rash_core/src/modules/command.rs @@ -58,9 +58,6 @@ pub struct Params { pub chdir: Option, #[serde(flatten)] pub required: Required, - /// [DEPRECATED] Execute command as PID 1. - /// Note: from this point on, your rash script execution is transferred to the command - pub transfer_pid_1: Option, /// Execute command as PID 1. /// Note: from this point on, your rash script execution is transferred to the command pub transfer_pid: Option, @@ -118,17 +115,13 @@ impl Module for Command { Some(s) => Params { chdir: None, required: Required::Cmd(s.to_string()), - transfer_pid_1: None, transfer_pid: None, }, None => parse_params(optional_params)?, }; match params.transfer_pid { - Some(true) => { - warn!("transfer_pid_1 option will be removed in 1.9.0"); - exec_transferring_pid(params) - } + Some(true) => exec_transferring_pid(params), None | Some(false) => match params.transfer_pid { Some(true) => exec_transferring_pid(params), None | Some(false) => { @@ -222,7 +215,6 @@ mod tests { Params { chdir: None, required: Required::Cmd("ls".to_string()), - transfer_pid_1: None, transfer_pid: Some(false), } );