Upgrade von postgres 3.x auf 4.x
Vergleich der öffentlichen API von postgres 3.4.9 und 4.0.0, automatisch aus den TypeScript-Typen berechnet. Eine geänderte Signatur ist ein möglicher Breaking Change, keine Gewissheit.
Zusammenfassung
| Entfernte Importpfade | 0 |
|---|---|
| Entfernte Exporte | 45 |
| Geänderte Signaturen | 14 |
| Entfernte Member von Klassen oder Interfaces | 0 |
| Geänderte Member von Klassen oder Interfaces | 0 |
| Neu als veraltet markiert | 0 |
| Geänderte Anforderungen (engines, Peer-Abhängigkeiten) | 1 |
| Neue Exporte | 6 |
Entfernte Exporte
| import | export | kind | Vorher |
|---|---|---|---|
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 |
Geänderte Signaturen
| export | Vorher | Nachher |
|---|---|---|
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; }) |
Entfernte Member von Klassen oder Interfaces
Keine gefunden.
Geänderte Member von Klassen oder Interfaces
Keine gefunden.
Neu als veraltet markiert
Keine gefunden.
Geänderte Anforderungen (engines, Peer-Abhängigkeiten)
| Vorher | Nachher | |
|---|---|---|
engines.node | >=12 | >=20 |
Neue Exporte (6)
| import | export | kind |
|---|---|---|
postgres | default | function |
postgres | PoolEvent | type |
postgres | QueryTrace | type |
postgres | NoticeEvent | type |
postgres | ConnectTrace | type |
postgres | TransactionTrace | type |
Gib deinem KI-Agenten diese Fakten
Vigia ist ein kostenloser MCP-Server: Dein Coding-Agent prüft Versionen, Breaking Changes und Sicherheitslücken, bevor er Code schreibt. Ohne Anmeldung, ohne API-Schlüssel.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Zu Cursor hinzufügenZu VS Code hinzufügen★ Stern auf GitHub
Jeder andere MCP-Client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent-Skill (SKILL.md): sagt dem Agenten, wann er Vigia nutzen soll · GitHub Action für Pull Requests
Häufige Fragen
Welche Breaking Changes gibt es beim Upgrade von postgres 3 auf 4?
Zwischen postgres 3.4.9 und 4.0.0 hat Vigia 45 entfernte Exporte, 14 geänderte Signaturen und 0 entfernte oder geänderte Member von Klassen oder Interfaces gefunden.
Was wurde in postgres 4 als veraltet markiert?
0 Exporte oder Member sind in postgres 4.0.0 neu als veraltet markiert.
Für Agenten
GET https://vigia.coredls.cloud/v1/packages/npm/postgres/upgrade?from=3.4.9&to=4.0.0