Releases: celo-org/attribution-tags
Releases · celo-org/attribution-tags
Release list
v0.3.0
@celo/attribution-tags 0.3.0
Breaking (decode strictness)
fromDataSuffix(and thereforeverifyTx) now returnsnullfor non-Schema-0 tags — codes registered against a custom registry (Schema 1) no longer decode as if they were canonical Celo codes.fromDataSuffixreturnsnullfor an empty code field instead of{ codes: [], schemaId: 0 }.
Fixed
toDataSuffixnow rejects comma-joined multi-code fields over 255 bytes (the wire format's length-byte cap) with a clear error instead of an opaque internal throw.- The published type declarations no longer import from
viem, so TypeScript consumers who don't install the optional peer no longer get "Cannot find module 'viem'". viem clients still satisfy the new structuralTxClienttype. - Added a
defaultexport condition sorequire()and default-condition resolvers can load the package. - The npm tarball now ships the MIT
LICENSE.
Docs
- INDEXERS.md: corrected length-byte bounds (the joined code field is 1–255 bytes; 32 bounds a single code), added truncation/schema guards to the reference pseudocode, rewrote the SQL filter for DuneSQL varbinary, and fixed stale byte-math examples.
- BUILDERS.md: corrected the SSR guidance ("use client" modules still execute during SSR — derive the tag in an event handler or effect) and documented that issued and custom codes are supported alongside hostname-derived ones.
Published via OIDC trusted publishing with provenance attestations.