Skip to content

Commit 081249b

Browse files
chore(dotcom): bump zero to 1.5.0 (tldraw#8843)
Bumps `@rocicorp/zero` from 1.4.0 to 1.5.0 across the dotcom packages. ### Change type - [x] `other` ### Test plan 1. CI passes. 2. Verify zero-cache + sync-worker still come up locally.
1 parent 7db56b3 commit 081249b

6 files changed

Lines changed: 17 additions & 16 deletions

File tree

apps/dotcom/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"dependencies": {
3232
"@clerk/clerk-react": "^5.53.3",
3333
"@clerk/elements": "^0.23.74",
34-
"@rocicorp/zero": "1.4.0",
34+
"@rocicorp/zero": "1.5.0",
3535
"@sentry/integrations": "^7.120.3",
3636
"@sentry/react": "^7.120.3",
3737
"@tldraw/assets": "workspace:*",

apps/dotcom/sync-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"dependencies": {
2525
"@clerk/backend": "^1.23.7",
2626
"@pierre/storage": "^1.1.0",
27-
"@rocicorp/zero": "1.4.0",
27+
"@rocicorp/zero": "1.5.0",
2828
"@supabase/auth-helpers-remix": "^0.2.6",
2929
"@supabase/supabase-js": "^2.48.1",
3030
"@tldraw/dotcom-shared": "workspace:*",

apps/dotcom/sync-worker/src/worker.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,15 @@ const router = createRouter<Environment>()
200200
if (!auth) {
201201
return Response.json({ error: 'Unauthorized' }, { status: 401 })
202202
}
203-
const result = await handleQueryRequest(
204-
(name, args) => {
203+
const result = await handleQueryRequest({
204+
handler: (name, args) => {
205205
const query = mustGetQuery(queries, name)
206206
return query.fn({ args, ctx: { userId: auth.userId } })
207207
},
208208
schema,
209-
req
210-
)
209+
request: req,
210+
userID: auth.userId,
211+
})
211212
return json(result)
212213
})
213214
.all('*', notFound)

apps/dotcom/zero-cache/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"type": "module",
2828
"dependencies": {
29-
"@rocicorp/zero": "1.4.0",
29+
"@rocicorp/zero": "1.5.0",
3030
"kysely": "^0.28.12",
3131
"pg": "^8.13.1"
3232
},

packages/dotcom-shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"files": [],
1010
"type": "module",
1111
"dependencies": {
12-
"@rocicorp/zero": "1.4.0",
12+
"@rocicorp/zero": "1.5.0",
1313
"@tldraw/state": "workspace:*",
1414
"@tldraw/store": "workspace:*",
1515
"@tldraw/tlschema": "workspace:*",

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9346,9 +9346,9 @@ __metadata:
93469346
languageName: node
93479347
linkType: hard
93489348

9349-
"@rocicorp/zero@npm:1.4.0":
9350-
version: 1.4.0
9351-
resolution: "@rocicorp/zero@npm:1.4.0"
9349+
"@rocicorp/zero@npm:1.5.0":
9350+
version: 1.5.0
9351+
resolution: "@rocicorp/zero@npm:1.5.0"
93529352
dependencies:
93539353
"@badrap/valita": "npm:0.3.11"
93549354
"@databases/escape-identifier": "npm:^1.0.3"
@@ -9419,7 +9419,7 @@ __metadata:
94199419
zero-cache-dev: out/zero/src/zero-cache-dev.js
94209420
zero-deploy-permissions: out/zero/src/deploy-permissions.js
94219421
zero-out: out/zero/src/zero-out.js
9422-
checksum: 10/a5c7135df3954bb0d1a7b9b8049fff71e88aa74e5ed1371056c1405fbf6c40acc9d2c46aa49a9954c9a6fa7c6b150a518d1d194c5092fa69e25aeb6c62e24f61
9422+
checksum: 10/dcf15f543e7ed38fc3970307ee3d770ee7c6f0cf6e141c7f7666a38981b95f9d80a95a6da84462aa631d0054fc88b2d90a4a98c98f1df8057000c57a9ea6e870
94239423
languageName: node
94249424
linkType: hard
94259425

@@ -11881,7 +11881,7 @@ __metadata:
1188111881
version: 0.0.0-use.local
1188211882
resolution: "@tldraw/dotcom-shared@workspace:packages/dotcom-shared"
1188311883
dependencies:
11884-
"@rocicorp/zero": "npm:1.4.0"
11884+
"@rocicorp/zero": "npm:1.5.0"
1188511885
"@tldraw/state": "workspace:*"
1188611886
"@tldraw/store": "workspace:*"
1188711887
"@tldraw/tlschema": "workspace:*"
@@ -11905,7 +11905,7 @@ __metadata:
1190511905
"@clerk/backend": "npm:^1.23.7"
1190611906
"@cloudflare/workers-types": "npm:^4.20260302.0"
1190711907
"@pierre/storage": "npm:^1.1.0"
11908-
"@rocicorp/zero": "npm:1.4.0"
11908+
"@rocicorp/zero": "npm:1.5.0"
1190911909
"@supabase/auth-helpers-remix": "npm:^0.2.6"
1191011910
"@supabase/supabase-js": "npm:^2.48.1"
1191111911
"@tldraw/dotcom-shared": "workspace:*"
@@ -12350,7 +12350,7 @@ __metadata:
1235012350
version: 0.0.0-use.local
1235112351
resolution: "@tldraw/zero-cache@workspace:apps/dotcom/zero-cache"
1235212352
dependencies:
12353-
"@rocicorp/zero": "npm:1.4.0"
12353+
"@rocicorp/zero": "npm:1.5.0"
1235412354
concurrently: "npm:^9.1.2"
1235512355
dotenv: "npm:^16.4.7"
1235612356
esbuild: "npm:^0.28.0"
@@ -18077,7 +18077,7 @@ __metadata:
1807718077
"@formatjs/cli": "npm:^6.5.1"
1807818078
"@formatjs/unplugin": "npm:^1.1.0"
1807918079
"@playwright/test": "npm:^1.58.2"
18080-
"@rocicorp/zero": "npm:1.4.0"
18080+
"@rocicorp/zero": "npm:1.5.0"
1808118081
"@sentry/cli": "npm:^2.41.1"
1808218082
"@sentry/integrations": "npm:^7.120.3"
1808318083
"@sentry/react": "npm:^7.120.3"

0 commit comments

Comments
 (0)