Обновление react-share с 5.x до 6.x
Сравнение публичного API react-share 5.3.0 и 6.0.0, вычисленное автоматически по их типам TypeScript. Изменённая сигнатура — возможное несовместимое изменение, а не гарантия.
Сводка
| Удалённые пути импорта | 0 |
|---|---|
| Удалённые экспорты | 13 |
| Изменённые сигнатуры | 22 |
| Удалённые члены классов или интерфейсов | 0 |
| Изменённые члены классов или интерфейсов | 0 |
| Новые устаревания | 0 |
| Изменения требований (engines, peer-зависимости) | 1 |
| Новые экспорты | 53 |
Удалённые экспорты
| import | export | kind | Было |
|---|---|---|---|
react-share | PocketIcon | function | (props: IconProps): JSX.Element |
react-share | TwitterIcon | function | (props: IconProps): JSX.Element |
react-share | OKShareCount | variable | (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-share | VKShareCount | variable | (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-share | WorkplaceIcon | function | (props: IconProps): JSX.Element |
react-share | HatenaShareCount | variable | (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-share | RedditShareCount | variable | (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-share | TumblrShareCount | variable | (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-share | PocketShareButton | variable | ForwardRefExoticComponent<any> |
react-share | FacebookShareCount | variable | (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-share | TwitterShareButton | variable | ForwardRefExoticComponent<any> |
react-share | PinterestShareCount | variable | (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-share | WorkplaceShareButton | variable | ForwardRefExoticComponent<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)
| import | export | kind |
|---|---|---|
react-share | XLegacyIcon | function |
react-share | shareNative | function |
react-share | OKLegacyIcon | function |
react-share | VKLegacyIcon | function |
react-share | GabLegacyIcon | function |
react-share | LineLegacyIcon | function |
react-share | WindowPosition | type |
react-share | buildXShareUrl | variable |
react-share | canNativeShare | function |
react-share | EmailLegacyIcon | function |
react-share | NativeShareData | type |
react-share | NativeShareIcon | function |
react-share | ViberLegacyIcon | function |
react-share | WeiboLegacyIcon | function |
react-share | buildOKShareUrl | variable |
react-share | buildVKShareUrl | variable |
react-share | openShareWindow | function |
react-share | HatenaLegacyIcon | function |
react-share | MailruLegacyIcon | function |
react-share | RedditLegacyIcon | function |
react-share | TumblrLegacyIcon | function |
react-share | buildGabShareUrl | variable |
react-share | BlueskyLegacyIcon | function |
react-share | NativeShareButton | variable |
react-share | ThreadsLegacyIcon | function |
react-share | buildLineShareUrl | variable |
react-share | FacebookLegacyIcon | function |
react-share | LinkedinLegacyIcon | function |
react-share | ShareWindowOptions | type |
react-share | TelegramLegacyIcon | function |
react-share | WhatsappLegacyIcon | function |
react-share | buildEmailShareUrl | variable |
react-share | buildViberShareUrl | variable |
react-share | buildWeiboShareUrl | variable |
react-share | PinterestLegacyIcon | function |
react-share | buildHatenaShareUrl | variable |
react-share | buildMailruShareUrl | variable |
react-share | buildRedditShareUrl | variable |
react-share | buildTumblrShareUrl | variable |
react-share | InstapaperLegacyIcon | function |
react-share | buildBlueskyShareUrl | variable |
react-share | buildThreadsShareUrl | variable |
react-share | LivejournalLegacyIcon | function |
react-share | NativeShareLegacyIcon | function |
react-share | buildFacebookShareUrl | variable |
react-share | buildLinkedinShareUrl | variable |
react-share | buildTelegramShareUrl | variable |
react-share | buildWhatsappShareUrl | variable |
react-share | buildPinterestShareUrl | variable |
react-share | buildInstapaperShareUrl | variable |
react-share | buildLivejournalShareUrl | variable |
react-share | FacebookMessengerLegacyIcon | function |
react-share | buildFacebookMessengerShareUrl | variable |
Передайте эти данные своему ИИ-агенту
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 для pull request
Часто задаваемые вопросы
Какие несовместимые изменения при обновлении 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