{"_id":"@alesha-nov/db","_rev":"4-40f97d7f3489674bb80531249f35bf35","name":"@alesha-nov/db","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"@alesha-nov/db","version":"0.1.0","keywords":["alesha","db","database","bun","sql","migrations"],"author":{"name":"JuniYadi"},"license":"MIT","_id":"@alesha-nov/db@0.1.0","maintainers":[{"name":"juniyadi","email":"juniyadi94@gmail.com"}],"homepage":"https://github.com/JuniYadi/alesha-nov#readme","bugs":{"url":"https://github.com/JuniYadi/alesha-nov/issues"},"dist":{"shasum":"d8e6c3d91944f6dc58793fd81915bbcc419e0f5f","tarball":"https://registry.npmjs.org/@alesha-nov/db/-/db-0.1.0.tgz","fileCount":7,"integrity":"sha512-jz9sNesefrcQ9KsO/epY4bBUG/KcdFFk9TpFDXvEeaY4ryTIKNU5uTYww8W7ubizD+DhBFVWS1KQsOldQBsYUw==","signatures":[{"sig":"MEUCIHsRmXdwX/72LWj0kV5rxBisM6Sq1k6HE1oiAm2dcdHLAiEAs5etPRdE4ZgBFQ+RmGCfOVLBXJLT8MZ6WM+u/4KYxt8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7452},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./auth-migrations":{"types":"./dist/auth-migrations.d.ts","import":"./dist/auth-migrations.js"}},"gitHead":"98bed3454fc8cab53416be685ab162dbeac40e86","scripts":{"lint":"eslint src --ext .ts","test":"bun test","build":"tsup src/index.ts src/auth-migrations.ts --format esm --dts --external bun","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"juniyadi","email":"juniyadi94@gmail.com"},"repository":{"url":"git+https://github.com/JuniYadi/alesha-nov.git","type":"git","directory":"packages/db"},"_npmVersion":"11.11.0","description":"Database client factory and migration primitives for the monorepo.","directories":{},"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/db_0.1.0_1776362775888_0.28757427359739385","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@alesha-nov/db","version":"0.2.0","keywords":["alesha","db","database","bun","sql","migrations"],"author":{"name":"JuniYadi"},"license":"MIT","_id":"@alesha-nov/db@0.2.0","maintainers":[{"name":"juniyadi","email":"juniyadi94@gmail.com"}],"homepage":"https://github.com/JuniYadi/alesha-nov#readme","bugs":{"url":"https://github.com/JuniYadi/alesha-nov/issues"},"dist":{"shasum":"18eb590d7cf654d22026f03f03549b8bcd1930ba","tarball":"https://registry.npmjs.org/@alesha-nov/db/-/db-0.2.0.tgz","fileCount":7,"integrity":"sha512-enb8xrl0arnelIc4q1WF09Hv8REA6t0oK0TYEsWVN8w6z7ZgQeHYbXCHo15wN/oOLOvhxl8OKJS9pY/SzszHFg==","signatures":[{"sig":"MEQCIEUOL8DsJFegVcM4AN3MyR4dn/GbYzeArZvcR1c0xMEBAiAIUAZ7TPyc2U3ITcy6gVD9RxUZxkhnHzgaJePjyUEN9w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alesha-nov%2fdb@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7452},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./auth-migrations":{"types":"./dist/auth-migrations.d.ts","import":"./dist/auth-migrations.js"}},"gitHead":"df7ffb55716c7e78397e744eddf94510c06e2d27","scripts":{"lint":"eslint src --ext .ts","test":"bun test","build":"tsup src/index.ts src/auth-migrations.ts --format esm --dts --external bun","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9a2f43e0-c741-4b2a-9c85-c901dc3e520e"}},"repository":{"url":"git+https://github.com/JuniYadi/alesha-nov.git","type":"git","directory":"packages/db"},"_npmVersion":"11.11.0","description":"Database client factory and migration primitives for the monorepo.","directories":{},"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/db_0.2.0_1776363184895_0.7125465893373162","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@alesha-nov/db","version":"0.2.1","keywords":["alesha","db","database","bun","sql","migrations"],"author":{"name":"JuniYadi"},"license":"MIT","_id":"@alesha-nov/db@0.2.1","maintainers":[{"name":"juniyadi","email":"juniyadi94@gmail.com"}],"homepage":"https://github.com/JuniYadi/alesha-nov#readme","bugs":{"url":"https://github.com/JuniYadi/alesha-nov/issues"},"dist":{"shasum":"f5b683d8ef9832eac510767b94c4048e5bc247cf","tarball":"https://registry.npmjs.org/@alesha-nov/db/-/db-0.2.1.tgz","fileCount":7,"integrity":"sha512-h8kDmFipbrESyy1kpoD2M01q56AoP1ITgX9FNaI9FjEVI9QjKlEwTP+hnR2dR4VqY5THns13h34YmHhnKIjqaA==","signatures":[{"sig":"MEQCIBc7ADOM4HXXKYdY0LfdTCu3qqJCNnGrO5fjlkv6rUJrAiAITmiKVgrbPS/dCGNAnaC5Kmi44GrGL/J7jarFRo2LSA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alesha-nov%2fdb@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7796},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./auth-migrations":{"types":"./dist/auth-migrations.d.ts","import":"./dist/auth-migrations.js"}},"gitHead":"5543869c9da53c93f2ce0e123db7bf7e54e25e2d","scripts":{"lint":"eslint src --ext .ts","test":"bun test","build":"tsup src/index.ts src/auth-migrations.ts --format esm --dts --external bun","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9a2f43e0-c741-4b2a-9c85-c901dc3e520e"}},"repository":{"url":"git+https://github.com/JuniYadi/alesha-nov.git","type":"git","directory":"packages/db"},"_npmVersion":"11.11.0","description":"Database client factory and migration primitives for the monorepo.","directories":{},"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/db_0.2.1_1776437226893_0.031006682085934045","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@alesha-nov/db","version":"0.2.2","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./auth-migrations":{"types":"./dist/auth-migrations.d.ts","import":"./dist/auth-migrations.js"}},"scripts":{"build":"tsup src/index.ts src/auth-migrations.ts --format esm --dts --external bun","typecheck":"tsc -p tsconfig.json --noEmit","lint":"eslint src --ext .ts","test":"bun test"},"repository":{"type":"git","url":"git+https://github.com/JuniYadi/alesha-nov.git","directory":"packages/db"},"license":"MIT","author":{"name":"JuniYadi"},"keywords":["alesha","db","database","bun","sql","migrations"],"homepage":"https://github.com/JuniYadi/alesha-nov#readme","bugs":{"url":"https://github.com/JuniYadi/alesha-nov/issues"},"engines":{"node":">=22.12.0","bun":">=1.3.0"},"publishConfig":{"access":"public"},"gitHead":"c86cb010072f05dd615cc3ff449850ac4a20b7c0","_id":"@alesha-nov/db@0.2.2","description":"Database client factory and migration primitives for the monorepo.","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-1Oj/9R+l2FA2RqVcOQQHkUJZyx3k2S92rLaA1J9IK/1FJAmpXqi0N2nCW9FwQfruWj6Aot6ohsVDkXWNK6umxQ==","shasum":"5ece13bbcbad8daaaa70a512c304cc1d1cf14717","tarball":"https://registry.npmjs.org/@alesha-nov/db/-/db-0.2.2.tgz","fileCount":7,"unpackedSize":7951,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alesha-nov%2fdb@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHGdVF5Yc9xWxfMi2p9m4lwXm5nY32N2Grp8EpEQNE6EAiAumsL8Ui3lKMJ32nB2zFCYWAyXNyivy9+EcjnLfEH2FQ=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9a2f43e0-c741-4b2a-9c85-c901dc3e520e"}},"directories":{},"maintainers":[{"name":"juniyadi","email":"juniyadi94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/db_0.2.2_1776622028452_0.1864598872451253"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-16T18:06:15.712Z","modified":"2026-04-19T18:07:08.952Z","0.1.0":"2026-04-16T18:06:16.036Z","0.2.0":"2026-04-16T18:13:05.051Z","0.2.1":"2026-04-17T14:47:07.048Z","0.2.2":"2026-04-19T18:07:08.632Z"},"bugs":{"url":"https://github.com/JuniYadi/alesha-nov/issues"},"author":{"name":"JuniYadi"},"license":"MIT","homepage":"https://github.com/JuniYadi/alesha-nov#readme","keywords":["alesha","db","database","bun","sql","migrations"],"repository":{"type":"git","url":"git+https://github.com/JuniYadi/alesha-nov.git","directory":"packages/db"},"description":"Database client factory and migration primitives for the monorepo.","maintainers":[{"name":"juniyadi","email":"juniyadi94@gmail.com"}],"readme":"# @alesha-nov/db\n\nDatabase client factory and migration primitives for the monorepo.\n\n## Implemented Features\n\n- `resolveDBType()` for `mysql | postgresql | sqlite`\n- `createDatabaseClient(DBConfig)` using Bun SQL\n- `ensureMigrationsTable()` for `alesha_migrations`\n- `runMigrations()` idempotent migration execution\n- Exported types: `DBType`, `DBConfig`, `Migration`, `DatabaseClient`\n- `authMigrationsBundle` export for auth package consumption\n\n## Required for Target Auth (Email/Password, Magic Link, Google/GitHub)\n\n- Stable DB connection for all auth packages\n- Shared migration runner used by `@alesha-nov/auth`\n","readmeFilename":"README.md"}