{"_id":"@occupop/lib-mongo","_rev":"31-b788128bb5486f08d9a40c6dfdff3c1b","name":"@occupop/lib-mongo","dist-tags":{"latest":"5.0.0"},"versions":{"0.0.2":{"name":"@occupop/lib-mongo","version":"0.0.2","_id":"@occupop/lib-mongo@0.0.2","maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"lcidral","email":"leonardo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"}],"dist":{"shasum":"177a5da6612d0a1962e320d103d7af6aacb199b1","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-0.0.2.tgz","fileCount":5,"integrity":"sha512-FJmZvlaYsYiiw84ya7pQcn5Q+xSuMBByjizi1CGo5kEoGp7IU9hzebwNS/5fK7SY43a6W5O5X0H2n2E9wo4cjA==","signatures":[{"sig":"MEQCIGC9H9a18ZsT2YFMeD3Qqbvg0KA8f6lr/OP1o1wiyLc+AiBGezT6rmo7k2zJ5qILpBvwUpISuuUjjZ+xpclMrySPBA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4343},"type":"module","module":"src/index.ts","gitHead":"bb19d6896fc9b6dd2b97cb0c96eb6aabf5752c23","scripts":{"test":"echo 'yeah!'"},"_npmUser":{"name":"dougoccupop","email":"douglas@occupop.com"},"deprecated":"test","_npmVersion":"10.2.3","description":"To install dependencies:","directories":{},"_nodeVersion":"18.19.0","publishConfig":{"access":"restricted"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_0.0.2_1728136767184_0.011782496766473693","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@occupop/lib-mongo","version":"1.1.0","_id":"@occupop/lib-mongo@1.1.0","maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"lcidral","email":"leonardo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"}],"dist":{"shasum":"629944264dab20ccc6d8ad8cc68576ab3f29fa0f","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-1.1.0.tgz","fileCount":8,"integrity":"sha512-FwK65L7hT7ruPD/paIEOV9dx7myDbp/t6ciVfscNBIJ+70FOzbZCLv/tRfXAh8snp/aeLBS2WmJmesn2Vv/msg==","signatures":[{"sig":"MEQCICwh4i5+PyF50dtAxTJxhGQko2C2DAcdB/7Y+pU/edoLAiArweVWHSdl+WPX+CE5+OYlrFKu9AKuldviDAqLZJSXCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6716},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"2526d56c581b3006c9daeb6f51a94bc1cc333a83","scripts":{"dist":"rm -fr dist && tsc","lint":"biome lint","test":"bun test","cover":"bun test --coverage"},"_npmUser":{"name":"dougoccupop","email":"douglas@occupop.com"},"_npmVersion":"10.2.3","description":"To install dependencies:","directories":{},"_nodeVersion":"18.19.0","dependencies":{"mongodb":"^6.9.0"},"publishConfig":{"access":"restricted"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3","@types/mongodb":"^4.0.7"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_1.1.0_1728412650221_0.5545053882088093","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@occupop/lib-mongo","version":"1.1.1","_id":"@occupop/lib-mongo@1.1.1","maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"lcidral","email":"leonardo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"}],"dist":{"shasum":"08165b1fd27e167880aa150ae68b1b08f39cf37d","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-1.1.1.tgz","fileCount":8,"integrity":"sha512-Fd2MKFSMiCglHtrliXB+YvXhkuYQGQ1cVCJLYoh8YeyMGRVjYg2edT4nYXh+Jr0llTX0tG2IeWJhqynpr8L/9A==","signatures":[{"sig":"MEQCIDLVztEMe8KyCDeWpioTd1LaONT3mAsc62zX32mbcYRZAiBV29nzXEhgaDuKkFxtd2O+Glc29eZOY33fRvIEpYiQ6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9892},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"9a88dc73d00057f475a347f21214d48dd7dab99c","scripts":{"dist":"rm -fr dist && tsc","lint":"biome lint","test":"bun test","cover":"bun test --coverage"},"_npmUser":{"name":"dougoccupop","email":"douglas@occupop.com"},"_npmVersion":"10.2.3","description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"mongodb":"^6.9.0"},"publishConfig":{"access":"restricted"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3","@types/mongodb":"^4.0.7"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_1.1.1_1729518545898_0.7575583182812853","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@occupop/lib-mongo","version":"1.1.2","_id":"@occupop/lib-mongo@1.1.2","maintainers":[{"name":"gera_occupop","email":"gerardo@occupop.com"},{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"lcidral","email":"leonardo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"}],"dist":{"shasum":"1a7b434a03b0944ab40dda704b1fe710c48f0caf","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-1.1.2.tgz","fileCount":8,"integrity":"sha512-g3bGjowTwd2EBKF2ZL4n9cg+yUnZJTg+tBLPNxGsmLH6HrVSeXeYRwl5MrNrq855522mlbDMbPwIf+WYCZURYg==","signatures":[{"sig":"MEUCIQDIV6VBEOt+YWr4yI9lNoeslW73IoTg8JCZXzmOe0czdgIgP1XjeQnm4vbPIKpujONbYO96DoVjEHYcBIcYQdxHW84=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10473},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"2874c8ecdd734c07839f6537eaac4000f48b3dc6","scripts":{"dist":"bun cover && rm -fr dist && tsc","lint":"biome lint","test":"bun test","cover":"bun test --coverage"},"_npmUser":{"name":"dougoccupop","email":"douglas@occupop.com"},"_npmVersion":"10.2.3","description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"mongodb":"^6.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3","@types/mongodb":"^4.0.7"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_1.1.2_1730474398469_0.997829908072962","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"@occupop/lib-mongo","version":"1.1.3","_id":"@occupop/lib-mongo@1.1.3","maintainers":[{"name":"gera_occupop","email":"gerardo@occupop.com"},{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"lcidral","email":"leonardo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"}],"dist":{"shasum":"b23f4951e607ee46a3b602c5bdfee1bfdc43e324","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-1.1.3.tgz","fileCount":8,"integrity":"sha512-oKD5hKPxycNd3M488YYR5lFGfZbwSNPq/xfOz7uZW0Ocp4qPDYSBwvWvnXH27yONK3ZZG/XjOXy7777uPbl5MQ==","signatures":[{"sig":"MEUCIA+ys2KDVW7E/cpjdTvKmkIsiHO6NYUImh2JHd8v+ejrAiEAwNoae0nvZlB73k8aO2Ccv2Va08qpJZaw91gySn8JuoQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10583},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"ea7ab7440e815b2cd7bcffed203b26eed921c5a3","scripts":{"dist":"bun cover && rm -fr dist && tsc","lint":"biome lint","test":"bun test","cover":"bun test --coverage"},"_npmUser":{"name":"dougoccupop","email":"douglas@occupop.com"},"_npmVersion":"10.2.3","description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"mongodb":"^6.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3","@types/mongodb":"^4.0.7"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_1.1.3_1730832850097_0.32776211136708033","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@occupop/lib-mongo","version":"1.2.0","_id":"@occupop/lib-mongo@1.2.0","maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"gera_occupop","email":"gerardo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"lcidral","email":"leonardo@occupop.com"}],"dist":{"shasum":"dc0c23ed0a83e3b792ed7baff40a9275a0461353","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-1.2.0.tgz","fileCount":6,"integrity":"sha512-QkfCVGZE31TH5kUNw7z+MLMLNpdCfjl4Di+uHWGxnkcg+7xieYJzfZIsagGKKJmlMnfltJJINB+e80TWy0uysw==","signatures":[{"sig":"MEYCIQChqt0VvKOWpJxcjbv2XfQAjzFAePAZIEZ9fbrRPMSzXQIhANhjhx7IPeDhh65DN/OwIw9i8/0Is1/ECoYY2tNKOayb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8334},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"dc0c23ed0a83e3b792ed7baff40a9275a0461353","scripts":{"dts":"tsc --emitDeclarationOnly","dist":"bun run lint && bun run cover && rm -fr dist && bun run build && bun run dts","lint":"biome lint","test":"bun test","build":"bun build --target=node --packages=external ./src/index.ts --outdir ./dist","cover":"bun test --coverage"},"_npmUser":{"name":"dougoccupop","email":"douglas@occupop.com"},"_integrity":"sha512-QkfCVGZE31TH5kUNw7z+MLMLNpdCfjl4Di+uHWGxnkcg+7xieYJzfZIsagGKKJmlMnfltJJINB+e80TWy0uysw==","_npmVersion":"10.8.3","description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","directories":{},"_nodeVersion":"22.6.0","dependencies":{"mongodb":"^6.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3","@types/mongodb":"^4.0.7"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_1.2.0_1741564566548_0.20389099116731746","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@occupop/lib-mongo","version":"1.2.1","_id":"@occupop/lib-mongo@1.2.1","maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"gera_occupop","email":"gerardo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"lcidral","email":"leonardo@occupop.com"}],"dist":{"shasum":"23529cacc2343954d7c53c2f8e3ffe1c893ebb74","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-1.2.1.tgz","fileCount":6,"integrity":"sha512-2bI2YqL7iNw6aeSDW3ewMTGql2m3G/S1L/QIWgoIPfc4vFN5mpm+x4+OJAiy7Okv2J1PujspOikwqWcNjoIrLg==","signatures":[{"sig":"MEYCIQCHim7NZubqkCzUjj24SOagqI56EWgJZkEzD6hhWEPLsgIhAOOQeVNTqs0KLFucNXzO/567VOgzWdf/7QQiaQxnL4rh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8403},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"23529cacc2343954d7c53c2f8e3ffe1c893ebb74","scripts":{"dts":"tsc --emitDeclarationOnly","dist":"bun run lint && bun run cover && rm -fr dist && bun run build && bun run dts","lint":"biome lint","test":"bun test","build":"bun build --target=node --packages=external ./src/index.ts --outdir ./dist","cover":"bun test --coverage"},"_npmUser":{"name":"dougoccupop","email":"douglas@occupop.com"},"_integrity":"sha512-2bI2YqL7iNw6aeSDW3ewMTGql2m3G/S1L/QIWgoIPfc4vFN5mpm+x4+OJAiy7Okv2J1PujspOikwqWcNjoIrLg==","_npmVersion":"10.8.3","description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","directories":{},"_nodeVersion":"22.6.0","dependencies":{"mongodb":"^6.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3","@types/mongodb":"^4.0.7"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_1.2.1_1742435587374_0.09336854765704339","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@occupop/lib-mongo","version":"1.2.2","_id":"@occupop/lib-mongo@1.2.2","maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"gera_occupop","email":"gerardo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"lcidral","email":"leonardo@occupop.com"}],"dist":{"shasum":"5724ec31da3d24bd46d00e7a13c7a63b28ae74c3","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-1.2.2.tgz","fileCount":6,"integrity":"sha512-BoMCE0ObCVDSmQOBMKJ2vyS3jFlqRDrbgY632l9Mo4EFwpYzPeAZLXpsWrZ2Z4NNgMZoWD3hkOeCeteiQdtGyA==","signatures":[{"sig":"MEYCIQDWEabUGYxJjgIKyOLelkA+31VtxhJp1rvgP5dp0BrvMQIhAMnm5D0ljA2c5EIQksn0m93YRey/21CUVCY26aVV31tV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8404},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"5724ec31da3d24bd46d00e7a13c7a63b28ae74c3","scripts":{"dts":"tsc --emitDeclarationOnly","dist":"bun run lint && bun run cover && rm -fr dist && bun run build && bun run dts","lint":"biome lint","test":"bun test","build":"bun build --target=node --packages=external ./src/index.ts --outdir ./dist","cover":"bun test --coverage"},"_npmUser":{"name":"dougoccupop","email":"douglas@occupop.com"},"_integrity":"sha512-BoMCE0ObCVDSmQOBMKJ2vyS3jFlqRDrbgY632l9Mo4EFwpYzPeAZLXpsWrZ2Z4NNgMZoWD3hkOeCeteiQdtGyA==","_npmVersion":"10.8.3","description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","directories":{},"_nodeVersion":"22.6.0","dependencies":{"mongodb":"^6.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3","@types/mongodb":"^4.0.7"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_1.2.2_1742435640426_0.14532107757602386","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@occupop/lib-mongo","version":"1.2.3","_id":"@occupop/lib-mongo@1.2.3","maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"gera_occupop","email":"gerardo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"lcidral","email":"leonardo@occupop.com"}],"dist":{"shasum":"8ee6d87943c3e758777f5978190bcbe42bc2933f","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-1.2.3.tgz","fileCount":6,"integrity":"sha512-crM7TYeBuyzHLjzsOzmYsZTFgxv+BBsQ/AtLo5xNqZcd0hOnlsyMc7pNLzJm1PHgtOrswaAbLi/EjHKfJpAf2w==","signatures":[{"sig":"MEQCICzMzLz/DW8ltOdFNmVyQoPGLLbWGoJiSBYMaXpQd47lAiBQFfseEISXNfjpqQ+SB85PmNE+CQLt9npcAg9q6bSfqw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8409},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","shasum":"8ee6d87943c3e758777f5978190bcbe42bc2933f","scripts":{"dts":"tsc --emitDeclarationOnly","dist":"bun run lint && bun run cover && rm -fr dist && bun run build && bun run dts","lint":"biome lint","test":"bun test","build":"bun build --target=node --packages=external ./src/index.ts --outdir ./dist","cover":"bun test --coverage"},"_npmUser":{"name":"dougoccupop","email":"douglas@occupop.com"},"_integrity":"sha512-crM7TYeBuyzHLjzsOzmYsZTFgxv+BBsQ/AtLo5xNqZcd0hOnlsyMc7pNLzJm1PHgtOrswaAbLi/EjHKfJpAf2w==","_npmVersion":"10.8.3","description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","directories":{},"_nodeVersion":"22.6.0","dependencies":{"mongodb":"^6.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3","@types/mongodb":"^4.0.7"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_1.2.3_1742442459835_0.9710457770399763","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@occupop/lib-mongo","version":"4.0.0","_id":"@occupop/lib-mongo@4.0.0","maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"gera_occupop","email":"gerardo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"lcidral","email":"lcidral@gmail.com"}],"dist":{"shasum":"c096065f72f10ca3122da4b73129dc0bcaa8affa","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-4.0.0.tgz","fileCount":6,"integrity":"sha512-34K8oyveWc4xheIMA/N6OW+VaeX+gApxuDRQ6TcISYSgQgXvDyWTsM9QVUSGnJT9nGad5Ksj+yflG4bwLHCXAQ==","signatures":[{"sig":"MEUCIH1pyhMFE79U/lYkMcZzD6ROWVtJkfNwrSyHXphjEO/bAiEA8561bxX3Kgi+Kepa2xY9rbK3bjBoW+e7+VcYi7ubauU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCk3sSAxEe7Nb6Z7bvdX8s/b6VXy+aDUQ9WQ2R3UiXnVgIgNuJ5HrqzO1+q5H7nkwuKodqtX5Nv9BLEDaqTkxtHqnk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8409},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"28bf3de197ecdf32dd56beb3b2187e1bc5b8096b","scripts":{"dts":"tsc --emitDeclarationOnly","dist":"bun run lint && bun run cover && rm -fr dist && bun run build && bun run dts","lint":"biome lint","test":"bun test","build":"bun build --target=node --packages=external ./src/index.ts --outdir ./dist","cover":"bun test --coverage"},"_npmUser":{"name":"kaueoccupop","email":"kaue@occupop.com"},"_npmVersion":"11.19.0","description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","directories":{},"_nodeVersion":"24.21.0","dependencies":{"mongodb":"^6.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3","@types/mongodb":"^4.0.7"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lib-mongo_4.0.0_1789672843052_0.7638234094079925","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"_id":"@occupop/lib-mongo@5.0.0","dist":{"shasum":"e7c37d60392f6c4a3fbf6251e552812f4aef9d72","tarball":"https://registry.npmjs.org/@occupop/lib-mongo/-/lib-mongo-5.0.0.tgz","fileCount":6,"integrity":"sha512-EbXZip5zZevbVdlK2cmLEiwgL+k20nOFXDRAXWlhO7DyZL1tlwEFu4/l78dYOEIQGqXRK/2P3yuYOAq6YGCtJA==","signatures":[{"sig":"MEUCIAFCXDtW9XC9mEWmdBU/sYEEy+SKzEa5P4gFxl16GTcqAiEA/ypaDg3ZPsCw3Z8wvIdXgT7VYXSMwi7Y/aP4aneJzHM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFgIF2Q0hzBmDI1/fytWkpHTH/qsCO6WQdi3haGr0STKAiEAnUzQskrJwfDXoZlFSMtziawI/j+2D3ca/pT1nbw/qXw="}],"unpackedSize":10132},"main":"dist/index.js","name":"@occupop/lib-mongo","type":"module","types":"dist/index.d.ts","gitHead":"ea17d1b96485a01d26686e5a76d0addf1a0b02d6","scripts":{"dts":"tsc --emitDeclarationOnly","dist":"bun run lint && bun run cover && rm -fr dist && bun run build && bun run dts","lint":"biome lint","test":"bun test","build":"bun build --target=node --packages=external ./src/index.ts --outdir ./dist","cover":"bun test --coverage"},"version":"5.0.0","_npmUser":{"name":"kaueoccupop","email":"kaue@occupop.com"},"_npmVersion":"11.19.0","description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","directories":{},"maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"gera_occupop","email":"gerardo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"lcidral","email":"lcidral@gmail.com"}],"_nodeVersion":"24.21.0","dependencies":{"mongodb":"^7.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^1.9.3"},"peerDependencies":{"typescript":"^5 || ^6.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lib-mongo_5.0.0_1789758940623_0.6022198292617824"}}},"time":{"created":"2024-10-05T13:59:26.722Z","modified":"2026-09-18T19:15:40.858Z","1.0.0":"2024-10-05T13:45:45.483Z","1.0.1":"2024-10-05T13:52:49.767Z","0.0.1":"2024-10-05T13:58:27.215Z","0.0.2":"2024-10-05T13:59:27.404Z","0.0.3":"2024-10-07T14:44:35.986Z","0.0.4":"2024-10-08T01:45:50.987Z","0.0.5":"2024-10-08T01:47:52.679Z","0.0.6":"2024-10-08T18:25:44.044Z","0.0.7":"2024-10-08T18:27:23.268Z","1.1.0":"2024-10-08T18:37:30.400Z","1.1.1":"2024-10-21T13:49:06.112Z","1.1.2":"2024-11-01T15:19:58.673Z","1.1.3":"2024-11-05T18:54:10.381Z","1.2.0":"2025-03-09T23:56:06.726Z","1.2.1":"2025-03-20T01:53:07.618Z","1.2.2":"2025-03-20T01:54:00.599Z","1.2.3":"2025-03-20T03:47:40.010Z","4.0.0":"2026-09-17T19:20:43.140Z","5.0.0":"2026-09-18T19:15:40.703Z"},"description":"This package is intended to use with `@occupop/lib-container` being a wrapper for basic MongoDB operations... providing factory for MongoClient, collection getter and repositories.","maintainers":[{"name":"dougoccupop","email":"douglas@occupop.com"},{"name":"pauloccupop","email":"paul@occupop.com"},{"name":"gera_occupop","email":"gerardo@occupop.com"},{"name":"matheus-occupop","email":"matheus@occupop.com"},{"name":"kaueoccupop","email":"kaue@occupop.com"},{"name":"paulooccupop","email":"paulo@occupop.com"},{"name":"leonardoreiners","email":"leonardoreiners@occupop.com"},{"name":"lcidral","email":"lcidral@gmail.com"}],"readme":"# Package @occupop/lib-mongo\n\nThis package is intended to use with `@occupop/lib-container`\nbeing a wrapper for basic MongoDB operations...\nproviding factory for MongoClient, collection getter and repositories.\n\nThis implementation refers to\nhttps://www.mongodb.com/docs/drivers/node/current/fundamentals/! \nCheck their docs for detailed/advanced usage.\n\n### *NPM registry token required!*\n\n## Install\n```bash\n# Yarn\nyarn add @occupop/lib-mongo\n\n# NPM\nnpm install @occupop/lib-mongo\n\n# Bun\nbun add @occupop/lib-mongo\n```\n\n## Compatibility\n\n| | 5.x |\n|---|---|\n| MongoDB Node.js driver | `mongodb` 7 (`^7.6.0`), a dependency of this package |\n| Node.js | 20.19 or later (the driver's `engines.node`) |\n| MongoDB server | 4.4 or later (the driver's minimum; its maximum is 9.0) |\n| Bun | 1.4.0 or later (see \"5.0.0 breaking changes\") |\n| TypeScript | 5.x and 6.x (peer range `^5 \\|\\| ^6.0.0`) |\n\nThe driver ships its own type declarations; `@types/mongodb` is not needed.\n\n## 5.0.0 breaking changes\n\n5.0.0 moves from `mongodb` 6 (`^6.9.0`) to `mongodb` 7 (`^7.6.0`). Every export keeps its name,\nparameters and defaults: `makeMongoClient` (reads `DB_URI`), `makeGetMongoCollection` (reads\n`DB_NAME`, default `main`), `makeBaseRepository` and the `BaseRepository` type. What changes:\n\n- **Driver 7 types in the public API.** `MongoClient`, `Collection`, `Filter`, the cursors and the\n  results that this package returns are the driver 7 types. If your project also depends on\n  `mongodb` directly, use the same range (`^7.6.0`) so that one copy of the driver is installed and\n  the types match.\n- **`find` and `findOne` options are typed `FindOptions`**, which is not generic in driver 7. They\n  were typed `FindOptions<Model>`. Code that writes `FindOptions<Something>` fails with TS2315\n  (\"Type 'FindOptions' is not generic\"); drop the type argument.\n- **Node.js 20.19 or later**, the driver's `engines.node`.\n- **MongoDB server 4.4 or later.** Driver 7 does not connect to older servers.\n- **Bun 1.4.0 or later.** The driver depends on `bson` `^7.2.0`. From `bson` 7.3.0, loading the\n  module calls `v8.startupSnapshot.isBuildingSnapshot()`, which every Bun 1.3.x rejects with\n  `NotImplementedError: node:v8 isBuildingSnapshot is not yet implemented in Bun`. Bun 1.4.0 and\n  later load it.\n\n## Env Setup \nENV variables required and some common values\n```dotenv\nDB_URI=mongodb://root:secret@localhost\nDB_NAME=main\n\nDB_URI=mongodb+srv://AwesomeUsrNme:s&crt^p@s$@cluster0-c3po.mongodb.net\nDB_NAME=ms-awesome\n```\n\n\n## Register\n\n```typescript\nimport {\n    makeMongoClient, makeGetMongoCollection\n} from '@occupop/lib-mongo'\n//... all other imports omited... \n\nexport const container = createTypedContainer({\n    // ...\n    // Top-level\n    mongoClient: { asFunction: makeMongoClient, singleton: true },\n    getMongoCollection: { asFunction: makeGetMongoCollection, singleton: true },\n    makeBaseRepository: { asValue: makeBaseRepository },\n    // Repositories\n    fooRepository: { asFunction: makeFooRepository, singleton: true },\n    barRepository: { asFunction: makeBarRepository, singleton: true },\n    // ...\n})\n```\n\n## Usage (starting client)\n```typescript\n// server.ts\nimport { container } from '.container'\n\nconst { mongoClient } = container.cradle\n\nawait mongoClient.connect()\nconsole.log('Mongo connected')\n\n// ...\n```\n## Usage (repository factory)\n```typescript\n// app/foo.ts\nexport type Foo = {\n    uuid: string\n    title: string\n    age: number\n    createdAt: Date\n}\n```\n```typescript\n// data/foo-repository.ts\nimport type { Deps } from '.container'\nimport type { Foo } from './app/foo'\n\nexport function makeFooRepository({ getMongoCollection, makeBaseRepository }: Deps) {\n    const collection = getMongoCollection<Foo>('foo')\n    return makeBaseRepository(collection)\n}\n```\n**Note:** passing `Foo` type/entity to the generic collection getter is optional, \nbut will allow IDE type hint on finds and filters.\n\n## Usage (repository usage)\n```typescript\n// foo-repository.ts\nimport type { Deps } from '.container'\n\nexport function makeAwesomeService({ fooRepository }: Deps) {\n    return {\n        async saveSomething(fooUuid: string) {\n            const foo = await fooRepository.findOne({uuid: fooUuid})\n            // ... do something with `foo`...\n            await fooRepository.save(foo)\n            return true\n        }\n    }\n}\n```\n\n## Repository available methods\n```typescript\ninterface Repository<Model> {\n    // collection getter\n    getCollection: () => Collection<Model>\n\n    // finders & aggregate\n    find: (filter?: Filter<Model>, options?: FindOptions) => FindCursor<WithId<Model>>\n    findOne: (filter?: Filter<Model>, options?: FindOptions) => Promise<WithId<Model> | null>\n    aggregate: <T extends Document>(pipeline?: Document[], options?: AggregateOptions) => AggregationCursor<T>\n\n    // count & check\n    count: (filter?: Filter<Model>) => Promise<number>\n    exists: (filter?: Filter<Model>) => Promise<boolean>\n\n    // inserts\n    insert: (item: Model) => Promise<boolean>\n    insertMany: (items: Model[]) => Promise<number>\n\n    // updates\n    update: (filter: Filter<Model>, item: Partial<Model>) => Promise<boolean>\n    updateMany: (filter: Filter<Model>, item: Partial<Model>) => Promise<number>\n    upsert: (filter: Filter<Model>, item: Partial<Model>) => Promise<{\n        modifiedCount: number\n        upsertedCount: number\n    }>\n    \n    // deletes\n    delete: (filter?: Filter<Model>) => Promise<boolean>\n    deleteMany: (filter?: Filter<Model>) => Promise<number>\n}\n```\n\n# TODO\n\n- createdAt/updatedAt auto fill option\n- soft delete option","readmeFilename":"README.md"}