mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-11 02:00:04 -04:00
cea601ffa4
# Description of Changes Fix `withModuleName` -> `withDatabaseName` in server-side code across multiple TypeScript templates. The 2.0 SDK renamed this method, but several templates still used the old 1.x API name, causing a runtime error (`DbConnection.builder(...).withUri(...).withModuleName is not a function`). **Files changed:** - `templates/nuxt-ts/server/api/people.get.ts` - `templates/remix-ts/app/lib/spacetimedb.server.ts` - `templates/nextjs-ts/lib/spacetimedb-server.ts` - `templates/nodejs-ts/src/main.ts` - `templates/deno-ts/src/main.ts` - `templates/keynote-2/src/connectors/spacetimedb.ts` # API and ABI breaking changes None. This aligns templates with the existing 2.0 SDK API. # Expected complexity level and risk 1 — Trivial string replacement across template files. No logic changes. # Testing - [ ] Run `spacetime dev --template nuxt-ts` and verify the Nuxt SSR server API (`/api/people`) connects without `withModuleName is not a function` error - [ ] Run `spacetime dev --template nextjs-ts` and verify the server-side SpacetimeDB connection works - [ ] Run `spacetime dev --template remix-ts` and verify the server-side SpacetimeDB connection works