From 4296a55f4a6fb1c8e1701403cfe88067255ae9b7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 May 2023 13:39:03 +0300 Subject: [PATCH] fix(deps): update dependency tiny-lru to v11 (#5311) * fix(deps): update dependency tiny-lru to v11 * chore(dependencies): updated changesets for modified dependencies * .. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Arda TANRIKULU --- .changeset/@graphql-mesh_utils-5311-dependencies.md | 5 +++++ packages/utils/package.json | 2 +- packages/utils/src/global-lru-cache.ts | 4 ++-- yarn.lock | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .changeset/@graphql-mesh_utils-5311-dependencies.md diff --git a/.changeset/@graphql-mesh_utils-5311-dependencies.md b/.changeset/@graphql-mesh_utils-5311-dependencies.md new file mode 100644 index 0000000000000..395b537e6cf74 --- /dev/null +++ b/.changeset/@graphql-mesh_utils-5311-dependencies.md @@ -0,0 +1,5 @@ +--- +"@graphql-mesh/utils": patch +--- +dependencies updates: + - Updated dependency [`tiny-lru@^11.0.0` ↗︎](https://www.npmjs.com/package/tiny-lru/v/11.0.0) (from `^8.0.2`, in `dependencies`) diff --git a/packages/utils/package.json b/packages/utils/package.json index 5237d837554a9..df267b0163821 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -45,7 +45,7 @@ "js-yaml": "^4.1.0", "lodash.get": "^4.4.2", "lodash.topath": "^4.5.2", - "tiny-lru": "^8.0.2" + "tiny-lru": "^11.0.0" }, "devDependencies": { "@apollo/server": "4.7.1", diff --git a/packages/utils/src/global-lru-cache.ts b/packages/utils/src/global-lru-cache.ts index 5ff76c6627726..3e8d07810a64e 100644 --- a/packages/utils/src/global-lru-cache.ts +++ b/packages/utils/src/global-lru-cache.ts @@ -1,6 +1,6 @@ -import lru, { Lru } from 'tiny-lru'; +import { lru, LRU } from 'tiny-lru'; -export type LRUCache = Lru; +export type LRUCache = LRU; export function createLruCache(max?: number, ttl?: number): LRUCache { return lru(max, ttl); diff --git a/yarn.lock b/yarn.lock index 6a8c79eb3606d..efe949fc5f448 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19814,12 +19814,12 @@ timers-ext@^0.1.5, timers-ext@^0.1.7: es5-ext "~0.10.46" next-tick "1" -tiny-lru@8.0.2, tiny-lru@^8.0.2: +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== -tiny-lru@^11.0.1: +tiny-lru@^11.0.0, tiny-lru@^11.0.1: version "11.0.1" resolved "https://registry.yarnpkg.com/tiny-lru/-/tiny-lru-11.0.1.tgz#629d6ddd88bd03c0929722680167f1feadf576f2" integrity sha512-iNgFugVuQgBKrqeO/mpiTTgmBsTP0WL6yeuLfLs/Ctf0pI/ixGqIRm8sDCwMcXGe9WWvt2sGXI5mNqZbValmJg==