{"name":"@envelop/parser-cache","version":"6.0.0-alpha-20221012172211-94501109","sideEffects":false,"peerDependencies":{"@envelop/core":"4.0.0-alpha-20221012172211-94501109","graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"dependencies":{"lru-cache":"^6.0.0","tslib":"^2.4.0"},"repository":{"type":"git","url":"git+https://github.com/n1ru4l/envelop.git","directory":"packages/plugins/parser-cache"},"author":{"name":"Dotan Simha","email":"dotansimha@gmail.com"},"license":"MIT","main":"cjs/index.js","module":"esm/index.js","typings":"typings/index.d.ts","typescript":{"definition":"typings/index.d.ts"},"type":"module","exports":{".":{"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"},"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"}},"./*":{"require":{"types":"./typings/*.d.cts","default":"./cjs/*.js"},"import":{"types":"./typings/*.d.ts","default":"./esm/*.js"},"default":{"types":"./typings/*.d.ts","default":"./esm/*.js"}},"./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 { parse, validate, execute, subscribe } from 'graphql'\nimport { envelop, useEngine } from '@envelop/core'\nimport { useParserCache } from '@envelop/parser-cache'\n\nconst getEnveloped = envelop({\n  plugins: [\n    useEngine({ parse, validate, execute, subscribe }),\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":"945011093e8ef1b33c8a8d814e2811a94670f2a9","description":"This plugins adds simple LRU caching to your `parse`, to improve performance by caching the parsed result.","bugs":{"url":"https://github.com/n1ru4l/envelop/issues"},"homepage":"https://github.com/n1ru4l/envelop#readme","_id":"@envelop/parser-cache@6.0.0-alpha-20221012172211-94501109","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-I2psOG06QN/gha0301j0bRTo9JrVFHsJf2qQppl4+fl3ytMMlzcQY3h2rgS/a9d0OWJ88U19xhedFYPLiMla/g==","shasum":"5edb9823612144407fa17b7233930c1dbb6b78fe","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-6.0.0-alpha-20221012172211-94501109.tgz","fileCount":7,"unpackedSize":6269,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiUzj335poYtI1SvDf7NTC+xfdqNMJuykYyNN2yazmQAiEAz+brB1UtRyxkqC6dHs+lRMuP0CNpEerB9R3EURqUvao="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRvfrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpyA/+JPaH4LxKvrRPowp0h/m764LGnLGuUeigLtOqJ1vtPoTg0qWA\r\n55VpHSmbNjb6Grup1XsDDrrH5Sxe2qI+LGNT2AhkjudodDwiJ0YPjuqEV9yM\r\n7np5U5Hj8xBazK2XOA/UdlFnML7DYQRAg5z8yBJnNCPOBS2owVhGjcjBvgy/\r\nclDBhnMhePNk9N8wufHDE+s68oUNQ4gqsZDYMMg+tRAC9bCipzj7i3IOjiE8\r\ngsvElq0kdNFkEwqB8WZa2XmrBNUKcOYROkGeRenTs6Us7CKrc2pp9io5JLsX\r\nH0p8/fTD8oxwmMbP8znUVIxawNnoDZrM7Pn5VgSFfUfhmTj0nDw3KH3jlFD/\r\nFiY7eOGeFaR7YKpnZP91VBjNmsnJhqVBPx5E5Jl9E7O1zc22ymXd6G0Lj04Z\r\ncZ6ybUU968yD68Qr7co4mIVUlz3bO5rlTVAMh8BsIYSPzf1moZTLE5BPc/Lo\r\noKl3ugg40X36yVaJky348dP9VjhbHJ4QuPvgTFDrzxSNBw22bp2MiVENA5xf\r\nN1RlgtQzHxl7YGgUyXZJAwJYD4XiOotf3CSg7YDsx8IJn0I1eKliCQlihaPy\r\nYYi1euwdeq8qX3Fzr6d2q4vh7a8j/ABZY7nHKN63gwVs14DpMMOcewPOfVAg\r\n8ZXbTeBqFicRZeCux96f9/aBgwnS9LJ7kKg=\r\n=Fk+Y\r\n-----END PGP SIGNATURE-----\r\n","size":1762,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-6.0.0-alpha-20221012172211-94501109.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_6.0.0-alpha-20221012172211-94501109_1665595370802_0.18236983991557887"},"_hasShrinkwrap":false,"publish_time":1665595371261,"_cnpm_publish_time":1665595371261,"dist-tags":{"alpha":"11.0.2-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","latest":"11.0.1","rc":"11.0.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508"}}