Passer de postgres 3.x à 4.x
Comparaison de l’API publique de postgres 3.4.9 et 4.0.0, calculée automatiquement à partir de leurs types TypeScript. Une signature modifiée est un changement incompatible possible, pas une certitude.
Résumé
| Chemins d’importation supprimés | 0 |
|---|---|
| Exports supprimés | 45 |
| Signatures modifiées | 14 |
| Membres de classes ou d’interfaces supprimés | 0 |
| Membres de classes ou d’interfaces modifiés | 0 |
| Nouvelles dépréciations | 0 |
| Changements d’exigences (engines, dépendances peer) | 1 |
| Nouveaux exports | 6 |
Exports supprimés
| import | export | kind | Avant |
|---|---|---|---|
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 |
Signatures modifiées
| export | Avant | Après |
|---|---|---|
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; }) |
Membres de classes ou d’interfaces supprimés
Aucun détecté.
Membres de classes ou d’interfaces modifiés
Aucun détecté.
Nouvelles dépréciations
Aucun détecté.
Changements d’exigences (engines, dépendances peer)
| Avant | Après | |
|---|---|---|
engines.node | >=12 | >=20 |
Nouveaux exports (6)
| import | export | kind |
|---|---|---|
postgres | default | function |
postgres | PoolEvent | type |
postgres | QueryTrace | type |
postgres | NoticeEvent | type |
postgres | ConnectTrace | type |
postgres | TransactionTrace | type |
Donnez ces données à votre agent IA
Vigia est un serveur MCP gratuit : votre agent de code vérifie les versions, les changements incompatibles et les vulnérabilités avant d'écrire du code. Sans inscription ni clé d'API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Ajouter à CursorAjouter à VS Code★ Étoile sur GitHub
Tout autre client MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill pour agents (SKILL.md) : indique à l'agent quand utiliser Vigia · GitHub Action pour les pull requests
Questions fréquentes
Quels sont les changements incompatibles en passant de postgres 3 à 4 ?
Entre postgres 3.4.9 et 4.0.0, Vigia a trouvé 45 exports supprimés, 14 signatures modifiées et 0 membres de classes ou d’interfaces supprimés ou modifiés.
Qu’est-ce qui a été déprécié dans postgres 4 ?
0 exports ou membres sont désormais marqués comme dépréciés dans postgres 4.0.0.
Pour les agents
GET https://vigia.coredls.cloud/v1/packages/npm/postgres/upgrade?from=3.4.9&to=4.0.0