From 83decf7bf5a584436f73c8f8234f9f620d64063b Mon Sep 17 00:00:00 2001 From: aklinker1 <10101283+aklinker1@users.noreply.github.com> Date: Thu, 22 Jan 2026 00:35:56 +0000 Subject: [PATCH] fix: Upgrade `@wxt-dev/browser` to latest `@types/chrome` version --- packages/browser/package.json | 4 +-- packages/browser/src/gen/index.d.ts | 46 +++++++++++++++++++++++++++-- pnpm-lock.yaml | 10 +++---- 3 files changed, 51 insertions(+), 9 deletions(-) diff --git a/packages/browser/package.json b/packages/browser/package.json index 3bd8ef12..3be07a94 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -1,7 +1,7 @@ { "name": "@wxt-dev/browser", "description": "Provides a cross-browser API for using extension APIs and types based on @types/chrome", - "version": "0.1.35", + "version": "0.1.36", "type": "module", "main": "src/index.mjs", "types": "src/index.d.ts", @@ -23,7 +23,7 @@ "src" ], "devDependencies": { - "@types/chrome": "0.1.35", + "@types/chrome": "0.1.36", "fs-extra": "^11.3.1", "nano-spawn": "^1.0.2", "typescript": "^5.9.2", diff --git a/packages/browser/src/gen/index.d.ts b/packages/browser/src/gen/index.d.ts index 57e93728..2b0abea4 100644 --- a/packages/browser/src/gen/index.d.ts +++ b/packages/browser/src/gen/index.d.ts @@ -1031,7 +1031,7 @@ export namespace Browser { cookies?: boolean | undefined; /** * Stored passwords. - * @deprecated Support for password deletion through extensions has been removed. This data type will be ignored. + * @deprecated since Chrome 144. Support for password deletion through extensions has been removed. This data type will be ignored. */ passwords?: boolean | undefined; /** @@ -1127,7 +1127,7 @@ export namespace Browser { * Clears the browser's stored passwords. * * Can return its result via Promise in Manifest V3 or later since Chrome 96. - * @deprecated Support for password deletion through extensions has been removed. This function has no effect. + * @deprecated since Chrome 144. Support for password deletion through extensions has been removed. This function has no effect. */ export function removePasswords(options: RemovalOptions): Promise; export function removePasswords(options: RemovalOptions, callback: () => void): void; @@ -3781,6 +3781,8 @@ export namespace Browser { BLOCKED_SCAN_FAILED = "blockedScanFailed", /** For use by the Secure Enterprise Browser extension. When required, Chrome will block the download to disc and download the file directly to Google Drive. */ FORCE_SAVE_TO_GDRIVE = "forceSaveToGdrive", + /** For use by the Secure Enterprise Browser extension. When required, Chrome will block the download to disc and download the file directly to OneDrive. */ + FORCE_SAVE_TO_ONEDRIVE = "forceSaveToOnedrive", } export interface DownloadItem { @@ -13087,6 +13089,10 @@ export namespace Browser { EXTRA_HEADERS = "extraHeaders", /** Specifies that the response headers should be included in the event. */ RESPONSE_HEADERS = "responseHeaders", + /** Specifies that the SecurityInfo should be included in the event. */ + SECURITY_INFO = "securityInfo", + /** Specifies that the SecurityInfo with raw bytes of certificates should be included in the event. */ + SECURITY_INFO_RAW_DER = "securityInfoRawDer", } /** @since Chrome 44 */ @@ -13147,6 +13153,23 @@ export namespace Browser { OTHER = "other", } + /** @since Chrome 144 */ + export interface SecurityInfo { + /** A list of certificates */ + certificates: { + /** Fingerprints of the certificate. */ + fingerprint: { + /** sha256 fingerprint of the certificate. */ + sha256: string; + }; + /** Raw bytes of DER encoded server certificate */ + rawDER?: ArrayBuffer; + }[]; + + /** State of the connection. One of secure, insecure, broken. */ + state: string; + } + /** Contains data uploaded in a URL request. */ export interface UploadData { /** An ArrayBuffer with a copy of the data. */ @@ -13284,6 +13307,11 @@ export namespace Browser { export interface OnHeadersReceivedDetails extends WebRequestDetails { /** The HTTP response headers that have been received with this response. */ responseHeaders?: HttpHeader[]; + /** + * Information about the TLS/QUIC connection used for the underlying connection. Only provided if `securityInfo` is specified in the `extraInfoSpec` parameter. + * @since Chrome 144 + */ + securityInfo?: SecurityInfo; /** Standard HTTP status code returned by the server. */ statusCode: number; /** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers.*/ @@ -14543,6 +14571,14 @@ export namespace Browser { default_path: string; } + /** + * Closes the extension's side panel. This is a no-op if the panel is already closed. + * @param options Specifies the context in which to close the side panel. + * @since Chrome 141 + */ + export function close(options: CloseOptions): Promise; + export function close(options: CloseOptions, callback: () => void): void; + /** * Returns the side panel's current layout. * @since Chrome 140 @@ -14595,6 +14631,12 @@ export namespace Browser { export function setPanelBehavior(behavior: PanelBehavior): Promise; export function setPanelBehavior(behavior: PanelBehavior, callback: () => void): void; + /** + * Fired when the extension's side panel is closed. + * @since Chrome 142 + */ + const onClosed: events.Event<(info: PanelClosedInfo) => void>; + /** * Fired when the extension's side panel is opened. * @since Chrome 141 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 437beb4e..83ab6336 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -170,8 +170,8 @@ importers: version: 1.2.16 devDependencies: '@types/chrome': - specifier: 0.1.35 - version: 0.1.35 + specifier: 0.1.36 + version: 0.1.36 fs-extra: specifier: ^11.3.1 version: 11.3.2 @@ -1800,8 +1800,8 @@ packages: '@types/chai@5.2.2': resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==} - '@types/chrome@0.1.35': - resolution: {integrity: sha512-Luzu3E4wbOawkBIiQOY/CIsx1W8cC2NF8VCHnoy+1Nszj1v0dfeo0XnGwHp+c+MUV0yhi6+s4Lo9UbATT1M32A==} + '@types/chrome@0.1.36': + resolution: {integrity: sha512-BvHbuyGttYXnGt5Gpwa4769KIinKHY1iLjlAPrrMBS2GI9m/XNMPtdsq0NgQalyuUdxvlMN/0OyGw0shFVIoUQ==} '@types/conventional-commits-parser@5.0.1': resolution: {integrity: sha512-7uz5EHdzz2TqoMfV7ee61Egf5y6NkcO4FB/1iCCQnbeiI1F3xzv3vK5dBCXUCLQgGYS+mUeigK1iKQzvED+QnQ==} @@ -5644,7 +5644,7 @@ snapshots: dependencies: '@types/deep-eql': 4.0.2 - '@types/chrome@0.1.35': + '@types/chrome@0.1.36': dependencies: '@types/filesystem': 0.0.36 '@types/har-format': 1.2.16