Repository navigation
Update dependency react-share to v6 - #397
Merged
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
renovate
Bot
force-pushed
the
renovate/react-share-6.x
branch
11 times, most recently
from
October 19, 2026 07:25
0c1d701 to
4262096
Compare
renovate
Bot
force-pushed
the
renovate/react-share-6.x
branch
8 times, most recently
from
October 28, 2026 08:16
e85498a to
edb300f
Compare
renovate
Bot
force-pushed
the
renovate/react-share-6.x
branch
7 times, most recently
from
November 2, 2026 06:47
b2c09bf to
8666230
Compare
renovate
Bot
force-pushed
the
renovate/react-share-6.x
branch
2 times, most recently
from
November 6, 2026 18:14
de83978 to
00a9594
Compare
renovate
Bot
force-pushed
the
renovate/react-share-6.x
branch
7 times, most recently
from
November 12, 2026 06:49
c153ebe to
70689a4
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
aileen
force-pushed
the
renovate/react-share-6.x
branch
from
November 12, 2026 06:59
f3b53dc to
3631878
Compare
The v6 major release renamed and reshaped the API that `ShareButtons` relied on, so the Renovate bump alone failed the typecheck step in CI. `TwitterShareButton` became `XShareButton`, the share payload moved off the `title` prop (now `text` for X and `shareTitle` for Reddit, since `title` is reserved for the native button attribute via `htmlTitle`), and the default `*Icon` components no longer accept `round` or `bgStyle`. The icons were switched to `XLegacyIcon` and `RedditLegacyIcon`, which keep the v5 badge markup, so the buttons render exactly as before and the `circle` hover rules in `global.css` keep working without any visual change.
aileen
force-pushed
the
renovate/react-share-6.x
branch
from
November 12, 2026 07:06
3631878 to
52a4fb4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.3.0→6.1.0Release Notes
nygardk/react-share (react-share)
v6.1.0Compare Source
Minor Changes
5ebcdc2: Add acontentprop toTumblrShareButtonandbuildTumblrShareUrl, and list the other Tumblr post types forposttype. For post types other thanlink,contentcarries the actual post data, such as the quote text. Based on #564 by @me4502.37bf4cc: Add atoprop toEmailShareButtonandbuildEmailShareUrlfor prefilling the recipient. It accepts one address or an array of addresses. Requested in #418.a40bfc8: Add anopenInNewTabprop to popup-based share buttons, and a matchingnewTaboption foropenShareWindow, to open the share page in a regular browser tab instead of a popup window. Requested in #449 and proposed in #342.e15ed00: AddFarcasterShareButton,FarcasterIcon,FarcasterLegacyIcon, andbuildFarcasterShareUrlfor sharing to Farcaster (formerly Warpcast) through its compose intent. The shared URL is attached as an embed, andtext,channelKey, andparentCastHashare supported. Requested in #558.8d087a7: Makeurloptional onXShareButtonandbuildXShareUrlso text-only posts can be shared by passing onlytext. At least one ofurlortextis still required. Requested in #570.8c76486: Add aphoneprop toWhatsappShareButtonandbuildWhatsappShareUrlfor sharing to a specific number. It takes the number in international format and removes everything except digits. It applies to both the web and the app link. Requested in #359.v6.0.0Compare Source
Major Changes
a811bc3: Change the defaultEmailShareButtonseparatorfrom" "to"\n"so the shared URL appears on its own line below the email body. The newbuildEmailShareUrlhelper uses the same default.Reported in #582, where the URL was run together with the body text. Pass
separator=" "to keep the previous formatting.5bb43a5: Open the share popup synchronously whenbeforeOnClickreturns a promise, then load the share URL into it once the promise resolves. If the promise rejects, sharing is cancelled and the popup is closed.Previously the popup was opened only after awaiting
beforeOnClick. By then the click's user activation had expired, so Safari and other browsers with strict popup blockers silently blocked the share window (#525, #506, #529). Rejections frombeforeOnClickalso used to surface as unhandled promise rejections.e72b45e: Remove all deprecated share count exports in v6, including the underlying share count implementation and thejsonpdependency that previously powered them.2dc35f2: Remove the deprecatedTwitterShareButtonandTwitterIconaliases in v6. UseXShareButtonandXIconinstead.05c4997: RemovePocketShareButton,PocketIcon,PocketLegacyIcon, andbuildPocketShareUrl, as well asWorkplaceShareButton,WorkplaceIcon,WorkplaceLegacyIcon, andbuildWorkplaceShareUrl.Pocket shut down in July 2025 and Workplace from Meta shut down in June 2026, so these buttons could only open dead share pages.
20570c5: Drop React 17 support in v6 and require React 18 or 19 viapeerDependencies.08b5638: Removetitle,summary, andsourcefromLinkedinShareButtonand makebuildLinkedinShareUrlURL-only.This follows the long-running LinkedIn compatibility problems in #550 and #362. LinkedIn no longer provides a reliable public URL-based way to prefill those fields, so v6 stops exposing them as if they were dependable.
22249a6: Split the icon exports into raw and legacy families for v6.The existing
*Iconexports now render SVG logos that are closer to the underlying network marks. The previous badge-style icons remain available as*LegacyIconexports with the existinground,borderRadius,bgStyle, andiconFillColorprops.If you want to preserve the v5 visuals, rename imports such as
FacebookIcontoFacebookLegacyIcon,XIcontoXLegacyIcon, andWhatsappIcontoWhatsappLegacyIcon.If you keep the
*Iconnames, note that raw icons default tosize={24}instead of64, and no longer acceptround,borderRadius,bgStyle, oriconFillColor.b2c18ff: Remove the deprecatedhashtags,related, andviaprops fromThreadsShareButtonin v6. Those props were ignored in v5 and were kept only for compatibility ahead of this major release.28da248: Replace the share buttontitleprop with explicit v6 payload names:textfor Bluesky, Gab, Line, Telegram, Threads, and Xmessagefor WhatsApp and VibershareTitlefor Hatena, Instapaper, LiveJournal, Mail.ru, OK, Reddit, VK, and WeibopostTitlefor TumblrhtmlTitleremains the native button tooltip/title attribute.Minor Changes
7996b59: Add anonShareWindowOpencallback to popup-based share buttons. It receives the opened share window, ornullwhen a popup blocker prevented it from opening, so apps can detect blocked popups and offer a fallback, as requested in #525.98bb140: Mark the published ESM and CJS bundles with a"use client"directive so share buttons can be imported directly from React Server Components, such as Next.js App Router pages, without a local client wrapper. Requested in #491.2ff01f4: Draw the rawLivejournalIconpencil in navy and white like the official LiveJournal logo. The pencil used to be cut out of the blue circle, so it took on the page background instead of its own colors.7f896ad: Update the rawOKIconto the 2023 OK logo: a white figure on an orange (#FF7700) rounded square, as served on ok.ru. The previous bare glyph was the old mark in an older orange.82f732f: Update the rawThreadsIconto the 2026 Threads app icon: a white glyph on a black rounded square. The previous bare glyph was the old mark and looked lighter than the other raw icons.17a51d2: Use the Lucide mail and share glyphs for the rawEmailIconandNativeShareIcon. The previous glyphs were small badge glyphs on a 64x64 viewBox and looked undersized next to the other raw icons.57ddea2: Put glyph-only raw icons on circle badges so every raw icon has a similar visual weight, like the v5 badges had.XIcon,WeiboIcon,BlueskyIcon,EmailIcon,NativeShareIcon,InstapaperIcon, andTumblrIconnow sit on a circle. The glyph is always drawn in white, so it stays legible on dark backgrounds.NativeShareIconnow uses a fixed blue (#​0A84FF) instead of the current text color, which would hide the white glyph on dark pages.e05b396: Add an explicitmobileBehaviorprop toFacebookMessengerShareButton,TelegramShareButton,ViberShareButton, andWhatsappShareButton.This follows recurring mobile browser and app-handoff reports in #577, #551, #529, and #357. The new prop keeps web sharing as the default while allowing best-effort app-link behavior with
mobileBehavior="app"ormobileBehavior="auto".f978a65: Add low-level helper exports for advanced usage in v6, including per-networkbuild*ShareUrlhelpers andopenShareWindow(url, options).9e44ba2: AddcanNativeShare(data),shareNative(data),NativeShareButton, and a genericNativeShareIconfor browser-native sharing flows.This gives mobile and PWA use cases a first-class Web Share API path instead of forcing them through network-specific popup URLs, which is especially relevant for requests like #576 and the iOS/PWA limitations described in #551.
f708c54: Keep raw icon details white on dark backgrounds. Details cut out of the brand shape, such as the Facebook "f", the LinkedIn "in", the LINE lettering, and the inside of the WhatsApp and Viber bubbles, used to show the page background through them, so the logos turned into dark blobs on dark pages.colorstill recolors the brand-colored part of the icon.Patch Changes
e72d4f3: Update five raw icons to their networks' current brand colors:BlueskyIcon(#​0560FF),LineIcon(#​06C755),PinterestIcon(#E60023),TumblrIcon(#001935), andGabIcon(#​30CE7D). They used older or approximate colors before. The legacy icons keep their v5 colors.4aa9052: Use the current share endpoints for X (https://x.com/intent/post), Threads (https://www.threads.com/intent/post), and Telegram (https://t.me/share/url).The old
twitter.com,threads.net, andtelegram.mehosts only keep working through redirects, which add an extra hop and can drop the share intent if those redirects are retired. Requested in #536.71e21b3: Draw the rawLinkedinIconandGabIconat full size. They reused the small glyphs from the badge icons without their backgrounds, so they filled less than half of the icon box and looked tiny next to the other raw icons.LinkedinIconnow uses the full rounded-square "in" mark in LinkedIn's current#​0A66C2blue, andGabIconputs the wordmark on a rounded green square.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.