Memperbarui react-share dari 5.x ke 6.x
Perbandingan API publik react-share 5.3.0 dan 6.0.0, dihitung otomatis dari tipe TypeScript-nya. Tanda tangan yang berubah adalah kemungkinan perubahan tidak kompatibel, bukan kepastian.
Ringkasan
| Jalur impor yang dihapus | 0 |
|---|---|
| Ekspor yang dihapus | 13 |
| Tanda tangan yang berubah | 22 |
| Anggota kelas atau antarmuka yang dihapus | 0 |
| Anggota kelas atau antarmuka yang berubah | 0 |
| Baru ditandai usang | 0 |
| Perubahan persyaratan (engines, dependensi peer) | 1 |
| Ekspor baru | 53 |
Ekspor yang dihapus
| import | export | kind | Sebelum |
|---|---|---|---|
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> |
Tanda tangan yang berubah
| export | Sebelum | Sesudah |
|---|---|---|
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 |
Anggota kelas atau antarmuka yang dihapus
Tidak ada yang terdeteksi.
Anggota kelas atau antarmuka yang berubah
Tidak ada yang terdeteksi.
Baru ditandai usang
Tidak ada yang terdeteksi.
Perubahan persyaratan (engines, dependensi peer)
| Sebelum | Sesudah | |
|---|---|---|
peerDependencies.react | ^17 || ^18 || ^19 | ^18 || ^19 |
Ekspor baru (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 |
Berikan fakta ini ke agen AI Anda
Vigia adalah server MCP gratis: agen coding Anda memeriksa versi, perubahan yang merusak kompatibilitas, dan kerentanan sebelum menulis kode. Tanpa pendaftaran, tanpa kunci API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Tambahkan ke CursorTambahkan ke VS Code★ Bintang di GitHub
Klien MCP lainnya
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill agen (SKILL.md): memberi tahu agen kapan memakai Vigia · GitHub Action untuk pull request
Pertanyaan umum
Apa saja perubahan tidak kompatibel saat memperbarui react-share dari 5 ke 6?
Antara react-share 5.3.0 dan 6.0.0, Vigia menemukan 13 ekspor yang dihapus, 22 tanda tangan yang berubah, dan 0 anggota kelas atau antarmuka yang dihapus atau berubah.
Apa yang ditandai usang di react-share 6?
0 ekspor atau anggota baru ditandai usang di react-share 6.0.0.
Untuk agen
GET https://vigia.coredls.cloud/v1/packages/npm/react-share/upgrade?from=5.3.0&to=6.0.0