Skip to content

Commit

Permalink
chore: upgrade prisma and nitro (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel authored Nov 29, 2024
1 parent 9fa18a4 commit 051ba8e
Show file tree
Hide file tree
Showing 6 changed files with 893 additions and 1,059 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-balloons-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@stackspulse/server": patch
---

Upgrade to prisma 6 and nitro 2.10.
1 change: 1 addition & 0 deletions apps/server/nitro.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default defineNitroConfig({
compatibilityDate: "2024-11-01",
srcDir: "src",
routeRules: {
// no cache for all /api/root/** routes
Expand Down
10 changes: 5 additions & 5 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dependencies": {
"@dotenvx/dotenvx": "1.25.1",
"@libsql/client": "0.8.0",
"@sentry/node": "8.35.0",
"@stacks/blockchain-api-client": "8.1.2",
"@sentry/node": "8.41.0",
"@stacks/blockchain-api-client": "8.2.2",
"@stacks/stacks-blockchain-api-types": "7.14.1",
"@stackspulse/protocols": "workspace:*",
"@t3-oss/env-core": "0.11.1",
Expand All @@ -22,12 +22,12 @@
"nitro-cors": "0.7.1",
"postgres": "3.4.5",
"twitter-api-v2": "1.17.1",
"unstorage": "1.12.0",
"unstorage": "1.13.1",
"zod": "3.23.8",
"zod-validation-error": "3.4.0"
},
"devDependencies": {
"nitropack": "2.9.7",
"prisma": "5.21.1"
"nitropack": "2.10.4",
"prisma": "6.0.0"
}
}
3 changes: 3 additions & 0 deletions apps/server/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ model blocks {
tx_count Int @default(1)
block_time Int @default(0)
signer_bitvec String? @db.VarBit
tenure_height Int?
signer_signatures Bytes[]
@@index([block_hash], map: "blocks_block_hash_index", type: Hash)
@@index([block_height(sort: Desc)], map: "blocks_block_height_index")
@@index([burn_block_hash], map: "blocks_burn_block_hash_index", type: Hash)
@@index([burn_block_height(sort: Desc)], map: "blocks_burn_block_height_index")
@@index([index_block_hash], map: "blocks_index_block_hash_index", type: Hash)
@@index([signer_signatures], map: "blocks_signer_signatures_index", type: Gin)
}

model burnchain_rewards {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"sharp": "0.33.5",
"tailwind-merge": "2.5.5",
"tailwindcss-animate": "1.0.7",
"unstorage": "1.12.0",
"unstorage": "1.13.1",
"zod": "3.23.8"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 051ba8e

Please sign in to comment.