Releases: evmnow/api-client
Releases · evmnow/api-client
v0.3.1
Patch Changes
f3095e5Thanks @jwahdatehagh! - ExposesourceAnimationUrion token metadata responses when the API provides
it.
v0.3.0
Minor Changes
-
271cba9Thanks @jwahdatehagh! - Addapi.token.fetchMetadata()for single-shot metadata requests. It
makes exactly one HTTP call and returns a discriminated
TokenMetadataResponse({ status: 'ready' | 'pending', data }) — never
throws on a pending response, and never polls. Useful when the caller
wants to drive its own polling cadence (e.g. a frontend that polls a
proxy endpoint and renders the partialdata.name/sourceImageUri
while waiting for the image cache).metadata()is now a thin polling wrapper aroundfetchMetadataand is
fully backward-compatible.New public types:
TokenMetadataResponse,TokenMetadataFetchOptions,
TokenApi.
v0.2.0
Minor Changes
6e3935cThanks @jwahdatehagh! - Handle the async-queue metadata response. The token metadata endpoint now returns a{ status: 'ready' | 'pending' | 'error', data }envelope and can defer image caching to a background job.api.token.metadata()now polls until the image is ready (default: every 2.5s, up to 60s) and resolves with the fully cached metadata. New options:pollIntervalMs,maxWaitMs,signal, andonPending(fires with partial data on each pending response). NewEvmNowMetadataPendingErroris thrown when polling exhaustsmaxWaitMs, with the last partialTokenMetadataon.lastData. Serverstatus: 'error'responses throwEvmNowApiErrorwith the server's error message. The legacy{ data: T }envelope auto-unwrap has been removed.
v0.1.2
Patch Changes
a54c54bThanks @jwahdatehagh! - Reshape token metadata response. Renamesapi.token.image()toapi.token.metadata(), exposes the originaltokenUriandsourceImageUrifrom the on-chain metadata, and simplifies theimagefield to{ xs?, sm?, md?, lg? }with ready-to-use CDN URLs (thekeyandsizeswire fields are no longer surfaced).
v0.1.1
Patch Changes
4b4813fThanks @yougogirldoteth! - Expand compact token image responses into CDN URLs for each available size. Token images now use the API response shape{ key, sizes }.