Skip to content

v0.12.0

Choose a tag to compare

@davepoon davepoon released this 27 Aug 13:56
· 20 commits to main since this release
  • Added: baseUrl falls back to the MAILTEA_API_BASE_URL environment
    variable before defaulting to https://api.mailtea.app. Point a self-hosted
    or local instance at the SDK without threading an option through your code.
    An explicit baseUrl still 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 fetch is 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 global this; Node and browsers tolerate that, the Workers
    runtime answers TypeError: Illegal invocation. Workers users no longer need
    to pass fetch: globalThis.fetch.bind(globalThis). A fetch you supply is
    still used exactly as given.

Released from mailtea-app/mailtea@a0172ed.