Memperbarui victory-tooltip dari 37.x ke 38.x
Perbandingan API publik victory-tooltip 37.4.1 dan 38.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 | 0 |
| Tanda tangan yang berubah | 0 |
| Anggota kelas atau antarmuka yang dihapus | 0 |
| Anggota kelas atau antarmuka yang berubah | 1 |
| Baru ditandai usang | 0 |
| Perubahan persyaratan (engines, dependensi peer) | 1 |
| Ekspor baru | 0 |
Ekspor yang dihapus
Tidak ada yang terdeteksi.
Tanda tangan yang berubah
Tidak ada yang terdeteksi.
Anggota kelas atau antarmuka yang dihapus
Tidak ada yang terdeteksi.
Anggota kelas atau antarmuka yang berubah
| member | Sebelum | Sesudah |
|---|---|---|
VictoryTooltip.static defaultProps | { active: boolean; renderInPortal: boolean; labelComponent: JSX.Element; flyoutComponent: JSX.Element; groupComponent: JSX.Element; } | { active: boolean; renderInPortal: boolean; labelComponent: React.JSX.Element; flyoutComponent: React.JSX.Element; groupComponent: React.JSX.Element; } |
Baru ditandai usang
Tidak ada yang terdeteksi.
Perubahan persyaratan (engines, dependensi peer)
| Sebelum | Sesudah | |
|---|---|---|
peerDependencies.react | >=16.6.0 | >=18 |
Changelog di antara versi ini
Teks yang diterbitkan oleh penulis paket, ditampilkan apa adanya.
38.0.0
### Major Changes
- [#3138](https://github.com/FormidableLabs/victory/pull/3138) [`b7ebc3e`](https://github.com/FormidableLabs/victory/commit/b7ebc3e316d05740f11d4e8b8072d420db6ccfad) - Require React 18 or later: the `react` peer dependency is now `>=18` (was `>=16.6.0`). If you're on React 16 or 17, stay on Victory 37.x until you upgrade React.
- [#3107](https://github.com/FormidableLabs/victory/pull/3107) [`4c436bd`](https://github.com/FormidableLabs/victory/commit/4c436bd47b835e795e96bc205cdf9c590fe92ddb) - Remove the UMD bundles (`dist/<package>.js` and `dist/<package>.min.js`). To use Victory in the browser without a build step, import it as ESM from a CDN with an import map; see [Using Victory in the browser](https://commerce.nearform.com/open-source/victory/docs/introduction/browser).
- [#3108](https://github.com/FormidableLabs/victory/pull/3108) [`8f16467`](https://github.com/FormidableLabs/victory/commit/8f1646767d6059d764541118284cf71cc1da5c95) - Packages are now built with tsdown and published from `dist/`, with an `exports` map:
- ESM is `dist/*.mjs` and CommonJS is `dist/*.cjs`, with matching `.d.mts`/`.d.cts` types. `main`, `module` and `types` still point at them for older tooling.
- Only the package root (and `package.json`) can be imported. Deep imports into `lib/`, `es/` or `src/` no longer resolve; import from the package root instead (for example `import { Helpers } from "victory-core"`).
- The output targets ES2022 and is no longer down-leveled further. If you support older browsers, transpile `node_modules` in your bundler.
- `src/` is no longer published.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 victory-tooltip dari 37 ke 38?
Antara victory-tooltip 37.4.1 dan 38.0.0, Vigia menemukan 0 ekspor yang dihapus, 0 tanda tangan yang berubah, dan 1 anggota kelas atau antarmuka yang dihapus atau berubah.
Apa yang ditandai usang di victory-tooltip 38?
0 ekspor atau anggota baru ditandai usang di victory-tooltip 38.0.0.
Untuk agen
GET https://vigia.coredls.cloud/v1/packages/npm/victory-tooltip/upgrade?from=37.4.1&to=38.0.0