postgres: 3.x sürümünden 4.x sürümüne yükseltme
postgres 3.4.9 ve 4.0.0 sürümlerinin genel API karşılaştırması, TypeScript tiplerinden otomatik olarak hesaplanır. Değişen bir imza olası bir uyumsuz değişikliktir, kesinlik değildir.
Özet
| Kaldırılan içe aktarma yolları | 0 |
|---|---|
| Kaldırılan dışa aktarımlar | 45 |
| Değişen imzalar | 14 |
| Kaldırılan sınıf veya arayüz üyeleri | 0 |
| Değişen sınıf veya arayüz üyeleri | 0 |
| Yeni kullanımdan kaldırılanlar | 0 |
| Gereksinim değişiklikleri (engines, peer bağımlılıkları) | 1 |
| Yeni dışa aktarımlar | 6 |
Kaldırılan dışa aktarımlar
| import | export | kind | Önce |
|---|---|---|---|
postgres | State | interface | interface |
postgres | camel | namespace | namespace |
postgres | kebab | namespace | namespace |
postgres | BigInt | variable | PostgresType<bigint> |
postgres | Column | interface | interface |
postgres | pascal | namespace | namespace |
postgres | toCamel | function | (str: string): string |
postgres | toKebab | function | (str: string): string |
postgres | MaybeRow | type | Row | undefined |
postgres | toPascal | function | (str: string): string |
postgres | JSONValue | type | string | number | boolean | Date | readonly JSONValue[] | { toJSON(): any; } | { readonly [prop: string]: JSONValue | ((...args: any) => any) | undefined; readonly [prop: number]: JSONValue | ((...args: any) => any) | undefined; } | null |
postgres | Statement | interface | interface |
postgres | Transform | interface | interface |
postgres | fromCamel | function | (str: string): string |
postgres | fromKebab | function | (str: string): string |
postgres | ColumnInfo | interface | interface |
postgres | ColumnList | type | (T extends string ? Column<T> : never)[] |
postgres | ListenMeta | interface | interface |
postgres | RawRowList | type | Buffer[][] & Iterable<Buffer[][]> & ResultQueryMeta<T["length"], keyof T[number]> |
postgres | ResultMeta | interface | interface |
postgres | fromPascal | function | (str: string): string |
postgres | LargeObject | interface | interface |
postgres | GenericError | interface | interface |
postgres | RelationInfo | interface | interface |
postgres | Serializable | type | string | number | boolean | Date | Uint8Array<ArrayBufferLike> | null |
postgres | ListenRequest | interface | interface |
postgres | ValuesRowList | type | T[number][keyof T[number]][][] & ResultQueryMeta<T["length"], keyof T[number]> |
postgres | ArrayParameter | interface | interface |
postgres | EscapableArray | type | (string | number)[] |
postgres | PendingRequest | interface | interface |
postgres | ConnectionError | interface | interface |
postgres | ExecutionResult | type | [] & ResultQueryMeta<number, keyof NonNullable<T>> |
postgres | ParameterOrJSON | type | string | number | boolean | Date | Uint8Array<ArrayBufferLike> | Helper<any, any[]> | Parameter<any> | ArrayParameter<readonly any[]> | readonly JSONValue[] | { toJSON(): any; } | { readonly [prop: string]: JSONValue | ((...args: any) => any) | undefined; readonly [prop: number]: JSONValue | ((...args: any) => any) | undefined; } | T | readonly SerializableParameter<T>[] | null |
postgres | PendingRawQuery | interface | interface |
postgres | ResultQueryMeta | interface | interface |
postgres | NotSupportedError | interface | interface |
postgres | PendingValuesQuery | interface | interface |
postgres | SubscriptionHandle | interface | interface |
postgres | UnsafeQueryOptions | interface | interface |
postgres | ParameterOrFragment | type | Fragment | SerializableParameter<T> | Fragment[] |
postgres | ConnectionParameters | interface | interface |
postgres | PendingDescribeQuery | interface | interface |
postgres | PendingQueryModifiers | interface | interface |
postgres | SerializableParameter | type | Serializable | T | Helper<any, any[]> | Parameter<any> | ArrayParameter<readonly any[]> | readonly SerializableParameter<T>[] |
postgres | AuthNotImplementedError | interface | interface |
Değişen imzalar
| export | Önce | Sonra |
|---|---|---|
postgres · Row | interface | Row |
postgres · Sql | interface | Sql<TTypes> |
postgres · ISql | interface | ISql<TTypes> |
postgres · Helper | interface | Helper<T, U> |
postgres · Notice | interface | Notice |
postgres · Options | interface | Options<T> |
postgres · Parameter | interface | Parameter<T> |
postgres · ReservedSql | interface | ReservedSql<TTypes> |
postgres · PendingQuery | interface | PendingQuery<T> |
postgres · PostgresType | interface | PostgresType<T> |
postgres · ParsedOptions | interface | ParsedOptions<T> |
postgres · PostgresError | class | PostgresError |
postgres · TransactionSql | interface | TransactionSql<TTypes> |
postgres · ReplicationEvent | { command: "insert"; relation: RelationInfo; } | { command: "delete"; relation: RelationInfo; key: boolean; } | { command: "update"; relation: RelationInfo; key: boolean; old: Row | null; } | TransactionInfo & ({ command: "insert"; relation: RelationInfo; } | { command: "update"; relation: RelationInfo; key: boolean; old: Row | null; } | { command: "delete"; relation: RelationInfo; key: boolean; } | { command: "truncate"; relation: RelationInfo; cascade: boolean; restartIdentity: boolean; }) |
Kaldırılan sınıf veya arayüz üyeleri
Tespit edilmedi.
Değişen sınıf veya arayüz üyeleri
Tespit edilmedi.
Yeni kullanımdan kaldırılanlar
Tespit edilmedi.
Gereksinim değişiklikleri (engines, peer bağımlılıkları)
| Önce | Sonra | |
|---|---|---|
engines.node | >=12 | >=20 |
Yeni dışa aktarımlar (6)
| import | export | kind |
|---|---|---|
postgres | default | function |
postgres | PoolEvent | type |
postgres | QueryTrace | type |
postgres | NoticeEvent | type |
postgres | ConnectTrace | type |
postgres | TransactionTrace | type |
Bu verileri yapay zekâ ajanınıza verin
Vigia ücretsiz bir MCP sunucusudur: kodlama ajanınız kod yazmadan önce sürümleri, uyumsuz değişiklikleri ve güvenlik açıklarını kontrol eder. Kayıt ve API anahtarı gerekmez.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Cursor'a ekleVS Code'a ekle★ GitHub'da yıldız ver
Diğer tüm MCP istemcileri
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Ajan becerisi (SKILL.md): ajana Vigia'yı ne zaman kullanacağını söyler · Pull request için GitHub Action
Sık sorulan sorular
postgres paketini 3 sürümünden 4 sürümüne yükseltirken uyumsuz değişiklikler nelerdir?
postgres 3.4.9 ile 4.0.0 arasında Vigia 45 kaldırılan dışa aktarım, 14 değişen imza ve 0 kaldırılan veya değişen sınıf ya da arayüz üyesi buldu.
postgres 4 sürümünde neler kullanımdan kaldırıldı?
postgres 4.0.0 sürümünde 0 dışa aktarım veya üye yeni olarak kullanımdan kaldırılmış işaretlendi.
Ajanlar için
GET https://vigia.coredls.cloud/v1/packages/npm/postgres/upgrade?from=3.4.9&to=4.0.0