{"name":"@envelop/parser-cache","version":"4.3.2-alpha-fd02291.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.3.2-alpha-fd02291.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":"fd022915b056183573eefcd6c3ec12ddf39b6871","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.3.2-alpha-fd02291.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-oxjc9PO3g06YgEzZ8MYLmIjt8ETAs4Zg8kyjrKCoAqgRSMswmnuderWOlKFdSL3Y/m7aistqJ7qebNilWy3CEg==","shasum":"ab62894e1490f0adb534c35ed5b38f05b5908eac","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.3.2-alpha-fd02291.0.tgz","fileCount":5,"unpackedSize":4962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdLEyWq+I15g91waKSY+o7b8sCKK8/1Wv+HaXGYfc0ngIhAJqTgfIFhBaZUGvk3dqg2+xlbsSYKGqoJt3sCpoI44Lg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJib8a6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmomww//UNbQck1VpI9yOaJZ8RDX0e/eeobVPgspPAdqf8ZDD3mEjRCX\r\nmKB8cSI64RdjCBgaY/31P0Grg871qLZ9lQ5Br2NJKSWj3MnHTGjMBkpl+1eO\r\nocBOnUNZnrVZNgtZVrD/eayIAm6fx89YXL718uBxPRX/Ok+82lmKhWfGVZ6d\r\nlMp5UJbQJm5106DF3efFUrYcLhy9DZDV+fw8y7ugoiu5vfvBGJZ0fzmhJOIz\r\n9Q2ptUCCvKZWHAszVdeQkWK7zP7uNhEH9mQmvrpizO3pR7mnUH+98Jw3QSYU\r\n4h0mbsBpVfqkd74l9U/0g56tdO97h6Hgv/SxctGKXjsuxmzq+8eVvPOGyhch\r\nu5VqOkrIjg9iJ9d271uGsQnc6/uCUjHCehLql0oCT3pXab1LSY8+h13XYX/i\r\n5hsUmJlB6HUmlCCTtfpG2knSeJjxILaS58WMfAmiRogejwFI+thCJyxpotpZ\r\n49kRnktu7TkYkRKeNXz4yLiliZI9CxkTAv6au/XVEh5MVAM958eT7pdprN5J\r\ndKT60tVmhoE9CEYWQFNxEOV+Ky5+QAQuXgXHAsZZCw1rASXp8rUakxSxCshk\r\nBWF7P/2J0B7vvQBgH7kKwBvCyaR2ACns2RV2rtyx1eTX9ONWO9oqJ34IoDCP\r\nXAuAQlHB5dQ2fbcx8D0FqeosVRDUJeUaixY=\r\n=rK7Q\r\n-----END PGP SIGNATURE-----\r\n","size":1585,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.3.2-alpha-fd02291.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.3.2-alpha-fd02291.0_1651492537874_0.5758873147445958"},"_hasShrinkwrap":false,"publish_time":1651492538048,"_cnpm_publish_time":1651492538048,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}