Releases: bugdea1er/tmp
Releases · bugdea1er/tmp
v4
Breaking changes
- Removed
file::moveanddirectory::movemethods (#208) - Removed
file::copyanddirectory::copymethods (#214) - Removed
openmodeparameter from file construction (#218) - Removed
std::hashspecializations (#219)
What's Changed
- Converted
fileinto a template classtmp::basic_file(#158)
Full Changelog: v3.0.1...v4
v3.0.1
v3
v2.1
What's Changed
- Add
file::native_handlefor C++26 (#162) - Fix a TOC/TOU vunerability where a
filebufcould be open after a temporary file was deleted (#164) - Add meson build system support (#159)
- Always open
filewithstd::ios::inandstd::ios::outflags (#167) - Fixed a bug where invalid open mode was not handled correctly (#168)
- Make
file(file&&)noexcept(db6886e)
Full Changelog: v2...v2.1
v2
Breaking changes
filenow extendsstd::iostream(#150).std::fstreamis C++ opened file abstraction,filenow just simulates it for reading/writing operations instead of providing its own.directory::listmethod has been removed (#149).directory::listdid not add anything new compared to the standardstd::filesystem::directory_iteratorand 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.
entryno longer provides a definition for or manages its native handle (#148). This is because defining and managingnative_handlein entry limits the variety of types of handles: for example,filecould use corecrt on Windows and manageintinstead ofHANDLE- The target parent is no longer created when moving a temporary entry (#151). This just mimics behavior of standard
std::filesystemfunctions more closely and won't confuse the user - Move
movefromentry(#152).fileanddirectorystill provide this method, but any otherentrysubclass 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::pathtotmp::entry(#82) - Remove deprecated
operator->(#83) - Make
entry::releaseprivate (#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::listmethod (#94) - Fix Windows detection for Clang (#100)
- Make this shared library (#101)
Full Changelog: v0.9...v1.0