Skip to content

Commit

Permalink
fix(deps): update dependency tiny-lru to v9 (v3) (#1772)
Browse files Browse the repository at this point in the history
* 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 <ardatanrikulu@gmail.com>
  • Loading branch information
3 people committed Sep 21, 2022
1 parent 0b34835 commit 4c26dd5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/@graphql-yoga_plugin-apq-1772-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@graphql-yoga/plugin-apq": patch
---

dependencies updates:

- Updated dependency [`tiny-lru@^9.0.0` ↗︎](https://www.npmjs.com/package/tiny-lru/v/null) (from `^8.0.2`, in `dependencies`)
2 changes: 1 addition & 1 deletion packages/plugins/apq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"dependencies": {
"@whatwg-node/fetch": "0.4.4",
"tiny-lru": "^8.0.2"
"tiny-lru": "^9.0.0"
},
"peerDependencies": {
"graphql-yoga": "^2.13.11"
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/apq/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Plugin, PromiseOrValue } from 'graphql-yoga'
import { GraphQLError } from 'graphql'
import lru from 'tiny-lru'
import { lru } from 'tiny-lru'
import { crypto, TextEncoder } from '@whatwg-node/fetch'

const textEncoder = new TextEncoder()
Expand All @@ -22,7 +22,7 @@ export interface APQStoreOptions {
export function createInMemoryAPQStore(
options: APQStoreOptions = {},
): APQStore {
return lru<string>(options.max ?? 1000, options.ttl ?? 36000)
return lru(options.max ?? 1000, options.ttl ?? 36000)
}

export interface APQOptions {
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19389,6 +19389,11 @@ tiny-lru@8.0.2, tiny-lru@^8.0.2:
resolved "https://registry.yarnpkg.com/tiny-lru/-/tiny-lru-8.0.2.tgz#812fccbe6e622ded552e3ff8a4c3b5ff34a85e4c"
integrity sha512-ApGvZ6vVvTNdsmt676grvCkUCGwzG9IqXma5Z07xJgiC5L7akUMof5U8G2JTI9Rz/ovtVhJBlY6mNhEvtjzOIg==

tiny-lru@^9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/tiny-lru/-/tiny-lru-9.0.0.tgz#c8c3875880011c0248a397d4194c38b6394eb412"
integrity sha512-KbkzkMrQ5ilYe9vk4BSCuY0k5/a+nYRm2m21vpbHi7RDJVhZHO43ZqzqbHyg9NB260lbjR3GiVQex9ib2s2E4A==

tiny-warning@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754"
Expand Down

0 comments on commit 4c26dd5

Please sign in to comment.