Skip to content

chore: bump ox to 0.14.67 - #5499

Merged
jxom merged 1 commit into
mainfrom
chore/bump-ox-0.14.67
Nov 13, 2026
Merged

jxom merged 1 commit into
mainfrom
chore/bump-ox-0.14.67

Conversation

@jxom

@jxom jxom commented Nov 12, 2026

Copy link
Copy Markdown
Member

Requested by jxom ("Also bump ox in Viem once the 0.x release ships").

Bumps ox from 0.14.65 to 0.14.67 in the pnpm-workspace.yaml override, the root package.json, src/package.json, and the lockfile, like #5204. ox is already in minimumReleaseAgeExclude, so no release-age setting changed.

0.14.67 carries wevm/ox#677 (the WebAuthn data of a Tempo signature is split in linear time). The bump also crosses 0.14.66.

What a Viem User Can See

Each row was run on 0.14.65 and on 0.14.67, unless it says "by reading".

Change (ox PR) 0.14.65 0.14.67
Tempo WebAuthn signature above 2048 bytes (wevm/ox#655): verifyHash on a Tempo client with a 2307-byte signature true false; SignatureEnvelope.deserialize throws InvalidSerializedError
WebAuthn data split (wevm/ox#677): SignatureEnvelope.deserialize of data that is all { and ends in } 32 ms at 2 kB, 1.9 s at 20 kB, 7.9 s at 40 kB 1 ms at 2 kB; larger sizes are refused by the limit above
Keychain signature that wraps a keychain signature (wevm/ox#649): SignatureEnvelope.deserialize, Tempo Transaction.deserialize parsed throws InvalidSerializedError (verifyHash returned false on both)
Key authorization scope with recipients and no selector (wevm/ox#647): Account.signKeyAuthorization signed throws KeyAuthorization.InvalidScopeError
Compressed public key for an access key (wevm/ox#625): Account.signKeyAuthorization derived an address from x alone throws PublicKey.InvalidPrefixError
Tempo Transaction.serialize with validBefore as a bigint or hex (wevm/ox#653) serialized (as unset, per the ox changelog) throws TxEnvelopeTempo.InvalidValidityBoundError
Tempo transaction with a validBefore above the safe integer range (wevm/ox#653): TxEnvelopeTempo.deserialize parsed to a rounded number throws TxEnvelopeTempo.InvalidValidityBoundError
Tempo Transaction.serialize with chainId: 1.5 (wevm/ox#657) RangeError InvalidChainIdError
Tempo Transaction.serialize with a fee payer signature yParity of 27 (wevm/ox#645, wevm/ox#639) encoded as 1 throws Signature.InvalidYParityError
Secp256k1.verify (re-exported by viem/tempo) with address and hash: true (wevm/ox#637) false for a valid signature true
encodeCalls of viem/experimental/erc7821 with data: '0xabc' (wevm/ox#618) encoded with a trailing zero nibble throws Hex.InvalidLengthError

By reading only: the size limit and the nested keychain refusal also apply where Viem parses an RPC signature (SignatureEnvelope.fromRpc in the Tempo formatters), and encodeExecuteBatchesData takes the same path as encodeCalls.

The other 0.14.66 fixes (AbiFunction.decodeData, AbiError.decode, AbiEvent, Authorization, UserOperation.hash, Execute, Keystore, Siwe, TxEnvelopeLegacy/Eip2930/Eip1559/Eip7702, TypedData, Value, Registration) are in modules that Viem does not call, by reading Viem's imports of ox. Viem keeps its own copy of Value in src/utils/unit/Value.ts, so wevm/ox#667 does not reach it. The AbiParameters.decode limits (wevm/ox#612, wevm/ox#616) reach only the relay's simulation of token results.

One Test Broke

src/tempo/internal/relay/feePayer.test.ts › raw canonical encoding › rejects a u64 field past the safe integer range (both methods).

Cause: the test re-encodes validBefore as 2^53 + 1. On 0.14.65 TxEnvelopeTempo.deserialize parsed that to a rounded number, so the relay read the chain ID and the fee payer plugin then refused the transaction in its canonical check, because serialization threw. On 0.14.67 deserialize throws InvalidValidityBoundError (wevm/ox#653), so the relay refuses the transaction one step earlier, where it reads the chain ID in request.ts, with its message for a transaction that cannot be parsed.

The transaction is refused with RpcResponse.InvalidParamsError before any plugin runs, as before. Only the message differs: Invalid serialized Tempo transaction. instead of Transaction encoding is not canonical. Re-encode it with in-range field values. This pull request updates the two inline snapshots and the comment in isCanonical that named serialization as the step that refuses such a value. It does not restore the old message, which would need the relay to read the chain ID without parsing the transaction.

Size Limits

The bundles grew with ox, and five limits failed, so each is raised to the next half kilobyte that fits. Sizes are from size-limit on a build of each tree. Running time was turned off, because its Chrome does not start in my sandbox.

Bundle 0.14.65 0.14.67 Limit
const viem = require('viem') (cjs) 117,086 B 117,705 B 117.5 kB → 118 kB
import * from 'viem/account-abstraction' 61,425 B 61,536 B 61.5 kB → 62 kB
import * from 'viem/actions' 72,797 B 73,023 B 73 kB → 73.5 kB
import * from 'viem/chains' 136,685 B 137,277 B 137 kB → 137.5 kB
import { tempoTestnet } from 'viem/chains' 91,882 B 92,565 B 92 kB → 93 kB

import * from 'viem' (esm) is at 91,396 B of 91.5 kB and keeps its limit.

Verification

On 0.14.67, locally:

  • pnpm test --run --project tempo: 64 files and 1468 tests passed on Tnext, 59 files and 1337 tests passed with VITE_TEMPO_HARDFORK=T13.
  • pnpm test --run --project core src/experimental/erc7821: 4 files, 21 tests passed.
  • tsc -b src/tsconfig.json test/tsconfig.json: no errors (run before the snapshot and comment edits).
  • pnpm build, pnpm test:build, pnpm check:repo, and size-limit with the new limits: passed.

Not run locally: the rest of the core project, the environment tests, the Tempo fuzz suites, pnpm bench:types, pnpm knip, and the docs build.

Not merged.

@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
viem Error Error Nov 12, 2026 6:12am UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 22ec57d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T06:10:29.859002Z 22ec57d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedox@​0.14.65 ⏵ 0.14.679910099 +197100

View full report

@github-actions

Copy link
Copy Markdown
Contributor

Published [email protected] under the pr-5499 dist-tag, which follows this pull request until it closes.

pnpm add viem@pr-5499
pnpm add [email protected]

@jxom
jxom merged commit 018d560 into main Nov 13, 2026
39 of 40 checks passed
@jxom
jxom deleted the chore/bump-ox-0.14.67 branch November 13, 2026 00:59
@github-actions github-actions Bot mentioned this pull request Nov 13, 2026

This branch had an error being deployed

1 failed deployment
Preview — 22ec57d7 Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants