Skip to content

Commit 4724cd4

Browse files
authored
upgrade dependencies and generate Prisma client to custom path (#174)
1 parent d908fe1 commit 4724cd4

File tree

10 files changed

+2979
-3258
lines changed

10 files changed

+2979
-3258
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ dist
22
build
33
publish
44
output
5+
# generated prisma client
6+
apps/server/prisma/generated/
57

68
# Logs
79
logs

apps/events/package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,52 +8,52 @@
88
"preview": "vite preview"
99
},
1010
"dependencies": {
11-
"@automerge/automerge": "^v2.2.9",
11+
"@automerge/automerge": "^2.2.9",
1212
"@automerge/automerge-repo": "^2.0.0-beta.2",
1313
"@automerge/automerge-repo-react-hooks": "^2.0.0-beta.2",
14-
"@graphprotocol/grc-20": "^0.10.0",
14+
"@graphprotocol/grc-20": "^0.11.5",
1515
"@graphprotocol/hypergraph": "workspace:*",
1616
"@graphprotocol/hypergraph-react": "workspace:*",
17-
"@noble/hashes": "^1.7.0",
18-
"@privy-io/react-auth": "^2.0.3",
19-
"@radix-ui/react-avatar": "^1.1.2",
17+
"@noble/hashes": "^1.8.0",
18+
"@privy-io/react-auth": "^2.13.0",
19+
"@radix-ui/react-avatar": "^1.1.7",
2020
"@radix-ui/react-icons": "^1.3.2",
21-
"@radix-ui/react-slot": "^1.1.1",
22-
"@tanstack/react-query": "^5.67.1",
23-
"@tanstack/react-router": "^1.97.1",
24-
"@xstate/store": "^2.6.2",
21+
"@radix-ui/react-slot": "^1.2.0",
22+
"@tanstack/react-query": "^5.75.2",
23+
"@tanstack/react-router": "^1.119.0",
24+
"@xstate/store": "^3.5.1",
2525
"class-variance-authority": "^0.7.1",
2626
"clsx": "^2.1.1",
2727
"effect": "^3.14.12",
28-
"framer-motion": "^12.5.0",
28+
"framer-motion": "^12.9.4",
2929
"graphql-request": "^7.1.2",
3030
"isomorphic-ws": "^5.0.0",
31-
"lucide-react": "^0.471.1",
32-
"react": "^19.0.0",
33-
"react-dom": "^19.0.0",
34-
"react-select": "^5.10.0",
35-
"siwe": "^2.3.2",
31+
"lucide-react": "^0.507.0",
32+
"react": "^19.1.0",
33+
"react-dom": "^19.1.0",
34+
"react-select": "^5.10.1",
35+
"siwe": "^3.0.0",
3636
"tailwind-merge": "^2.6.0",
3737
"tailwindcss-animate": "^1.0.7",
3838
"uuid": "^11.0.5",
39-
"viem": "^2.22.9",
40-
"vite": "^6.0.7"
39+
"viem": "^2.28.3",
40+
"vite": "^6.3.4"
4141
},
4242
"devDependencies": {
4343
"@biomejs/biome": "1.9.4",
44-
"@tanstack/router-devtools": "^1.97.1",
45-
"@tanstack/router-plugin": "^1.97.1",
46-
"@types/node": "^22.10.7",
47-
"@types/react": "^19.0.7",
48-
"@types/react-dom": "^19.0.3",
44+
"@tanstack/router-devtools": "^1.119.1",
45+
"@tanstack/router-plugin": "^1.119.0",
46+
"@types/node": "^22.15.3",
47+
"@types/react": "^19.1.2",
48+
"@types/react-dom": "^19.1.3",
4949
"@types/uuid": "^10.0.0",
50-
"@vitejs/plugin-react": "^4.3.4",
51-
"autoprefixer": "^10.4.20",
52-
"globals": "^15.14.0",
53-
"postcss": "^8.5.1",
50+
"@vitejs/plugin-react": "^4.4.1",
51+
"autoprefixer": "^10.4.21",
52+
"globals": "^16.0.0",
53+
"postcss": "^8.5.3",
5454
"tailwindcss": "^3.4.17",
55-
"vite-plugin-node-polyfills": "^0.22.0",
56-
"vite-plugin-top-level-await": "^1.4.4",
55+
"vite-plugin-node-polyfills": "^0.23.0",
56+
"vite-plugin-top-level-await": "^1.5.0",
5757
"vite-plugin-wasm": "^3.4.1"
5858
}
5959
}

