Skip to content

Commit 4bcb22d

Browse files
chore(version): update versions with Changesets (#1043)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d2cc53d commit 4bcb22d

7 files changed

Lines changed: 68 additions & 59 deletions

File tree

.changeset/custom-routers-support.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

.changeset/remove-inactivity-modal.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/simplify-logout-type.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/dashboard/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @cobaltcore-dev/dashboard
22

3+
## 1.1.18
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [d2cc53d]
8+
- Updated dependencies [2f8cca6]
9+
- Updated dependencies [914411a]
10+
- @cobaltcore-dev/aurora@0.18.0
11+
312
## 1.1.17
413

514
### Patch Changes

apps/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@cobaltcore-dev/dashboard",
33
"private": true,
4-
"version": "1.1.17",
4+
"version": "1.1.18",
55
"scripts": {
66
"build": "vite build --mode=production",
77
"clean": "rm -rf dist && rm -rf node_modules && rm -rf .turbo",

packages/aurora/CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,62 @@
11
# @cobaltcore-dev/aurora
22

3+
## 0.18.0
4+
5+
### Minor Changes
6+
7+
- d2cc53d: Add support for custom tRPC routers with full type safety
8+
9+
**New exports from `@cobaltcore-dev/aurora/server`:**
10+
- `AuroraRouterWithCustom<T>` - Type helper to merge custom routers with base Aurora router
11+
12+
**New exports from `@cobaltcore-dev/aurora/client`:**
13+
- `CreateTypedTrpcReact<T>` - Generic type for typed React tRPC client
14+
- `CreateTypedTrpcClient<T>` - Generic type for typed vanilla tRPC client
15+
- `TrpcReact` - Type alias for the React tRPC client
16+
17+
**Usage:**
18+
1. Define custom routers using `auroraRouter` and `protectedProcedure`:
19+
20+
```typescript
21+
import { auroraRouter, protectedProcedure } from "@cobaltcore-dev/aurora/server"
22+
23+
export const customRouters = auroraRouter({
24+
feedback: auroraRouter({
25+
submit: protectedProcedure
26+
.input(z.object({ message: z.string() }))
27+
.mutation(async ({ input }) => ({ success: true })),
28+
}),
29+
})
30+
```
31+
32+
2. Register with `createServer`:
33+
34+
```typescript
35+
createServer({ routers: [customRouters], ... })
36+
```
37+
38+
3. Create typed client exports:
39+
40+
```typescript
41+
import type { AuroraRouterWithCustom } from "@cobaltcore-dev/aurora/server"
42+
import { trpcReact, CreateTypedTrpcReact } from "@cobaltcore-dev/aurora/client"
43+
44+
type AppRouter = AuroraRouterWithCustom<typeof customRouters>
45+
export const trpc = trpcReact as unknown as CreateTypedTrpcReact<AppRouter>
46+
```
47+
48+
4. Use with full type safety:
49+
50+
```typescript
51+
const mutation = trpc.feedback.submit.useMutation() // ✅ Type-safe!
52+
```
53+
54+
- 2f8cca6: Remove InactivityModal and redirect directly to login on session expiration
55+
56+
### Patch Changes
57+
58+
- 914411a: Simplify logout type - remove logoutReason tracking
59+
360
## 0.17.1
461

562
### Patch Changes

packages/aurora/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cobaltcore-dev/aurora",
3-
"version": "0.17.1",
3+
"version": "0.18.0",
44
"private": false,
55
"description": "Aurora OpenStack dashboard — server and client library",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)