Update dependency react-share to v4
Created by: renovate[bot]
This PR contains the following updates:
Package | Type | Update | New value | References | Sourcegraph |
---|---|---|---|---|---|
react-share | dependencies | major | ^4.1.0 | source |
Release Notes
nygardk/react-share
v4.1.0
- Fix:
TwitterShareButton
won't have hashtags as empty string (#284, #293) - Fix:
OKShareCount
now supports multiple different share counts per page (#289) - Fix: share buttons won't pass link options as props (#286)
- Fix:
EmailShareButton
now has defaultseparator
correctly as `` #287) - Fix:
WhatsappShareButton
now has defaultseparator
correctly as `` - Fix:
TumblrShareButton
now has defaultposttype
correctly aslink
- Feature:
TwitterShareButton
now supports "related" array (#281)
v4.0.1
v4.0.0
- React 16.3.0 or newer is now required
- Refactored to TypeScript, type definitions are now included
- Added:
FacebookMessengerShareButton
andFacebookMessengerShareCount
- Added:
WeiboIcon
- Fixed:
VKShareButton
- Fixed:
LinkedinShareButton
- Fixed:
MailruShareButton
- Fixed:
TumblrShareCount
- Fixed:
FacebookShareCount
- Breaking changes:
- default
className
s have been changed - all
{ ...rest }
props are spread to the root element for share buttons and share counts - share counts are now rendered in
span
element instead ofdiv
- icons have
svg
as root element instead ofdiv
- icon props were renamed:
iconBgStyle
->bgStyle
,logoFillColor
->iconFillColor
- default
v3.0.1
- Forward
ref
on to the share buttons - use
componentDidUpdate
instead ofcomponentWillUpdate
v3.0.0
- Added
<PocketShareButton>
- Added
<InstapaperShareButton>
- Added
borderRadius
prop for icons - A default
aria-label
is generated for the share buttons. It is based on the network name. UseadditionalProps
to override. - Removed support for Google+.
- Removed support for
<LinkedInShareCount/>
. LinkedIn no longer provides an API to fetch share counts. - Removed
title
anddescription
from<LinkedInShareButtons/>
. - Fix:
<EmailShareButton/>
includesbody
beforeurl
. - Fix:
<EmailShareButton/>
and<ViberShareButton/>
allow customization ofseparator
. - Fix:
<WeiboShareButton/>
no longer requiresimage
prop - Fix:
<WeiboShareButton/>
includes url correctly when shared - Fix:
<WeiboShareButton/>
and<OKShareButton/>
open in screen center to prevent window from jumping after opening - Thanks @finppp, @madkoding, @andrewl913, @jwrubel, @sinchang and @sergioribeiro!
v2.4.0
- Added
<LineShareButton />
and<WeiboShareButton />
v2.3.1
-
tabIndex
prop can now also be a number
v2.3.0
- Added
<WorkplaceShareButton />
(Facebook Workplace)
v2.2.0
- Added
<ViberShareButton />
- Support
name
prop in share buttons - Fix minor accessibility issue (#156)
Renovate configuration
-
If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.