Vigia

将 react-share 从 5.x 升级到 6.x

根据 TypeScript 类型自动比较 react-share 5.3.0 与 6.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出13
已修改的签名22
已删除的类或接口成员0
已修改的类或接口成员0
新增弃用0
要求变化(engines、peer 依赖)1
新增导出53

已删除的导出

importexportkind之前
react-sharePocketIconfunction(props: IconProps): JSX.Element
react-shareTwitterIconfunction(props: IconProps): JSX.Element
react-shareOKShareCountvariable(props: { suppressHydrationWarning?: boolean | undefined; className?: string | undefined; color?: string | undefined; id?: string | undefined; lang?: string | undefined; nonce?: string | undefined; part?: string | undefined; slot?: string | undefined; style?: any; role?: any; tabIndex?: number | undefined; "aria-activedescendant"?: string | undefined; "aria-atomic"?: boolean | "true" | "false" | undefined; "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined; "aria-braillelabel"?: string | undefined; "aria-brailleroledescription"?: string | undefined; "aria-busy"?: boolean | "…
react-shareVKShareCountvariable(props: { suppressHydrationWarning?: boolean | undefined; className?: string | undefined; color?: string | undefined; id?: string | undefined; lang?: string | undefined; nonce?: string | undefined; part?: string | undefined; slot?: string | undefined; style?: any; role?: any; tabIndex?: number | undefined; "aria-activedescendant"?: string | undefined; "aria-atomic"?: boolean | "true" | "false" | undefined; "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined; "aria-braillelabel"?: string | undefined; "aria-brailleroledescription"?: string | undefined; "aria-busy"?: boolean | "…
react-shareWorkplaceIconfunction(props: IconProps): JSX.Element
react-shareHatenaShareCountvariable(props: { suppressHydrationWarning?: boolean | undefined; className?: string | undefined; color?: string | undefined; id?: string | undefined; lang?: string | undefined; nonce?: string | undefined; part?: string | undefined; slot?: string | undefined; style?: any; role?: any; tabIndex?: number | undefined; "aria-activedescendant"?: string | undefined; "aria-atomic"?: boolean | "true" | "false" | undefined; "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined; "aria-braillelabel"?: string | undefined; "aria-brailleroledescription"?: string | undefined; "aria-busy"?: boolean | "…
react-shareRedditShareCountvariable(props: { suppressHydrationWarning?: boolean | undefined; className?: string | undefined; color?: string | undefined; id?: string | undefined; lang?: string | undefined; nonce?: string | undefined; part?: string | undefined; slot?: string | undefined; style?: any; role?: any; tabIndex?: number | undefined; "aria-activedescendant"?: string | undefined; "aria-atomic"?: boolean | "true" | "false" | undefined; "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined; "aria-braillelabel"?: string | undefined; "aria-brailleroledescription"?: string | undefined; "aria-busy"?: boolean | "…
react-shareTumblrShareCountvariable(props: { suppressHydrationWarning?: boolean | undefined; className?: string | undefined; color?: string | undefined; id?: string | undefined; lang?: string | undefined; nonce?: string | undefined; part?: string | undefined; slot?: string | undefined; style?: any; role?: any; tabIndex?: number | undefined; "aria-activedescendant"?: string | undefined; "aria-atomic"?: boolean | "true" | "false" | undefined; "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined; "aria-braillelabel"?: string | undefined; "aria-brailleroledescription"?: string | undefined; "aria-busy"?: boolean | "…
react-sharePocketShareButtonvariableForwardRefExoticComponent<any>
react-shareFacebookShareCountvariable(props: { suppressHydrationWarning?: boolean | undefined; className?: string | undefined; color?: string | undefined; id?: string | undefined; lang?: string | undefined; nonce?: string | undefined; part?: string | undefined; slot?: string | undefined; style?: any; role?: any; tabIndex?: number | undefined; "aria-activedescendant"?: string | undefined; "aria-atomic"?: boolean | "true" | "false" | undefined; "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined; "aria-braillelabel"?: string | undefined; "aria-brailleroledescription"?: string | undefined; "aria-busy"?: boolean | "…
react-shareTwitterShareButtonvariableForwardRefExoticComponent<any>
react-sharePinterestShareCountvariable(props: { suppressHydrationWarning?: boolean | undefined; className?: string | undefined; color?: string | undefined; id?: string | undefined; lang?: string | undefined; nonce?: string | undefined; part?: string | undefined; slot?: string | undefined; style?: any; role?: any; tabIndex?: number | undefined; "aria-activedescendant"?: string | undefined; "aria-atomic"?: boolean | "true" | "false" | undefined; "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined; "aria-braillelabel"?: string | undefined; "aria-brailleroledescription"?: string | undefined; "aria-busy"?: boolean | "…
react-shareWorkplaceShareButtonvariableForwardRefExoticComponent<any>

已修改的签名

export之前之后
react-share · XIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · OKIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · VKIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · GabIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · LineIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · EmailIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · ViberIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · WeiboIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · HatenaIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · MailruIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · RedditIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · TumblrIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · BlueskyIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · ThreadsIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · FacebookIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · LinkedinIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · TelegramIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · WhatsappIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · PinterestIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · InstapaperIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · LivejournalIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element
react-share · FacebookMessengerIcon(props: IconProps): JSX.Element(props: RawIconProps): JSX.Element

已删除的类或接口成员

未发现。

已修改的类或接口成员

未发现。

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
peerDependencies.react^17 || ^18 || ^19^18 || ^19
新增导出 (53)
importexportkind
react-shareXLegacyIconfunction
react-shareshareNativefunction
react-shareOKLegacyIconfunction
react-shareVKLegacyIconfunction
react-shareGabLegacyIconfunction
react-shareLineLegacyIconfunction
react-shareWindowPositiontype
react-sharebuildXShareUrlvariable
react-sharecanNativeSharefunction
react-shareEmailLegacyIconfunction
react-shareNativeShareDatatype
react-shareNativeShareIconfunction
react-shareViberLegacyIconfunction
react-shareWeiboLegacyIconfunction
react-sharebuildOKShareUrlvariable
react-sharebuildVKShareUrlvariable
react-shareopenShareWindowfunction
react-shareHatenaLegacyIconfunction
react-shareMailruLegacyIconfunction
react-shareRedditLegacyIconfunction
react-shareTumblrLegacyIconfunction
react-sharebuildGabShareUrlvariable
react-shareBlueskyLegacyIconfunction
react-shareNativeShareButtonvariable
react-shareThreadsLegacyIconfunction
react-sharebuildLineShareUrlvariable
react-shareFacebookLegacyIconfunction
react-shareLinkedinLegacyIconfunction
react-shareShareWindowOptionstype
react-shareTelegramLegacyIconfunction
react-shareWhatsappLegacyIconfunction
react-sharebuildEmailShareUrlvariable
react-sharebuildViberShareUrlvariable
react-sharebuildWeiboShareUrlvariable
react-sharePinterestLegacyIconfunction
react-sharebuildHatenaShareUrlvariable
react-sharebuildMailruShareUrlvariable
react-sharebuildRedditShareUrlvariable
react-sharebuildTumblrShareUrlvariable
react-shareInstapaperLegacyIconfunction
react-sharebuildBlueskyShareUrlvariable
react-sharebuildThreadsShareUrlvariable
react-shareLivejournalLegacyIconfunction
react-shareNativeShareLegacyIconfunction
react-sharebuildFacebookShareUrlvariable
react-sharebuildLinkedinShareUrlvariable
react-sharebuildTelegramShareUrlvariable
react-sharebuildWhatsappShareUrlvariable
react-sharebuildPinterestShareUrlvariable
react-sharebuildInstapaperShareUrlvariable
react-sharebuildLivejournalShareUrlvariable
react-shareFacebookMessengerLegacyIconfunction
react-sharebuildFacebookMessengerShareUrlvariable

把这些数据交给你的 AI 智能体

Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

添加到 Cursor添加到 VS Code★ 在 GitHub 上加星

任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

智能体技能(SKILL.md):告诉智能体何时使用 Vigia · 用于拉取请求的 GitHub Action

常见问题

将 react-share 从 5 升级到 6 有哪些不兼容变更?

在 react-share 5.3.0 与 6.0.0 之间,Vigia 发现 13 个已删除的导出、22 个已修改的签名,以及 0 个已删除或修改的类或接口成员。

react-share 6 中弃用了哪些内容?

react-share 6.0.0 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/react-share/upgrade?from=5.3.0&to=6.0.0