Skip to content

chore: version packages#2

Open
github-actions[bot] wants to merge 1 commit intomainfrom
changeset-release/main
Open

chore: version packages#2
github-actions[bot] wants to merge 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions bot commented Apr 6, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

r2-explorer@1.2.0

Minor Changes

  • #152 5c52c5d Thanks @G4brym! - Add file and folder duplicate/copy operation via context menu. Right-clicking a file or folder and selecting "Duplicate" creates a copy with a " (copy)" suffix in the same directory, preserving all metadata.

Patch Changes

  • #151 67ea55c Thanks @G4brym! - Add ShareMetadata type interface for share link metadata, replacing untyped any in getShareLink and implicit any in listShares. Also fix readOnlyMiddleware to use Hono's Next type instead of CallableFunction.

  • #145 c936027 Thanks @G4brym! - Fix Content-Disposition header injection in GetObject by sanitizing filenames (replacing non-ASCII with _ and double quotes with ') and adding RFC 5987 filename*=UTF-8''... parameter for proper Unicode support.

  • #147 0109d8c Thanks @G4brym! - Fix HeadObject OpenAPI summary from "Get Object" to "Head Object" and align base64 key decoding in HeadObject and PutMetadata with GetObject's three-level fallback to handle edge-case encoded keys consistently across all endpoints.

  • #148 812abd0 Thanks @G4brym! - Add missing null check for R2 bucket in email handler to prevent crash when no bucket binding is found

  • #146 66075a5 Thanks @G4brym! - Fix share link download counter incrementing before verifying file exists. Previously, if the shared file was deleted from the bucket, accessing the share link would still increment the download counter before returning a 404 error. This could exhaust the download limit without any actual downloads occurring. The counter now only increments after confirming the file exists.

  • #149 06ddecb Thanks @G4brym! - Return 400 instead of 500 when upload endpoints receive malformed base64-encoded metadata in customMetadata or httpMetadata query parameters

Summary by Sourcery

Release r2-explorer v1.2.0 and apply accumulated changesets.

New Features:

  • Add file and folder duplicate/copy operation via the context menu.

Bug Fixes:

  • Introduce a typed ShareMetadata interface for share link metadata and align related handlers with strict typing.
  • Sanitize filenames in Content-Disposition headers and add proper Unicode support to prevent header injection issues.
  • Align HeadObject OpenAPI summary and key decoding behavior with GetObject for consistent handling of encoded keys.
  • Guard the email handler with a null check for the R2 bucket binding to avoid crashes when the bucket is missing.
  • Update share link download tracking to increment counters only after confirming the file exists.
  • Return HTTP 400 instead of 500 when upload endpoints receive malformed base64-encoded metadata in query parameters.

Chores:

  • Remove consumed changeset files after publishing.

@gitnotebooks
Copy link
Copy Markdown

gitnotebooks bot commented Apr 6, 2026

Review these changes at https://app.gitnotebooks.com/Cybersoulja/R2-Explorer/pull/2

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai bot commented Apr 6, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Prepares the r2-explorer worker package for release 1.2.0 by bumping its package version and removing the now-consumed Changesets entries that describe the included feature and fixes.

File-Level Changes

Change Details Files
Bump worker package version to 1.2.0 for the r2-explorer release.
  • Update the r2-explorer package version field from 1.1.16 to 1.2.0 in the worker package manifest
packages/worker/package.json
Clean up consumed Changesets after generating the release.
  • Remove the changeset describing the new duplicate/copy operation feature
  • Remove the changeset describing the ShareMetadata typing update and middleware type fix
  • Remove the changeset describing the Content-Disposition header sanitization change
  • Remove the changeset describing HeadObject OpenAPI summary and key-decoding alignment
  • Remove the changeset describing the R2 bucket null check in the email handler
  • Remove the changeset describing the share link download counter fix
  • Remove the changeset describing the malformed base64 metadata handling in upload endpoints
.changeset/add-duplicate-copy-operation.md
.changeset/add-share-metadata-type.md
.changeset/fix-content-disposition-injection.md
.changeset/fix-head-object-key-decoding.md
.changeset/fix-receive-email-guard.md
.changeset/fix-share-download-counter.md
.changeset/handle-malformed-metadata.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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.

0 participants