Skip to content

Releases: chipsenkbeil/typed-path

v0.9.3

15 Oct 18:47
08cae85
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.9.2...v0.9.3

v0.9.2

15 Sep 18:09
7f380aa
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.9.1...v0.9.2

v0.9.1

16 Jul 15:49
02856a9
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.9.0...v0.9.1

v0.9.0

15 Jun 16:47
7f7879f
Compare
Choose a tag to compare

What's Changed

  • Add typed-path versions for current_exe and temp_dir, including UTF8 variants by @simongoricar in #24

New Contributors

Full Changelog: v0.8.0...v0.9.0

typed-path 0.8.0

25 Feb 03:01
2eadf1b
Compare
Choose a tag to compare

Notable Changes

  • Add push_checked function, which ensures that any path added to an existing PathBuf or TypedPathBuf must abide by the following rules:
    1. It cannot be an absolute path. Only relative paths allowed.
    2. In the case of Windows, it cannot start with a prefix like C:.
    3. All normal components of the path must contain only valid characters.
    4. If parent directory (..) components are present, they must not result in a path traversal attack (impacting the current path).
  • Add join_checked function, which ensures that any path joied with an existing path follows the rules of push_checked
  • Add with_encoding_checked function to ensure that the resulting path from an encoding conversion is still valid
  • Add with_unix_encoding_checked and with_windows_encoding_checked functions as shortcuts to with_encoding_checked
  • Add is_valid to Component and Utf8Component traits alongside Path and Utf8Path to indicate if a component/path is valid for the given encoding

typed-path 0.7.1

16 Feb 04:22
e356c5a
Compare
Choose a tag to compare

Notable Changes

  • Support wasm family for compilation

typed-path 0.7.0

04 Nov 22:15
2423bb4
Compare
Choose a tag to compare

Notable Changes

  • Support no_std environments, when default-features = false is set for the crate

typed-path v0.6.0

13 Oct 22:15
3869589
Compare
Choose a tag to compare

Notable Changes

  • Refactor crate exports such that everything other than constants are now
    top-level exports
    • typed_path::unix::UnixComponent is now typed_path::UnixComponent
    • typed_path::unix::Utf8UnixComponent is now typed_path::Utf8UnixComponent
    • typed_path::windows::WindowsComponent is now typed_path::WindowsComponent
    • typed_path::windows::Utf8WindowsComponent is now typed_path::Utf8WindowsComponent
    • typed_path::windows::WindowsPrefix is now typed_path::WindowsPrefix
    • typed_path::windows::Utf8WindowsPrefix is now typed_path::Utf8WindowsPrefix
  • Constants are now located within the constants module, broken out by unix
    and windows modules to house each set of constants
  • TypedPath and Utf8TypedPath now match the method signature of Path for
    constructing self with ::new(...)
  • Majority of methods available for Path and PathBuf have been ported over
    to TypedPath and TypedPathBuf
  • Implement std::fmt::Display for Utf8UnixComponent,
    Utf8WindowsComponent, and Utf8TypedComponent
  • Implement PartialEq<&str> and reverse for Utf8TypedPath and Utf8TypedPathBuf

typed-path 0.5.0

28 Sep 06:10
68c7313
Compare
Choose a tag to compare

Notable changes

  • Add TypedPath, Utf8TypedPath, TypedPathBuf, and Utf8TypedPathBuf enums to support code that can operate on both Windows and Unix paths

typed-path 0.4.2

24 Sep 19:09
bcab117
Compare
Choose a tag to compare

Notable Changes

  • Add From<&Utf8NativePath> for std::path::PathBuf