Memperbarui @graphql-codegen/plugin-helpers dari 7.x ke 8.x
Perbandingan API publik @graphql-codegen/plugin-helpers 7.4.2 dan 8.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 | 3 |
| Tanda tangan yang berubah | 3 |
| 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 | 1 |
Ekspor yang dihapus
| import | export | kind | Sebelum |
|---|---|---|---|
@graphql-codegen/plugin-helpers | isConfiguredOutput | function | (type: any): type is ConfiguredOutput |
@graphql-codegen/plugin-helpers | isOutputConfigArray | function | (type: any): type is OutputConfig[] |
@graphql-codegen/plugin-helpers | normalizeImportExtension | function | ({ emitLegacyCommonJSImports, importExtension, }: { emitLegacyCommonJSImports: boolean | undefined; importExtension: "" | `.${string}` | undefined; }): "" | `.${string}` |
Tanda tangan yang berubah
| export | Sebelum | Sesudah |
|---|---|---|
@graphql-codegen/plugin-helpers · PluginFunction | (schema: GraphQLSchema, documents: DocumentFile[], config: T, info?: { [key: string]: any; outputFile?: string | undefined; allPlugins?: ConfiguredPlugin[] | undefined; pluginContext?: { [key: string]: any; } | undefined; } | undefined) => Promisable<TOutput> | (schema: GraphQLSchema, documents: DocumentFile[], config: T, info?: (Partial<PluginInfo> & { [key: string]: any; }) | undefined) => Promisable<TOutput> |
@graphql-codegen/plugin-helpers · PluginValidateFn | (schema: GraphQLSchema, documents: DocumentFile[], config: T, outputFile: string, allPlugins: ConfiguredPlugin[], pluginContext?: { [key: string]: any; } | undefined) => Promisable<void> | (schema: GraphQLSchema, documents: DocumentFile[], config: T, info: PluginInfo) => Promisable<void> |
@graphql-codegen/plugin-helpers · normalizeOutputParam | (config: OutputConfig | ConfiguredOutput | ConfiguredPlugin[]): ConfiguredOutput | (config: ConfiguredOutput | ConfiguredOutput[]): ConfiguredOutput[] |
Anggota kelas atau antarmuka yang dihapus
Tidak ada yang terdeteksi.
Anggota kelas atau antarmuka yang berubah
| member | Sebelum | Sesudah |
|---|---|---|
CodegenPlugin.plugin | (schema: GraphQLSchema, documents: DocumentFile[], config: T, info?: { [key: string]: any; outputFile?: string | undefined; allPlugins?: ConfiguredPlugin[] | undefined; pluginContext?: { [key: string]: any; } | undefined; } | undefined): Promisable<PluginOutput> | (schema: GraphQLSchema, documents: DocumentFile[], config: T, info?: (Partial<PluginInfo> & { [key: string]: any; }) | undefined): Promisable<PluginOutput> |
Baru ditandai usang
Tidak ada yang terdeteksi.
Perubahan persyaratan (engines, dependensi peer)
| Sebelum | Sesudah | |
|---|---|---|
engines.node | >=16 | >=22.18.0 |
peerDependencies.graphql | ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 | ^16.0.0 || ^17.0.0 |
Ekspor baru (1)
| import | export | kind |
|---|---|---|
@graphql-codegen/plugin-helpers | PluginInfo | interface |
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 @graphql-codegen/plugin-helpers dari 7 ke 8?
Antara @graphql-codegen/plugin-helpers 7.4.2 dan 8.0.0, Vigia menemukan 3 ekspor yang dihapus, 3 tanda tangan yang berubah, dan 1 anggota kelas atau antarmuka yang dihapus atau berubah.
Apa yang ditandai usang di @graphql-codegen/plugin-helpers 8?
0 ekspor atau anggota baru ditandai usang di @graphql-codegen/plugin-helpers 8.0.0.
Untuk agen
GET https://vigia.coredls.cloud/v1/packages/npm/@graphql-codegen/plugin-helpers/upgrade?from=7.4.2&to=8.0.0