Debian Codegraph @

third_party/rust/zip/CHANGELOG.md

raw
1 # Changelog
2
3 ## [2.1.3](https://github.com/zip-rs/zip2/compare/v2.1.2...v2.1.3) - 2024-06-04
4
5 ### <!-- 1 -->🐛 Bug Fixes
6 - Some date/time filters were previously unreliable (i.e. later-pass filters had no earliest-pass or latest-fail, and vice-versa)
7 - Decode Zip-Info UTF8 name and comment fields ([#159](https://github.com/zip-rs/zip2/pull/159))
8
9 ### <!-- 2 -->🚜 Refactor
10 - Return extended timestamp fields copied rather than borrowed ([#183](https://github.com/zip-rs/zip2/pull/183))
11
12 ### <!-- 7 -->⚙️ Miscellaneous Tasks
13 - Fix a new Clippy warning
14 - Fix a bug and inline `deserialize` for safety
15 - Add check for wrong-length blocks, and incorporate fixed-size requirement into the trait name
16 - Fix a fuzz failure by using checked_sub
17 - Add feature gate for new unit test
18
19 ## [2.1.1](https://github.com/zip-rs/zip2/compare/v2.1.0...v2.1.1) - 2024-05-28
20
21 ### <!-- 1 -->🐛 Bug Fixes
22 - Derive `Debug` for `ZipWriter`
23 - lower default version to 4.5 and use the version-needed-to-extract where feasible.
24
25 ### <!-- 2 -->🚜 Refactor
26 - use a MIN_VERSION constant
27
28 ### <!-- 7 -->⚙️ Miscellaneous Tasks
29 - Bug fixes for debug implementation
30 - Bug fixes for debug implementation
31 - Update unit tests
32 - Remove unused import
33
34 ## [2.1.0](https://github.com/zip-rs/zip2/compare/v2.0.0...v2.1.0) - 2024-05-25
35
36 ### <!-- 0 -->🚀 Features
37 - Support mutual conversion between `DateTime` and MS-DOS pair
38
39 ### <!-- 1 -->🐛 Bug Fixes
40 - version-needed-to-extract was incorrect in central header, and version-made-by could be lower than that ([#100](https://github.com/zip-rs/zip2/pull/100))
41 - version-needed-to-extract was incorrect in central header, and version-made-by could be lower than that ([#100](https://github.com/zip-rs/zip2/pull/100))
42
43 ### <!-- 7 -->⚙️ Miscellaneous Tasks
44 - Another tweak to ensure `version_needed` is applied
45 - Tweaks to make `version_needed` and `version_made_by` work with recently-merged changes
46
47 ## [2.0.0](https://github.com/zip-rs/zip2/compare/v1.3.1...v2.0.0) - 2024-05-24
48
49 ### <!-- 0 -->🚀 Features
50 - Add `fmt::Display` for `DateTime`
51 - Implement more traits for `DateTime`
52
53 ### <!-- 2 -->🚜 Refactor
54 - Change type of `last_modified_time` to `Option<DateTime>`
55 - [**breaking**] Rename `from_msdos` to `from_msdos_unchecked`, make it unsafe, and add `try_from_msdos` ([#145](https://github.com/zip-rs/zip2/pull/145))
56
57 ### <!-- 7 -->⚙️ Miscellaneous Tasks
58 - Continue to accept archives with invalid DateTime, and use `now_utc()` as default only when writing, not reading
59
60 ## [1.3.1](https://github.com/zip-rs/zip2/compare/v1.3.0...v1.3.1) - 2024-05-21
61
62 ### <!-- 2 -->🚜 Refactor
63 - Make `deflate` enable both default implementations
64 - Merge the hidden deflate-flate2 flag into the public one
65 - Rename _deflate-non-zopfli to _deflate-flate2
66 - Reject encrypted and using_data_descriptor files slightly faster in read_zipfile_from_stream
67 - Convert `impl TryInto<NaiveDateTime> for DateTime` to `impl TryFrom<DateTime> for NaiveDateTime` ([#136](https://github.com/zip-rs/zip2/pull/136))
68
69 ### <!-- 4 -->⚡ Performance
70 - Change default compression implementation to `flate2/zlib-ng`
71
72 ### <!-- 7 -->⚙️ Miscellaneous Tasks
73 - chore([#132](https://github.com/zip-rs/zip2/pull/132)): Attribution for some copied test data
74 - chore([#133](https://github.com/zip-rs/zip2/pull/133)): chmod -x src/result.rs
75
76 ## [1.3.0](https://github.com/zip-rs/zip2/compare/v1.2.3...v1.3.0) - 2024-05-17
77
78 ### <!-- 0 -->🚀 Features
79 - Add `is_symlink` method
80
81 ### <!-- 1 -->🐛 Bug Fixes
82 - Extract symlinks into symlinks on Unix and Windows, and fix a bug that affected making directories writable on MacOS
83
84 ### <!-- 2 -->🚜 Refactor
85 - Eliminate deprecation warning when `--all-features` implicitly enables the deprecated feature
86 - Check if archive contains a symlink's target, without borrowing both at the same time
87 - Eliminate a clone that's no longer necessary
88 - is_dir only needs to look at the filename
89 - Remove unnecessary #[cfg] attributes
90
91 ### <!-- 7 -->⚙️ Miscellaneous Tasks
92 - Fix borrow-of-moved-value
93 - Box<str> doesn't directly convert to PathBuf, so convert back to String first
94 - partial revert - only &str has chars(), but Box<str> should auto-deref
95 - contains_key needs a `Box<str>`, so generify `is_dir` to accept one
96 - Add missing `ZipFileData::is_dir()` method
97 - Fix another Windows-specific error
98 - More bug fixes for Windows-specific symlink code
99 - More bug fixes for Windows-specific symlink code
100 - Bug fix: variable name change
101 - Bug fix: need both internal and output path to determine whether to symlink_dir
102 - Another bug fix
103 - Fix another error-type conversion error
104 - Fix error-type conversion on Windows
105 - Fix conditionally-unused import
106 - Fix continued issues, and factor out the Vec<u8>-to-OsString conversion (cc: [#125](https://github.com/zip-rs/zip2/pull/125))
107 - Fix CI failure involving conversion to OsString for symlinks (see my comments on [#125](https://github.com/zip-rs/zip2/pull/125))
108 - Move path join into platform-independent code
109
110 ## [1.2.3](https://github.com/zip-rs/zip2/compare/v1.2.2...v1.2.3) - 2024-05-10
111
112 ### <!-- 1 -->🐛 Bug Fixes
113 - Remove a window when an extracted directory might be unexpectedly listable and/or `cd`able by non-owners
114 - Extract directory contents on Unix even if the directory doesn't have write permission (https://github.com/zip-rs/zip-old/issues/423)
115
116 ### <!-- 7 -->⚙️ Miscellaneous Tasks
117 - More conditionally-unused imports
118
119 ## [1.2.2](https://github.com/zip-rs/zip2/compare/v1.2.1...v1.2.2) - 2024-05-09
120
121 ### <!-- 1 -->🐛 Bug Fixes
122 - Failed to clear "writing_raw" before finishing a symlink, leading to dropped extra fields
123
124 ### <!-- 4 -->⚡ Performance
125 - Use boxed slice for archive comment, since it can't be concatenated
126 - Optimize for the fact that false signatures can't overlap with real ones
127
128 ## [1.2.1](https://github.com/zip-rs/zip2/compare/v1.2.0...v1.2.1) - 2024-05-06
129
130 ### <!-- 1 -->🐛 Bug Fixes
131 - Prevent panic when trying to read a file with an unsupported compression method
132 - Prevent panic after reading an invalid LZMA file
133 - Make `Stored` the default compression method if `Deflated` isn't available, so that zip files are readable by as much software as possible
134 - version_needed was wrong when e.g. cfg(bzip2) but current file wasn't bzip2 ([#100](https://github.com/zip-rs/zip2/pull/100))
135 - file paths shouldn't start with slashes ([#102](https://github.com/zip-rs/zip2/pull/102))
136
137 ### <!-- 2 -->🚜 Refactor
138 - Overhaul `impl Arbitrary for FileOptions`
139 - Remove unused `atomic` module
140
141 ## [1.2.0](https://github.com/zip-rs/zip2/compare/v1.1.4...v1.2.0) - 2024-05-06
142
143 ### <!-- 0 -->🚀 Features
144 - Add method `decompressed_size()` so non-recursive ZIP bombs can be detected
145
146 ### <!-- 2 -->🚜 Refactor
147 - Make `ZipWriter::finish()` consume the `ZipWriter`
148
149 ### <!-- 7 -->⚙️ Miscellaneous Tasks
150 - Use panic! rather than abort to ensure the fuzz harness can process the failure
151 - Update fuzz_write to use replace_with
152 - Remove a drop that can no longer be explicit
153 - Add `#![allow(unexpected_cfgs)]` in nightly
154
155 ## [1.1.4](https://github.com/zip-rs/zip2/compare/v1.1.3...v1.1.4) - 2024-05-04
156
157 ### <!-- 1 -->🐛 Bug Fixes
158 - Build was failing with bzip2 enabled
159 - use is_dir in more places where Windows paths might be handled incorrectly
160
161 ### <!-- 4 -->⚡ Performance
162 - Quick filter for paths that contain "/../" or "/./" or start with "./" or "../"
163 - Fast handling for separator-free paths
164 - Speed up logic if main separator isn't '/'
165 - Drop `normalized_components` slightly sooner when not using it
166 - Speed up `path_to_string` in cases where the path is already in the proper format
167
168 ### <!-- 7 -->⚙️ Miscellaneous Tasks
169 - Refactor: can short-circuit handling of paths that start with MAIN_SEPARATOR, no matter what MAIN_SEPARATOR is
170 - Bug fix: non-canonical path detection when MAIN_SEPARATOR is not slash or occurs twice in a row
171 - Bug fix: must recreate if . or .. is a path element
172 - Bug fix
173
174 ### <!-- 9 -->◀️ Revert
175 - [#58](https://github.com/zip-rs/zip2/pull/58) (partial): `bzip2-rs` can't replace `bzip2` because it's decompress-only
176
177 ## [1.1.3](https://github.com/zip-rs/zip2/compare/v1.1.2...v1.1.3) - 2024-04-30
178
179 ### <!-- 1 -->🐛 Bug Fixes
180 - Rare bug where find_and_parse would give up prematurely on detecting a false end-of-CDR header
181
182 ## [1.1.2](https://github.com/Pr0methean/zip/compare/v1.1.1...v1.1.2) - 2024-04-28
183
184 ### <!-- 1 -->🐛 Bug Fixes
185 - Alignment was previously handled incorrectly ([#33](https://github.com/Pr0methean/zip/pull/33))
186
187 ### <!-- 2 -->🚜 Refactor
188 - deprecate `deflate-miniz` feature since it's now equivalent to `deflate` ([#35](https://github.com/Pr0methean/zip/pull/35))
189
190 ## [1.1.1]
191
192 ### Added
193
194 - `index_for_name`, `index_for_path`, `name_for_index`: get the index of a file given its path or vice-versa, without
195 initializing metadata from the local-file header or needing to mutably borrow the `ZipArchive`.
196 - `add_symlink_from_path`, `shallow_copy_file_from_path`, `deep_copy_file_from_path`, `raw_copy_file_to_path`: copy a
197 file or create a symlink using `AsRef<Path>` arguments
198
199 ### Changed
200
201 - `add_directory_from_path` and `start_file_from_path` are no longer deprecated, and they now normalize `..` as well as
202 `.`.
203
204 ## [1.1.0]
205
206 ### Added
207
208 - Support for decoding LZMA.
209
210 ### Changed
211
212 - Eliminated a custom `AtomicU64` type by replacing it with `OnceLock` in the only place it's used.
213 - `FileOptions` now has the subtype `SimpleFileOptions` which implements `Copy` but has no extra data.
214
215 ## [1.0.1]
216
217 ### Changed
218
219 - The published package on crates.io no longer includes the tests or examples.
220
221 ## [1.0.0]
222
223 ### Changed
224
225 - Now uses boxed slices rather than `String` or `Vec` for metadata fields that aren't likely to grow.
226
227 ## [0.11.0]
228
229 ### Added
230
231 - Support for `DEFLATE64` (decompression only).
232 - Support for Zopfli compression levels up to `i64::MAX`.
233
234 ### Changed
235
236 - `InvalidPassword` is now a kind of `ZipError` to eliminate the need for nested `Result` structs.
237 - Updated dependencies.
238
239 ## [0.10.3]
240
241 ### Changed
242
243 - Updated dependencies.
244 - MSRV increased to `1.67`.
245
246 ### Fixed
247
248 - Fixed some rare bugs that could cause panics when trying to read an invalid ZIP file or using an incorrect password.
249
250 ## [0.10.2]
251
252 ### Changed
253
254 - Where possible, methods are now `const`. This improves performance, especially when reading.
255
256 ## [0.10.1]
257
258 ### Changed
259
260 - Date and time conversion methods now return `DateTimeRangeError` rather than `()` on error.
261
262 ## [0.10.0]
263
264 ### Changed
265
266 - Replaces the `flush_on_finish_file` parameter of `ZipWriter::new` and `ZipWriter::Append` with
267 a `set_flush_on_finish_file` method.
268
269 ### Fixed
270
271 - Fixes build errors that occur when all default features are disabled.
272 - Fixes more cases of a bug when ZIP64 magic bytes occur in filenames.
273
274 ## [0.9.2]
275
276 ### Added
277
278 - `zlib-ng` for fast Deflate compression. This is now the default for compression levels 0-9.
279 - `chrono` to convert zip::DateTime to and from chrono::NaiveDateTime
280
281 ## [0.9.1]
282
283 ### Added
284
285 - Zopfli for aggressive Deflate compression.
286
287 ## [0.9.0]
288
289 ### Added
290
291 - `flush_on_finish_file` parameter for `ZipWriter`.
292
293 ## [0.8.3]
294
295 ### Changed
296
297 - Uses the `aes::cipher::KeyInit` trait from `aes` 0.8.2 where appropriate.
298
299 ### Fixed
300
301 - Calling `abort_file()` no longer corrupts the archive if called on a
302 shallow copy of a remaining file, or on an archive whose CDR entries are out
303 of sequence. However, it may leave an unused entry in the archive.
304 - Calling `abort_file()` while writing a ZipCrypto-encrypted file no longer
305 causes a crash.
306 - Calling `abort_file()` on the last file before `finish()` no longer produces
307 an invalid ZIP file or garbage in the comment.
308
309 ### Added
310
311 - `ZipWriter` methods `get_comment()` and `get_raw_comment()`.
312
313 ## [0.8.2]
314
315 ### Fixed
316
317 - Fixed an issue where code might spuriously fail during write fuzzing.
318
319 ### Added
320
321 - New method `with_alignment` on `FileOptions`.
322
323 ## [0.8.1]
324
325 ### Fixed
326
327 - `ZipWriter` now once again implements `Send` if the underlying writer does.
328
329 ## [0.8.0]
330
331 ### Deleted
332
333 - Methods `start_file_aligned`, `start_file_with_extra_data`, `end_local_start_central_extra_data` and
334 `end_extra_data` (see below).
335
336 ### Changed
337
338 - Alignment and extra-data fields are now attributes of [`zip::unstable::write::FileOptions`], allowing them to be
339 specified for `add_directory` and `add_symlink`.
340 - Extra-data fields are now formatted by the `FileOptions` method `add_extra_data`.
341 - Improved performance, especially for `shallow_copy_file` and `deep_copy_file` on files with extra data.
342
343 ### Fixed
344
345 - Fixes a rare bug where the size of the extra-data field could overflow when `large_file` was set.
346 - Fixes more cases of a bug when ZIP64 magic bytes occur in filenames.
347
348 ## [0.7.5]
349
350 ### Fixed
351
352 - Fixed a bug that occurs when ZIP64 magic bytes occur twice in a filename or across two filenames.
353
354 ## [0.7.4]
355
356 ### Added
357
358 - Added experimental [`zip::unstable::write::FileOptions::with_deprecated_encryption`] API to enable encrypting
359 files with PKWARE encryption.
360
361 ## [0.7.3]
362
363 ### Fixed
364
365 - Fixed a bug that occurs when a filename in a ZIP32 file includes the ZIP64 magic bytes.
366
367 ## [0.7.2]
368
369 ### Added
370
371 - Method `abort_file` - removes the current or most recently-finished file from the archive.
372
373 ### Fixed
374
375 - Fixed a bug where a file could remain open for writing after validations failed.
376
377 ## [0.7.1]
378
379 ### Changed
380
381 - Bumped the version number in order to upload an updated README to crates.io.
382
383 ## [0.7.0]
384
385 ### Fixed
386
387 - Calling `start_file` with invalid parameters no longer closes the `ZipWriter`.
388 - Attempting to write a 4GiB file without calling `FileOptions::large_file(true)` now removes the file from the archive
389 but does not close the `ZipWriter`.
390 - Attempting to write a file with an unrepresentable or invalid last-modified date will instead add it with a date of
391 1980-01-01 00:00:00.
392
393 ### Added
394
395 - Method `is_writing_file` - indicates whether a file is open for writing.
396
397 ## [0.6.13]
398
399 ### Fixed
400
401 - Fixed a possible bug in deep_copy_file.
402
403 ## [0.6.12]
404
405 ### Fixed
406
407 - Fixed a Clippy warning that was missed during the last release.
408
409 ## [0.6.11]
410
411 ### Fixed
412
413 - Fixed a bug that could cause later writes to fail after a `deep_copy_file` call.
414
415 ## [0.6.10]
416
417 ### Changed
418
419 - Updated dependency versions.
420
421 ## [0.6.9]
422
423 ### Fixed
424
425 - Fixed an issue that prevented `ZipWriter` from implementing `Send`.
426
427 ## [0.6.8]
428
429 ### Added
430
431 - Detects duplicate filenames.
432
433 ### Fixed
434
435 - `deep_copy_file` could set incorrect Unix permissions.
436 - `deep_copy_file` could handle files incorrectly if their compressed size was u32::MAX bytes or less but their
437 uncompressed size was not.
438 - Documented that `deep_copy_file` does not copy a directory's contents.
439
440 ### Changed
441
442 - Improved performance of `deep_copy_file` by using a HashMap and eliminating a redundant search.
443
444 ## [0.6.7]
445
446 ### Added
447
448 - `deep_copy_file` method: more standards-compliant way to copy a file from within the ZipWriter
449
450 ## [0.6.6]
451
452 ### Fixed
453
454 - Unused flag `#![feature(read_buf)]` was breaking compatibility with stable compiler.
455
456 ### Changed
457
458 - Updated `aes` dependency to `0.8.2` (https://github.com/zip-rs/zip/pull/354)
459 - Updated other dependency versions.
460
461 ## [0.6.5]
462 ### Changed
463
464 - Added experimental [`zip::unstable::write::FileOptions::with_deprecated_encryption`] API to enable encrypting files with PKWARE encryption.
465
466 ### Added
467
468 - `shallow_copy_file` method: copy a file from within the ZipWriter
469
470
471 ## [0.6.4]
472
473 ### Changed
474
475 - [#333](https://github.com/zip-rs/zip/pull/333): disabled the default features of the `time` dependency, and also `formatting` and `macros`, as they were enabled by mistake.
476 - Deprecated [`DateTime::from_time`](https://docs.rs/zip/0.6/zip/struct.DateTime.html#method.from_time) in favor of [`DateTime::try_from`](https://docs.rs/zip/0.6/zip/struct.DateTime.html#impl-TryFrom-for-DateTime)