Releases: bugdea1er/tmp
Releases · bugdea1er/tmp
v2
Breaking changes
file
now extendsstd::iostream
(#150).std::fstream
is C++ opened file abstraction,file
now just simulates it for reading/writing operations instead of providing its own.directory::list
method has been removed (#149).directory::list
did not add anything new compared to the standardstd::filesystem::directory_iterator
and was therefore useless.- Temporary directories are no longer opened when created (#148). In practice, opening temporary directories does not help at all, since there is little you can do with its native handle, and even traversing the directory using the native OS API reopens the directory.
entry
no longer provides a definition for or manages its native handle (#148). This is because defining and managingnative_handle
in entry limits the variety of types of handles: for example,file
could use corecrt on Windows and manageint
instead ofHANDLE
- The target parent is no longer created when moving a temporary entry (#151). This just mimics behavior of standard
std::filesystem
functions more closely and won't confuse the user - Move
move
fromentry
(#152).file
anddirectory
still provide this method, but any otherentry
subclass should implement it if needed
Full Changelog: v1.3...v2
v1.2.1
v1.2
- Added a more convenient
entry(std::pair<std::filesystem::path, native_handle>)
constructor (#126) - Fixed a bug when moving an entry to itself caused a deletion of said entry (#129)
- Fixed a bug when moving a directory to an existing file between filesystems would not throw an exception (#129)
- Fixed a bug when move was constrained to regular files and directories only (#129)
- Fixed a bug when an entry could be deleted even if it was not moved due to an error (#129)
Full Changelog: v1.1.1...v1.2
v1.1.1
v1.1
v1.0
Breaking changes
- Rename
tmp::path
totmp::entry
(#82) - Remove deprecated
operator->
(#83) - Make
entry::release
private (#92) - Validate labels and extensions for temporary entries (#103)
What's Changed
- Remove temporary prefix if it is empty (#80)
- Remove C++ modules support (for now) (#89)
- Add
directory::list
method (#94) - Fix Windows detection for Clang (#100)
- Make this shared library (#101)
Full Changelog: v0.9...v1.0
v0.9
v0.8.2
v0.8.1
- Operator
path::operator->
is now marked deprecated (#57) - Add deprecated attribute to some methods (#47)
New Contributors
- @georgiy-belyanin made their first contribution in #48
Full Changelog: v0.8...v0.8.1
v0.8
- Add Windows support (#26)
- Add support for creation tmp::file with requested suffix (#44)
- Add explicit path getter method (#46)
New Contributors
- @TimaFrolov made their first contribution in #44
Full Changelog: v0.7.1...v0.8