Skip to content

Commit 3e5fdd7

Browse files
auxesisclaude
andcommitted
chore(deps): drop @byteslice/result 0.3.0 bump, fix zod 3.25 API
The dependabot group included @byteslice/result 0.2 → 0.3, which is a breaking change despite the 0.x semver (FailureOption was tightened to require Error shape, breaking every Result<T, ProtectError> site across protect and stack packages). Revert to ^0.2.0 and ignore future bumps in dependabot.yml until a major-version migration is done. zod 3.25 dropped the experimental `error:` create-param; switch the cli config schema to the canonical `required_error:`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 97ea4df commit 3e5fdd7

6 files changed

Lines changed: 25 additions & 14 deletions

File tree

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ updates:
3737
ignore:
3838
# Catalog-managed; bump manually via pnpm-workspace.yaml + changeset.
3939
- dependency-name: "@cipherstash/auth"
40+
# 0.x bumps ship breaking type changes (e.g. 0.2 → 0.3 tightened the
41+
# FailureOption constraint). Review and apply manually.
42+
- dependency-name: "@byteslice/result"
4043
# Major bumps are reviewed and applied manually, not by Dependabot.
4144
- dependency-name: "*"
4245
update-types:

packages/cli/src/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const DEFAULT_ENCRYPT_CLIENT_PATH = './src/encryption/index.ts'
4343

4444
const stashConfigSchema = z.object({
4545
databaseUrl: z
46-
.string({ error: 'databaseUrl is required' })
46+
.string({ required_error: 'databaseUrl is required' })
4747
.min(1, 'databaseUrl must not be empty'),
4848
client: z.string().default(DEFAULT_ENCRYPT_CLIENT_PATH),
4949
})

packages/protect-dynamodb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
"access": "public"
4949
},
5050
"dependencies": {
51-
"@byteslice/result": "^0.3.0"
51+
"@byteslice/result": "^0.2.0"
5252
}
5353
}

packages/protect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"access": "public"
6969
},
7070
"dependencies": {
71-
"@byteslice/result": "^0.3.0",
71+
"@byteslice/result": "^0.2.0",
7272
"@cipherstash/protect-ffi": "0.21.4",
7373
"@cipherstash/schema": "workspace:*",
7474
"@stricli/core": "^1.2.7",

packages/stack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
"access": "public"
203203
},
204204
"dependencies": {
205-
"@byteslice/result": "0.3.0",
205+
"@byteslice/result": "0.2.0",
206206
"@cipherstash/protect-ffi": "0.21.4",
207207
"evlog": "1.11.0",
208208
"uuid": "14.0.0",

pnpm-lock.yaml

Lines changed: 18 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)