From 36aadd0604f261b4cfb60253382056a09f4fad42 Mon Sep 17 00:00:00 2001 From: aklinker1 <10101283+aklinker1@users.noreply.github.com> Date: Tue, 17 Mar 2026 00:39:30 +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 | 19 +++++++++++-------- pnpm-lock.yaml | 10 +++++----- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/packages/browser/package.json b/packages/browser/package.json index 5033e78c..d1b96967 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.37", + "version": "0.1.38", "type": "module", "main": "src/index.mjs", "types": "src/index.d.ts", @@ -23,7 +23,7 @@ "src" ], "devDependencies": { - "@types/chrome": "0.1.37", + "@types/chrome": "0.1.38", "@types/node": "^20.0.0", "nano-spawn": "^2.0.0", "typescript": "^5.9.3", diff --git a/packages/browser/src/gen/index.d.ts b/packages/browser/src/gen/index.d.ts index 168dfd96..c4419304 100644 --- a/packages/browser/src/gen/index.d.ts +++ b/packages/browser/src/gen/index.d.ts @@ -4076,14 +4076,17 @@ export namespace Browser { id: string; /** * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed. - * Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each RSASSA-PKCS1-V1_5 and ECDSA key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys. + * + * Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each key can be used for signing data at most once, unless the extension is allowlisted by the KeyPermissions policy, in which case the key can be used indefinitely. + * * Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface. */ subtleCrypto: SubtleCrypto; /** - * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed. - * Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys. - * Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048. Each RSASSA-PKCS1-V1_5 key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys. + * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed. Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys. + * + * Only non-extractable keys can be generated. The only supported key type is RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048. up to 2048. Each key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. + * * Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface. * @since Chrome 97 */ @@ -9692,7 +9695,7 @@ export namespace Browser { /** Sent after onSuspend to indicate that the app won't be unloaded after all. */ export const onSuspendCanceled: events.Event<() => void>; - /** Fired when a message is sent from either an extension process (by {@link runtime.sendMessage}) or a content script (by {@link tabs.sendMessage}). */ + /** Fired when a message is sent from either {@link runtime.sendMessage} or {@link tabs.sendMessage}. */ export const onMessage: events.Event< (message: any, sender: MessageSender, sendResponse: (response?: any) => void) => void >; @@ -11058,7 +11061,7 @@ export namespace Browser { sessionId?: string | undefined; /** * The ID of the Split View that the tab belongs to. - * @since Chrome 145 + * @since Chrome 140 */ splitViewId?: number | undefined; /** @@ -11134,7 +11137,7 @@ export namespace Browser { /** * An ID that represents the absence of a split tab. - * @since Chrome 145 + * @since Chrome 140 */ export const SPLIT_VIEW_ID_NONE: -1; @@ -11581,7 +11584,7 @@ export namespace Browser { export function duplicate(tabId: number, callback: (tab?: Tab) => void): void; /** - * Sends a single message to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The {@link runtime.onMessage} event is fired in each content script running in the specified tab for the current extension. + * Sends a single message to the content script(s) in the specified tab. The {@link runtime.onMessage} event is fired in each content script running in the specified tab for the current extension. * * Can return its result via Promise in Manifest V3 or later since Chrome 99. */ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f4461e9c..e5c68355 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -173,8 +173,8 @@ importers: version: 1.2.16 devDependencies: '@types/chrome': - specifier: 0.1.37 - version: 0.1.37 + specifier: 0.1.38 + version: 0.1.38 '@types/node': specifier: ^20.0.0 version: 20.19.32 @@ -2129,8 +2129,8 @@ packages: '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} - '@types/chrome@0.1.37': - resolution: {integrity: sha512-IJE4ceuDO7lrEuua7Pow47zwNcI8E6qqkowRP7aFPaZ0lrjxh6y836OPqqkIZeTX64FTogbw+4RNH0+QrweCTQ==} + '@types/chrome@0.1.38': + resolution: {integrity: sha512-5aK4m9wZqoWAoB98aElESLm/5pXpqJnFWMNoiCs/XdPsXR6wNdVkJFSdQ9Wr4PnTuUrxD0SuNuDHh3EG5QeBzA==} '@types/debug@4.1.12': resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} @@ -6237,7 +6237,7 @@ snapshots: '@types/deep-eql': 4.0.2 assertion-error: 2.0.1 - '@types/chrome@0.1.37': + '@types/chrome@0.1.38': dependencies: '@types/filesystem': 0.0.36 '@types/har-format': 1.2.16