Skip to content

Commit 0066b12

Browse files
committed
cleanup deps, catalog, versions;
1 parent f316e61 commit 0066b12

File tree

18 files changed

+322
-347
lines changed

18 files changed

+322
-347
lines changed

apps/api/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"test:watch": "vitest"
1010
},
1111
"devDependencies": {
12-
"@types/bun": "latest"
12+
"@types/bun": "catalog:"
1313
},
1414
"peerDependencies": {
15-
"typescript": "^5.9.2"
15+
"typescript": "catalog:"
1616
},
1717
"dependencies": {
1818
"@databuddy/auth": "workspace:*",
@@ -23,20 +23,20 @@
2323
"@databuddy/shared": "workspace:*",
2424
"@elysiajs/cors": "^1.3.3",
2525
"@elysiajs/trpc": "^1.1.0",
26-
"@logtail/edge": "^0.5.5",
26+
"@logtail/edge": "catalog:",
2727
"@openrouter/ai-sdk-provider": "^1.1.2",
28-
"@trpc/server": "^11.6.0",
28+
"@trpc/server": "catalog:",
2929
"@upstash/ratelimit": "^2.0.6",
3030
"@upstash/redis": "^1.35.5",
3131
"ai": "^5.0.29",
3232
"autumn": "^1.0.2",
33-
"autumn-js": "^0.1.28",
34-
"dayjs": "^1.11.18",
35-
"drizzle-orm": "^0.44.6",
36-
"elysia": "^1.3.21",
33+
"autumn-js": "catalog:",
34+
"dayjs": "catalog:",
35+
"drizzle-orm": "catalog:",
36+
"elysia": "catalog:",
3737
"jszip": "^3.10.1",
38-
"pino": "^9.9.0",
38+
"pino": "catalog:",
3939
"pino-pretty": "^13.1.1",
40-
"zod": "^4.1.12"
40+
"zod": "catalog:"
4141
}
4242
}

apps/basket/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"zod": "catalog:"
3737
},
3838
"devDependencies": {
39-
"bun-types": "latest",
39+
"bun-types": "catalog:",
4040
"c8": "^8.0.0"
4141
},
4242
"module": "src/index.js"

