Skip to content

Commit 4c26dd5

Browse files
renovate[bot]github-actions[bot]ardatan
authored
fix(deps): update dependency tiny-lru to v9 (v3) (#1772)
* fix(deps): update dependency tiny-lru to v9 * chore(dependencies): updated changesets for modified dependencies * Fix APQ Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent 0b34835 commit 4c26dd5

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@graphql-yoga/plugin-apq": patch
3+
---
4+
5+
dependencies updates:
6+
7+
- Updated dependency [`tiny-lru@^9.0.0` ↗︎](https://www.npmjs.com/package/tiny-lru/v/null) (from `^8.0.2`, in `dependencies`)

packages/plugins/apq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"dependencies": {
4343
"@whatwg-node/fetch": "0.4.4",
44-
"tiny-lru": "^8.0.2"
44+
"tiny-lru": "^9.0.0"
4545
},
4646
"peerDependencies": {
4747
"graphql-yoga": "^2.13.11"

packages/plugins/apq/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Plugin, PromiseOrValue } from 'graphql-yoga'
22
import { GraphQLError } from 'graphql'
3-
import lru from 'tiny-lru'
3+
import { lru } from 'tiny-lru'
44
import { crypto, TextEncoder } from '@whatwg-node/fetch'
55

66
const textEncoder = new TextEncoder()
@@ -22,7 +22,7 @@ export interface APQStoreOptions {
2222
export function createInMemoryAPQStore(
2323
options: APQStoreOptions = {},
2424
): APQStore {
25-
return lru<string>(options.max ?? 1000, options.ttl ?? 36000)
25+
return lru(options.max ?? 1000, options.ttl ?? 36000)
2626
}
2727

2828
export interface APQOptions {

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19389,6 +19389,11 @@ [email protected], tiny-lru@^8.0.2:
1938919389
resolved "https://registry.yarnpkg.com/tiny-lru/-/tiny-lru-8.0.2.tgz#812fccbe6e622ded552e3ff8a4c3b5ff34a85e4c"
1939019390
integrity sha512-ApGvZ6vVvTNdsmt676grvCkUCGwzG9IqXma5Z07xJgiC5L7akUMof5U8G2JTI9Rz/ovtVhJBlY6mNhEvtjzOIg==
1939119391

19392+
tiny-lru@^9.0.0:
19393+
version "9.0.0"
19394+
resolved "https://registry.yarnpkg.com/tiny-lru/-/tiny-lru-9.0.0.tgz#c8c3875880011c0248a397d4194c38b6394eb412"
19395+
integrity sha512-KbkzkMrQ5ilYe9vk4BSCuY0k5/a+nYRm2m21vpbHi7RDJVhZHO43ZqzqbHyg9NB260lbjR3GiVQex9ib2s2E4A==
19396+
1939219397
tiny-warning@^1.0.3:
1939319398
version "1.0.3"
1939419399
resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754"

0 commit comments

Comments
 (0)