Skip to content

Commit

Permalink
Upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Oct 25, 2022
1 parent 1d829c3 commit 85c4253
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 63 deletions.
116 changes: 65 additions & 51 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ path = './benches/criterion.rs'

[package]
name = 'xplr'
version = '0.19.4'
version = '0.20.0-beta.0'
authors = ['Arijit Basu <[email protected]>']
edition = '2021'
description = 'A hackable, minimal, fast TUI file explorer'
Expand All @@ -22,11 +22,11 @@ categories = ['command-line-interface', 'command-line-utilities']
include = ['src/**/*', 'docs/en/src/**/*', 'LICENSE', 'README.md']

[dependencies]
libc = "0.2.135"
libc = "0.2.136"
humansize = "2.1.0"
natord = "1.0.9"
anyhow = "1.0.65"
serde_yaml = "0.9.13"
anyhow = "1.0.66"
serde_yaml = "0.9.14"
crossterm = "0.25.0"
dirs = "4.0.0"
ansi-to-tui = "2.0.0"
Expand All @@ -49,7 +49,7 @@ default-features = false
features = ['crossterm', 'serde']

[dependencies.serde]
version = "1.0.145"
version = "1.0.147"
features = ['derive']

[dependencies.chrono]
Expand All @@ -70,7 +70,7 @@ features = ['serde']

[dev-dependencies]
criterion = "0.4.0"
assert_cmd = "2.0.4"
assert_cmd = "2.0.5"

[profile.release]
lto = true
Expand Down
18 changes: 18 additions & 0 deletions docs/en/src/upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@ compatibility.

### Instructions

#### [v0.19.4][47] -> v0.20.0-beta.0

- BREAKING: xplr shell (`:!`) will default to null (`\0`) delimited pipes, as
opposed to newline (`\n`) delimited ones (i.e. will use `Call0` instead of
`Call`).
- Use new messages for safer file path handling (`\0` delimited):
- Call0
- CallSilently0
- BashExec0
- BashExecSilently0
- Use new sub-commands for safer message passing:
- `-m FORMAT [ARGUMENT]...` / `--pipe-msg-in FORMAT [ARGUMENT]...`
- `-M FORMAT [ARGUMENT]...` / `--print-msg-in FORMAT [ARGUMENT]...`
Where FORMAT is a YAML string that may contain `%s`, `%q` and `%%`
placeholders and ARGUMENT is the value per placeholder. See `init.lua`.
- Handling and displaying file paths with newline (`\n`) characters are now
supported.

#### [v0.18.0][46] -> [v0.19.4][47]

- BREAKING: The builtin modes cannot be accessed using space separated names
Expand Down
12 changes: 6 additions & 6 deletions src/lua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,24 +146,24 @@ mod tests {
assert!(check_version(VERSION, "foo path").is_ok());

// Current release if OK
assert!(check_version("0.19.4", "foo path").is_ok());
assert!(check_version("0.20.0-beta.0", "foo path").is_ok());

// Prev major release is ERR
// - Not yet

// Prev minor release is ERR (Change when we get to v1)
assert!(check_version("0.18.4", "foo path").is_err());
assert!(check_version("0.19.0-beta.0", "foo path").is_err());

// Prev bugfix release is OK
assert!(check_version("0.19.3", "foo path").is_ok());
// assert!(check_version("0.20.-1", "foo path").is_ok());

// Next major release is ERR
assert!(check_version("1.19.4", "foo path").is_err());
assert!(check_version("1.20.0-beta.0", "foo path").is_err());

// Next minor release is ERR
assert!(check_version("0.20.4", "foo path").is_err());
assert!(check_version("0.21.0-beta.0", "foo path").is_err());

// Next bugfix release is ERR (Change when we get to v1)
assert!(check_version("0.19.5", "foo path").is_err());
assert!(check_version("0.20.1-beta.0", "foo path").is_err());
}
}

0 comments on commit 85c4253

Please sign in to comment.