Оновлення postgres з 3.x до 4.x
Порівняння публічного API postgres 3.4.9 і 4.0.0, обчислене автоматично за їхніми типами TypeScript. Змінена сигнатура — можлива несумісна зміна, а не гарантія.
Підсумок
| Видалені шляхи імпорту | 0 |
|---|---|
| Видалені експорти | 45 |
| Змінені сигнатури | 14 |
| Видалені члени класів або інтерфейсів | 0 |
| Змінені члени класів або інтерфейсів | 0 |
| Нові застарівання | 0 |
| Зміни вимог (engines, peer-залежності) | 1 |
| Нові експорти | 6 |
Видалені експорти
| import | export | kind | Було |
|---|---|---|---|
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 |
Змінені сигнатури
| export | Було | Стало |
|---|---|---|
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; }) |
Видалені члени класів або інтерфейсів
Не виявлено.
Змінені члени класів або інтерфейсів
Не виявлено.
Нові застарівання
Не виявлено.
Зміни вимог (engines, peer-залежності)
| Було | Стало | |
|---|---|---|
engines.node | >=12 | >=20 |
Нові експорти (6)
| import | export | kind |
|---|---|---|
postgres | default | function |
postgres | PoolEvent | type |
postgres | QueryTrace | type |
postgres | NoticeEvent | type |
postgres | ConnectTrace | type |
postgres | TransactionTrace | type |
Передайте ці дані своєму ШІ-агенту
Vigia — безкоштовний MCP-сервер: ваш агент для програмування перевіряє версії, несумісні зміни та вразливості, перш ніж писати код. Без реєстрації та API-ключа.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Додати в CursorДодати в VS Code★ Зірка на GitHub
Будь-який інший MCP-клієнт
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Навичка для агентів (SKILL.md): підказує агенту, коли використовувати Vigia · GitHub Action для pull request
Поширені запитання
Які несумісні зміни під час оновлення postgres з 3 до 4?
Між postgres 3.4.9 і 4.0.0 Vigia знайшла видалених експортів: 45, змінених сигнатур: 14, видалених або змінених членів класів та інтерфейсів: 0.
Що застаріло в postgres 4?
У postgres 4.0.0 новими застарілими позначено експортів або членів: 0.
Для агентів
GET https://vigia.coredls.cloud/v1/packages/npm/postgres/upgrade?from=3.4.9&to=4.0.0