{"name":"@envelop/parser-cache","version":"4.0.1-alpha-ea62296.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.0.1-alpha-ea62296.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":"ea622960e4b0f4a47543a79a4a87b15a5e5799fa","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-ea62296.0","_nodeVersion":"17.5.0","_npmVersion":"8.4.1","dist":{"integrity":"sha512-trwjdaKORxj0mzv+5EW5hkGs8WlEISKv+n2n1dOuX95PoEHA7iE3IeVFMLAQcckbxGIyvl7gWKd8XUF8/KSVag==","shasum":"2219059a0587a3d40962ea034d5cda9865fe8fcb","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.0.1-alpha-ea62296.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\nwsFzBAEBCAAGBQJiE3rqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkjQ/8DNNaClp7kJay2dVBK4WoXOLVYRolZRpkt6aZafbrGU3B++wo\r\n0UaJ9LlCYlrnXoym627fi9M1yI+AfNmvddUEdas+S6jCbxEo7o88Yfma9xwB\r\nHPudR83Z+vX1OC6d9UAgarLd2oJF2zs9orpICldYQZlzFc7t3mAlngz05uGJ\r\n2rmE7aVUOqUv5aXWIxr2nH2N8q9SxxKu0vjcsRDowDupvbbkNkePWZ66wMcS\r\nj/87uKIbWn9N9SYyBhTAxS9RGD7nW199gHopkgHOV5Bf8bT7sAqiCTXTLMnE\r\n0HCQP1VsbvMhxJ2uxgz5nF/oBq7DtR8MQRyVkIKhvw0/PjVp2ghQsapD0dd1\r\nxXF9hSrhFy4HhVWwC6AVpj76QoiRfs9mdy9z2S0slDug/kFdy+4I6RP8bqhZ\r\nb9dwFuVbdYP003vU2Q19o9kdfxC+SCCefTxaaCd1s9/l83Wulaa8AvJnVc+7\r\nNcdOVbIHRvIghKzoGE4oDNUdo1dVkrw6jqgApG0bYwuOTlhSs/JAx+bv+5Pm\r\np7euaCcLxPt/O5iU89m2kKTqDO9vyaHp2ehhHkJHptPDaEcIyv7wQb3iAcU4\r\ny5rmo+6X4pweeuPZSWrn8AU4m3NvqDQdkwCnowc9MaWgwtxCLwZDQ40NFf/Z\r\nHqWfpqZLR61y9R0DdSN575NE+i3oycOwINA=\r\n=heiR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGRnSLuLJuLUnzbha499sCa8FHXTpcIeUsADIFb7an+BAiEAvREtGysCiZV57J5CxvmJiwvyf2+QvQI10Mw76MBpTaU="}],"size":1583,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.0.1-alpha-ea62296.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-ea62296.0_1645443818459_0.2331982304398843"},"_hasShrinkwrap":false,"publish_time":1645443818663,"_cnpm_publish_time":1645443818663,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}