Skip to content

fix(deps): move zip to 9.5.1 - #228

Merged
mogery merged 2 commits into
mainfrom
mogery/move-zip-to-951
Nov 13, 2026
Merged

mogery merged 2 commits into
mainfrom
mogery/move-zip-to-951

Conversation

@mogery

@mogery mogery commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Moves zip from 8.6.0 to 9.5.1. Five advisories affect every 8.x release, and anydoc opens caller-supplied archives through zip::ZipArchive (src/package/archive.rs):

Closes #212. #194 and #213 proposed the same move to 9.0.3 and 9.1.3; this sets the requirement at 9.5.1, so no affected version satisfies it (the floor asked for in #194).

Changes

  • Cargo.toml and fuzz/Cargo.toml: zip = "9.5.1", with the same default-features = false, features = ["deflate"].
  • Cargo.lock (cargo update -p zip): zip 8.6.0 → 9.5.1 and typed-path 0.12.3 → 0.13.0, plus new entries zip 9 brings in (cfg_aliases, constant_time_eq, nix, zeroize, zeroize_derive).
  • No source changes for zip. The ZipArchive, ZipWriter and SimpleFileOptions calls compile unchanged, and zip 9.5.1 keeps the 1.88 MSRV.
  • src/model/table.rs (separate commit): the span clamp in TableBuilder walks rows and slots with iter_mut().enumerate() instead of indexing them. Clippy on Rust 1.100 reports the indexed loops as needless_range_loop, which fails the Rust and Wasm jobs on any branch under -D warnings. Behavior is unchanged.

Checks
On Rust 1.100: cargo fmt --all --check, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo clippy -p anydoc-wasm --target wasm32-unknown-unknown -- -D warnings and cargo test --locked (298 passed) all pass locally.

Release
Crates that depend on both anydoc and zip keep zip 8.6.0 in their lockfiles until a published anydoc carries this, because 0.2.4 requires zip ^8.6.0. A patch release after this merges lets them drop it.

Open in Capy

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

View guided diff | Turn on auto-fix | Re-trigger cubic

Rust 1.100's clippy reports needless_range_loop on the span clamp in
TableBuilder, which fails the Rust and Wasm jobs under -D warnings.
Walk the rows and slots with iter_mut().enumerate(); behavior is unchanged.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@mogery
mogery merged commit e56a49b into main Nov 13, 2026
5 checks passed
tebriz91 added a commit to lawkitt/anydoc that referenced this pull request Nov 17, 2026
The fork was already on zip 9; this raises the floor to 9.5.1 (lock and
fuzz manifest too) and takes upstream's clippy fix: iterate the table
grid instead of indexing it (needless_range_loop on newer clippy).
Behaviour is unchanged.

Upstream port of firecrawl/anydoc#228 (from commit
e56a49bf3062c55e8d258346de4a36f4cfb59f70).

Co-authored-by: mogery <mogery@sideguide.dev>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tebriz91 added a commit to lawkitt/anydoc that referenced this pull request Nov 17, 2026
The fork was already on zip 9; this raises the floor to 9.5.1 (lock and
fuzz manifest too) and takes upstream's clippy fix: iterate the table
grid instead of indexing it (needless_range_loop on newer clippy).
Behaviour is unchanged.

Upstream port of firecrawl/anydoc#228 (from commit
e56a49bf3062c55e8d258346de4a36f4cfb59f70).

Co-authored-by: mogery <mogery@sideguide.dev>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update zip dependency to 9.x to pick up security fixes

1 participant