Skip to content

Commit f026032

Browse files
renovate[bot]tmilewski
authored andcommitted
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 a7054a8 commit f026032

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
@@ -53,12 +53,12 @@
5353
"@clerk/clerk-js": "workspace:^",
5454
"@clerk/clerk-react": "workspace:^",
5555
"@clerk/shared": "workspace:^",
56-
"webextension-polyfill": "^0.10.0"
56+
"webextension-polyfill": "~0.12.0"
5757
},
5858
"devDependencies": {
5959
"@types/chrome": "*",
60-
"@types/webextension-polyfill": "^0.10.7",
61-
"type-fest": "^4.8.3"
60+
"@types/webextension-polyfill": "^0.12.3",
61+
"type-fest": "^4.41.0"
6262
},
6363
"peerDependencies": {
6464
"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)