Repository navigation
v0.12.0
- Added:
baseUrlfalls back to theMAILTEA_API_BASE_URLenvironment
variable before defaulting tohttps://api.mailtea.app. Point a self-hosted
or local instance at the SDK without threading an option through your code.
An explicitbaseUrlstill wins. This closes a gap the other clients did not
have — the Python SDK, the CLI and the MCP server have always read it. - Fixed: the global
fetchis now bound before it is stored, so the SDK works
on Cloudflare Workers without a wrapper. The stored reference is called bare,
which strips the globalthis; Node and browsers tolerate that, the Workers
runtime answersTypeError: Illegal invocation. Workers users no longer need
to passfetch: globalThis.fetch.bind(globalThis). Afetchyou supply is
still used exactly as given.
Released from mailtea-app/mailtea@a0172ed.