Skip to content

Releases: udoprog/relative-path

1.9.0

17 Aug 20:39
Compare
Choose a tag to compare

Added

  • Add portability note about case sensitivity by @coderedart in #46
  • PathExt::to_relative which implements the pathdiff algorithm to build a relative path by @jess-sol in #47

New Contributors

Full Changelog: 1.8.1...1.9.0

1.8.0

05 Mar 15:58
Compare
Choose a tag to compare

Added

  • Deserialize implementation and conversions for Box<RelativePath>.
  • From<&str>, From<Box<str>>, for Box<RelativePath>.
  • Added tests for most trait implementations.
  • Add Deserialize implementation for &RelativePath (#19).
  • Add AsRef<RelativePath> for Component (#24).

1.6.0

03 Dec 20:17
Compare
Choose a tag to compare

Added

  • Added RelativePath::is_normalized to check for normalization (#28).
  • Added impl From<&RelativePath> for Box<RelativePath> (#26).
  • Added impl From<RelativePathBuf> for Box<RelativePath> (#26).
  • Added impl From<&RelativePath> for Arc<RelativePath> (#26).
  • Added impl From<RelativePathBuf> for Arc<RelativePath> (#26).
  • Added impl From<&RelativePath> for Rc<RelativePath> (#26).
  • Added impl From<RelativePathBuf> for Rc<RelativePath> (#26).

Fixed

  • Changed to_path and to_logical_path to treat empty paths better (#29).

1.5.0

29 Jul 08:07
Compare
Choose a tag to compare

Added

  • Implement Extend and FromIterator for RelativePathBuf (#25).

1.4.0

04 May 16:24
5d9f813
Compare
Choose a tag to compare

Added

  • to_logical_path as an alternative method of converting into a path.

Changed

  • set_extension no longer needs to allocate.
  • set_file_name implementation to more closely match
    std::path::PathBuf::set_file_name.

1.3.0

12 Jul 12:21
Compare
Choose a tag to compare

Fixed

  • Changed to_path to ignore platform-specific absolute components (#18).

1.2.1

12 Jul 12:23
Compare
Choose a tag to compare

Changed

  • Change signature of RelativePath::strip_prefix to be the same as std::path::Path (#16).

1.2.0

13 Jun 01:19
Compare
Choose a tag to compare

Added

  • Added FromPathError::kind to get more detailed error information (#15).

Changed

  • Marked FromPathErrorKind #[non_exhaustive] which technically is a breaking
    change. But since it was not accessible from API code of this library, anyone
    who used it outside are on their own.

1.1.1

13 Jun 01:04
Compare
Choose a tag to compare

Changes

  • Deprecated use of std::error::Error::description in favor of just having a std::fmt::Display impl.

1.1.0

13 Jun 01:04
Compare
Choose a tag to compare

Added

  • Added RelativePath::relative to render a path relative from one path to another (#14).