{"name":"@envelop/parser-cache","version":"4.2.0-alpha-555debe.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.2.0-alpha-555debe.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":"555debe9343c6bcdcf4f7ff6f09b32470c0d682c","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@4.2.0-alpha-555debe.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-hsZQkfHNJwu/kA6p3J/BzJay7A7B8basP7I1T6uJKbVVZmL1UtH86njT/3wHSGPP/6EA9zd3HyqeVKYL00dtLw==","shasum":"62d78385b6951b74eac3b20d618c4a1b91405e5e","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.2.0-alpha-555debe.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\nwsFzBAEBCAAGBQJiPdjtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8/w//U01dniMyVRWQ3Ey3Lbe2x+k9ltMOa/uBUZVBL1nf50JkNIje\r\npPH9E2GaMpN31V6i+ZjJOCMw3C7qNa83lYo0JQ3tk/gAj6gwHIG66sLW7WVn\r\nNzB0RcNN4HzztKXRVmWdtI8Y3k/nTV4BowfFfLYX11cx0+MxResItxI0q/QG\r\nGVPfjVXiZ10DabOan0XxOxZr3MezkltYE80FVql3RJDaJ1lQCKztW+rY3TW6\r\n3PwcjxcKJe6582/zZW+OPnEtYPT6OgBp7x2GWir/cL3a55BQFYnhI5T+ddF2\r\nKr1vGWtfw416T7rXGTJzqK8Nb+DlCwqfk2fM0AxiEOyNboQocld4tBAgHPTB\r\nwW3K7NEPcVMVanrHuZnKfjaeEJvHSKyx6Jzhy/4lDe4vahyuQaWr6SmXctT3\r\nG2N/11n86GRxWzcK7PsD3X45jAgW6wMYY10PdkuAEN+ssWvAeWPjppP1ZJBj\r\nQBIB/GJyAQhoBrlK17ncPaMvMO+cohcXcDeC+QS+wrfw3oi8xm99r/L0iA7M\r\n3j9okl/Z9Ps19NpIVCBh2M9L0RAt2iz8TLEs7XTRIZznTafQyYZnFqw5JdZR\r\nQHjcaqh8Zw9W/DYB3rYiAVfg5E9tyNwX3gqS6m7PSB0g4ygJxpfglcobTrzs\r\nxxSR2ms5Hj5zFp/2di2MMwLdx8D7Z6wuhl4=\r\n=P5Re\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBZEX8epdhoW2kUOGWdwDpcHs5G3r9JLTnHnTHBPeYCAiEA/94wpv2AxqHUDK7O5+u1rCBm2iwTFA6iomkdyRcnAw0="}],"size":1584,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.2.0-alpha-555debe.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_4.2.0-alpha-555debe.0_1648220396861_0.6334412658563762"},"_hasShrinkwrap":false,"publish_time":1648220397034,"_cnpm_publish_time":1648220397034,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}