From 89db30a952b72af3da88b29891f5ef578d45dd09 Mon Sep 17 00:00:00 2001 From: Dominik Mengelt Date: Mon, 17 Aug 2026 14:00:15 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75381=20[googl?= =?UTF-8?q?epay]=20Add=20nonce=20property=20to=20PaymentOptions=20by=20@dm?= =?UTF-8?q?engelt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/googlepay/googlepay-tests.ts | 1 + types/googlepay/index.d.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/types/googlepay/googlepay-tests.ts b/types/googlepay/googlepay-tests.ts index bc5ccbbaa3bf39..481f1f9295fc0c 100644 --- a/types/googlepay/googlepay-tests.ts +++ b/types/googlepay/googlepay-tests.ts @@ -59,6 +59,7 @@ const shippingAddressParametersEmptyObjectIsValid: google.payments.api.ShippingA const getGooglePaymentsClient = (env?: google.payments.api.Environment) => { return new google.payments.api.PaymentsClient({ environment: env, + nonce: "abc123def456", paymentDataCallbacks: { onPaymentAuthorized: (paymentData) => ({ transactionState: "SUCCESS" }), onPaymentDataChanged: (paymentData) => { diff --git a/types/googlepay/index.d.ts b/types/googlepay/index.d.ts index 3829e6840f3292..aa344b1941b1e7 100644 --- a/types/googlepay/index.d.ts +++ b/types/googlepay/index.d.ts @@ -2170,6 +2170,12 @@ declare namespace google.payments.api { * This object declares the callbacks used for Dynamic Price Updates. */ paymentDataCallbacks?: PaymentDataCallbacks | undefined; + + /** + * Optional Content Security Policy (CSP) nonce to apply to all dynamically + * injected styles and scripts. + */ + nonce?: string; } /** From 149b988c539812323ee487af60142f7aa5eeb32a Mon Sep 17 00:00:00 2001 From: Niklas Volcz Date: Mon, 17 Aug 2026 19:20:26 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75382=20[pg]?= =?UTF-8?q?=20Add=20SSL=20negotiation=20and=20query=20pipeline=20types=20b?= =?UTF-8?q?y=20@NVolcz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/pg/index.d.ts | 3 +++ types/pg/package.json | 2 +- types/pg/pg-tests.ts | 11 ++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index a96540d5024c3d..d7465295206422 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -20,6 +20,7 @@ export interface ClientConfig { stream?: () => stream.Duplex | undefined; statement_timeout?: false | number | undefined; ssl?: boolean | ConnectionOptions | undefined; + sslnegotiation?: "postgres" | "direct" | undefined; query_timeout?: number | undefined; lock_timeout?: number | undefined; keepAliveInitialDelayMillis?: number | undefined; @@ -30,6 +31,7 @@ export interface ClientConfig { types?: CustomTypesConfig | undefined; options?: string | undefined; client_encoding?: string | undefined; + pipeline?: boolean | undefined; } export type ConnectionConfig = ClientConfig; @@ -302,6 +304,7 @@ export class Client extends ClientBase { host: string; password?: string | undefined; ssl: boolean; + readonly pipeline: boolean; readonly connection: Connection; constructor(config?: string | ClientConfig); diff --git a/types/pg/package.json b/types/pg/package.json index 269bc95d40805f..d66adc4343a596 100644 --- a/types/pg/package.json +++ b/types/pg/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/pg", - "version": "8.21.9999", + "version": "8.23.9999", "projects": [ "https://github.com/brianc/node-postgres" ], diff --git a/types/pg/pg-tests.ts b/types/pg/pg-tests.ts index 82991a7bb57fdc..52205ab381b58f 100644 --- a/types/pg/pg-tests.ts +++ b/types/pg/pg-tests.ts @@ -38,7 +38,14 @@ const client = new Client({ password: "secretpassword!!", application_name: "DefinitelyTyped", keepAlive: true, -}); + ssl: true, + sslnegotiation: "direct", + pipeline: true, +}); +// $ExpectType boolean +client.pipeline; +// @ts-expect-error – pipeline is readonly +client.pipeline = false; client.setTypeParser(20, val => Number(val)); client.getTypeParser(20); @@ -244,6 +251,8 @@ const poolParameterlessCtor = new Pool(); const poolOne = new Pool({ connectionString: "postgresql://dbuser:secretpassword@database.server.com:3211/mydb", + sslnegotiation: "postgres", + pipeline: true, }); class MyClient extends Client {