{"name":"@envelop/parser-cache","version":"5.0.0-alpha-36a1267.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.1.0-alpha-36a1267.0","graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"dependencies":{"tiny-lru":"7.0.6"},"repository":{"type":"git","url":"git+https://github.com/dotansimha/envelop.git","directory":"packages/plugins/parser-cache"},"author":{"name":"Dotan Simha","email":"dotansimha@gmail.com"},"license":"MIT","main":"index.js","module":"index.mjs","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"exports":{".":{"require":"./index.js","import":"./index.mjs"},"./*":{"require":"./*.js","import":"./*.mjs"},"./package.json":"./package.json"},"readme":"## `@envelop/parser-cache`\n\nThis plugins adds simple LRU caching to your `parse`, to improve performance by caching the parsed result.\n\nThis plugins improves performance of parsing by ~60% (based on benchmarks).\n\n## Getting Started\n\n```\nyarn add @envelop/parser-cache\n```\n\n## Usage Example\n\n```ts\nimport { envelop } from '@envelop/core';\nimport { useParserCache } from '@envelop/parser-cache';\n\nconst getEnveloped = envelop({\n  plugins: [\n    // ... other plugins ...\n    useParserCache({\n      // options goes here\n    }),\n  ],\n});\n```\n\n### API Reference\n\n#### `documentCache`\n\nSet this to pass in a cache instance for caching documents. By default a new LRU cache is created using default `max` and `ttl`.\n\n#### `errorCache`\n\nSet this to pass in a cache instance for caching errors. By default a new LRU cache is created using default `max` and `ttl`.\n","readmeFilename":"README.md","gitHead":"36a12672660d53890e9685bc34ea91cf6e4325b8","description":"This plugins adds simple LRU caching to your `parse`, to improve performance by caching the parsed result.","bugs":{"url":"https://github.com/dotansimha/envelop/issues"},"homepage":"https://github.com/dotansimha/envelop#readme","_id":"@envelop/parser-cache@5.0.0-alpha-36a1267.0","_nodeVersion":"17.6.0","_npmVersion":"8.5.1","dist":{"integrity":"sha512-LI6NBd/zQaACC7ZIr4L8eOOzD0uhbhgs388p7m+H890oKpXtZc9+Y6gOlcUJV8DMc3BJoWIkCTkZIFJjuaGAXg==","shasum":"3770fe687ae25080b9de8fb025d7a4af632531ef","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-5.0.0-alpha-36a1267.0.tgz","fileCount":5,"unpackedSize":4962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiH43sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOpBAAh5DzIIxSgMS6mnFc2XZhHIYTlrUPi3bFwhrav7vVseJG4QSJ\r\nKT7uwQOoq/LTYfYG/bvlJQRE3jV8YL9x/Qq3NN+bC4onDkItrMrWSZMMZSUQ\r\nFLEiqogzQDuP7a7XZRk3YplmgmUsOiacMM1GGnNipn094or+fA/V1z20a2W0\r\nv9r/JRr43Dr3mAamhffM0qjZVvjRPvzTKX0zKi126iVrvvgbrUnNZyogYt4f\r\nvTrW7/OGIYeoMj7wLeRKVkevCVW/uDmajpTFc3FnYjbjEuEIjcg9PMeKXp2z\r\nH0waxUOofSlXLVB8upEcjIvpYLx66lihk2Ls3uk+8qBTOR4P9gqd4Z8eE/nz\r\n4gbu8GIVcW/AHOruloudSORsMH5zQ3itFhWcPN1w4XbmymhsEIHg11dk2H9Q\r\n/e7anCfY+h6NfieRV+Rf2mWGkpVGry0nveXBvWooOUEJ3j7vrkxGmv5w8J80\r\nG4aeL/6OTeGIlKDKCd7nCGdpt3yhSaUfpLqrznQ8GZEw0Q3ofTbyRHoC5gPA\r\nc+8fg5YEtGFvY6fgjq3xnnWg4/yJeiIJ7LsPos1GWaM89Po+IaTUGru5GAvS\r\ni4bSUnbMWqOgy8a5ZzkslwZw9+K2RhnbnOwIguJlpBXtG99UzOBhxrBRmDWf\r\nbJctk8u/55mmP3+zXjBjrhyezBj5CNy5O6E=\r\n=fjiz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxHo+BqzS+XkTQGB9JhmDPwd1DDlkrtF3tyFQIR34+nQIhAKGmUl0fErveDW8QvXT0SCqIoMt7woAurSFIUhRQjCGM"}],"size":1584,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-5.0.0-alpha-36a1267.0.tgz"},"_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"directories":{},"maintainers":[{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parser-cache_5.0.0-alpha-36a1267.0_1646235116451_0.6174496172549577"},"_hasShrinkwrap":false,"publish_time":1646235116589,"_cnpm_publish_time":1646235116589,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}