@harlan-zw/nuxt-cf-jobs 0.2.1 → 0.2.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.
- package/README.md +13 -5
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,15 +27,23 @@ Status: experimental. APIs may change before the first scoped release.
|
|
|
27
27
|
- ⏰ **Scheduled tasks:** declare the cron beside the task and generate Nitro and Cloudflare scheduling config from it.
|
|
28
28
|
- 📡 **Realtime progress:** publish job and batch events over Nitro WebSockets and a Durable Object.
|
|
29
29
|
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx nuxi@latest module add @harlan-zw/nuxt-cf-jobs
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
> [!TIP]
|
|
37
|
+
> Generate an Agent Skill for this package using [skilld](https://github.com/harlan-zw/skilld):
|
|
38
|
+
> ```bash
|
|
39
|
+
> npx skilld add @harlan-zw/nuxt-cf-jobs
|
|
40
|
+
> ```
|
|
41
|
+
|
|
30
42
|
## Quick start
|
|
31
43
|
|
|
32
44
|
The basic path sends a typed message directly to Cloudflare Queues. D1 is optional and covered under [Durable jobs](#durable-jobs).
|
|
33
45
|
|
|
34
|
-
### 1.
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
pnpm add @harlan-zw/nuxt-cf-jobs
|
|
38
|
-
```
|
|
46
|
+
### 1. Map your queues
|
|
39
47
|
|
|
40
48
|
Map each logical queue name to the binding exposed by Cloudflare:
|
|
41
49
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harlan-zw/nuxt-cf-jobs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "Experimental Nuxt module for typed Cloudflare queue jobs.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
124
|
"@sentry/cloudflare": "^10.70.0",
|
|
125
|
-
"nuxt": ">=4.5.0 <
|
|
125
|
+
"nuxt": ">=4.5.0 <6.0.0",
|
|
126
126
|
"vite": "^8.0.0"
|
|
127
127
|
},
|
|
128
128
|
"peerDependenciesMeta": {
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@nuxt/schema": "^4.5.2",
|
|
136
136
|
"citty": "^0.2.2",
|
|
137
137
|
"drizzle-orm": "1.0.0-rc.4",
|
|
138
|
-
"@harlan-zw/nuxt-cloudflare": "^0.
|
|
138
|
+
"@harlan-zw/nuxt-cloudflare": "^0.3.1"
|
|
139
139
|
},
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"@antfu/eslint-config": "^9.3.0",
|