Skip to content

Commit

Permalink
Update dependencies (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jan 29, 2023
1 parent 97ad849 commit 03fe7c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
4 changes: 3 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import chromeP from 'webext-polyfill-kinda';
import microMemoize from 'micro-memoize';
import {isBackgroundPage, isExtensionContext} from 'webext-detect-page';
import toMilliseconds, {TimeDescriptor} from '@sindresorhus/to-milliseconds';
import toMilliseconds, {type TimeDescriptor} from '@sindresorhus/to-milliseconds';

const cacheDefault = {days: 30};

Expand All @@ -14,6 +14,7 @@ type Value = Primitive | Primitive[] | Record<string, any>;
// No circular references: Record<string, Value> https://github.com/Microsoft/TypeScript/issues/14174
// No index signature: {[key: string]: Value} https://github.com/microsoft/TypeScript/issues/15300#issuecomment-460226926

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- TODO: When releasing a breaking release
interface CacheItem<Value> {
data: Value;
maxAge: number;
Expand Down Expand Up @@ -109,6 +110,7 @@ async function clear(): Promise<void> {
await deleteWithLogic();
}

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- TODO: When releasing a breaking release
interface MemoizedFunctionOptions<Arguments extends any[], ScopedValue> {
maxAge?: TimeDescriptor;
staleWhileRevalidate?: TimeDescriptor;
Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,19 @@
},
"dependencies": {
"@sindresorhus/to-milliseconds": "^2.0.0",
"micro-memoize": "^4.0.10",
"micro-memoize": "^4.0.14",
"webext-detect-page": "^4.0.1",
"webext-polyfill-kinda": "^0.10.0"
"webext-polyfill-kinda": "^1.0.0"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^2.0.0",
"@types/chrome": "0.0.193",
"@types/firefox-webext-browser": "^94.0.1",
"@types/chrome": "0.0.210",
"@types/sinon-chrome": "^2.2.11",
"ava": "^4.3.1",
"sinon": "^14.0.0",
"ava": "^5.1.1",
"sinon": "^15.0.1",
"sinon-chrome": "^3.0.1",
"tsd": "^0.22.0",
"typescript": "^4.7.4",
"xo": "^0.50.0"
"tsd": "^0.25.0",
"typescript": "^4.9.4",
"xo": "^0.53.1"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@sindresorhus/tsconfig/tsconfig.json",
"extends": "@sindresorhus/tsconfig",
"compilerOptions": {
"outDir": ".",
"noUncheckedIndexedAccess": false
Expand Down

0 comments on commit 03fe7c5

Please sign in to comment.