{"name":"@envelop/parser-cache","version":"4.0.1-alpha-304a55e.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.0.1-alpha-304a55e.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":"304a55e4aca4a6bdf6937074460e7fb4dbff5155","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.1-alpha-304a55e.0","_nodeVersion":"17.6.0","_npmVersion":"8.5.1","dist":{"integrity":"sha512-W06qvNY/RdHlPsV7SudTOOyL8d2D5mWvdT1/VahW8sQquiWg5+07OYdTL9tCPtcBzkDUaRJRMK5ajZddOeGngA==","shasum":"5dbe2474dad1e97838ac197d074ffb6d7bd9a3d0","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.0.1-alpha-304a55e.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\nwsFzBAEBCAAGBQJiH2o0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhyA//Xbq9b4EEmDUE16HMeveW9qWRfntnya0KQeQQFSkslagVQXh2\r\nrku4ZuWSyca50ytq1Etkqsgd6tBOziVt/uooeGT9t/yv39OfVZWkrXIDIrDu\r\nosN4vqHOZKx0UkBquTcDUjEj/hCV3Jqq/+i49JKjEW5Nh5VHgz71yMbSGFAc\r\nHNFDVaztmyq3Y8o2WaCDcqPwPL/jW7MiZbKx6gduBuM2bbA84VgcG0D74bmu\r\nlfDxTr0DwiY5N2xTTWNIZKBB3f8865Q4EuRxBE432NTHc6I7W5cyYenA+gb0\r\nbOPSdpWJ9sa1/agox0wSMrq0JigcPsz3PP8bzcaaDPjJwjKy+VnVVipl4Xn5\r\n3ItQp1O04HUh+7dqAjqP/S2RhnQQTbg6OvwSIbQBk8p8VSOH03avWSBfUJMd\r\nY/e5UFnM0v+fTMHcR3fNJ7bxnCZaG1ufKwWGaL3omKpSg+58xTPjQ6ToRlKj\r\n8zcWJR3I71VqLlFiwgnyFLZGnaagE+0dBFr3ZPERQlSAuak6S8DRWULGPMR8\r\nmdcEEi77IpwkrpHa9frKZ95617Cez2sLBE1JNzArg4JXxiw/Kjy918wSRLH1\r\nsXWTilejdDsa/W6aaAWTpeULuCbDVOnMh1Z11gRJHUdwKKEVpBAEgjQFwkPh\r\nm9WS2iPtt7nMDMnALzJI+GDikLLMx2/60Gw=\r\n=m4+m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDu+5YU8EmHN+bviERq2E49C3Pk0rvAr+kpq7TD573y6gIgNaI/NgKyIoZdOJR+4dmiHRk/ad6HOUYxEhnYiN4+HA0="}],"size":1582,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.0.1-alpha-304a55e.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.1-alpha-304a55e.0_1646225972642_0.9284256202952328"},"_hasShrinkwrap":false,"publish_time":1646225972827,"_cnpm_publish_time":1646225972827,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}