apps/dashboard/package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,53 +21,53 @@
2121
"@databuddy/validation": "workspace:*",
2222
"@hello-pangea/dnd": "^18.0.1",
2323
"@hookform/resolvers": "^5.2.2",
24-
"@phosphor-icons/react": "^2.1.10",
24+
"@phosphor-icons/react": "catalog:",
2525
"@radix-ui/react-avatar": "^1.1.10",
2626
"@radix-ui/react-collapsible": "^1.1.12",
27-
"@radix-ui/react-dialog": "^1.1.15",
27+
"@radix-ui/react-dialog": "catalog:",
2828
"@radix-ui/react-dropdown-menu": "^2.1.16",
2929
"@radix-ui/react-hover-card": "^1.1.15",
30-
"@radix-ui/react-popover": "^1.1.15",
30+
"@radix-ui/react-popover": "catalog:",
3131
"@radix-ui/react-progress": "^1.1.7",
3232
"@radix-ui/react-scroll-area": "^1.2.10",
3333
"@radix-ui/react-select": "^2.2.6",
34-
"@radix-ui/react-slot": "^1.2.3",
34+
"@radix-ui/react-slot": "catalog:",
3535
"@radix-ui/react-tooltip": "^1.2.8",
3636
"@radix-ui/react-use-controllable-state": "^1.2.2",
37-
"@tanstack/react-query": "^5.90.2",
37+
"@tanstack/react-query": "catalog:",
3838
"@tanstack/react-table": "^8.21.3",
3939
"@tanstack/react-virtual": "^3.13.12",
40-
"@trpc/client": "^11.6.0",
41-
"@trpc/react-query": "^11.6.0",
42-
"@trpc/server": "^11.6.0",
40+
"@trpc/client": "catalog:",
41+
"@trpc/react-query": "catalog:",
42+
"@trpc/server": "catalog:",
4343
"@types/d3-scale": "^4.0.9",
4444
"@types/geojson": "^7946.0.16",
4545
"@types/leaflet": "^1.9.21",
4646
"ai": "^5.0.68",
47-
"autumn-js": "^0.1.40",
47+
"autumn-js": "catalog:",
4848
"babel-plugin-react-compiler": "^19.1.0-rc.1-rc-af1b7da-20250421",
4949
"better-auth": "^1.3.27",
50-
"class-variance-authority": "^0.7.1",
50+
"class-variance-authority": "catalog:",
5151
"classnames": "^2.5.1",
52-
"clsx": "^2.1.1",
52+
"clsx": "catalog:",
5353
"cmdk": "^1.1.1",
5454
"d3-geo": "^3.1.1",
5555
"d3-scale": "^4.0.2",
5656
"dagre": "^0.8.5",
57-
"dayjs": "^1.11.18",
57+
"dayjs": "catalog:",
5858
"drizzle-zod": "^0.8.3",
5959
"embla-carousel-react": "^8.6.0",
60-
"framer-motion": "^12.23.24",
60+
"framer-motion": "catalog:",
6161
"geojson": "^0.5.0",
6262
"idb": "^8.0.3",
6363
"input-otp": "^1.4.2",
64-
"jotai": "^2.15.0",
64+
"jotai": "catalog:",
6565
"katex": "^0.16.23",
6666
"leaflet": "^1.9.4",
6767
"lucide-react": "^0.544.0",
6868
"motion": "^12.23.24",
6969
"nanoid": "^5.1.6",
70-
"next": "^15.5.5",
70+
"next": "catalog:",
7171
"next-themes": "^0.4.6",
7272
"nuqs": "^2.7.1",
7373
"ogl": "^1.0.11",
@@ -83,32 +83,32 @@
8383
"rehype-katex": "^7.0.1",
8484
"remark-math": "^6.0.0",
8585
"shiki": "^3.13.0",
86-
"sonner": "^2.0.7",
86+
"sonner": "catalog:",
8787
"streamdown": "^1.4.0",
88-
"superjson": "^2.2.2",
89-
"tailwind-merge": "^3.3.1",
88+
"superjson": "catalog:",
89+
"tailwind-merge": "catalog:",
9090
"tldts": "^7.0.17",
9191
"tokenlens": "^1.3.1",
9292
"topojson-client": "^3.1.0",
9393
"tw-animate-css": "^1.4.0",
9494
"use-stick-to-bottom": "^1.1.1",
95-
"vaul": "^1.1.2",
96-
"zod": "^4.1.12"
95+
"vaul": "catalog:",
96+
"zod": "catalog:"
9797
},
9898
"devDependencies": {
99-
"@biomejs/biome": "2.0.5",
99+
"@biomejs/biome": "catalog:",
100100
"@orpc/server": "^1.9.3",
101101
"@tailwindcss/postcss": "^4.1.14",
102102
"@types/d3-geo": "^3.1.0",
103103
"@types/node": "^22.18.9",
104-
"@types/react": "19.0.0",
105-
"@types/react-dom": "19.0.0",
104+
"@types/react": "catalog:",
105+
"@types/react-dom": "catalog:",
106106
"@types/topojson-client": "^3.1.5",
107107
"husky": "^9.1.7",
108108
"lint-staged": "^16.2.4",
109-
"tailwindcss": "^4.1.14",
110-
"typescript": "^5.9.3",
111-
"ultracite": "^5.6.1",
109+
"tailwindcss": "catalog:",
110+
"typescript": "catalog:",
111+
"ultracite": "catalog:",
112112
"webpack-bundle-analyzer": "^4.10.2"
113113
},
114114
"lint-staged": {

apps/docs/lib/blog-query.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ async function fetchFromMarble<T>(
1515
options?: { returnStatusOnError?: boolean }
1616
): Promise<T | FetchError> {
1717
try {
18+
if (!process.env.MARBLE_API_URL || !process.env.MARBLE_WORKSPACE_KEY) {
19+
if (options?.returnStatusOnError) {
20+
return {
21+
error: true,
22+
status: 500,
23+
statusText: 'Environment variables not configured',
24+
};
25+
}
26+
throw new Error('MARBLE_API_URL and MARBLE_WORKSPACE_KEY environment variables are required');
27+
}
28+
1829
const response = await fetch(
1930
`${process.env.MARBLE_API_URL}/${process.env.MARBLE_WORKSPACE_KEY}/${endpoint}`
2031
);
@@ -45,11 +56,11 @@ async function fetchFromMarble<T>(
4556
}
4657

4758
export const getPosts = cache(() => {
48-
return fetchFromMarble<MarblePostList>('posts');
59+
return fetchFromMarble<MarblePostList>('posts', { returnStatusOnError: true });
4960
});
5061

5162
export const getTags = cache(() => {
52-
return fetchFromMarble<MarbleTagList>('tags');
63+
return fetchFromMarble<MarbleTagList>('tags', { returnStatusOnError: true });
5364
});
5465

5566
export const getSinglePost = cache((slug: string) => {

apps/docs/package.json

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,40 @@
1010
},
1111
"dependencies": {
1212
"@databuddy/sdk": "^2.2.0",
13+
"@databuddy/shared": "workspace:*",
1314
"@hookform/resolvers": "^5.0.1",
1415
"@icons-pack/react-simple-icons": "^13.7.0",
15-
"@phosphor-icons/react": "^2.1.10",
16+
"@phosphor-icons/react": "catalog:",
1617
"@radix-ui/react-accordion": "^1.2.11",
1718
"@radix-ui/react-alert-dialog": "^1.1.14",
1819
"@radix-ui/react-aspect-ratio": "^1.1.7",
1920
"@radix-ui/react-avatar": "^1.1.10",
2021
"@radix-ui/react-checkbox": "^1.3.2",
2122
"@radix-ui/react-collapsible": "^1.1.11",
2223
"@radix-ui/react-context-menu": "^2.2.15",
23-
"@radix-ui/react-dialog": "^1.1.14",
24+
"@radix-ui/react-dialog": "catalog:",
2425
"@radix-ui/react-dropdown-menu": "^2.1.15",
2526
"@radix-ui/react-hover-card": "^1.1.14",
2627
"@radix-ui/react-label": "^2.1.7",
2728
"@radix-ui/react-menubar": "^1.1.15",
2829
"@radix-ui/react-navigation-menu": "^1.2.13",
29-
"@radix-ui/react-popover": "^1.1.14",
30+
"@radix-ui/react-popover": "catalog:",
3031
"@radix-ui/react-progress": "^1.1.7",
3132
"@radix-ui/react-radio-group": "^1.3.7",
3233
"@radix-ui/react-scroll-area": "^1.2.9",
3334
"@radix-ui/react-select": "^2.2.6",
3435
"@radix-ui/react-separator": "^1.1.7",
3536
"@radix-ui/react-slider": "^1.3.5",
36-
"@radix-ui/react-slot": "^1.2.3",
37-
"@radix-ui/react-switch": "^1.2.5",
37+
"@radix-ui/react-slot": "catalog:",
38+
"@radix-ui/react-switch": "catalog:",
3839
"@radix-ui/react-tabs": "^1.1.12",
3940
"@radix-ui/react-toggle": "^1.1.9",
4041
"@radix-ui/react-toggle-group": "^1.1.10",
4142
"@radix-ui/react-tooltip": "^1.2.7",
4243
"@radix-ui/react-use-controllable-state": "^1.2.2",
4344
"@shikijs/transformers": "^3.9.2",
44-
"class-variance-authority": "^0.7.1",
45-
"clsx": "^2.1.1",
45+
"class-variance-authority": "catalog:",
46+
"clsx": "catalog:",
4647
"cmdk": "^1.1.1",
4748
"date-fns": "^4.1.0",
4849
"embla-carousel-react": "^8.6.0",
@@ -51,37 +52,42 @@
5152
"fumadocs-docgen": "^2.0.0",
5253
"fumadocs-mdx": "11.6.6",
5354
"fumadocs-ui": "15.5.0",
55+
"gray-matter": "^4.0.3",
5456
"input-otp": "^1.4.2",
5557
"lucide-react": "^0.539.0",
5658
"motion": "^12.23.12",
57-
"next": "^15.4.6",
59+
"next": "catalog:",
5860
"next-themes": "^0.4.6",
5961
"ogl": "^1.0.11",
60-
"react": "19.0.0",
62+
"react": "catalog:",
6163
"react-day-picker": "^9.7.0",
62-
"react-dom": "19.0.0",
64+
"react-dom": "catalog:",
6365
"react-fast-marquee": "^1.6.5",
6466
"react-hook-form": "^7.57.0",
6567
"react-icons": "^5.5.0",
6668
"react-resizable-panels": "^3.0.2",
6769
"recharts": "^2.15.3",
70+
"remark": "^15.0.1",
71+
"remark-gfm": "^4.0.1",
72+
"remark-mdx": "^3.1.1",
73+
"remark-stringify": "^11.0.0",
6874
"shiki": "^3.9.2",
69-
"sonner": "^2.0.5",
70-
"tailwind-merge": "^3.3.0",
75+
"sonner": "catalog:",
76+
"tailwind-merge": "catalog:",
7177
"use-sound": "^5.0.0",
72-
"vaul": "^1.1.2",
73-
"zod": "3.25.76"
78+
"vaul": "catalog:",
79+
"zod": "catalog:"
7480
},
7581
"devDependencies": {
76-
"@biomejs/biome": "2.1.2",
82+
"@biomejs/biome": "catalog:",
7783
"@tailwindcss/postcss": "^4.1.8",
7884
"@types/mdx": "^2.0.13",
7985
"@types/node": "22.15.28",
80-
"@types/react": "19.0.0",
81-
"@types/react-dom": "19.0.0",
86+
"@types/react": "catalog:",
87+
"@types/react-dom": "catalog:",
8288
"postcss": "^8.5.4",
83-
"tailwindcss": "^4.1.8",
89+
"tailwindcss": "catalog:",
8490
"tw-animate-css": "^1.3.4",
85-
"typescript": "^5.8.3"
91+
"typescript": "catalog:"
8692
}
8793
}

0 commit comments

Comments
 (0)