apps/server/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010
},
1111
"dependencies": {
1212
"@graphprotocol/hypergraph": "workspace:*",
13-
"@noble/ciphers": "^1.2.0",
14-
"@prisma/client": "^6.2.1",
13+
"@noble/ciphers": "^1.3.0",
14+
"@prisma/client": "^6.7.0",
1515
"cors": "^2.8.5",
1616
"effect": "^3.14.12",
17-
"express": "^5.0.1",
18-
"siwe": "^2.3.2",
19-
"viem": "^2.22.9",
20-
"ws": "^8.17.1"
17+
"express": "^5.1.0",
18+
"siwe": "^3.0.0",
19+
"viem": "^2.28.3",
20+
"ws": "^8.18.2"
2121
},
2222
"devDependencies": {
2323
"@types/cors": "^2.8.17",
24-
"@types/express": "^5.0.0",
25-
"@types/node": "^22.10.7",
26-
"@types/pg": "^8.11.6",
27-
"@types/ws": "^8.5.13",
28-
"prisma": "^6.2.1",
29-
"tsup": "^8.3.5",
30-
"typescript": "^5.7.3"
24+
"@types/express": "^5.0.1",
25+
"@types/node": "^22.15.3",
26+
"@types/pg": "^8.11.14",
27+
"@types/ws": "^8.18.1",
28+
"prisma": "^6.7.0",
29+
"tsup": "^8.4.0",
30+
"typescript": "^5.8.3"
3131
}
3232
}

apps/server/prisma/schema.prisma

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
// learn more about it in the docs: https://pris.ly/d/prisma-schema
33

44
generator client {
5-
// TODO: Using `pnpm deploy` with prisma is quite annoying. We should consider generating the prisma client into
6-
// a directory within the package here instead of generating it into node modules (default).
75
provider = "prisma-client-js"
6+
output = "generated/client"
87
}
98

