Repository navigation
chore: bump ox to 0.14.67 - #5499
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 22ec57d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Published pnpm add viem@pr-5499
pnpm add [email protected] |
Requested by jxom ("Also bump ox in Viem once the 0.x release ships").
Bumps
oxfrom0.14.65to0.14.67in thepnpm-workspace.yamloverride, the rootpackage.json,src/package.json, and the lockfile, like #5204.oxis already inminimumReleaseAgeExclude, so no release-age setting changed.0.14.67carries wevm/ox#677 (the WebAuthn data of a Tempo signature is split in linear time). The bump also crosses0.14.66.What a Viem User Can See
Each row was run on
0.14.65and on0.14.67, unless it says "by reading".0.14.650.14.67verifyHashon a Tempo client with a 2307-byte signaturetruefalse;SignatureEnvelope.deserializethrowsInvalidSerializedErrorSignatureEnvelope.deserializeof data that is all{and ends in}SignatureEnvelope.deserialize, TempoTransaction.deserializeInvalidSerializedError(verifyHashreturnedfalseon both)recipientsand noselector(wevm/ox#647):Account.signKeyAuthorizationKeyAuthorization.InvalidScopeErrorAccount.signKeyAuthorizationxalonePublicKey.InvalidPrefixErrorTransaction.serializewithvalidBeforeas a bigint or hex (wevm/ox#653)TxEnvelopeTempo.InvalidValidityBoundErrorvalidBeforeabove the safe integer range (wevm/ox#653):TxEnvelopeTempo.deserializeTxEnvelopeTempo.InvalidValidityBoundErrorTransaction.serializewithchainId: 1.5(wevm/ox#657)RangeErrorInvalidChainIdErrorTransaction.serializewith a fee payer signatureyParityof 27 (wevm/ox#645, wevm/ox#639)1Signature.InvalidYParityErrorSecp256k1.verify(re-exported byviem/tempo) withaddressandhash: true(wevm/ox#637)falsefor a valid signaturetrueencodeCallsofviem/experimental/erc7821withdata: '0xabc'(wevm/ox#618)Hex.InvalidLengthErrorBy reading only: the size limit and the nested keychain refusal also apply where Viem parses an RPC signature (
SignatureEnvelope.fromRpcin the Tempo formatters), andencodeExecuteBatchesDatatakes the same path asencodeCalls.The other
0.14.66fixes (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 ofox. Viem keeps its own copy ofValueinsrc/utils/unit/Value.ts, so wevm/ox#667 does not reach it. TheAbiParameters.decodelimits (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
validBeforeas 2^53 + 1. On0.14.65TxEnvelopeTempo.deserializeparsed 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. On0.14.67deserializethrowsInvalidValidityBoundError(wevm/ox#653), so the relay refuses the transaction one step earlier, where it reads the chain ID inrequest.ts, with its message for a transaction that cannot be parsed.The transaction is refused with
RpcResponse.InvalidParamsErrorbefore any plugin runs, as before. Only the message differs:Invalid serialized Tempo transaction.instead ofTransaction encoding is not canonical. Re-encode it with in-range field values.This pull request updates the two inline snapshots and the comment inisCanonicalthat 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 fromsize-limiton a build of each tree. Running time was turned off, because its Chrome does not start in my sandbox.0.14.650.14.67const viem = require('viem')(cjs)import * from 'viem/account-abstraction'import * from 'viem/actions'import * from 'viem/chains'import { tempoTestnet } from 'viem/chains'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 withVITE_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, andsize-limitwith the new limits: passed.Not run locally: the rest of the
coreproject, the environment tests, the Tempo fuzz suites,pnpm bench:types,pnpm knip, and the docs build.Not merged.