Skip to content

fix(image): replace deprecated url parser#3429

Open
elitan wants to merge 2 commits into
diegomura:masterfrom
elitan:codex/fix-image-url-parse-deprecation
Open

fix(image): replace deprecated url parser#3429
elitan wants to merge 2 commits into
diegomura:masterfrom
elitan:codex/fix-image-url-parse-deprecation

Conversation

@elitan
Copy link
Copy Markdown

@elitan elitan commented May 21, 2026

Summary

  • replace legacy url.parse usage in @react-pdf/image local path detection
  • preserve local relative/absolute path support and reject remote URLs for local reads
  • add coverage for file:// image URLs

Test plan

  • yarn workspace @react-pdf/primitives build
  • yarn workspace @react-pdf/svg build
  • yarn workspace @react-pdf/image typecheck
  • yarn vitest packages/image/tests/resolve.test.ts --run

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 21, 2026

🦋 Changeset detected

Latest commit: 4063b93

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@react-pdf/image Patch
@react-pdf/layout Patch
@react-pdf/renderer Patch
@react-pdf/math Patch
@react-pdf/mermaid Patch
next-14 Patch
next-15 Patch
@react-pdf/vite-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant