Vigia

Nâng cấp postgres từ 3.x lên 4.x

So sánh API công khai của postgres 3.4.9 và 4.0.0, được tính tự động từ kiểu TypeScript. Chữ ký thay đổi là thay đổi có thể không tương thích, không phải điều chắc chắn.

Tóm tắt

Đường dẫn import bị xóa0
Export bị xóa45
Chữ ký thay đổi14
Thành viên lớp hoặc interface bị xóa0
Thành viên lớp hoặc interface thay đổi0
Mới bị ngừng hỗ trợ0
Thay đổi yêu cầu (engines, phụ thuộc peer)1
Export mới6

Export bị xóa

importexportkindTrước
postgresStateinterfaceinterface
postgrescamelnamespacenamespace
postgreskebabnamespacenamespace
postgresBigIntvariablePostgresType<bigint>
postgresColumninterfaceinterface
postgrespascalnamespacenamespace
postgrestoCamelfunction(str: string): string
postgrestoKebabfunction(str: string): string
postgresMaybeRowtypeRow | undefined
postgrestoPascalfunction(str: string): string
postgresJSONValuetypestring | number | boolean | Date | readonly JSONValue[] | { toJSON(): any; } | { readonly [prop: string]: JSONValue | ((...args: any) => any) | undefined; readonly [prop: number]: JSONValue | ((...args: any) => any) | undefined; } | null
postgresStatementinterfaceinterface
postgresTransforminterfaceinterface
postgresfromCamelfunction(str: string): string
postgresfromKebabfunction(str: string): string
postgresColumnInfointerfaceinterface
postgresColumnListtype(T extends string ? Column<T> : never)[]
postgresListenMetainterfaceinterface
postgresRawRowListtypeBuffer[][] & Iterable<Buffer[][]> & ResultQueryMeta<T["length"], keyof T[number]>
postgresResultMetainterfaceinterface
postgresfromPascalfunction(str: string): string
postgresLargeObjectinterfaceinterface
postgresGenericErrorinterfaceinterface
postgresRelationInfointerfaceinterface
postgresSerializabletypestring | number | boolean | Date | Uint8Array<ArrayBufferLike> | null
postgresListenRequestinterfaceinterface
postgresValuesRowListtypeT[number][keyof T[number]][][] & ResultQueryMeta<T["length"], keyof T[number]>
postgresArrayParameterinterfaceinterface
postgresEscapableArraytype(string | number)[]
postgresPendingRequestinterfaceinterface
postgresConnectionErrorinterfaceinterface
postgresExecutionResulttype[] & ResultQueryMeta<number, keyof NonNullable<T>>
postgresParameterOrJSONtypestring | 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
postgresPendingRawQueryinterfaceinterface
postgresResultQueryMetainterfaceinterface
postgresNotSupportedErrorinterfaceinterface
postgresPendingValuesQueryinterfaceinterface
postgresSubscriptionHandleinterfaceinterface
postgresUnsafeQueryOptionsinterfaceinterface
postgresParameterOrFragmenttypeFragment | SerializableParameter<T> | Fragment[]
postgresConnectionParametersinterfaceinterface
postgresPendingDescribeQueryinterfaceinterface
postgresPendingQueryModifiersinterfaceinterface
postgresSerializableParametertypeSerializable | T | Helper<any, any[]> | Parameter<any> | ArrayParameter<readonly any[]> | readonly SerializableParameter<T>[]
postgresAuthNotImplementedErrorinterfaceinterface

Chữ ký thay đổi

exportTrướcSau
postgres · RowinterfaceRow
postgres · SqlinterfaceSql<TTypes>
postgres · ISqlinterfaceISql<TTypes>
postgres · HelperinterfaceHelper<T, U>
postgres · NoticeinterfaceNotice
postgres · OptionsinterfaceOptions<T>
postgres · ParameterinterfaceParameter<T>
postgres · ReservedSqlinterfaceReservedSql<TTypes>
postgres · PendingQueryinterfacePendingQuery<T>
postgres · PostgresTypeinterfacePostgresType<T>
postgres · ParsedOptionsinterfaceParsedOptions<T>
postgres · PostgresErrorclassPostgresError
postgres · TransactionSqlinterfaceTransactionSql<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; })

Thành viên lớp hoặc interface bị xóa

Không phát hiện.

Thành viên lớp hoặc interface thay đổi

Không phát hiện.

Mới bị ngừng hỗ trợ

Không phát hiện.

Thay đổi yêu cầu (engines, phụ thuộc peer)

TrướcSau
engines.node>=12>=20
Export mới (6)
importexportkind
postgresdefaultfunction
postgresPoolEventtype
postgresQueryTracetype
postgresNoticeEventtype
postgresConnectTracetype
postgresTransactionTracetype

Cung cấp dữ liệu này cho tác tử AI của bạn

Vigia là máy chủ MCP miễn phí: tác tử lập trình của bạn kiểm tra phiên bản, thay đổi phá vỡ tương thích và lỗ hổng trước khi viết mã. Không cần đăng ký, không cần khóa API.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Thêm vào CursorThêm vào VS Code★ Gắn sao trên GitHub

Mọi ứng dụng MCP khác
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Kỹ năng cho tác tử (SKILL.md): cho tác tử biết khi nào dùng Vigia · GitHub Action cho pull request

Câu hỏi thường gặp

Nâng cấp postgres từ 3 lên 4 có những thay đổi không tương thích nào?

Giữa postgres 3.4.9 và 4.0.0, Vigia tìm thấy 45 export bị xóa, 14 chữ ký thay đổi và 0 thành viên lớp hoặc interface bị xóa hay thay đổi.

Những gì bị ngừng hỗ trợ trong postgres 4?

0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong postgres 4.0.0.

Dành cho tác tử

GET https://vigia.coredls.cloud/v1/packages/npm/postgres/upgrade?from=3.4.9&to=4.0.0