@spfn/core 0.2.0-beta.64 → 0.2.0-beta.66

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.
@@ -9,6 +9,7 @@ import { J as JobRouter, B as BossOptions } from '../boss-gXhgctn6.js';
9
9
  import { E as EventRouterDef, a as EventDef } from '../token-manager-jKD_EsSE.js';
10
10
  import { S as SSEHandlerConfig, a as SSEAuthConfig } from '../types-BFB72jbM.js';
11
11
  import { W as WSRouterDef, a as WSHandlerConfig, b as WSMessageHandlers, c as WSAuthConfig } from '../types-DVjf37yO.js';
12
+ import { DatabaseProvider } from '@spfn/core/db';
12
13
  import '@sinclair/typebox';
13
14
  import 'pg-boss';
14
15
 
@@ -287,6 +288,13 @@ interface ServerConfig {
287
288
  * Database configuration
288
289
  */
289
290
  database?: {
291
+ /**
292
+ * Externally owned PostgreSQL Drizzle provider.
293
+ *
294
+ * When supplied, SPFN skips DATABASE_URL/postgres.js initialization
295
+ * and closes the provider during graceful shutdown.
296
+ */
297
+ provider?: DatabaseProvider;
290
298
  /**
291
299
  * Connection pool configuration
292
300
  * Overrides environment variables and defaults
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spfn/core",
3
- "version": "0.2.0-beta.64",
3
+ "version": "0.2.0-beta.66",
4
4
  "description": "SPFN Framework Core - File-based routing, transactions, repository pattern",
5
5
  "type": "module",
6
6
  "exports": {
@@ -174,13 +174,13 @@
174
174
  "license": "MIT",
175
175
  "repository": {
176
176
  "type": "git",
177
- "url": "https://github.com/spfn/spfn.git",
177
+ "url": "git+https://github.com/fxylabs/spfn.git",
178
178
  "directory": "packages/core"
179
179
  },
180
180
  "bugs": {
181
- "url": "https://github.com/spfn/spfn/issues"
181
+ "url": "https://github.com/fxylabs/spfn/issues"
182
182
  },
183
- "homepage": "https://github.com/spfn/spfn/tree/main/packages/core#readme",
183
+ "homepage": "https://github.com/fxylabs/spfn/tree/main/packages/core#readme",
184
184
  "engines": {
185
185
  "node": ">=18.18.0"
186
186
  },
@@ -190,8 +190,7 @@
190
190
  "chalk": "^5.6.2",
191
191
  "chokidar": "^4.0.3",
192
192
  "dotenv": "^17.2.3",
193
- "drizzle-orm": "^0.45.2",
194
- "drizzle-typebox": "^0.1.0",
193
+ "drizzle-typebox": "^0.3.3",
195
194
  "hono": "^4.12.25",
196
195
  "jiti": "^2.6.1",
197
196
  "micromatch": "^4.0.8",
@@ -199,24 +198,27 @@
199
198
  "postgres": "^3.4.0",
200
199
  "typescript": "^5.3.3",
201
200
  "undici": "^7.28.0",
202
- "zod": "^4.1.11"
201
+ "zod": "^4.4.3"
203
202
  },
204
203
  "optionalDependencies": {
205
204
  "ioredis": "^5.4.1",
206
205
  "ws": "^8.21.0"
207
206
  },
208
207
  "devDependencies": {
208
+ "@electric-sql/pglite": "0.5.4",
209
209
  "@types/micromatch": "^4.0.9",
210
210
  "@types/node": "^20.11.0",
211
211
  "@types/ws": "^8.18.1",
212
212
  "@vitest/coverage-v8": "^4.0.6",
213
- "drizzle-kit": "^0.31.6",
213
+ "drizzle-kit": "1.0.0-rc.4",
214
+ "drizzle-orm": "1.0.0-rc.4",
214
215
  "madge": "^8.0.0",
215
216
  "next": "^16.0.0",
216
217
  "tsup": "^8.5.0",
217
218
  "vitest": "^4.0.6"
218
219
  },
219
220
  "peerDependencies": {
221
+ "drizzle-orm": ">=1.0.0-rc.4 <2",
220
222
  "next": "^15.0.0 || ^16.0.0"
221
223
  },
222
224
  "peerDependenciesMeta": {