Compare commits

..

2 commits

Author SHA1 Message Date
2f2d8813a0
chore(release): release artifactview v0.4.6 2024-07-28 18:12:09 +02:00
ThetaBot
a70a7374ce chore(deps): update rust crate zip to v2 (#9)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [zip](https://github.com/zip-rs/zip2) | dev-dependencies | major | `0.6.3` -> `2.0.0` |

---

### Release Notes

<details>
<summary>zip-rs/zip2 (zip)</summary>

### [`v2.1.3`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#213---2024-06-04)

[Compare Source](https://github.com/zip-rs/zip2/compare/v2.1.2...v2.1.3)

##### <!-- 1 -->🐛 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 ([#&#8203;159](https://github.com/zip-rs/zip2/pull/159))

##### <!-- 2 -->🚜 Refactor

-   Return extended timestamp fields copied rather than borrowed ([#&#8203;183](https://github.com/zip-rs/zip2/pull/183))

##### <!-- 7 -->⚙️ 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`](https://github.com/zip-rs/zip2/releases/tag/v2.1.2)

[Compare Source](https://github.com/zip-rs/zip2/compare/v2.1.1...v2.1.2)

##### <!-- 1 -->🐛 Bug Fixes

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

##### <!-- 2 -->🚜 Refactor

-   use a MIN_VERSION constant

##### <!-- 7 -->⚙️ Miscellaneous Tasks

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

### [`v2.1.1`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#211---2024-05-28)

[Compare Source](https://github.com/zip-rs/zip2/compare/v2.1.0...v2.1.1)

##### <!-- 1 -->🐛 Bug Fixes

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

##### <!-- 2 -->🚜 Refactor

-   use a MIN_VERSION constant

##### <!-- 7 -->⚙️ Miscellaneous Tasks

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

### [`v2.1.0`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#210---2024-05-25)

[Compare Source](https://github.com/zip-rs/zip2/compare/v2.0.0...v2.1.0)

##### <!-- 0 -->🚀 Features

-   Support mutual conversion between `DateTime` and MS-DOS pair

##### <!-- 1 -->🐛 Bug Fixes

-   version-needed-to-extract was incorrect in central header, and version-made-by could be lower than that ([#&#8203;100](https://github.com/zip-rs/zip2/pull/100))
-   version-needed-to-extract was incorrect in central header, and version-made-by could be lower than that ([#&#8203;100](https://github.com/zip-rs/zip2/pull/100))

##### <!-- 7 -->⚙️ 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`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#200---2024-05-24)

[Compare Source](https://github.com/zip-rs/zip2/compare/v1.3.1...v2.0.0)

##### <!-- 0 -->🚀 Features

-   Add `fmt::Display` for `DateTime`
-   Implement more traits for `DateTime`

##### <!-- 2 -->🚜 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` ([#&#8203;145](https://github.com/zip-rs/zip2/pull/145))

##### <!-- 7 -->⚙️ Miscellaneous Tasks

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

### [`v1.3.1`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#131---2024-05-21)

[Compare Source](https://github.com/zip-rs/zip2/compare/v1.3.0...v1.3.1)

##### <!-- 2 -->🚜 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` ([#&#8203;136](https://github.com/zip-rs/zip2/pull/136))

##### <!-- 4 --> Performance

-   Change default compression implementation to `flate2/zlib-ng`

##### <!-- 7 -->⚙️ Miscellaneous Tasks

-   chore([#&#8203;132](https://github.com/zip-rs/zip2/pull/132)): Attribution for some copied test data
-   chore([#&#8203;133](https://github.com/zip-rs/zip2/pull/133)): chmod -x src/result.rs

### [`v1.3.0`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#130---2024-05-17)

[Compare Source](https://github.com/zip-rs/zip2/compare/v1.2.3...v1.3.0)

##### <!-- 0 -->🚀 Features

-   Add `is_symlink` method

##### <!-- 1 -->🐛 Bug Fixes

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

##### <!-- 2 -->🚜 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

##### <!-- 7 -->⚙️ Miscellaneous Tasks

-   Fix borrow-of-moved-value
-   Box<str> doesn't directly convert to PathBuf, so convert back to String first
-   partial revert - only \&str has chars(), but Box<str> 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<u8>-to-OsString conversion (cc: [#&#8203;125](https://github.com/zip-rs/zip2/pull/125))
-   Fix CI failure involving conversion to OsString for symlinks (see my comments on [#&#8203;125](https://github.com/zip-rs/zip2/pull/125))
-   Move path join into platform-independent code

### [`v1.2.3`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#123---2024-05-10)

[Compare Source](https://github.com/zip-rs/zip2/compare/v1.2.2...v1.2.3)

##### <!-- 1 -->🐛 Bug Fixes

-   Remove a window when an extracted directory might be unexpectedly listable and/or `cd`able 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)

##### <!-- 7 -->⚙️ Miscellaneous Tasks

-   More conditionally-unused imports

### [`v1.2.2`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#122---2024-05-09)

[Compare Source](https://github.com/zip-rs/zip2/compare/v1.2.1...v1.2.2)

##### <!-- 1 -->🐛 Bug Fixes

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

##### <!-- 4 --> 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`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#121---2024-05-06)

[Compare Source](https://github.com/zip-rs/zip2/compare/v1.2.0...v1.2.1)

##### <!-- 1 -->🐛 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 ([#&#8203;100](https://github.com/zip-rs/zip2/pull/100))
-   file paths shouldn't start with slashes ([#&#8203;102](https://github.com/zip-rs/zip2/pull/102))

##### <!-- 2 -->🚜 Refactor

-   Overhaul `impl Arbitrary for FileOptions`
-   Remove unused `atomic` module

### [`v1.2.0`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#120---2024-05-06)

[Compare Source](https://github.com/zip-rs/zip2/compare/v1.1.4...v1.2.0)

##### <!-- 0 -->🚀 Features

-   Add method `decompressed_size()` so non-recursive ZIP bombs can be detected

##### <!-- 2 -->🚜 Refactor

-   Make `ZipWriter::finish()` consume the `ZipWriter`

##### <!-- 7 -->⚙️ Miscellaneous Tasks

-   Use panic! rather than abort to ensure the fuzz harness can process the failure
-   Update fuzz_write to use replace_with
-   Remove a drop that can no longer be explicit
-   Add `#![allow(unexpected_cfgs)]` in nightly

### [`v1.1.4`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#114---2024-05-04)

[Compare Source](https://github.com/zip-rs/zip2/compare/v1.1.3...v1.1.4)

##### <!-- 1 -->🐛 Bug Fixes

-   Build was failing with bzip2 enabled
-   use is_dir in more places where Windows paths might be handled incorrectly

##### <!-- 4 --> Performance

-   Quick filter for paths that contain "/../" or "/./" or start with "./" or "../"
-   Fast handling for separator-free paths
-   Speed up logic if main separator isn't '/'
-   Drop `normalized_components` slightly sooner when not using it
-   Speed up `path_to_string` in cases where the path is already in the proper format

##### <!-- 7 -->⚙️ Miscellaneous Tasks

-   Refactor: can short-circuit handling of paths that start with MAIN_SEPARATOR, no matter what MAIN_SEPARATOR is
-   Bug fix: non-canonical path detection when MAIN_SEPARATOR is not slash or occurs twice in a row
-   Bug fix: must recreate if . or .. is a path element
-   Bug fix

##### <!-- 9 -->◀️ Revert

-   [#&#8203;58](https://github.com/zip-rs/zip2/pull/58) (partial): `bzip2-rs` can't replace `bzip2` because it's decompress-only

### [`v1.1.3`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#113---2024-04-30)

[Compare Source](https://github.com/zip-rs/zip2/compare/v1.1.2...v1.1.3)

##### <!-- 1 -->🐛 Bug Fixes

-   Rare bug where find_and_parse would give up prematurely on detecting a false end-of-CDR header

### [`v1.1.2`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#112---2024-04-28)

[Compare Source](https://github.com/zip-rs/zip2/compare/1.1.1...v1.1.2)

##### <!-- 1 -->🐛 Bug Fixes

-   Alignment was previously handled incorrectly ([#&#8203;33](https://github.com/Pr0methean/zip/pull/33))

##### <!-- 2 -->🚜 Refactor

-   deprecate `deflate-miniz` feature since it's now equivalent to `deflate` ([#&#8203;35](https://github.com/Pr0methean/zip/pull/35))

### [`v1.1.1`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#111)

[Compare Source](https://github.com/zip-rs/zip2/compare/1.1.0...1.1.1)

##### Added

-   `index_for_name`, `index_for_path`, `name_for_index`: get the index of a file given its path or vice-versa, without
    initializing metadata from the local-file header or needing to mutably borrow the `ZipArchive`.
-   `add_symlink_from_path`, `shallow_copy_file_from_path`, `deep_copy_file_from_path`, `raw_copy_file_to_path`: copy a
    file or create a symlink using `AsRef<Path>` arguments

##### Changed

-   `add_directory_from_path` and `start_file_from_path` are no longer deprecated, and they now normalize `..` as well as
    `.`.

### [`v1.1.0`](https://github.com/zip-rs/zip2/blob/HEAD/CHANGELOG.md#110)

##### Added

-   Support for decoding LZMA.

##### Changed

-   Eliminated a custom `AtomicU64` type by replacing it with `OnceLock` in the only place it's used.
-   `FileOptions` now has the subtype `SimpleFileOptions` which implements `Copy` but has no extra data.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmN5LXVwZ3JhZGUiXX0=-->

Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Co-authored-by: ThetaDev <thetadev@magenta.de>
Reviewed-on: https://codeberg.org/ThetaDev/artifactview/pulls/9
Co-authored-by: ThetaBot <thetabot@noreply.codeberg.org>
Co-committed-by: ThetaBot <thetabot@noreply.codeberg.org>
2024-07-28 16:07:27 +00:00

View file

@ -25,7 +25,7 @@ All notable changes to this project will be documented in this file.
- *(deps)* Update rust crate scraper to v0.19.1 (#21) - ([1a5c056](https://codeberg.org/ThetaDev/artifactview/commit/1a5c056204b488e36ef95145b05a674c661a2154))
- *(deps)* Update rust crate tokio to v1.39.1 (#26) - ([057a365](https://codeberg.org/ThetaDev/artifactview/commit/057a365a0ecafe00fa84e53c736272f5db26f0f1))
- *(deps)* Update rust crate tokio to v1.39.2 (#28) - ([3ae7f88](https://codeberg.org/ThetaDev/artifactview/commit/3ae7f8813e19818098a6b67d0c6770db8a79defe))
- *(deps)* Update rust crate zip to v2 (#9) - ([a7160fa](https://codeberg.org/ThetaDev/artifactview/commit/a7160fadde6c95c6c03c90c5d2301738c8e559c2))
- *(deps)* Update rust crate zip to v2 (#9) - ([a70a737](https://codeberg.org/ThetaDev/artifactview/commit/a70a7374ced31522debd8f43934bf6971308a0b5))
## [v0.4.5](https://codeberg.org/ThetaDev/artifactview/compare/v0.4.4..v0.4.5) - 2024-07-01