Skip to content

Releases: celo-org/attribution-tags

Release list

v0.3.0

Choose a tag to compare

@GigaHierz GigaHierz released this 02 Jul 18:48
b11cabc

@celo/attribution-tags 0.3.0

Breaking (decode strictness)

  • fromDataSuffix (and therefore verifyTx) now returns null for non-Schema-0 tags — codes registered against a custom registry (Schema 1) no longer decode as if they were canonical Celo codes.
  • fromDataSuffix returns null for an empty code field instead of { codes: [], schemaId: 0 }.

Fixed

  • toDataSuffix now 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 structural TxClient type.
  • Added a default export condition so require() 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.

v0.1.0

Choose a tag to compare

@alvarof2 alvarof2 released this 15 May 07:26
Publish SDK Package OIDC