Skip to content

fix: override sharp to >=0.35.0 in gatsby-app - #1218

Merged
yogeshchoudhary147 merged 1 commit into
mainfrom
fix/gatsby-sharp-override
Aug 28, 2026
Merged

fix: override sharp to >=0.35.0 in gatsby-app#1218
yogeshchoudhary147 merged 1 commit into
mainfrom
fix/gatsby-sharp-override

Conversation

@yogeshchoudhary147

@yogeshchoudhary147 yogeshchoudhary147 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds an overrides entry in examples/gatsby-app/package.json to force sharp@>=0.35.0 scoped to gatsby-sharp, resolving version conflicts that can cause install/build failures.

Test plan

  • npm install resolves sharp@0.35.4 under gatsby-sharp
  • gatsby build completes successfully with no errors

Summary by CodeRabbit

  • Bug Fixes
    • Improved image processing compatibility by ensuring Gatsby uses a supported version of the Sharp image library.

@yogeshchoudhary147
yogeshchoudhary147 requested a review from a team as a code owner August 28, 2026 03:53
@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 2caefaff-a28f-4ec6-9561-5241ee654867

📥 Commits

Reviewing files that changed from the base of the PR and between 76cd934 and 41c4d95.

📒 Files selected for processing (1)
  • examples/gatsby-app/package.json

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The Gatsby example adds an npm overrides block. The block forces gatsby-sharp to resolve sharp at version >=0.35.0.

Changes

Gatsby Sharp dependency resolution

Layer / File(s) Summary
Configure Sharp version override
examples/gatsby-app/package.json
Adds an overrides block that sets gatsby-sharp to use sharp version >=0.35.0.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to 41c4d

This localized dependency override updates the Gatsby example's sharp resolution, with the stated install and build checks passing; no actionable merge-blocking risk remains beyond normal checks and review.

Suggested reviewers: amitsingh05667

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding an override for Sharp version 0.35.0 or later in the Gatsby app.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/gatsby-sharp-override

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@yogeshchoudhary147
yogeshchoudhary147 force-pushed the fix/gatsby-sharp-override branch from 41c4d95 to e1870bb Compare August 28, 2026 03:55
@yogeshchoudhary147
yogeshchoudhary147 merged commit 5bd88f5 into main Aug 28, 2026
16 checks passed
@yogeshchoudhary147
yogeshchoudhary147 deleted the fix/gatsby-sharp-override branch August 28, 2026 06:40
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.

2 participants