Skip to content

Releases: bugdea1er/tmp

v2

29 Jan 11:33
Compare
Choose a tag to compare

Breaking changes

  • file now extends std::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 standard std::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 managing native_handle in entry limits the variety of types of handles: for example, file could use corecrt on Windows and manage int instead of HANDLE
  • 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 from entry (#152). file and directory still provide this method, but any otherentry subclass should implement it if needed

Full Changelog: v1.3...v2

v1.2.1

03 Jan 23:31
Compare
Choose a tag to compare
  • Fixed a bug when errors in file::read, file::write and file::append were not reported (#137)
  • Fixed a bug when a text was written to a file in binary format on Windows (#138)

Full Changelog: v1.2...v1.2.1

v1.2

13 Oct 20:18
Compare
Choose a tag to compare
  • 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

29 Sep 16:03
Compare
Choose a tag to compare
  • Fixed a bug when a "moved from"entry could still close a file when destructed (#119)

Full Changelog: v1.1...v1.1.1

v1.1

21 Sep 22:38
Compare
Choose a tag to compare
  • Implemented std::hash and relational operators for tmp:: classes (#111)
  • Added file::input_stream and file::output_stream methods (#112)
  • Temporary directories are now opened when created (#114)
  • Added deb and rpm generators support (#35 and #117)

Full Changelog: v1.0...v1.1

v1.0

10 Aug 22:59
Compare
Choose a tag to compare

Breaking changes

  • Rename tmp::path to tmp::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

22 Jun 14:48
Compare
Choose a tag to compare

What's Changed

  • Add C++20 modules support (#27)
  • Add file::native_handle method (#75)
  • Fix bug when temporary file was not closed when deleted (#75)

New Contributors

  • @bgs99 made their first contribution in #27

Full Changelog: v0.8.2...v0.9

v0.8.2

25 May 16:15
Compare
Choose a tag to compare
  • Better error reporting (#61)

Full Changelog: v0.8.1...v0.8.2

v0.8.1

20 May 23:39
Compare
Choose a tag to compare
  • Operator path::operator-> is now marked deprecated (#57)
  • Add deprecated attribute to some methods (#47)

New Contributors

Full Changelog: v0.8...v0.8.1

v0.8

19 May 12:04
Compare
Choose a tag to compare
  • Add Windows support (#26)
  • Add support for creation tmp::file with requested suffix (#44)
  • Add explicit path getter method (#46)

New Contributors

Full Changelog: v0.7.1...v0.8