feat: migrate to cloudflare d1 and queues

This commit is contained in:
2025-11-28 16:32:35 +08:00
parent 00e1f82d85
commit bd958fb1ab
19 changed files with 294 additions and 276 deletions

36
pnpm-lock.yaml generated
View File

@@ -22,9 +22,6 @@ importers:
"@hono/zod-validator":
specifier: ^0.2.2
version: 0.2.2(hono@4.10.4)(zod@3.25.76)
"@libsql/client":
specifier: 0.15.4
version: 0.15.4
drizzle-orm:
specifier: ^0.44.7
version: 0.44.7(@cloudflare/workers-types@4.20251014.0)(@libsql/client@0.15.4)(bun-types@1.3.1(@types/react@19.2.2))
@@ -4997,10 +4994,12 @@ snapshots:
transitivePeerDependencies:
- bufferutil
- utf-8-validate
optional: true
"@libsql/core@0.15.15":
dependencies:
js-base64: 3.7.8
optional: true
"@libsql/darwin-arm64@0.5.22":
optional: true
@@ -5017,8 +5016,10 @@ snapshots:
transitivePeerDependencies:
- bufferutil
- utf-8-validate
optional: true
"@libsql/isomorphic-fetch@0.3.1": {}
"@libsql/isomorphic-fetch@0.3.1":
optional: true
"@libsql/isomorphic-ws@0.1.5":
dependencies:
@@ -5027,6 +5028,7 @@ snapshots:
transitivePeerDependencies:
- bufferutil
- utf-8-validate
optional: true
"@libsql/linux-arm-gnueabihf@0.5.22":
optional: true
@@ -5058,7 +5060,8 @@ snapshots:
outvariant: 1.4.3
strict-event-emitter: 0.5.1
"@neon-rs/load@0.0.4": {}
"@neon-rs/load@0.0.4":
optional: true
"@nodelib/fs.scandir@2.1.5":
dependencies:
@@ -5262,6 +5265,7 @@ snapshots:
"@types/ws@8.18.1":
dependencies:
"@types/node": 24.9.2
optional: true
"@vitest/expect@3.2.4":
dependencies:
@@ -5520,7 +5524,8 @@ snapshots:
csstype@3.2.2: {}
data-uri-to-buffer@4.0.1: {}
data-uri-to-buffer@4.0.1:
optional: true
debug@4.4.3:
dependencies:
@@ -5538,7 +5543,8 @@ snapshots:
delayed-stream@1.0.0: {}
detect-libc@2.0.2: {}
detect-libc@2.0.2:
optional: true
detect-libc@2.1.2: {}
@@ -5762,6 +5768,7 @@ snapshots:
dependencies:
node-domexception: 1.0.0
web-streams-polyfill: 3.3.3
optional: true
fill-range@7.1.1:
dependencies:
@@ -5791,6 +5798,7 @@ snapshots:
formdata-polyfill@4.0.10:
dependencies:
fetch-blob: 3.2.0
optional: true
fsevents@2.3.3:
optional: true
@@ -5979,7 +5987,8 @@ snapshots:
jose@5.10.0: {}
js-base64@3.7.8: {}
js-base64@3.7.8:
optional: true
js-tokens@4.0.0: {}
@@ -6016,6 +6025,7 @@ snapshots:
"@libsql/linux-x64-gnu": 0.5.22
"@libsql/linux-x64-musl": 0.5.22
"@libsql/win32-x64-msvc": 0.5.22
optional: true
lilconfig@3.1.3: {}
@@ -6169,6 +6179,7 @@ snapshots:
data-uri-to-buffer: 4.0.1
fetch-blob: 3.2.0
formdata-polyfill: 4.0.10
optional: true
npm-run-path@5.3.0:
dependencies:
@@ -6242,7 +6253,8 @@ snapshots:
prettier@3.6.2: {}
promise-limit@2.7.0: {}
promise-limit@2.7.0:
optional: true
psl@1.15.0:
dependencies:
@@ -6595,7 +6607,8 @@ snapshots:
- tsx
- yaml
web-streams-polyfill@3.3.3: {}
web-streams-polyfill@3.3.3:
optional: true
web-streams-polyfill@4.0.0-beta.3: {}
@@ -6701,7 +6714,8 @@ snapshots:
ws@8.18.0: {}
ws@8.18.3: {}
ws@8.18.3:
optional: true
y18n@5.0.8: {}