@checkstack/theme-backend 0.1.6 → 0.1.7
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 +13 -0
- package/package.json +1 -1
- package/src/router.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @checkstack/theme-backend
|
|
2
2
|
|
|
3
|
+
## 0.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 66a3963: Update database types to use SafeDatabase
|
|
8
|
+
|
|
9
|
+
- Updated all database type declarations from `NodePgDatabase` to `SafeDatabase` for compile-time safety
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [66a3963]
|
|
12
|
+
- Updated dependencies [66a3963]
|
|
13
|
+
- @checkstack/auth-backend@0.4.3
|
|
14
|
+
- @checkstack/backend-api@0.5.0
|
|
15
|
+
|
|
3
16
|
## 0.1.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/package.json
CHANGED
package/src/router.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { themeContract } from "@checkstack/theme-common";
|
|
8
8
|
import * as schema from "./schema";
|
|
9
9
|
import { eq } from "drizzle-orm";
|
|
10
|
-
import type {
|
|
10
|
+
import type { SafeDatabase } from "@checkstack/backend-api";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Creates the theme router using contract-based implementation.
|
|
@@ -15,7 +15,7 @@ import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
|
15
15
|
* Auth is automatically enforced via autoAuthMiddleware based on
|
|
16
16
|
* the contract's meta.userType (both endpoints are userType: "user").
|
|
17
17
|
*/
|
|
18
|
-
export const createThemeRouter = (db:
|
|
18
|
+
export const createThemeRouter = (db: SafeDatabase<typeof schema>) => {
|
|
19
19
|
// Create contract implementer with context type AND auto auth middleware
|
|
20
20
|
const os = implement(themeContract)
|
|
21
21
|
.$context<RpcContext>()
|