Skip to content

Releases: zip-rs/zip2

v2.1.3

05 Jun 06:49
b5eb25d
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Some date/time filters were previously unreliable (i.e. later-pass filters had no earliest-pass or latest-fail, and vice-versa)
  • Decode Zip-Info UTF8 name and comment fields (#159)

🚜 Refactor

  • Return extended timestamp fields copied rather than borrowed (#183)

⚙️ Miscellaneous Tasks

  • Fix a new Clippy warning
  • Fix a bug and inline deserialize for safety
  • Add check for wrong-length blocks, and incorporate fixed-size requirement into the trait name
  • Fix a fuzz failure by using checked_sub
  • Add feature gate for new unit test

v2.1.2

02 Jun 19:26
999d41d
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Derive Debug for ZipWriter
  • lower default version to 4.5 and use the version-needed-to-extract where feasible.

🚜 Refactor

  • use a MIN_VERSION constant

⚙️ Miscellaneous Tasks

  • Bug fixes for debug implementation
  • Bug fixes for debug implementation
  • Update unit tests
  • Remove unused import

v2.1.1

28 May 12:17
0b5fe20
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Derive Debug for ZipWriter
  • lower default version to 4.5 and use the version-needed-to-extract where feasible.

🚜 Refactor

  • use a MIN_VERSION constant

⚙️ Miscellaneous Tasks

  • Bug fixes for debug implementation
  • Bug fixes for debug implementation
  • Update unit tests
  • Remove unused import

v2.1.0

25 May 12:13
6d4e460
Compare
Choose a tag to compare

🚀 Features

  • Support mutual conversion between DateTime and MS-DOS pair

🐛 Bug Fixes

  • version-needed-to-extract was incorrect in central header, and version-made-by could be lower than that (#100)
  • version-needed-to-extract was incorrect in central header, and version-made-by could be lower than that (#100)

⚙️ Miscellaneous Tasks

  • Another tweak to ensure version_needed is applied
  • Tweaks to make version_needed and version_made_by work with recently-merged changes

v2.0.0

24 May 06:14
94765a4
Compare
Choose a tag to compare

🚀 Features

  • Add fmt::Display for DateTime
  • Implement more traits for DateTime

🚜 Refactor

  • Change type of last_modified_time to Option<DateTime>
  • [breaking] Rename from_msdos to from_msdos_unchecked, make it unsafe, and add try_from_msdos (#145)

⚙️ Miscellaneous Tasks

  • Continue to accept archives with invalid DateTime, and use now_utc() as default only when writing, not reading

v1.3.1

22 May 03:45
6c60c67
Compare
Choose a tag to compare

🚜 Refactor

  • Make deflate enable both default implementations
  • Merge the hidden deflate-flate2 flag into the public one
  • Rename _deflate-non-zopfli to _deflate-flate2
  • Reject encrypted and using_data_descriptor files slightly faster in read_zipfile_from_stream
  • Convert impl TryInto<NaiveDateTime> for DateTime to impl TryFrom<DateTime> for NaiveDateTime (#136)

⚡ Performance

  • Change default compression implementation to flate2/zlib-ng

⚙️ Miscellaneous Tasks

  • chore(#132): Attribution for some copied test data
  • chore(#133): chmod -x src/result.rs

v1.3.0

17 May 10:40
102e311
Compare
Choose a tag to compare

🚀 Features

  • Add is_symlink method

🐛 Bug Fixes

  • Extract symlinks into symlinks on Unix and Windows, and fix a bug that affected making directories writable on MacOS

🚜 Refactor

  • Eliminate deprecation warning when --all-features implicitly enables the deprecated feature
  • Check if archive contains a symlink's target, without borrowing both at the same time
  • Eliminate a clone that's no longer necessary
  • is_dir only needs to look at the filename
  • Remove unnecessary #[cfg] attributes

⚙️ Miscellaneous Tasks

  • Fix borrow-of-moved-value
  • Box doesn't directly convert to PathBuf, so convert back to String first
  • partial revert - only &str has chars(), but Box should auto-deref
  • contains_key needs a Box<str>, so generify is_dir to accept one
  • Add missing ZipFileData::is_dir() method
  • Fix another Windows-specific error
  • More bug fixes for Windows-specific symlink code
  • More bug fixes for Windows-specific symlink code
  • Bug fix: variable name change
  • Bug fix: need both internal and output path to determine whether to symlink_dir
  • Another bug fix
  • Fix another error-type conversion error
  • Fix error-type conversion on Windows
  • Fix conditionally-unused import
  • Fix continued issues, and factor out the Vec-to-OsString conversion (cc: #125)
  • Fix CI failure involving conversion to OsString for symlinks (see my comments on #125)
  • Move path join into platform-independent code

v1.2.3

11 May 06:30
adb40b8
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Remove a window when an extracted directory might be unexpectedly listable and/or cdable by non-owners
  • Extract directory contents on Unix even if the directory doesn't have write permission (https://github.com/zip-rs/zip-old/issues/423)

⚙️ Miscellaneous Tasks

  • More conditionally-unused imports

v1.2.2

09 May 18:07
af77679
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Failed to clear "writing_raw" before finishing a symlink, leading to dropped extra fields

⚡ Performance

  • Use boxed slice for archive comment, since it can't be concatenated
  • Optimize for the fact that false signatures can't overlap with real ones

v1.2.1

07 May 02:24
b725303
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Prevent panic when trying to read a file with an unsupported compression method
  • Prevent panic after reading an invalid LZMA file
  • Make Stored the default compression method if Deflated isn't available, so that zip files are readable by as much software as possible
  • version_needed was wrong when e.g. cfg(bzip2) but current file wasn't bzip2 (#100)
  • file paths shouldn't start with slashes (#102)

🚜 Refactor

  • Overhaul impl Arbitrary for FileOptions
  • Remove unused atomic module