{"name":"@envelop/validation-cache","version":"5.0.0-alpha-20221012161545-f89e59c1","sideEffects":false,"peerDependencies":{"@envelop/core":"3.0.0-alpha-20221012161545-f89e59c1","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/validation-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/validation-cache`\n\nThis plugins adds simple LRU caching to your `validate`, to improve performance by caching the validation result.\n\nThis plugins improves performance of validating by ~50% (based on benchmarks).\n\n## Getting Started\n\n```\nyarn add @envelop/validation-cache\n```\n\n## Usage Example\n\n```ts\nimport { parse, validate, execute, subscribe } from 'graphql'\nimport { envelop, useEngine } from '@envelop/core'\nimport { useValidationCache } from '@envelop/validation-cache'\n\nconst getEnveloped = envelop({\n  plugins: [\n    useEngine({ parse, validate, execute, subscribe }),\n    // ... other plugins ...\n    useValidationCache({\n      // options goes here\n    })\n  ]\n})\n```\n\n### API Reference\n\n#### `cache`\n\nSet this to pass in a cache instance. By default a new LRU cache is created using default `max` and `ttl`.\n","readmeFilename":"README.md","gitHead":"f89e59c1281e670abd78f8d6cb10c28c1dce79aa","description":"This plugins adds simple LRU caching to your `validate`, to improve performance by caching the validation result.","bugs":{"url":"https://github.com/n1ru4l/envelop/issues"},"homepage":"https://github.com/n1ru4l/envelop#readme","_id":"@envelop/validation-cache@5.0.0-alpha-20221012161545-f89e59c1","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pCvZSbonAnbMad90eiBG+8wb53CAra/1mrP7TlscgTS8hzj7UHs4F9NUfsr/Yn2a6LRpMelX9HHiAy6ZCyZiEQ==","shasum":"7aefed1d4408f71dacdece9c276d109d5d2a575a","tarball":"http://registry-npm.ywwl.com/@envelop/validation-cache/download/@envelop/validation-cache-5.0.0-alpha-20221012161545-f89e59c1.tgz","fileCount":7,"unpackedSize":6529,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFQo/EtqTzgRto6A1YYezGBWtQ2YbU8VwID4gA94d6bgIhAIQ3woHZn27CcLwewo+r5RgA0Q47lrFXhlaND1B3nO0H"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRuhpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEBA//ab1BLOEDcAV0wI+z8em3m+3otmDqmG9HLlUsCiyyipOeeplH\r\nmXFtuhy+/Ec5TCc5WZG4AhB9Ovmeb2NM43xsMKHAi9RtnNSSb4sPddHPM5eP\r\nNlIJ5LCjnBvZ2O38QgF50vTkPP+8S6cDJKr+d66nw3e37bWab60rDWL3PKLn\r\ng8xJJrBGVK2VDDgX/famXvN3Y6+OgaccIBTJ0dCN8lnKvxm+GdiMDKkYNv5x\r\n9jolmRNoOb8fOB4GTbl48VSdxEcR3UQa4RYQPTPkvXH8Mt5CNqvrV/JIenAo\r\nMBgQl2z+53XX+GIcv8q09NB5L4ov6niD3ekaC4w65tjLovExO/ftxCBPDLSI\r\nWPq4YI6tXtdIxnV+5VuXnVuqQoa2O76h7cfr/6aiO6i/yZ0i68T6NjOQc+qD\r\nnSi9hvtbqn+wIlhv8M8UeWu04lo00LP7+QjmnfVIy+eKHyVR7QCAsHXGJrW1\r\nqwsgk2u2QNlHTtK+QEsBGIG7VQQd+7Z/eotd39cxA/8FldWgWg9QB+fHDhA2\r\nDjoUG3k3EEA+RKwPX3LtEIFmH4z4Ec9oCmhbHhZS3XldiEoUjgLUl7AirXp9\r\n4lNxraKrzUunT3+6GjPjVx8PcfHCFm66+Nyjw421QQvQ652gQ+EcaX3O7PRo\r\nYv3pyxMO5vtzvaApIU020QR5XssFbu0QbDg=\r\n=0PPU\r\n-----END PGP SIGNATURE-----\r\n","size":1927,"noattachment":false,"key":"/@envelop/validation-cache/-/@envelop/validation-cache-5.0.0-alpha-20221012161545-f89e59c1.tgz"},"_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"directories":{},"maintainers":[{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validation-cache_5.0.0-alpha-20221012161545-f89e59c1_1665591401040_0.552727260937103"},"_hasShrinkwrap":false,"publish_time":1665591401437,"_cnpm_publish_time":1665591401437,"dist-tags":{"alpha":"11.0.2-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","latest":"11.0.1","rc":"11.0.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508"}}