{"_id":"@bisham/query-factory","_rev":"10-af0d0e23b3c1f0a0f41d4edbc37fd440","name":"@bisham/query-factory","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.1":{"name":"@bisham/query-factory","version":"0.0.1","keywords":["query-factory","react-query"],"author":{"url":"https://bishamkunwor.com.np","name":"Bisham Kunwor","email":"novelian.nova@gmail.com"},"license":"MIT","_id":"@bisham/query-factory@0.0.1","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"dist":{"shasum":"24296e8880068180992921e05e5d1e20809520a0","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.0.1.tgz","fileCount":3,"integrity":"sha512-1/79TbGvhbxqhCGTaPhszMyqmr0No9bJt/IxJJtKKI0uJRnmivQIID0EKbUESf08HzNgkIDKtK0ITx/8rstfLw==","signatures":[{"sig":"MEYCIQDfrF1XA+XlUKBXG5tD3DGc07OnOYJnuzaa9R6AfemDQwIhAOQP3ChZjVY1p0s6JELVrf8sl0kk3I2xtxQEV8oP0a9/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3456},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"23a05a3cbe9b51b8e30b1b8118e07a629cc7ccdb","scripts":{"build":"rollup -c"},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"_npmVersion":"10.8.2","description":"A Strongly Typed Query Factory For React Query.","directories":{},"_nodeVersion":"20.18.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.34.9","typescript":"^5.8.2","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/query-factory_0.0.1_1741105433644_0.15706838681284574","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@bisham/query-factory","version":"0.0.2","keywords":["query-factory","react-query"],"author":{"url":"https://bishamkunwor.com.np","name":"Bisham Kunwor","email":"novelian.nova@gmail.com"},"license":"MIT","_id":"@bisham/query-factory@0.0.2","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"homepage":"https://github.com/BishamKunwor/BishamKunwor#readme","bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"dist":{"shasum":"9aeba52a8e8e0f779fe4be00f3fa94213cdc9373","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.0.2.tgz","fileCount":3,"integrity":"sha512-7MfqyVAZpg5PRkTtmmcFnk/akfx3SncgpgYLseiO8QQLptxf1TaQ7Yx9aa2Jo6D1G2la/vB4gIfm53ubcz8GlQ==","signatures":[{"sig":"MEUCIBUlKO2Cxqpg6YCalpCCHcNZ2wJzhGnq/3LuqSiRuHmRAiEA/P3tuLCK7j4fdKNqBetZBurJd1qPyWbROkbAThh9bkA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4176},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"08618dc81ac893347a3cdfd1e6e24ab79222d126","scripts":{"build":"rollup -c"},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"repository":{"url":"git+https://github.com/BishamKunwor/BishamKunwor.git","type":"git","directory":"packages/query-factory"},"_npmVersion":"10.8.2","description":"A Strongly Typed Query Factory For React Query.","directories":{},"_nodeVersion":"20.18.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.34.9","typescript":"^5.8.2","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/query-factory_0.0.2_1741196588161_0.3413519255316233","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@bisham/query-factory","version":"0.0.3","keywords":["query-factory","react-query"],"author":{"url":"https://bishamkunwor.com.np","name":"Bisham Kunwor","email":"novelian.nova@gmail.com"},"license":"MIT","_id":"@bisham/query-factory@0.0.3","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"homepage":"https://github.com/BishamKunwor/BishamKunwor#readme","bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"dist":{"shasum":"87e0ce92610b7dc7cb7eb3762abbcacdc206202c","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.0.3.tgz","fileCount":3,"integrity":"sha512-qlkdbUAQZzYcRQakE2G5N6zNv8Jo1taQZxxk98J0l44mT0Jinkg0v1IPI2Ea6GX5DcyIbtlDpOn4rzqd8AVF2g==","signatures":[{"sig":"MEUCICSirGblddYM4gzG1lC4yzzKu0iSJjUEZDZZSCpdhTKEAiEAsHxOhzTYXe6ebw34CPeE2QWYYrGmXZ1MyRNOxcFJUeg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23790},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c8309e74bc11d5ec9a4d33728d7bb9318719c8e7","scripts":{"build":"rollup -c"},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"repository":{"url":"git+https://github.com/BishamKunwor/BishamKunwor.git","type":"git","directory":"packages/query-factory"},"_npmVersion":"10.8.2","description":"A Strongly Typed Query Factory For React Query.","directories":{},"_nodeVersion":"20.18.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.34.9","typescript":"^5.8.2","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/query-factory_0.0.3_1741432136018_0.9360203093734261","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@bisham/query-factory","version":"0.0.4","keywords":["query-factory","react-query"],"author":{"url":"https://bishamkunwor.com.np","name":"Bisham Kunwor","email":"novelian.nova@gmail.com"},"license":"MIT","_id":"@bisham/query-factory@0.0.4","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"homepage":"https://github.com/BishamKunwor/BishamKunwor/tree/main#readme","bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"dist":{"shasum":"5d88cee9c95468427c4984c1d4a0e1b51ec80a80","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.0.4.tgz","fileCount":3,"integrity":"sha512-YJqS7yP22Vi6YaVd2aV9QglBHdXFcuZC6eScglrLq52gNeYstUe+I7cBoGUtg+kZmGaDxgQcpKeqHd/xohrO6g==","signatures":[{"sig":"MEUCIQC3NywGCmx97lplPrlPB6ll2wRHtxvuyxN7LLBzP54iPQIgeRcpAtrbMpYkin3ETsNhzm7gQNo/y8il4sAXV1o1/Vo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23453},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"23cbbe2a0b1ec638cc3221e75606d271fecf360c","scripts":{"build":"rollup -c"},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"repository":{"url":"git+https://github.com/BishamKunwor/BishamKunwor.git#main","type":"git","directory":"packages/query-factory"},"_npmVersion":"10.8.2","description":"A Strongly Typed Query Factory For React Query.","directories":{},"_nodeVersion":"20.18.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.34.9","typescript":"^5.8.2","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/query-factory_0.0.4_1741446510154_0.3014907856080342","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@bisham/query-factory","version":"0.0.5","keywords":["query-factory","react-query","query","tanstack-query"],"author":{"url":"https://bishamkunwor.com.np","name":"Bisham Kunwor","email":"novelian.nova@gmail.com"},"license":"MIT","_id":"@bisham/query-factory@0.0.5","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"homepage":"https://github.com/BishamKunwor/BishamKunwor/tree/main#readme","bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"dist":{"shasum":"b704b85370391433ddf40a5e77dc4244d9c75e0f","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.0.5.tgz","fileCount":4,"integrity":"sha512-Kq00JCGXEf7GNefcpUY9CCcvu98tlo5PAvSojmBhjWIFazl40Jfz3qJ3ppPxqeTBxMfuaAs7SSVaXB/KZNZJSw==","signatures":[{"sig":"MEQCIGalKaNeV4MbhmfbFz7Hc/n8h3vkHZrKjUjjelgURcPdAiBNKAZh7HRexUinh/ra7ZYk0RLQyv6yWCPocg7bw01a/g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30365},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a1f79aa35fd204ce845865b87511cf9ee622deee","scripts":{"build":"rollup -c"},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"repository":{"url":"git+https://github.com/BishamKunwor/BishamKunwor.git#main","type":"git","directory":"packages/query-factory"},"_npmVersion":"10.8.2","description":"A simple, type-safe utility to create and manage React Query queries effortlessly.","directories":{},"_nodeVersion":"20.18.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.34.9","typescript":"^5.8.2","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/query-factory_0.0.5_1741448490248_0.6976332865542132","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@bisham/query-factory","version":"0.0.6","keywords":["query-factory","react-query","query","tanstack-query"],"author":{"url":"https://bishamkunwor.com.np","name":"Bisham Kunwor","email":"novelian.nova@gmail.com"},"license":"MIT","_id":"@bisham/query-factory@0.0.6","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"homepage":"https://github.com/BishamKunwor/BishamKunwor/tree/main#readme","bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"dist":{"shasum":"0b07a059d375b634e4c46a267ff577ea95c4349e","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.0.6.tgz","fileCount":4,"integrity":"sha512-Cwd4qm1SyoQVDKA9KEhYNQ+nqvyhs4iwoh5hlxRjFWrnF+F9QHCR3FQ3DchvU1Yg3EtyZsAWScMJyjnofC5Ugg==","signatures":[{"sig":"MEUCIGzMo7ztktkTNAVTxz9XuaUosEnygHw7G5rNUQoTlHxdAiEA5bxR9hlPwBZP2uRNLgJy/CXwQdxsPNjvDBkjp7mq0U0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30063},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"cb66b4047f02c3a7c1dea6969fda5573b350fb31","scripts":{"build":"rollup -c"},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"repository":{"url":"git+https://github.com/BishamKunwor/BishamKunwor.git#main","type":"git","directory":"packages/query-factory"},"_npmVersion":"10.8.2","description":"A simple, type-safe utility to create and manage React Query queries effortlessly.","directories":{},"_nodeVersion":"20.18.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.34.9","typescript":"^5.8.2","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/query-factory_0.0.6_1741448959239_0.48551762435068513","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@bisham/query-factory","version":"0.1.0","keywords":["query-factory","react-query","query","tanstack-query","create-query"],"author":{"url":"https://bishamkunwor.com.np","name":"Bisham Kunwor","email":"novelian.nova@gmail.com"},"license":"MIT","_id":"@bisham/query-factory@0.1.0","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"homepage":"https://github.com/BishamKunwor/BishamKunwor/tree/main#readme","bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"dist":{"shasum":"c50aee663c5a187f6fd5d4ae25445caad041c664","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.1.0.tgz","fileCount":4,"integrity":"sha512-V5ku3vNRkYlmBgVyyD8dGR6zr1yWObcynkOzfmZkP5/Ab94hdvmRsSI+6jjnrt9xd49uEoUcujWGE74XvkJXWg==","signatures":[{"sig":"MEUCIFvmym8qiYaycJSR5wKlm5tUW61oNIk6grgz+KWRHBP3AiEAuubzgtyQYEPi2/3SngsEalGqRU0dfeK7+fR4vduZDkc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19627},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"925eb21fafc403d050ed71e4c22b1308f2ff47f8","scripts":{"build":"rollup -c"},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"repository":{"url":"git+https://github.com/BishamKunwor/BishamKunwor.git#main","type":"git","directory":"packages/query-factory"},"_npmVersion":"10.8.2","description":"A simple, type-safe utility to create and manage React Query queries effortlessly.","directories":{},"_nodeVersion":"20.19.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.34.9","typescript":"^5.8.2","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/query-factory_0.1.0_1748584526835_0.48364918390046596","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bisham/query-factory","version":"0.1.1","keywords":["query-factory","react-query","query","tanstack-query","create-query"],"author":{"url":"https://bishamkunwor.com.np","name":"Bisham Kunwor","email":"novelian.nova@gmail.com"},"license":"MIT","_id":"@bisham/query-factory@0.1.1","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"homepage":"https://github.com/BishamKunwor/BishamKunwor/tree/main#readme","bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"dist":{"shasum":"780ae5194797b4d5eeddcaf19ec96546c00c548b","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.1.1.tgz","fileCount":4,"integrity":"sha512-liiKoLuTl9AjeVI+/rp0yvCcCy5o9rqEU/1rOdSnUGGpDUeW7NAPrh5Bt6K8i3ecFzygOGxPLNNz+NcKSaTBDA==","signatures":[{"sig":"MEUCIHYWyqaaXsLb+Vsie7+dPEN8oHPWHDqSG+H2e0Psu7UGAiEAqBjgLNt7ghUtvXewb62RkCx3JSqj+baD+mOL2ZdUmno=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19632},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"bf13269f299988fa7746a403ad30f08fbe248403","scripts":{"build":"rollup -c"},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"repository":{"url":"git+https://github.com/BishamKunwor/BishamKunwor.git#main","type":"git","directory":"packages/query-factory"},"_npmVersion":"10.8.2","description":"A simple, type-safe utility to create and manage React Query queries effortlessly.","directories":{},"_nodeVersion":"20.19.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.34.9","typescript":"^5.8.2","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/query-factory_0.1.1_1748615471500_0.3378825864638395","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bisham/query-factory","version":"0.1.2","keywords":["query-factory","react-query","query","tanstack-query","create-query"],"author":{"url":"https://bishamkunwor.com.np","name":"Bisham Kunwor","email":"novelian.nova@gmail.com"},"license":"MIT","_id":"@bisham/query-factory@0.1.2","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"homepage":"https://github.com/BishamKunwor/BishamKunwor/tree/main#readme","bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"dist":{"shasum":"430c54a7eafb437ebb761bfe68d86f2d6e3dc204","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.1.2.tgz","fileCount":4,"integrity":"sha512-HA9KQYgBKFutPx3eC9oZu8ab1vMgoGFsP421EIvxolKfidkJOHGsRDKtAg+bP8eG+EU6O485bq25d18HJkb2GQ==","signatures":[{"sig":"MEQCIEHieOPjLtI0wQf3JtnEKz6UQsgX8shdfaWiqF42UZGdAiBgShiQz2JxKQbCxpS8iNJQq6Uz2IoBYB6hSxLaAlvmBA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21762},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"027e5793a7a2dcfeb605d45f8dc61ebbffb6ad9e","scripts":{"build":"rollup -c"},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"repository":{"url":"git+https://github.com/BishamKunwor/BishamKunwor.git#main","type":"git","directory":"packages/query-factory"},"_npmVersion":"10.8.2","description":"A simple, type-safe utility to create and manage React Query queries effortlessly.","directories":{},"_nodeVersion":"20.19.1","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.34.9","typescript":"^5.8.2","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/query-factory_0.1.2_1748665119482_0.879534578364217","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@bisham/query-factory","version":"0.1.3","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rollup -c"},"peerDependencies":{"@tanstack/react-query":"^5.67.1"},"keywords":["query-factory","react-query","query","tanstack-query","create-query"],"author":{"name":"Bisham Kunwor","email":"novelian.nova@gmail.com","url":"https://bishamkunwor.com.np"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/BishamKunwor/BishamKunwor.git#main","directory":"packages/query-factory"},"description":"A simple, type-safe utility to create and manage React Query queries effortlessly.","devDependencies":{"@rollup/plugin-node-resolve":"^16.0.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.2","rollup":"^4.34.9","rollup-plugin-dts":"^6.1.1","typescript":"^5.8.2"},"_id":"@bisham/query-factory@0.1.3","gitHead":"522121196d667d173a65b11ca68a9fc082a501ae","bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"homepage":"https://github.com/BishamKunwor/BishamKunwor/tree/main#readme","_nodeVersion":"20.19.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-+iRSBVlhlFu+wZr6p9khIyhbQlW6KiRWPq1w82B2NxwEQv8HmIpmcAUOmBPw7UI8wJOMo1DlDDV1I9UUf5PXFA==","shasum":"2be2e9a64e79e4d37426cccd421f10d84680c54f","tarball":"https://registry.npmjs.org/@bisham/query-factory/-/query-factory-0.1.3.tgz","fileCount":4,"unpackedSize":24021,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICyX4QeJ02iCqzA/4KeCm6ZqG2esWRO0NOZgI/6SshnnAiEA/kusJ6h/aC0Ck6+uqS9mzIzVYL59OXArihIbnfk6eDE="}]},"_npmUser":{"name":"bishamkunwor","email":"novelian.nova@gmail.com"},"directories":{},"maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/query-factory_0.1.3_1748839131405_0.2965783328658951"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-04T16:23:53.507Z","modified":"2025-06-02T04:38:51.803Z","0.0.1":"2025-03-04T16:23:53.886Z","0.0.2":"2025-03-05T17:43:08.323Z","0.0.3":"2025-03-08T11:08:56.184Z","0.0.4":"2025-03-08T15:08:30.316Z","0.0.5":"2025-03-08T15:41:30.464Z","0.0.6":"2025-03-08T15:49:19.403Z","0.1.0":"2025-05-30T05:55:27.001Z","0.1.1":"2025-05-30T14:31:11.672Z","0.1.2":"2025-05-31T04:18:39.672Z","0.1.3":"2025-06-02T04:38:51.603Z"},"bugs":{"url":"https://github.com/BishamKunwor/BishamKunwor/issues"},"author":{"name":"Bisham Kunwor","email":"novelian.nova@gmail.com","url":"https://bishamkunwor.com.np"},"license":"MIT","homepage":"https://github.com/BishamKunwor/BishamKunwor/tree/main#readme","keywords":["query-factory","react-query","query","tanstack-query","create-query"],"repository":{"type":"git","url":"git+https://github.com/BishamKunwor/BishamKunwor.git#main","directory":"packages/query-factory"},"description":"A simple, type-safe utility to create and manage React Query queries effortlessly.","maintainers":[{"name":"bishamkunwor","email":"novelian.nova@gmail.com"}],"readme":"## Sandbox with Live Example\n\n[StackBlitz Demo](https://stackblitz.com/edit/vitejs-vite-1agrrdzq?file=src%2Findex.css,src%2FApp.tsx&terminal=dev)\n\n## Introduction\n\n`@bisham/query-factory` is designed to simplify your work with [React Query](https://tanstack.com/query/latest) by letting you create query functions with a consistent query key pattern and providing a range of helper methods to manage your queries. Furthermore, Query Key management is done by createQuery Itself.\n\n## Installation\n\nMake sure you have React Query and axios installed. You can install all required packages using npm or yarn:\n\n```bash\nnpm install @bisham/query-factory\n```\n\nor\n\n```bash\nyarn add @bisham/query-factory\n```\n\n## Getting Started\n\n### Creating a Query\n\nThe package exposes a `createQuery` function that helps you set up your query by defining:\n\n- A **query key** fn that returns query key array to uniquely identify the query.\n\n- A **query function**: to fetch the data.\n\n### Examples:\n\nCreate a query to fetch user list (When query key array does not depend on state)\n\n```typescript\nimport { createQuery } from \"@bisham/query-factory\";\nimport axios from \"axios\";\nimport { QueryClient } from \"@tanstack/react-query\";\n\n// Initialize the React Query client\nexport const queryClient = new QueryClient();\n\nexport interface User {\n  id: number;\n  name: string;\n  username: string;\n  email: string;\n  phone: string;\n}\n\n// Create a query for fetching users\nexport const useGetUsers = createQuery(\n  // queryOptions for createQuery (same as in useQuery)\n  {\n    // queryKey is a fn that return an queryKey array (Only change as compared to queryOptions of useQuery)\n    queryKey: () => [\"user\", \"list\"],\n    queryFn: () =>\n      axios\n        .get<User[]>(`https://jsonplaceholder.typicode.com/users`)\n        .then((res) => res.data),\n    staleTime: 60 * 1000,\n    // Include all other queryOptions here\n  },\n  // queryClient is passed manually to handle prefetching, invalidation and more features\n  queryClient\n);\n```\n\n## Using the Query in React\n\nOnce you have defined your queries, you can use them directly in your React components:\n\n```jsx\nimport React from \"react\";\nimport { useGetUsers } from \"./your-query-file\";\n\nfunction App() {\n  // All the return value of useQuery is accessible here\n  const { data: usersData, isLoading: usersLoading } = useGetUsers({\n    placeholder: (prev) => prev,\n    staleTime: 5 * 60 * 1000,\n    // add more queryOptions here to add or override global settings which was configured while setting up useGetTodos\n  });\n\n  if (todosLoading || usersLoading) return <div>Loading...</div>;\n\n  return (\n    <div>\n      <h1>Todo Item</h1>\n      <p>{todoData?.title}</p>\n\n      <h1>User List</h1>\n      <ul>\n        {usersData.map((user) => (\n          <li key={user.id}>\n            {user.name} - {user.email}\n          </li>\n        ))}\n      </ul>\n    </div>\n  );\n}\n\nexport default App;\n```\n\nCreate a query to fetch post item (When query key array depend on state)\n\n```typescript\nimport { createQuery } from \"@bisham/query-factory\";\nimport axios from \"axios\";\nimport { QueryClient } from \"@tanstack/react-query\";\n\n// Initialize the React Query client\nexport const queryClient = new QueryClient();\n\nexport interface TodoItem {\n  userId: number;\n  id: number;\n  title: string;\n  completed: boolean;\n}\n\nexport const useGetTodos = createQuery(\n  {\n    // All dynamic state that cause re-fetching should be passeed in params obj of queryKey with proper Type annotation\n    queryKey: (params: { id: string | number }) => [\"todos\", params],\n    // If queryKey includes params then it is accessible from queryFn and can be used to sync with latest value of params\n    queryFn: ({ params }) =>\n      axios\n        .get<TodoItem>(\n          `https://jsonplaceholder.typicode.com/todos/${params.id}`\n        )\n        .then((res) => res.data),\n  },\n  // queryClient is passed manually to handle prefetching, invalidation and more features\n  queryClient\n);\n```\n\n## Using the Query in React\n\nOnce you have defined your queries, you can use them directly in your React components:\n\n```jsx\nimport React from \"react\";\nimport { useGetUsers } from \"./your-query-file\";\n\nfunction App() {\n  // All the return value of useQuery is accessible here\n  const { data: usersData, isLoading: usersLoading } = useGetUsers({\n    placeholder: (prev) => prev,\n    staleTime: 5 * 60 * 1000,\n    // add more queryOptions here to add or override global settings which was configured while setting up useGetTodos\n  });\n\n  if (todosLoading || usersLoading) return <div>Loading...</div>;\n\n  return (\n    <div>\n      <h1>Todo Item</h1>\n      <p>{todoData?.title}</p>\n\n      <h1>User List</h1>\n      <ul>\n        {usersData.map((user) => (\n          <li key={user.id}>\n            {user.name} - {user.email}\n          </li>\n        ))}\n      </ul>\n    </div>\n  );\n}\n\nexport default App;\n```\n\n## Helper Methods (Can be use Outside React Lifecycle i.e., Vanila JS)\n\nWhen you create a query using `createQuery`, it not only returns a React Query hook but also provides a range of **helper methods** to manage your queries more effectively:\n\n| Method                 | Description                                               |\n| ---------------------- | --------------------------------------------------------- |\n| `getQueryKey`          | Get the query key for a given set of params.              |\n| `getQueryOptions`      | Get the React Query options for a given set of params.    |\n| `getQueryData`         | Retrieve cached data for a given set of params.           |\n| `getQueriesData`       | Retrieve all matching cached data for the base query key. |\n| `setQueryData`         | Set or update cached data for a given set of params.      |\n| `removeQueryData`      | Remove cached data for a specific query instance.         |\n| `removeAllQueriesData` | Remove all cached data that match the base query key.     |\n| `invalidateQuery`      | Invalidate (mark stale) a specific query instance.        |\n| `invalidateAllQueries` | Invalidate all queries matching the base query key.       |\n| `prefetch`             | Prefetch data for a specific query instance.              |\n| `refetchQuery`         | Refetch data for a specific query instance.               |\n| `refetchAllQueries`    | Refetch all queries matching the base query key.          |\n\n### Example Usage of Helper Methods\n\n```typescript\n// Get the query key for a todo\nconst todoQueryKey = useGetTodos.getQueryKey({ params: { id: 1 } });\nconst userQueryKey = useGetUsers.getQueryKey();\n\n// Get cached data\nconst todoData = useGetTodos.getQueryData({ params: { id: 1 } });\nconst allUserData = useGetUsers.getQueriesData();\n\n// Invalidate and refetch data\nawait useGetTodos.invalidateQuery({ params: { id: 1 } });\nawait useGetUsers.invalidateAllQueries();\nawait useGetUsers.refetchAllQueries();\n\n// Prefetch data\nawait useGetTodos.prefetch({ params: { id: 2 } });\n\n// Update cached data\nuseGetTodos.setQueryData({\n  params: { id: 42 },\n  updater: {\n    userId: 4242,\n    id: 42,\n    title: \"Updated Todo\",\n    completed: true,\n  },\n});\n\n// Remove cached data\nuseGetTodos.removeQueryData({ params: { id: 42 } });\nuseGetUsers.removeAllQueriesData();\n```\n\n## API Overview\n\nWhen you use `createQuery`, you provide:\n\n1.  **Configuration Object**:\n\n    - `queryKey`: A function to generate dynamic query keys array.\n\n    - `queryFn`: The function to fetch the data, which receives may receive `{ params }` if it was defined on `queryKey` fn. This is used to fetch data based on the params value\n\n    - All other React Query options (like `staleTime`) can be added as neccessary.\n\n2.  **Query Client**:\n\n    - Pass your instance of React Query's `QueryClient`.\n    - This queryClient instance handles all refetching, prefetching, invalidation and more features\n\nThe returned hook has the **same signature as `useQuery`**, plus **powerful helper methods** to manage your queries' lifecycle and cached data.\n\n## Contributing\n\nContributions are welcome! If you find a bug or want to enhance the package, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n\n---\n\nHappy querying with **@bisham/query-factory**!\n","readmeFilename":"README.md"}