109
datasource db {
@@ -13,14 +12,14 @@ datasource db {
1312
}
1413

1514
model SpaceEvent {
16-
id String @id
17-
event String
18-
state String
19-
counter Int
20-
space Space @relation(fields: [spaceId], references: [id])
21-
spaceId String
22-
createdAt DateTime @default(now())
23-
inboxes SpaceInbox[]
15+
id String @id
16+
event String
17+
state String
18+
counter Int
19+
space Space @relation(fields: [spaceId], references: [id])
20+
spaceId String
21+
createdAt DateTime @default(now())
22+
inboxes SpaceInbox[]
2423
2524
@@unique([spaceId, counter])
2625
}
@@ -56,67 +55,67 @@ model SpaceKeyBox {
5655
}
5756

5857
model SpaceInbox {
59-
id String @id
60-
space Space @relation(fields: [spaceId], references: [id])
58+
id String @id
59+
space Space @relation(fields: [spaceId], references: [id])
6160
spaceId String
6261
isPublic Boolean
6362
authPolicy String
6463
encryptionPublicKey String
6564
encryptedSecretKey String
66-
spaceEvent SpaceEvent @relation(fields: [spaceEventId], references: [id])
65+
spaceEvent SpaceEvent @relation(fields: [spaceEventId], references: [id])
6766
spaceEventId String
6867
messages SpaceInboxMessage[]
69-
createdAt DateTime @default(now())
68+
createdAt DateTime @default(now())
7069
}
7170

7271
model SpaceInboxMessage {
73-
id String @id @default(uuid(4))
74-
spaceInbox SpaceInbox @relation(fields: [spaceInboxId], references: [id])
75-
spaceInboxId String
76-
ciphertext String
77-
signatureHex String?
72+
id String @id @default(uuid(4))
73+
spaceInbox SpaceInbox @relation(fields: [spaceInboxId], references: [id])
74+
spaceInboxId String
75+
ciphertext String
76+
signatureHex String?
7877
signatureRecovery Int?
79-
authorAccountId String?
80-
createdAt DateTime @default(now())
78+
authorAccountId String?
79+
createdAt DateTime @default(now())
8180
}
8281

8382
model Account {
84-
id String @id
83+
id String @id
8584
spaces Space[]
8685
invitations Invitation[]
8786
keyBoxes SpaceKeyBox[]
8887
identities Identity[]
89-
sessionNonce String?
90-
sessionToken String?
91-
sessionTokenExpires DateTime?
92-
updates Update[]
93-
inboxes AccountInbox[]
88+
sessionNonce String?
89+
sessionToken String?
90+
sessionTokenExpires DateTime?
91+
updates Update[]
92+
inboxes AccountInbox[]
9493
9594
@@index([sessionToken])
9695
}
9796

9897
model AccountInbox {
99-
id String @id
100-
account Account @relation(fields: [accountId], references: [id])
98+
id String @id
99+
account Account @relation(fields: [accountId], references: [id])
101100
accountId String
102101
isPublic Boolean
103102
authPolicy String
104103
encryptionPublicKey String
105104
signatureHex String
106105
signatureRecovery Int
107106
messages AccountInboxMessage[]
108-
createdAt DateTime @default(now())
107+
createdAt DateTime @default(now())
109108
}
110109

111110
model AccountInboxMessage {
112-
id String @id @default(uuid(7))
113-
accountInbox AccountInbox @relation(fields: [accountInboxId], references: [id])
114-
accountInboxId String
115-
ciphertext String
116-
signatureHex String?
111+
id String @id @default(uuid(7))
112+
accountInbox AccountInbox @relation(fields: [accountInboxId], references: [id])
113+
accountInboxId String
114+
ciphertext String
115+
signatureHex String?
117116
signatureRecovery Int?
118-
authorAccountId String?
119-
createdAt DateTime @default(now())
117+
authorAccountId String?
118+
createdAt DateTime @default(now())
120119
}
121120

122121
model Invitation {
@@ -132,21 +131,21 @@ model Invitation {
132131
}
133132

134133
model Update {
135-
space Space @relation(fields: [spaceId], references: [id])
136-
spaceId String
137-
clock Int
138-
content Bytes
139-
account Account @relation(fields: [accountId], references: [id])
134+
space Space @relation(fields: [spaceId], references: [id])
135+
spaceId String
136+
clock Int
137+
content Bytes
138+
account Account @relation(fields: [accountId], references: [id])
140139
accountId String
141140
signatureHex String
142141
signatureRecovery Int
143-
updateId String
142+
updateId String
144143
145144
@@id([spaceId, clock])
146145
}
147146

148147
model Identity {
149-
account Account @relation(fields: [accountId], references: [id])
148+
account Account @relation(fields: [accountId], references: [id])
150149
accountId String
151150
ciphertext String
152151
nonce String

apps/server/src/prisma.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { PrismaClient } from '@prisma/client';
1+
import { PrismaClient } from '../prisma/generated/client';
22

33
export const prisma = new PrismaClient();

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
"check": "tsc --noEmit"
1212
},
1313
"devDependencies": {
14-
"@babel/cli": "^7.26.4",
15-
"@babel/core": "^7.26.0",
14+
"@babel/cli": "^7.27.1",
15+
"@babel/core": "^7.27.1",
1616
"@biomejs/biome": "1.9.4",
17-
"@changesets/cli": "^2.27.11",
17+
"@changesets/cli": "^2.29.2",
1818
"babel-plugin-annotate-pure-calls": "^0.5.0",
19-
"glob": "^11.0.1",
20-
"pkg-pr-new": "^0.0.39",
21-
"typescript": "^5.7.3",
22-
"vitest": "^3.0.1"
19+
"glob": "^11.0.2",
20+
"pkg-pr-new": "^0.0.43",
21+
"typescript": "^5.8.3",
22+
"vitest": "^3.1.2"
2323
}
2424
}

packages/hypergraph-react/package.json

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"name": "@graphprotocol/hypergraph-react",
33
"version": "0.0.1",
44
"description": "React implementation and additional functionality, components, and hooks for the hypergraph SDK framework",
5-
"keywords": ["Web3", "Local-First", "Knowledge Graph", "Graph Protocol", "react"],
5+
"keywords": [
6+
"Web3",
7+
"Local-First",
8+
"Knowledge Graph",
9+
"Graph Protocol",
10+
"react"
11+
],
612
"publishConfig": {
713
"access": "public",
814
"directory": "publish",
@@ -30,24 +36,24 @@
3036
"devDependencies": {
3137
"@graphprotocol/hypergraph": "workspace:*",
3238
"@testing-library/jest-dom": "^6.6.3",
33-
"@testing-library/react": "^16.1.0",
34-
"@types/react": "^19.0.7",
35-
"@vitejs/plugin-react": "^4.3.4",
36-
"@xstate/store": "^2.6.2",
37-
"jsdom": "^26.0.0",
38-
"react": "^19.0.0"
39+
"@testing-library/react": "^16.3.0",
40+
"@types/react": "^19.1.2",
41+
"@vitejs/plugin-react": "^4.4.1",
42+
"@xstate/store": "^3.5.1",
43+
"jsdom": "^26.1.0",
44+
"react": "^19.1.0"
3945
},
4046
"dependencies": {
41-
"@automerge/automerge": "^v2.2.9",
47+
"@automerge/automerge": "^2.2.9",
4248
"@automerge/automerge-repo": "^2.0.0-beta.2",
4349
"@automerge/automerge-repo-react-hooks": "^2.0.0-beta.2",
44-
"@graphprotocol/grc-20": "^0.10.0",
50+
"@graphprotocol/grc-20": "^0.11.5",
4551
"@noble/hashes": "^1.8.0",
46-
"@tanstack/react-query": "^5.67.1",
52+
"@tanstack/react-query": "^5.75.2",
4753
"effect": "^3.14.12",
4854
"graphql-request": "^7.1.2",
49-
"siwe": "^2.3.2",
55+
"siwe": "^3.0.0",
5056
"uuid": "^11.0.5",
51-
"viem": "^2.22.9"
57+
"viem": "^2.28.3"
5258
}
5359
}

0 commit comments

Comments
 (0)