Skip to content

Commit 16d6e68

Browse files
chore(chrome-extension): Update [DEV] minor & patch dependencies (#6174)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tom Milewski <me@tm.codes>
1 parent bbbcb7a commit 16d6e68

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

.changeset/two-llamas-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/chrome-extension': patch
3+
---
4+
5+
Update dependencies

packages/chrome-extension/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
"@clerk/clerk-js": "workspace:^",
5252
"@clerk/clerk-react": "workspace:^",
5353
"@clerk/shared": "workspace:^",
54-
"webextension-polyfill": "^0.10.0"
54+
"webextension-polyfill": "~0.12.0"
5555
},
5656
"devDependencies": {
5757
"@types/chrome": "*",
58-
"@types/webextension-polyfill": "^0.10.7",
59-
"type-fest": "^4.8.3"
58+
"@types/webextension-polyfill": "^0.12.3",
59+
"type-fest": "^4.41.0"
6060
},
6161
"peerDependencies": {
6262
"react": "catalog:peer-react",

packages/chrome-extension/src/internal/utils/storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type StorageCacheOptions = {
66

77
export type StorageCache = {
88
createKey: (...keys: string[]) => string;
9-
get: <T = any>(key: string) => Promise<T>;
9+
get: <T = any>(key: string) => Promise<T | undefined>;
1010
remove: (key: string) => Promise<void>;
1111
set: (key: string, value: string) => Promise<void>;
1212
};
@@ -20,7 +20,7 @@ const createBrowserStorageCache = (opts: StorageCacheOptions = {}): StorageCache
2020

2121
return {
2222
createKey,
23-
get: (key: string) => browser.storage[__storageArea].get(key).then(result => result[key] || undefined),
23+
get: <T>(key: string) => browser.storage[__storageArea].get(key).then(result => (result[key] as T) || undefined),
2424
remove: (key: string) => browser.storage[__storageArea].remove(key),
2525
set: (key: string, value: string) => browser.storage[__storageArea].set({ [key]: value }),
2626
};

pnpm-lock.yaml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)