Memperbarui @rsdoctor/core dari 1.x ke 2.x
Perbandingan API publik @rsdoctor/core 1.6.5 dan 2.0.0, dihitung otomatis dari tipe TypeScript-nya. Tanda tangan yang berubah adalah kemungkinan perubahan tidak kompatibel, bukan kepastian.
Ringkasan
| Jalur impor yang dihapus | 4 |
|---|---|
| Ekspor yang dihapus | 14 |
| Tanda tangan yang berubah | 1 |
| Anggota kelas atau antarmuka yang dihapus | 0 |
| Anggota kelas atau antarmuka yang berubah | 1 |
| Baru ditandai usang | 0 |
| Perubahan persyaratan (engines, dependensi peer) | 2 |
| Ekspor baru | 11 |
Jalur impor yang dihapus
| Jalur impor yang dihapus |
|---|
@rsdoctor/core/rules |
@rsdoctor/core/types |
@rsdoctor/core/plugins |
@rsdoctor/core/build-utils |
Ekspor yang dihapus
| import | export | kind | Sebelum |
|---|---|---|---|
@rsdoctor/core | Rule | interface | interface |
@rsdoctor/core | Build | namespace | namespace |
@rsdoctor/core | InnerPlugins | namespace | namespace |
@rsdoctor/core | AssetsModules | type | { label?: string | undefined; isAsset?: boolean | undefined; modules?: Plugin.StatsModule[] | undefined; } |
@rsdoctor/core | InternalPlugin | interface | interface |
@rsdoctor/core | BasePluginInstance | interface | interface |
@rsdoctor/core | NativePluginConfig | interface | interface |
@rsdoctor/core | ProxyLoaderOptions | interface | interface |
@rsdoctor/core | ProxyLoaderInternalOptions | interface | interface |
@rsdoctor/core | RsdoctorRspackPluginInstance | interface | interface |
@rsdoctor/core | RsdoctorMultiplePluginOptions | interface | interface |
@rsdoctor/core | RsdoctorRspackPluginExperiments | interface | interface |
@rsdoctor/core | RsdoctorRspackPluginOptionsNormalized | type | any |
@rsdoctor/core | RsdoctorRspackPluginExperimentsNormalized | interface | interface |
Tanda tangan yang berubah
| export | Sebelum | Sesudah |
|---|---|---|
@rsdoctor/core · RsdoctorRspackPluginOptions | interface | Plugin_2.RsdoctorRspackPluginOptions<Rules> |
Anggota kelas atau antarmuka yang dihapus
Tidak ada yang terdeteksi.
Anggota kelas atau antarmuka yang berubah
| member | Sebelum | Sesudah |
|---|---|---|
RsdoctorPluginInstance.options | Plugin.RsdoctorPluginOptionsNormalized<Rules> | Plugin_2.RsdoctorPluginOptionsNormalized<Rules> |
Baru ditandai usang
Tidak ada yang terdeteksi.
Perubahan persyaratan (engines, dependensi peer)
| Sebelum | Sesudah | |
|---|---|---|
engines.node | — | ^20.19.0 || >=22.12.0 |
peerDependencies.@rspack/core | — | ^2.0.0 |
Ekspor baru (11)
| import | export | kind |
|---|---|---|
@rsdoctor/core | rules | variable |
@rsdoctor/core | Linter | class |
@rsdoctor/core | logger | variable |
@rsdoctor/core | LinterRule | class |
@rsdoctor/core | LinterType | variable |
@rsdoctor/core | defineRule | function |
@rsdoctor/core | RsdoctorSDK | class |
@rsdoctor/core | RsdoctorRspackPlugin | class |
@rsdoctor/core | migrateRsdoctorOptions | function |
@rsdoctor/core | CompatibleRsdoctorOptions | type |
@rsdoctor/core | resolveClientDiffHtmlPath | 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 @rsdoctor/core dari 1 ke 2?
Antara @rsdoctor/core 1.6.5 dan 2.0.0, Vigia menemukan 14 ekspor yang dihapus, 1 tanda tangan yang berubah, dan 1 anggota kelas atau antarmuka yang dihapus atau berubah.
Apa yang ditandai usang di @rsdoctor/core 2?
0 ekspor atau anggota baru ditandai usang di @rsdoctor/core 2.0.0.
Untuk agen
GET https://vigia.coredls.cloud/v1/packages/npm/@rsdoctor/core/upgrade?from=1.6.5&to=2.0.0