@pya-platform/cf 0.1.0
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/CHANGELOG.md +9 -0
- package/package.json +25 -0
- package/src/index.ts +12 -0
- package/tsconfig.json +10 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @pya/cf
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a9ca6bf: Initial release of the Pya platform packages. Extracted from `pyaeats-app`, consumed by `pyaeats-app` (food delivery) and `pyaserv` (services classifieds).
|
|
8
|
+
|
|
9
|
+
Each package exposes a Hono router factory (auth/cms/reviews/comments) or a typed helper (email/audit/cf) parameterised over Cloudflare D1 + KV bindings. UI primitives ship as Lit web components on top of `@pya/tokens` (CSS custom properties). See `ROADMAP.md` and `docs/phase-6-rollout.md` for the consumer cutover plan.
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pya-platform/cf",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org",
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/undeadliner/pya-platform.git"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"description": "Cloudflare Workers helpers — D1 migrations runner, KV typed wrappers, R2+KV media fallback.",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./src/index.ts"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"type-check": "tsc --noEmit",
|
|
20
|
+
"test": "echo '@pya/cf has no tests yet'"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@cloudflare/workers-types": "^4.20240909.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @pya-platform/cf — Cloudflare Workers helpers.
|
|
2
|
+
//
|
|
3
|
+
// What lands here in Phase 6:
|
|
4
|
+
// - D1 migrations runner (timestamp-ordered, schema_migrations bookkeeping)
|
|
5
|
+
// - KV typed wrappers (`kvGet<T>`, `kvPut<T>` with valibot validation)
|
|
6
|
+
// - R2+KV media fallback (R2 when bound, MEDIA_KV when not — Phase 4-pyaeats had this)
|
|
7
|
+
// - wrangler.jsonc schema validation helper
|
|
8
|
+
//
|
|
9
|
+
// All three concerns live in pyaeats-app's `apps/api/src/infra/*` today. They
|
|
10
|
+
// extract cleanly because none of them touch domain types — they're plumbing.
|
|
11
|
+
|
|
12
|
+
export {}
|