{"name":"@envelop/parser-cache","version":"4.0.0-alpha-0107392.0","sideEffects":false,"peerDependencies":{"@envelop/core":"1.8.0-alpha-0107392.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":"0107392b50b3908ca7f257f16021f507a4b5f6ad","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.0.0-alpha-0107392.0","_nodeVersion":"17.4.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-X8y3C+CVQOAq58w+eotxLw7bokU2JJzwFEoavYhUFexN6rK9Vh5LmK2R2cZyGvUvCdB8oUofUAVLD9pywIreKA==","shasum":"ae23c2caf7d0d14974139dcc10bd7a924ea03bc6","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.0.0-alpha-0107392.0.tgz","fileCount":5,"unpackedSize":4962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh88twCRA9TVsSAnZWagAAaDsP/je4B+B/1uvPWBK/G8Zl\nGMlfatc4g8RkOtWijDm+BaNZuQJQw+yU5tYsojZb/WT6GXSw2Cb/+rOIquM3\nRP4BrPEIY/5jjuxm6ZuZBdutfeKR+ub2pzvABgKc1VIZcBohF0187AHZaJFs\n2RBJ3Hqz9ce7kcNb3e3Fd5nvt+9CPkRH5azhdQnqIGtNqV5JzAiVELVrIrTf\nWmgbAmZW8vLVX7b6BGC25wP6YZuv2q/I8gkggEHyoU5CMr136PNdIXmnOXFm\nnZnhvGNcdYgHAS8R4pgMzD4TvlIxSxGocRx6942dlTmQ37q80j8KJv+TRAer\n7of8oO8Xm9fhZWd1uIcqd80YGKIocR1DK+Dniu+2jds7pZwUFAL6PXv/jtNr\n2Q4zB2MhZdSti8tDwoA5NVFFYW/lj3vXV2SO3O117FrpsEKgluNLnIOQR/RS\nVQb6CXtxbG2jM6IRAvQxGiG7eHfgT8aeg7huQpWfUYI7/yuk/fBUokNta6m9\n2PO2meGUMyiBAQ1W6peDthCos1mtM6s3o1SZ1P4aoLc8oA6D7M0EJQZzx2XG\ny78tQ0aATS+odpe7uIh5G7rzkv4/mlmRo/wtTnZ4ymgYxJtCVgXdRHVqF6zi\nnqAYELnxoDWF9sK5AX3/dN+l55BAKipOQN55lqfkW2sFQeZhslAM4fC/gvlc\nQhWt\r\n=mMfO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG7k5pMSLQDYP6Q5G0aOmgka9hOFL5MXxTa14nftD7ZKAiEA9uk5gaRc9RElWmmdLrQMWzvyYo/TOpGJHM1/sUl4MD8="}],"size":1583,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.0.0-alpha-0107392.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.0.0-alpha-0107392.0_1643367280469_0.2712422648665007"},"_hasShrinkwrap":false,"publish_time":1643367280667,"_cnpm_publish_time":1643367280667,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}