{"_id":"@btst/adapter-mongodb","_rev":"15-0868d01f47c3c10be56e760deaaede82","name":"@btst/adapter-mongodb","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@btst/adapter-mongodb","version":"1.0.0","keywords":["mongodb","database","adapter","typescript","better-db"],"license":"MIT","_id":"@btst/adapter-mongodb@1.0.0","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/olliethedev/better-auth/tree/main/packages/better-db#readme","bugs":{"url":"https://github.com/olliethedev/better-auth/issues"},"dist":{"shasum":"4f3d5c4ffd777014da592792a5023fa077e52646","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-1.0.0.tgz","fileCount":8,"integrity":"sha512-aujIAoURtI0EUKH5RsYF7a+m7qr+Iu5K8lY5PQllWr7x21HeQnCUAJKzgdSjrA8EvGcX2hsDfWi66RGL7UBJqw==","signatures":[{"sig":"MEUCIEuBl6jFXumRNCeY/S4ifdVWiBQf4CRGxfXyS1jwxOLoAiEA9B6MhflAAxwVcbUN1hi2YSJ7QQtRBcCH2y3tZR+Z82s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18408},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"oleksiy","email":"3martynov@gmail.com"},"_resolved":"/tmp/34e2edd3a66c499a7e22c07f2f40a17d/btst-adapter-mongodb-1.0.0.tgz","_integrity":"sha512-aujIAoURtI0EUKH5RsYF7a+m7qr+Iu5K8lY5PQllWr7x21HeQnCUAJKzgdSjrA8EvGcX2hsDfWi66RGL7UBJqw==","repository":{"url":"git+https://github.com/olliethedev/better-auth.git","type":"git","directory":"packages/better-db/adapter-mongodb"},"_npmVersion":"10.9.3","description":"MongoDB adapter for better-db","directories":{},"_nodeVersion":"22.20.0","dependencies":{"@btst/db":"1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"3.6.1","typescript":"^5.9.2","better-auth":"1.3.26"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_1.0.0_1760390532489_0.7622527488249726","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@btst/adapter-mongodb","version":"1.0.1","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@1.0.1","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/olliethedev/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/olliethedev/better-auth/issues"},"dist":{"shasum":"d5b09eee4f83bc80eb1aaf050b17749f1d9b268c","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-1.0.1.tgz","fileCount":8,"integrity":"sha512-KIQsitC8yuTHFVSw8IOWkDj6ouGUDpoVG09QmSJlDNUNp0CXNyuXESO69sj5/ITRQE4/5DECWuUFg2u04qT8Fw==","signatures":[{"sig":"MEUCIHI8F4vC3iZOBsIAZAwFW4QTlxy+0vPyU5Tb2V1hGmWnAiEA5l6apd22z5YzqcLiVzs4f7wgwv40RZRKBuSo+SJjFxU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18308},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-1.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"oleksiy","email":"3martynov@gmail.com"},"_resolved":"/tmp/729e778bec368d7f35bfdc1f3c4c4a04/btst-adapter-mongodb-1.0.1.tgz","_integrity":"sha512-KIQsitC8yuTHFVSw8IOWkDj6ouGUDpoVG09QmSJlDNUNp0CXNyuXESO69sj5/ITRQE4/5DECWuUFg2u04qT8Fw==","repository":{"url":"git+https://github.com/olliethedev/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"10.9.3","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.20.0","dependencies":{"@btst/db":"1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"3.6.1","typescript":"^5.9.2","better-auth":"1.3.26"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_1.0.1_1760392609400_0.02890565652686239","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@btst/adapter-mongodb","version":"1.0.2","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@1.0.2","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/olliethedev/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/olliethedev/better-auth/issues"},"dist":{"shasum":"66f3b31dd4e3baf026732aa0dba5ba9a6a854844","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-1.0.2.tgz","fileCount":8,"integrity":"sha512-P0EWwTrFt0ETmWSf2Pppn+tZKk8EAMJvxz9khl4svWGO1g4oQA0t+UE54o8jq5HXk083RGMxWK0eQyfnaKGPSg==","signatures":[{"sig":"MEQCIHNS9cfLxuGKgYFVyC2F/DZahjuhn38Z6IWrLg6Izs2gAiB67FIQwauJJk8fUcOrxLP6Z0786Q8/AQk6rPrPdYnJjg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18308},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-1.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"oleksiy","email":"3martynov@gmail.com"},"_resolved":"/tmp/4bf3ad63db0c9bae9f919ac713412c64/btst-adapter-mongodb-1.0.2.tgz","_integrity":"sha512-P0EWwTrFt0ETmWSf2Pppn+tZKk8EAMJvxz9khl4svWGO1g4oQA0t+UE54o8jq5HXk083RGMxWK0eQyfnaKGPSg==","repository":{"url":"git+https://github.com/olliethedev/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"10.9.3","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.20.0","dependencies":{"@btst/db":"1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"3.6.1","typescript":"^5.9.2","better-auth":"1.3.26"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_1.0.2_1760393165009_0.06251799746796816","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@btst/adapter-mongodb","version":"1.0.3","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@1.0.3","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/olliethedev/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/olliethedev/better-auth/issues"},"dist":{"shasum":"881723d9aea536c0b96f82e413f6790d583b32c6","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-1.0.3.tgz","fileCount":8,"integrity":"sha512-85sdx3nvJL9up8/VPGar9JNBFeqsGhlEOn2Rtoi4cHgR86hghpz1SeRMXkAFLk+oh+dCykJ+KE9d3458rFX39Q==","signatures":[{"sig":"MEMCH0qOBb+u38HFDZX6MrDjcalM4xkjisr0JJm9h/BffUsCIAP78xkmAJZOvlY4XQogfP0tWc8kEno6xubSoDSHXCbC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18468},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-1.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"oleksiy","email":"3martynov@gmail.com"},"_resolved":"/tmp/aad46abb8f488568ad2557e06c352793/btst-adapter-mongodb-1.0.3.tgz","_integrity":"sha512-85sdx3nvJL9up8/VPGar9JNBFeqsGhlEOn2Rtoi4cHgR86hghpz1SeRMXkAFLk+oh+dCykJ+KE9d3458rFX39Q==","repository":{"url":"git+https://github.com/olliethedev/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"10.9.4","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.21.1","dependencies":{"@btst/db":"1.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"3.6.1","typescript":"^5.9.2","better-auth":"1.3.26"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_1.0.3_1763906320106_0.8402169552778014","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@btst/adapter-mongodb","version":"2.0.0","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.0.0","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/olliethedev/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/olliethedev/better-auth/issues"},"dist":{"shasum":"8a28268bfbab2758555d223b14481a9411dfca82","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.0.0.tgz","fileCount":8,"integrity":"sha512-Ocg9rAfE7LGzOO3H20QN6ED59R/uO7JnOu9LLLpfS6fockx5Br9Da0fQqsIZet4zuZxuzs0Tb/IG/m/prGM4ig==","signatures":[{"sig":"MEQCIFi+iHP5m9WmED11amVAP9rObEy9FqmMcyP7EfGQIGC6AiAUYL6G1PL1C8wSUATdF2gwx2iQpxdPUUgD2X2Z6Lrhuw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18538},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-2.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"oleksiy","email":"3martynov@gmail.com"},"_resolved":"/tmp/5aa69b80c460bcb9d1efc09dec810f60/btst-adapter-mongodb-2.0.0.tgz","_integrity":"sha512-Ocg9rAfE7LGzOO3H20QN6ED59R/uO7JnOu9LLLpfS6fockx5Br9Da0fQqsIZet4zuZxuzs0Tb/IG/m/prGM4ig==","repository":{"url":"git+https://github.com/olliethedev/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"10.9.4","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.21.1","dependencies":{"@btst/db":"2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.4.5","@better-auth/core":"1.4.5"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.0.0","@better-auth/core":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.0.0_1765224137444_0.14799056612038974","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@btst/adapter-mongodb","version":"2.0.1","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.0.1","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/olliethedev/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/olliethedev/better-auth/issues"},"dist":{"shasum":"6e820646eca6ebd2bf22142bd3f9bbff7829ecf0","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.0.1.tgz","fileCount":8,"integrity":"sha512-MNAPEJhyi1Cbrj/cWOMb/z+IXJCA30renkecgzvPFbEjYDhn6aOojGGBapbl8Jmcygugxj69H4fb9UDR7mNWxw==","signatures":[{"sig":"MEUCIQDWQJGd14s/V38iJlFHdKnSTJWGBdVKVwiyluFIthDcsQIgXdUttYKjp1W+D4msQsOOXXRihw0Y4AjSwPzHSeycvcg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18538},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-2.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"oleksiy","email":"3martynov@gmail.com"},"_resolved":"/tmp/719c9f396265eaffc4d9c30440cf33ea/btst-adapter-mongodb-2.0.1.tgz","_integrity":"sha512-MNAPEJhyi1Cbrj/cWOMb/z+IXJCA30renkecgzvPFbEjYDhn6aOojGGBapbl8Jmcygugxj69H4fb9UDR7mNWxw==","repository":{"url":"git+https://github.com/olliethedev/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"10.9.4","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.21.1","dependencies":{"@btst/db":"2.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.4.5","@better-auth/core":"1.4.5"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.4.0","@better-auth/core":">=1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.0.1_1765233994882_0.7281069060166221","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@btst/adapter-mongodb","version":"2.0.2","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.0.2","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/olliethedev/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/olliethedev/better-auth/issues"},"dist":{"shasum":"2f80ba2b97d846fbdc513bdb776177e1370a4d4f","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.0.2.tgz","fileCount":8,"integrity":"sha512-En1gFZsgluPzHWaKxYgMfjBauqKk7xWM33Bvl4k5agA+nMgZyG06tw0M0JjXemUa+RtheZL89qqbKkoxMvYIDQ==","signatures":[{"sig":"MEQCIE3n+HahyO8pp9laRlELYTjlBPlAG0NxEGzydW/8nluNAiAB7ep4mZ35j8H6fIxDRnNfS4GGGTaVlTKvrBB5EzU+sA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18896},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-2.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"oleksiy","email":"3martynov@gmail.com"},"_resolved":"/tmp/428825cd902682419aa06265769a2c85/btst-adapter-mongodb-2.0.2.tgz","_integrity":"sha512-En1gFZsgluPzHWaKxYgMfjBauqKk7xWM33Bvl4k5agA+nMgZyG06tw0M0JjXemUa+RtheZL89qqbKkoxMvYIDQ==","repository":{"url":"git+https://github.com/olliethedev/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"10.9.4","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.21.1","dependencies":{"@btst/db":"2.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.4.5","@better-auth/core":"1.4.5"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.4.0","@better-auth/core":">=1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.0.2_1765306253112_0.7665853856620806","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@btst/adapter-mongodb","version":"2.0.3","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.0.3","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/better-stack-ai/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/better-stack-ai/better-auth/issues"},"dist":{"shasum":"6c306da5558bce91c4f41256f5e176337654c0b1","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.0.3.tgz","fileCount":8,"integrity":"sha512-2VXi4asYyHabNd5Cx3Vt4dsGBfWL4KOiPEK2zKvr2SPnUgGrB+lcuVD5aviafhQblsDRC457MrGdCZa26yj/ug==","signatures":[{"sig":"MEYCIQDMRFiTJok/0kMoo570/LoIwm5d07WkLHfnhaj2pbgvVgIhAO65yFZoBHgIYQky1InjBcbumEgAprIKpycuiEc2BiTg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@btst%2fadapter-mongodb@2.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18904},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-2.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5ca193b8-cacf-47c6-8cf6-b9ec982dd19d"}},"_resolved":"/tmp/1ea6b5694e2e488a996857b2f7b21064/btst-adapter-mongodb-2.0.3.tgz","_integrity":"sha512-2VXi4asYyHabNd5Cx3Vt4dsGBfWL4KOiPEK2zKvr2SPnUgGrB+lcuVD5aviafhQblsDRC457MrGdCZa26yj/ug==","repository":{"url":"git+https://github.com/better-stack-ai/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"11.7.0","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.21.1","dependencies":{"@btst/db":"2.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.4.5","@better-auth/core":"1.4.5"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.4.0","@better-auth/core":">=1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.0.3_1765326668781_0.16981199170746208","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@btst/adapter-mongodb","version":"2.1.0","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.1.0","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/better-stack-ai/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/better-stack-ai/better-auth/issues"},"dist":{"shasum":"3d5b3fd918332cb4f2f3664769ac7dcf17f80672","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.1.0.tgz","fileCount":8,"integrity":"sha512-do8YkUD0F7WMlauErUbecrq6gISxS+nUMOOMkLjW4EF95Rs/8N2y7qBTvRA0FYH52Ehga0YrtnLC46DPm75Ouw==","signatures":[{"sig":"MEYCIQCxHphAImODXlC0VhcZ8pby45U3USNM9Bnicl7RU9CkZgIhAM/DOs4R39K2BRt9WlHgXE8Djr6NjmVvPxRm/1VW9HGM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@btst%2fadapter-mongodb@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18913},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-2.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5ca193b8-cacf-47c6-8cf6-b9ec982dd19d"}},"_resolved":"/tmp/755e5fdc83eed63f409cf2cea1306ceb/btst-adapter-mongodb-2.1.0.tgz","_integrity":"sha512-do8YkUD0F7WMlauErUbecrq6gISxS+nUMOOMkLjW4EF95Rs/8N2y7qBTvRA0FYH52Ehga0YrtnLC46DPm75Ouw==","repository":{"url":"git+https://github.com/better-stack-ai/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"11.11.0","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.22.0","dependencies":{"@btst/db":"2.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.5.4","@better-auth/core":"1.5.4"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.5.0","@better-auth/core":">=1.5.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.1.0_1773240568795_0.6959760798534718","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"@btst/adapter-mongodb","version":"2.1.1","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.1.1","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/better-stack-ai/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/better-stack-ai/better-auth/issues"},"dist":{"shasum":"93080d401b23c8dc9dbfc6c0e192620c65a9f538","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.1.1.tgz","fileCount":8,"integrity":"sha512-5pnSZ582YQMlcH1gB82ECgOFxnEI4R0f7ltI3MWwFdiAR4zUnybuUejrufxHuPX667Xcy1T+GzKMW/TFl2Ntdw==","signatures":[{"sig":"MEUCIQCOJj4ZMR+K/QlkuEdEPxcXEJ+T3REP2Ej6Iha6aLjFywIgTT6nrNgyQr4DZZMni8oHxxebgJ0LQptHzVNjIvGAurg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@btst%2fadapter-mongodb@2.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18913},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-2.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5ca193b8-cacf-47c6-8cf6-b9ec982dd19d"}},"_resolved":"/tmp/884f940fc12b213f6c79ec3a142603b6/btst-adapter-mongodb-2.1.1.tgz","_integrity":"sha512-5pnSZ582YQMlcH1gB82ECgOFxnEI4R0f7ltI3MWwFdiAR4zUnybuUejrufxHuPX667Xcy1T+GzKMW/TFl2Ntdw==","repository":{"url":"git+https://github.com/better-stack-ai/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"11.11.1","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.22.1","dependencies":{"@btst/db":"2.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.5.4","@better-auth/core":"1.5.4"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.5.0","@better-auth/core":">=1.5.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.1.1_1773784535095_0.33464334152168473","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@btst/adapter-mongodb","version":"2.2.0","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.2.0","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/better-stack-ai/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/better-stack-ai/better-auth/issues"},"dist":{"shasum":"71f104ca654d79fc4d3a1901e00a08ffe93030ff","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.2.0.tgz","fileCount":8,"integrity":"sha512-lH0TMgdH16v4iVfPicle2SUgZ7HILyvVtvRXE3183/FHWjN3o4yQTK+9TuxRZcyjvDSU/PjQLwyOPNI/GkoisA==","signatures":[{"sig":"MEUCIHA9PwKvac/V+whsebPEJ/RUHFuYehk4TOEW1N2X/xSNAiEA2r/lv7wYba5ZjY1KsKd6tbqJzvEUGF0IiolntXhMQpA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@btst%2fadapter-mongodb@2.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63485},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-2.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5ca193b8-cacf-47c6-8cf6-b9ec982dd19d"}},"_resolved":"/tmp/28b9e1203c5030c8286a22704b9ea904/btst-adapter-mongodb-2.2.0.tgz","_integrity":"sha512-lH0TMgdH16v4iVfPicle2SUgZ7HILyvVtvRXE3183/FHWjN3o4yQTK+9TuxRZcyjvDSU/PjQLwyOPNI/GkoisA==","repository":{"url":"git+https://github.com/better-stack-ai/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"11.12.1","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.22.1","dependencies":{"@btst/db":"2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.6.2","@better-auth/core":"1.6.2"},"peerDependencies":{"mongodb":"^6.0.0","better-auth":">=1.6.0","@better-auth/core":">=1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.2.0_1775845144282_0.14975657993365954","host":"s3://npm-registry-packages-npm-production"}},"2.2.1":{"name":"@btst/adapter-mongodb","version":"2.2.1","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.2.1","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/better-stack-ai/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/better-stack-ai/better-auth/issues"},"dist":{"shasum":"b753d551604365b9e533e5e47d961f486d2367b0","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.2.1.tgz","fileCount":8,"integrity":"sha512-g9/9ta50fvo/OT0YDERu6P2MpmR31T8ckAoKfCnQrbnK0e6LY6Rof8lUCAVlfxDLC5QWJkgXeyfxIBAmjql4pQ==","signatures":[{"sig":"MEUCID+z5sA29sMmtktmS5rSIC1Yg44Cu4OKKo4AWmX6CADZAiEAi+ficSYywf7wFiRf84cEP3RBtFI/aANBv6lw0MbPAj4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@btst%2fadapter-mongodb@2.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63520},"main":"./dist/index.cjs","type":"module","_from":"file:btst-adapter-mongodb-2.2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5ca193b8-cacf-47c6-8cf6-b9ec982dd19d"}},"_resolved":"/tmp/73edb72982faf9cea704baddbb37a322/btst-adapter-mongodb-2.2.1.tgz","_integrity":"sha512-g9/9ta50fvo/OT0YDERu6P2MpmR31T8ckAoKfCnQrbnK0e6LY6Rof8lUCAVlfxDLC5QWJkgXeyfxIBAmjql4pQ==","repository":{"url":"git+https://github.com/better-stack-ai/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"11.12.1","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.22.1","dependencies":{"@btst/db":"2.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mongodb":"^7.1.0","unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.6.2","@better-auth/core":"1.6.2"},"peerDependencies":{"mongodb":"^6.0.0 || ^7.0.0","better-auth":">=1.6.0","@better-auth/core":">=1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.2.1_1775849956437_0.3607831614042476","host":"s3://npm-registry-packages-npm-production"}},"2.2.2":{"name":"@btst/adapter-mongodb","version":"2.2.2","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.2.2","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/better-stack-ai/better-auth/tree/main/packages/btst#readme","dist":{"shasum":"e5a1e5dd7a59757f36d32f1eed739574b92b17f7","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.2.2.tgz","fileCount":8,"integrity":"sha512-JxE/PwR4/c0ImA4NjCM+msd3sSb6r1XZkhJX1FiyTqoScCNfUkBb2/mcVYBa5qpzEsF4LVnHd5Q8BAQPilPpBQ==","signatures":[{"sig":"MEQCIBhl15W8n1GK2Gy5QijnKu8FsJyQorWNEKqVKJTiAnPVAiBtuIsgT+uA7KAeoCjUqWjTSWdEi70x0zoFjEEGP0OM3g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@btst%2fadapter-mongodb@2.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":64240},"main":"./dist/index.cjs","type":"module","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5ca193b8-cacf-47c6-8cf6-b9ec982dd19d"}},"repository":{"url":"https://github.com/better-stack-ai/better-auth","type":"git","directory":"packages/btst/adapter-mongodb"},"description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.22.1","dependencies":{"@btst/db":"2.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mongodb":"^7.1.0","unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.6.16","@better-auth/core":"1.6.16"},"peerDependencies":{"mongodb":"^6.0.0 || ^7.0.0","better-auth":">=1.6.0","@better-auth/core":">=1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.2.2_1781132506583_0.762965296894107","host":"s3://npm-registry-packages-npm-production"}},"2.2.3":{"name":"@btst/adapter-mongodb","version":"2.2.3","keywords":["mongodb","database","adapter","typescript","btst"],"license":"MIT","_id":"@btst/adapter-mongodb@2.2.3","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"homepage":"https://github.com/better-stack-ai/better-auth/tree/main/packages/btst#readme","bugs":{"url":"https://github.com/better-stack-ai/better-auth/issues"},"dist":{"shasum":"40f386ff1ccd690b9748191d8c4b2178570325df","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-2.2.3.tgz","fileCount":8,"integrity":"sha512-KE8+j2xKMy1zjFHy3sGWQkc8/AuERxjzu2/7G/elvHiBTlkCbZI55EoeEPPhRnh7HMACjHPXXIuIHgLKxpyr7A==","signatures":[{"sig":"MEYCIQCMGBm5KPooT5qoJBr0TXZ/PrME8fZxm58pwXQq6CMngwIhAPoYlCEQnE/oZ6clL+7hs8w2FUbQ1u99f9TzRQiZgEJH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@btst%2fadapter-mongodb@2.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":64308},"main":"./dist/index.cjs","type":"module","_from":"file:/home/runner/work/_temp/btst-packages/btst-adapter-mongodb-2.2.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5ca193b8-cacf-47c6-8cf6-b9ec982dd19d"}},"_resolved":"/home/runner/work/_temp/btst-packages/btst-adapter-mongodb-2.2.3.tgz","_integrity":"sha512-KE8+j2xKMy1zjFHy3sGWQkc8/AuERxjzu2/7G/elvHiBTlkCbZI55EoeEPPhRnh7HMACjHPXXIuIHgLKxpyr7A==","repository":{"url":"git+https://github.com/better-stack-ai/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"11.17.0","description":"MongoDB adapter for btst","directories":{},"_nodeVersion":"22.22.1","dependencies":{"@btst/db":"2.2.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mongodb":"^7.1.0","unbuild":"^3.4.0","typescript":"^5.9.3","better-auth":"1.6.16","@better-auth/core":"1.6.16","@better-auth/utils":"0.4.1"},"peerDependencies":{"mongodb":"^6.0.0 || ^7.0.0","better-auth":"1.6.16","@better-auth/core":"1.6.16","@better-auth/utils":"0.4.1"},"_npmOperationalInternal":{"tmp":"tmp/adapter-mongodb_2.2.3_1787421611338_0.7492796179351582","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"_id":"@btst/adapter-mongodb@3.0.0","bugs":{"url":"https://github.com/better-stack-ai/better-auth/issues"},"dist":{"shasum":"e793a3bc2e64d118b3ddad191913cd7ac5118dee","tarball":"https://registry.npmjs.org/@btst/adapter-mongodb/-/adapter-mongodb-3.0.0.tgz","fileCount":8,"integrity":"sha512-tIQAZFFTH8ouaogYjSS3q9GxnwA9DaARGhjBYWsqV+kCIpSffKg/wozSiMCN5Ejwnjoa5JsqOQ039ecvE4eSNQ==","signatures":[{"sig":"MEQCIH9m4MQXbmgQ+S5kJpF5IzUlD7ibIHcc5xn9ls1HfCmfAiBWuyrJCDMS53vsYf9nvUp4MAsRW0TCOw/Ie8kG5oYB+w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDIPdLl99191Yp7cCac2hwLWdhrezxjTxwhxNalOVXc6AiBQYV7Xf/FYTZUEX8gkspbzxtt+nY0ELZuc4FjzLrj0oA=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@btst%2fadapter-mongodb@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":71097},"main":"./dist/index.cjs","name":"@btst/adapter-mongodb","type":"module","_from":"file:/home/runner/work/_temp/btst-packages/btst-adapter-mongodb-3.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"license":"MIT","scripts":{"stub":"unbuild --stub","build":"unbuild --clean","typecheck":"tsc --project tsconfig.json"},"version":"3.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"5ca193b8-cacf-47c6-8cf6-b9ec982dd19d"}},"homepage":"https://github.com/better-stack-ai/better-auth/tree/main/packages/btst#readme","keywords":["mongodb","database","adapter","typescript","btst"],"_resolved":"/home/runner/work/_temp/btst-packages/btst-adapter-mongodb-3.0.0.tgz","_integrity":"sha512-tIQAZFFTH8ouaogYjSS3q9GxnwA9DaARGhjBYWsqV+kCIpSffKg/wozSiMCN5Ejwnjoa5JsqOQ039ecvE4eSNQ==","repository":{"url":"git+https://github.com/better-stack-ai/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"_npmVersion":"11.17.0","description":"MongoDB adapter for btst","directories":{},"maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"_nodeVersion":"22.22.1","dependencies":{"@btst/db":"3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mongodb":"^7.1.0","unbuild":"^3.4.0","typescript":"^6.0.3","better-auth":"1.7.6","@better-auth/core":"1.7.6","@better-auth/utils":"0.4.2"},"peerDependencies":{"mongodb":"^6.0.0 || ^7.0.0","better-auth":"1.7.6","@better-auth/core":"1.7.6","@better-auth/utils":"0.4.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapter-mongodb_3.0.0_1790736574527_0.1253852855496458"}}},"time":{"created":"2025-10-13T21:22:12.395Z","modified":"2026-09-30T02:49:34.967Z","1.0.0":"2025-10-13T21:22:12.694Z","1.0.1":"2025-10-13T21:56:49.604Z","1.0.2":"2025-10-13T22:06:05.181Z","1.0.3":"2025-11-23T13:58:40.309Z","2.0.0":"2025-12-08T20:02:17.637Z","2.0.1":"2025-12-08T22:46:35.010Z","2.0.2":"2025-12-09T18:50:53.369Z","2.0.3":"2025-12-10T00:31:08.936Z","2.1.0":"2026-03-11T14:49:28.925Z","2.1.1":"2026-03-17T21:55:35.245Z","2.2.0":"2026-04-10T18:19:04.410Z","2.2.1":"2026-04-10T19:39:16.581Z","2.2.2":"2026-06-10T23:01:46.777Z","2.2.3":"2026-08-22T18:00:11.470Z","3.0.0":"2026-09-30T02:49:34.604Z"},"bugs":{"url":"https://github.com/better-stack-ai/better-auth/issues"},"license":"MIT","homepage":"https://github.com/better-stack-ai/better-auth/tree/main/packages/btst#readme","keywords":["mongodb","database","adapter","typescript","btst"],"repository":{"url":"git+https://github.com/better-stack-ai/better-auth.git","type":"git","directory":"packages/btst/adapter-mongodb"},"description":"MongoDB adapter for btst","maintainers":[{"name":"oleksiy","email":"3martynov@gmail.com"}],"readme":"# Better DB\n\n**Database utilities without the auth domain—a focused fork of Better Auth's database layer.**\n\nBetter DB gives you Better Auth's proven adapter pattern and CLI-driven schema generation, focused purely on database management.\n\n## Features\n\n- 🎯 **Focused** — Database utilities without auth complexity\n- 🔄 **Upstream Syncable** — Stays aligned with Better Auth updates\n- 🔧 **Battle-tested** — Built on Better Auth's proven architecture\n- 🚀 **Multi-ORM** — Prisma, Drizzle, Kysely, MongoDB, and more\n- 🔌 **Extensible** — Plugin system for custom tables\n- ⚡ **CLI-driven** — Generate schemas with a single command\n\n## Quick Start\n\n```bash\n# Install core and your preferred adapter\nnpm install @btst/db @btst/adapter-prisma\nnpm install -D @btst/cli\n```\n\nDefine your schema:\n\n```typescript\n// db.ts\nimport { defineDb } from \"@btst/db\";\n\nexport const db = defineDb({\n  post: {\n    modelName: \"post\",\n    fields: {\n      title: {\n        type: \"string\",\n        required: true,\n      },\n      content: {\n        type: \"string\",\n        required: true,\n      },\n      published: {\n        type: \"boolean\",\n        defaultValue: false,\n      },\n      authorId: {\n        type: \"string\",\n        required: true,\n      },\n      createdAt: {\n        type: \"date\",\n        defaultValue: () => new Date(),\n      },\n    },\n  },\n  author: {\n    modelName: \"author\",\n    fields: {\n      name: {\n        type: \"string\",\n        required: true,\n      },\n      email: {\n        type: \"string\",\n        required: true,\n        unique: true,\n      },\n    },\n  },\n});\n\nexport default db;\n```\n\nGenerate and run migrations:\n\n```bash\n# Generate Prisma schema\nnpx btst generate --config=db.ts --orm=prisma --output=schema.prisma\n\n# Or for Kysely (requires database connection)\nDATABASE_URL=sqlite:./dev.db npx btst generate --config=db.ts --orm=kysely --output=migrations/schema.sql\n# Or: npx btst generate --config=db.ts --orm=kysely --output=migrations/schema.sql --database-url=sqlite:./dev.db\n\n# Run migrations\nnpx prisma migrate dev\n```\n\nUse in your app:\n\n```typescript\nimport { prismaAdapter } from \"@btst/adapter-prisma\";\nimport { PrismaClient } from \"@prisma/client\";\n\nconst prisma = new PrismaClient();\nconst adapter = prismaAdapter(prisma)({});\n\n// Create\nawait adapter.create({\n  model: \"post\",\n  data: { title: \"Hello\", content: \"World\", authorId: \"1\" },\n});\n\n// Query\nconst posts = await adapter.findMany({\n  model: \"post\",\n  where: [{ field: \"published\", value: true }],\n});\n```\n\n## CLI Commands\n\n### Initialize\n\n```bash\nnpx btst init [--output=db.ts]\n```\n\n### Generate\n\n```bash\n# Prisma\nnpx btst generate --config=db.ts --orm=prisma --output=schema.prisma\n\n# Drizzle\nnpx btst generate --config=db.ts --orm=drizzle --output=src/db/schema.ts\n\n# Kysely (requires database connection for introspection)\n# Using DATABASE_URL environment variable\nDATABASE_URL=sqlite:./dev.db npx btst generate --config=db.ts --orm=kysely --output=migrations/schema.sql\n\n# Or using --database-url flag\nnpx btst generate --config=db.ts --orm=kysely --output=migrations/schema.sql --database-url=sqlite:./dev.db\nnpx btst generate --config=db.ts --orm=kysely --output=migrations/schema.sql --database-url=postgres://user:pass@localhost:5432/db\n\n# By default, auth tables (User, Session, Account, Verification) are filtered out\n# To include them, add --include-better-auth flag\nnpx btst generate --config=db.ts --orm=prisma --output=schema.prisma --include-better-auth\n```\n\n### Migrate\n\n```bash\n# Kysely only - for Prisma/Drizzle use their native tools\n# Using DATABASE_URL environment variable or --database-url param\nDATABASE_URL=sqlite:./dev.db npx btst migrate --config=db.ts\n\n# Or using --database-url flag\nnpx btst migrate --config=db.ts --database-url=sqlite:./dev.db\nnpx btst migrate --config=db.ts --database-url=postgres://user:pass@localhost:5432/db\n\n# Generate SQL to file instead of running migrations\nnpx btst migrate --config=db.ts --output=migrations.sql --database-url=sqlite:./dev.db\n\n# By default, auth tables (User, Session, Account, Verification) are filtered out\n# To include them, add --include-better-auth flag\nnpx btst migrate --config=db.ts --output=migrations.sql --include-better-auth --database-url=sqlite:./dev.db\n```\n\n## Field Types\n\n```typescript\ndefineDb({\n  example: {\n    modelName: \"example\",\n    fields: {\n      // Basic types\n      textField: { type: \"string\" },\n      numberField: { type: \"number\" },\n      booleanField: { type: \"boolean\" },\n      dateField: { type: \"date\" },\n      jsonField: { type: \"json\" },\n      \n      // Required/Optional\n      required: { type: \"string\", required: true },\n      optional: { type: \"string\", required: false },\n      \n      // Unique\n      uniqueField: { type: \"string\", unique: true },\n      \n      // Defaults\n      active: { type: \"boolean\", defaultValue: false },\n      createdAt: { type: \"date\", defaultValue: () => new Date() },\n      \n      // References\n      userId: {\n        type: \"string\",\n        references: {\n          model: \"user\",\n          field: \"id\",\n          onDelete: \"cascade\",\n        },\n      },\n    },\n  },\n})\n```\n\n## Adapter API\n\nAll adapters provide these methods:\n\n```typescript\n// Create\nadapter.create({ model: \"post\", data: {...} })\n\n// Read\nadapter.findOne({ model: \"post\", where: [...] })\nadapter.findMany({ model: \"post\", where: [...], limit: 10 })\nadapter.count({ model: \"post\", where: [...] })\n\n// Update\nadapter.update({ model: \"post\", where: [...], update: {...} })\nadapter.updateMany({ model: \"post\", where: [...], update: {...} })\n\n// Delete\nadapter.delete({ model: \"post\", where: [...] })\nadapter.deleteMany({ model: \"post\", where: [...] })\n```\n\nSee [Better Auth Adapter Guide](https://www.better-auth.com/docs/guides/create-a-db-adapter) for details.\n\n## Plugins\n\nExtend your schema with reusable plugins:\n\n```typescript\nimport { defineDb } from \"@btst/db\";\nimport { todoPlugin } from \"@btst/plugins\";\n\nexport const db = defineDb({\n  post: {\n    modelName: \"post\",\n    fields: {\n      title: { type: \"string\", required: true },\n    },\n  },\n}).use(todoPlugin);\n```\n\nCreate custom plugins:\n\n```typescript\nimport { createDbPlugin } from \"@btst/db\";\n\nexport const tagsPlugin = createDbPlugin(\"tags\", {\n  tag: {\n    modelName: \"tag\",\n    fields: {\n      name: {\n        type: \"string\",\n        required: true,\n        unique: true,\n      },\n    },\n  },\n});\n```\n\n## Available Adapters\n\n```bash\nnpm install @btst/adapter-prisma    # Prisma\nnpm install @btst/adapter-drizzle   # Drizzle\nnpm install @btst/adapter-kysely    # Kysely\nnpm install @btst/adapter-memory    # Memory (testing)\nnpm install @btst/adapter-mongodb   # MongoDB\n```\n\n## Relationship with Better Auth\n\nBetter DB is a thin wrapper around Better Auth's database layer:\n\n**What we keep:**\n- ✅ All adapter implementations\n- ✅ CLI generation behavior\n- ✅ Field type system\n- ✅ Plugin architecture\n\n**What we exclude:**\n- ❌ Auth tables (user, session, account)\n- ❌ OAuth configurations\n- ❌ Authentication middleware\n\n**Versioning:** `@btst/*@1.4.x` tracks `better-auth@1.4.x`\n\n## Migration from Better Auth\n\nReplace imports:\n\n```typescript\n// Before\nimport { prismaAdapter } from \"better-auth/adapters/prisma\";\n\n// After\nimport { prismaAdapter } from \"@btst/adapter-prisma\";\n```\n\nReplace config with schema:\n\n```typescript\n// Before\nexport const auth = betterAuth({\n  database: prismaClient,\n  plugins: [...]\n});\n\n// After\nexport const db = defineDb({\n  // your tables using Better Auth schema format\n  post: {\n    modelName: \"post\",\n    fields: {\n      title: { type: \"string\", required: true },\n    },\n  },\n});\n```\n\nUpdate CLI:\n\n```bash\n# Before\nnpx @better-auth/cli generate\n\n# After\nnpx btst generate\n```\n\n## Examples\n\n### Blog Platform\n\n```typescript\nimport { defineDb } from \"@btst/db\";\n\nexport const db = defineDb({\n  post: {\n    modelName: \"post\",\n    fields: {\n      title: {\n        type: \"string\",\n        required: true,\n      },\n      slug: {\n        type: \"string\",\n        required: true,\n        unique: true,\n      },\n      content: {\n        type: \"string\",\n        required: true,\n      },\n      published: {\n        type: \"boolean\",\n        defaultValue: false,\n      },\n      authorId: {\n        type: \"string\",\n        required: true,\n        references: {\n          model: \"author\",\n          field: \"id\",\n          onDelete: \"cascade\",\n        },\n      },\n      createdAt: {\n        type: \"date\",\n        defaultValue: () => new Date(),\n      },\n    },\n  },\n  author: {\n    modelName: \"author\",\n    fields: {\n      name: {\n        type: \"string\",\n        required: true,\n      },\n      email: {\n        type: \"string\",\n        required: true,\n        unique: true,\n      },\n      bio: {\n        type: \"string\",\n        required: false,\n      },\n    },\n  },\n  category: {\n    modelName: \"category\",\n    fields: {\n      name: {\n        type: \"string\",\n        required: true,\n      },\n      slug: {\n        type: \"string\",\n        required: true,\n        unique: true,\n      },\n    },\n  },\n});\n```\n\n### E-commerce\n\n```typescript\nexport const db = defineDb({\n  product: {\n    modelName: \"product\",\n    fields: {\n      name: {\n        type: \"string\",\n        required: true,\n      },\n      slug: {\n        type: \"string\",\n        required: true,\n        unique: true,\n      },\n      price: {\n        type: \"number\",\n        required: true,\n      },\n      inventory: {\n        type: \"number\",\n        defaultValue: 0,\n      },\n      categoryId: {\n        type: \"string\",\n        required: false,\n        references: {\n          model: \"category\",\n          field: \"id\",\n          onDelete: \"set null\",\n        },\n      },\n    },\n  },\n  order: {\n    modelName: \"order\",\n    fields: {\n      orderNumber: {\n        type: \"string\",\n        required: true,\n        unique: true,\n      },\n      customerId: {\n        type: \"string\",\n        required: true,\n        references: {\n          model: \"customer\",\n          field: \"id\",\n          onDelete: \"cascade\",\n        },\n      },\n      status: {\n        type: \"string\",\n        required: true,\n        defaultValue: \"pending\",\n      },\n      total: {\n        type: \"number\",\n        required: true,\n      },\n      createdAt: {\n        type: \"date\",\n        defaultValue: () => new Date(),\n      },\n    },\n  },\n  orderItem: {\n    modelName: \"order_item\",\n    fields: {\n      orderId: {\n        type: \"string\",\n        required: true,\n        references: {\n          model: \"order\",\n          field: \"id\",\n          onDelete: \"cascade\",\n        },\n      },\n      productId: {\n        type: \"string\",\n        required: true,\n        references: {\n          model: \"product\",\n          field: \"id\",\n          onDelete: \"cascade\",\n        },\n      },\n      quantity: {\n        type: \"number\",\n        required: true,\n      },\n      price: {\n        type: \"number\",\n        required: true,\n      },\n    },\n  },\n});\n```\n\n## Resources\n\n- [Better Auth Docs](https://better-auth.com/docs/concepts/database)\n- [GitHub Issues](https://github.com/better-auth/better-auth/issues)\n- [Discussions](https://github.com/better-auth/better-auth/discussions)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}