New Features
- Add
os_string_into_bstring()
as sibling ofos_str_into_bstr()
.
Bug Fixes
-
.
substitution is only done if the input was relative.
Previously it was possible to have/a/b/../b
and a CWD of/a/b
replaced with.
even though that clearly isn't what the user provided.Now the
.
resubstitution only happens when it's in the interest
of the caller. -
normalize()
would fail to interpret../
correctly and end up in an invalid path.
This is now fixed and should never happen again thanks to the addition
of a missing test.
Refactor
- rename tests/convert/normalize.rs
This renames the test module to match the new function name.
Refactor (BREAKING)
-
Rename absolutize() to normalize()
The name absolutize implies strongly that the returned path will be
absolute, but the function only converts relative paths to absolute under a
few specific circumstances.The new name, normalize(), is inspired by Python's os.path.normpath(),
Java's java.nio.file.Path.normalize(), Node's Path.normalize(), and maybe
some others which have similar semantics to this function.
Commit Statistics
- 13 commits contributed to the release over the course of 27 calendar days.
- 27 days passed between releases.
- 5 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Thanks Clippy
Clippy helped 1 time to make code idiomatic.
Commit Details
view details
- Uncategorized
- prepare chnagelogs prior to git-repository release (7114bbb)
- Merge branch 'adjustments-for-cargo' (083909b)
- thanks clippy (f1160fb)
- make fmt (747008d)
- Merge branch 'main' into http-config (6b9632e)
- Merge branch 'discovery-fix' (689752e)
.
substitution is only done if the input was relative. (745d926)normalize()
would fail to interpret../
correctly and end up in an invalid path. (92d5d13)- Merge branch 'path-normalize' (805329a)
- rename tests/convert/normalize.rs (8ab47bb)
- Rename absolutize() to normalize() (37cab07)
- Add
os_string_into_bstring()
as sibling ofos_str_into_bstr()
. (25e795f) - Merge branch 'main' into http-config (bcd9654)