Skip to content

Commit

Permalink
fix(utils): revert tiny-lru
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Oct 4, 2022
1 parent 76da09a commit 5b44abc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-schools-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/utils': patch
---

Revert tiny-lru to fix browser bundle compatibility
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": "9.0.2",
"tiny-lru": "8.0.2",
"tslib": "^2.4.0"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/src/global-lru-cache.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lru, LRU } from 'tiny-lru';
import lru, { Lru } from 'tiny-lru';

export type LRUCache = LRU<any>;
export type LRUCache = Lru<any>;

export function createLruCache(max?: number, ttl?: number): LRUCache {
return lru(max, ttl);
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18968,16 +18968,16 @@ tiny-glob@^0.2.9:
globalyzer "0.1.0"
globrex "^0.1.2"

[email protected]:
version "8.0.2"
resolved "https://registry.yarnpkg.com/tiny-lru/-/tiny-lru-8.0.2.tgz#812fccbe6e622ded552e3ff8a4c3b5ff34a85e4c"
integrity sha512-ApGvZ6vVvTNdsmt676grvCkUCGwzG9IqXma5Z07xJgiC5L7akUMof5U8G2JTI9Rz/ovtVhJBlY6mNhEvtjzOIg==

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

[email protected]:
version "9.0.2"
resolved "https://registry.yarnpkg.com/tiny-lru/-/tiny-lru-9.0.2.tgz#6714626d1961831da99472eb9f6d26b3ff999c39"
integrity sha512-SZwDlvflOPYiImKv2Rh/1uccO+r5JsEexLU1szFsVudzk17Sj250xl75/X3aY4vINS1ZulnCPqcndvW9R0y7Yg==

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 5b44abc

Please sign in to comment.