Minor Changes
-
#1614
b5ea8e7Thanks @scottbuscemi! - Adds ahyperdrive()database adapter for connecting EmDash on Cloudflare Workers to a PostgreSQL (or PostgreSQL-compatible, e.g. PlanetScale Postgres) database through a Hyperdrive binding. Configure it withdatabase: hyperdrive({ binding: "HYPERDRIVE" }). Each request gets its own pooled connection that is opened and closed within that request — connections cannot be reused across Worker requests. Requirespg >= 8.16.3, thenodejs_compatcompatibility flag, and a compatibility date of2024-09-23or later. Disable Hyperdrive query caching for the configuration so the admin's read-after-write stays consistent.The content read/write path, scheduled publishing, plugin cron, and database-querying plugin hooks are all supported. Sandboxed plugins remain D1-only (the sandbox bridge talks to a D1 binding directly, independent of the configured adapter).
Patch Changes
-
#1617
e39984fThanks @ascorbic! - Cuts cold-start latency by batching runtime initialization reads into a single round trip. On a fresh isolate (or Worker), the auto-seed check, plugin-state load, and site-info load now run as one batched query on backends that support it (Cloudflare D1, Durable Objects) instead of several serialized round trips. On D1 this roughly halves runtime init time on cold start. Other backends (Node/SQLite) are unaffected. -
Updated dependencies [
b4d7228,d74269d,e39984f,280b877,7fca12f,fd077e0,9ebb47e,8c7bc81,55613e1,c5f58b9,bd6cc3a,c056060,c43c412,b5ea8e7,c5f58b9]:- emdash@0.23.0