@lastshotlabs/bunshot 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,5 +35,5 @@
35
35
  ]
36
36
  }
37
37
  },
38
- "version": "0.1.1"
38
+ "version": "0.1.2"
39
39
  }
@@ -16,7 +16,6 @@ import { connectAppMongo, connectAuthMongo, connectMongo } from '../lib/mongo';
16
16
  import { connectRedis } from '../lib/redis';
17
17
  import { getDataEncryptionKeys } from '../lib/signingConfig';
18
18
  import { resolveRepo } from '../../packages/bunshot-core/src/index.js';
19
- import { connectPostgres } from '@lastshotlabs/bunshot-postgres';
20
19
  /**
21
20
  * Connect databases, resolve store preferences, configure trust-proxy,
22
21
  * and assemble the frameworkConfig object that plugins receive.
@@ -82,6 +81,7 @@ export async function createInfrastructure(options) {
82
81
  }
83
82
  let postgresDb = null;
84
83
  if (db.postgres) {
84
+ const { connectPostgres } = await import('@lastshotlabs/bunshot-postgres');
85
85
  postgresDb = await connectPostgres(db.postgres);
86
86
  }
87
87
  function getMongooseOrThrow() {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "packages/*"
5
5
  ],
6
- "version": "0.1.1",
6
+ "version": "0.1.2",
7
7
  "description": "Batteries-included Bun + Hono API framework — auth, sessions, rate limiting, WebSocket, queues, and OpenAPI docs out of the box",
8
8
  "repository": {
9
9
  "type": "git",