Skip to content

Commit

Permalink
fix(deps): update dependency tiny-lru to v9 (#4554)
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

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 d08ed0e commit 93f4ed5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/@graphql-mesh_utils-4554-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@graphql-mesh/utils": patch
---

dependencies updates:

- Updated dependency [`tiny-lru@9.0.0` ↗︎](https://www.npmjs.com/package/tiny-lru/v/9.0.0) (from `8.0.2`, in `dependencies`)
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"lodash.set": "4.3.2",
"lodash.topath": "4.5.2",
"js-yaml": "4.1.0",
"tiny-lru": "8.0.2",
"tiny-lru": "9.0.0",
"tslib": "^2.4.0"
},
"publishConfig": {
Expand Down
8 changes: 4 additions & 4 deletions packages/utils/src/global-lru-cache.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import lru, { Lru } from 'tiny-lru';
import { lru } from 'tiny-lru';

export function createLruCache(max?: number, ttl?: number) {
export type LRUCache = ReturnType<typeof lru>;

export function createLruCache(max?: number, ttl?: number): LRUCache {
return lru(max, ttl);
}

export type LRUCache = Lru;
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19175,7 +19175,12 @@ tiny-glob@^0.2.9:
globalyzer "0.1.0"
globrex "^0.1.2"

tiny-lru@8.0.2, tiny-lru@^8.0.2:
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-lru@^8.0.2:
version "8.0.2"
resolved "https://registry.yarnpkg.com/tiny-lru/-/tiny-lru-8.0.2.tgz#812fccbe6e622ded552e3ff8a4c3b5ff34a85e4c"
integrity sha512-ApGvZ6vVvTNdsmt676grvCkUCGwzG9IqXma5Z07xJgiC5L7akUMof5U8G2JTI9Rz/ovtVhJBlY6mNhEvtjzOIg==
Expand Down

0 comments on commit 93f4ed5

Please sign in to comment.