Skip to content

Commit

Permalink
Improve invalidation with concurrency limit (#41)
Browse files Browse the repository at this point in the history
* concurrencyLimit option, by default 10.

* update deps

* chunk test

* fix size <= 0

* fix < 1

* default 20
  • Loading branch information
PabloSzx committed Jan 13, 2023
1 parent db5a855 commit 3572893
Show file tree
Hide file tree
Showing 8 changed files with 912 additions and 734 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-monkeys-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@soundxyz/response-cache": minor
---

concurrencyLimit option, by default 20. Used by "invalidate" function
41 changes: 22 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,32 +39,32 @@
"test": "vitest run"
},
"dependencies": {
"@graphql-tools/utils": "^8.9.0",
"@graphql-tools/utils": "^9.1.4",
"fast-json-stable-stringify": "^2.1.0"
},
"devDependencies": {
"@changesets/cli": "^2.25.2",
"@envelop/core": "^2.4.2",
"@envelop/testing": "^4.4.2",
"@envelop/types": "^2.3.1",
"@graphql-ez/fastify": "^0.10.0",
"@graphql-ez/fastify-testing": "^0.2.1",
"@graphql-tools/schema": "^8.5.1",
"@types/node": "^17.0.45",
"bob-ts": "^4.0.0",
"@changesets/cli": "^2.26.0",
"@envelop/core": "^3.0.4",
"@envelop/testing": "^5.0.4",
"@envelop/types": "^3.0.1",
"@graphql-ez/fastify": "^0.12.0",
"@graphql-ez/fastify-testing": "^0.4.0",
"@graphql-tools/schema": "^9.0.13",
"@types/node": "^18.11.18",
"bob-ts": "^4.1.1",
"c8": "^7.12.0",
"esbuild": "^0.16.7",
"fastify": "^4.3.0",
"graphql": "17.0.0-alpha.1",
"graphql-ez": "^0.15.1",
"ioredis": "^5.2.2",
"esbuild": "^0.16.17",
"fastify": "^4.11.0",
"graphql": "16.6.0",
"graphql-ez": "^0.16.0",
"ioredis": "^5.2.4",
"pino": "^8.8.0",
"prettier": "^2.8.1",
"prettier": "^2.8.2",
"redis-memory-server": "^0.6.0",
"redlock": "5.0.0-beta.2",
"typescript": "^4.7.4",
"vite": "^2.9.14",
"vitest": "^0.14.2"
"typescript": "^4.9.4",
"vite": "^4.0.4",
"vitest": "^0.27.1"
},
"peerDependencies": {
"@envelop/core": "*",
Expand All @@ -86,6 +86,9 @@
"graphql": "*",
"fastify": "*"
}
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
13 changes: 13 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index b30f230c70afe19bad45045e98a42c08a1c8b8cc..d224859bfd35ba4b3ba795044fbaf88ed62bb019 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "16.6.0",
"description": "A Query Language and Runtime which can target any service.",
"license": "MIT",
- "main": "index",
+ "main": "index.js",
"module": "index.mjs",
"typesVersions": {
">=4.1.0": {
Loading

0 comments on commit 3572893

Please sign in to comment.