diff --git a/package.json b/package.json index b820d8a3..4e01c6ee 100644 --- a/package.json +++ b/package.json @@ -145,10 +145,5 @@ "packageManager": "pnpm@9.0.6", "engines": { "node": ">=16.18.0" - }, - "pnpm": { - "patchedDependencies": { - "@types/pg@8.11.5": "patches/@types__pg@8.11.5.patch" - } } } diff --git a/patches/@types__pg@8.11.5.patch b/patches/@types__pg@8.11.5.patch deleted file mode 100644 index 397f54e6..00000000 --- a/patches/@types__pg@8.11.5.patch +++ /dev/null @@ -1,64 +0,0 @@ -diff --git a/lib/connection-parameters.d.ts b/lib/connection-parameters.d.ts -new file mode 100644 -index 0000000000000000000000000000000000000000..c2895f9763e30b72bd5cca9146719e1d0260c117 ---- /dev/null -+++ b/lib/connection-parameters.d.ts -@@ -0,0 +1,58 @@ -+import { ConnectionOptions } from "tls"; -+import { ConnectionConfig } from ".."; -+ -+interface ConnectionParametersConfig extends -+ Pick< -+ ConnectionConfig, -+ | "user" -+ | "database" -+ | "password" -+ | "port" -+ | "host" -+ | "options" -+ | "ssl" -+ | "application_name" -+ | "statement_timeout" -+ | "idle_in_transaction_session_timeout" -+ | "query_timeout" -+ > -+{ -+ binary?: unknown; -+ client_encoding?: unknown; -+ replication?: unknown; -+ isDomainSocket?: unknown; -+ fallback_application_name?: unknown; -+ lock_timeout?: unknown; -+ connect_timeout?: unknown; -+ keepalives?: unknown; -+ keepalives_idle?: unknown; -+} -+ -+export = ConnectionParameters; -+declare class ConnectionParameters implements ConnectionParametersConfig { -+ user?: string | undefined; -+ database?: string | undefined; -+ password?: string | (() => string | Promise) | undefined; -+ port?: number | undefined; -+ host?: string | undefined; -+ statement_timeout?: false | number | undefined; -+ ssl?: boolean | ConnectionOptions | undefined; -+ query_timeout?: number | undefined; -+ idle_in_transaction_session_timeout?: number | undefined; -+ application_name?: string | undefined; -+ options?: string | undefined; -+ -+ binary?: unknown; -+ client_encoding?: unknown; -+ replication?: unknown; -+ isDomainSocket?: unknown; -+ fallback_application_name?: unknown; -+ lock_timeout?: unknown; -+ connect_timeout?: unknown; -+ keepalives?: unknown; -+ keepalives_idle?: unknown; -+ -+ constructor(config?: string | ConnectionParametersConfig); -+ -+ getLibpqConnectionString(cb: (err: Error | null, params: string | null) => TResult): TResult; -+} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef2282e4..f7d6a394 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,11 +4,6 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -patchedDependencies: - '@types/pg@8.11.5': - hash: pmqk2fidwgscfur66ieqtztttq - path: patches/@types__pg@8.11.5.patch - importers: .: @@ -33,8 +28,8 @@ importers: specifier: 18.19.31 version: 18.19.31 '@types/pg': - specifier: 8.11.5 - version: 8.11.5(patch_hash=pmqk2fidwgscfur66ieqtztttq) + specifier: 8.11.6 + version: 8.11.6 '@types/yargs': specifier: 17.0.32 version: 17.0.32 @@ -735,8 +730,8 @@ packages: '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} - '@types/pg@8.11.5': - resolution: {integrity: sha512-2xMjVviMxneZHDHX5p5S6tsRRs7TpDHeeK7kTTMe/kAC/mRRNjWHjZg0rkiY+e17jXSZV3zJYDxXV8Cy72/Vuw==} + '@types/pg@8.11.6': + resolution: {integrity: sha512-/2WmmBXHLsfRqzfHW7BNZ8SbYzE8OSk7i3WjFYvfgRHj7S1xj+16Je5fUKv3lVdVzk/zn9TXOqf+avFCFIE0yQ==} '@types/semver@7.5.8': resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} @@ -3175,7 +3170,7 @@ snapshots: '@types/normalize-package-data@2.4.4': {} - '@types/pg@8.11.5(patch_hash=pmqk2fidwgscfur66ieqtztttq)': + '@types/pg@8.11.6': dependencies: '@types/node': 18.19.31 pg-protocol: 1.6.1