@vite-hub/queue 0.6.0 → 0.6.1
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.
|
@@ -13,7 +13,7 @@ type PostgresQueueConnection = {
|
|
|
13
13
|
} | {
|
|
14
14
|
url: string;
|
|
15
15
|
};
|
|
16
|
-
/** The Databases of the app, as `@vite-hub/database/
|
|
16
|
+
/** The Databases of the app, as `@vite-hub/database/runtime/registry` exports them. */
|
|
17
17
|
export type PostgresQueueDatabases = Readonly<Record<string, {
|
|
18
18
|
db: object;
|
|
19
19
|
} | undefined>>;
|
package/dist/vite.d.ts
CHANGED
|
@@ -727,7 +727,7 @@ export interface QueueNitroConfigOptions {
|
|
|
727
727
|
}
|
|
728
728
|
/** Options that a framework distribution passes to `hubQueue()`. */
|
|
729
729
|
export interface QueueVitePluginInternalOptions {
|
|
730
|
-
/** Module that exports the app's `databases`, for the postgres driver. Defaults to `@vite-hub/database/
|
|
730
|
+
/** Module that exports the app's `databases`, for the postgres driver. Defaults to `@vite-hub/database/runtime/registry`. */
|
|
731
731
|
databaseImport?: string;
|
|
732
732
|
/** Module that the generated Queue types augment, for example `vite-hub/queue`. Defaults to `@vite-hub/queue`. */
|
|
733
733
|
importBase?: string;
|
package/dist/vite.js
CHANGED
|
@@ -1259,7 +1259,7 @@ async function writeQueueNitroIntegration(rootDir, queue, hosting, cloudflareQue
|
|
|
1259
1259
|
if (vercelConsumers.length) await mkdir(vercelConsumerDir, { recursive: true });
|
|
1260
1260
|
await Promise.all([
|
|
1261
1261
|
writeFile(registryFile, createRuntimeRegistryContents(registryFile, definitions), "utf8"),
|
|
1262
|
-
writeFile(pluginFile, renderNitroPlugin(pluginFile, registryFile, runtimeConfig, cloudflareQueues, queueDefinitions, development, database.import ?? "@vite-hub/database/
|
|
1262
|
+
writeFile(pluginFile, renderNitroPlugin(pluginFile, registryFile, runtimeConfig, cloudflareQueues, queueDefinitions, development, database.import ?? "@vite-hub/database/runtime/registry"), "utf8"),
|
|
1263
1263
|
writeFile(middlewareFile, renderNitroMiddleware(middlewareFile, runtimeConfig, definitions.length > 0, development), "utf8"),
|
|
1264
1264
|
...vercelConsumers.map(async (consumer) => {
|
|
1265
1265
|
const file = resolve(rootDir, consumer.handler);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-hub/queue",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Queue primitives and Vite deployment integration for ViteHub.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"background-jobs",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@valibot/to-json-schema": "^1.8.0",
|
|
68
|
-
"@vite-hub/runtime": "0.6.
|
|
68
|
+
"@vite-hub/runtime": "0.6.1",
|
|
69
69
|
"defu": "^6.1.7",
|
|
70
70
|
"nostics": "1.4.0",
|
|
71
71
|
"pathe": "^2.0.3"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@types/node": "^24.19.2",
|
|
75
75
|
"@vercel/functions": "^3.11.3",
|
|
76
76
|
"@vercel/queue": "^0.11.0",
|
|
77
|
-
"@vite-hub/database": "0.6.
|
|
77
|
+
"@vite-hub/database": "0.6.1",
|
|
78
78
|
"@vite-hub/internal": "0.0.1",
|
|
79
79
|
"postgres": "^3.4.9",
|
|
80
80
|
"publint": "^0.3.25",
|