Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

tempo.ts@0.7.2

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:04
· 88 commits to main since this release
dc0c4a0

Patch Changes

  • #90 625c8e4 Thanks @jxom! - Added Handler.compose to compose multiple handlers into a single handler.

    import { Handler, Kv } from 'tempo.ts/server'
    
    const handler = Handler.compose([
      Handler.feePayer({
        account,
        client,
        path: '/fee-payer'
      }),
      Handler.keyManager({
        kv: Kv.memory()
        path: '/key'
      }),
    ], { path: '/api' })
    
    Bun.serve(handler) // Bun
    Deno.serve(handler) // Deno
    createServer(handler.listener) // Node.js
    app.use(c => handler.fetch(c.req.raw)) // Hono
    app.use(handler.listener) // Express
    
    // Exposed endpoints:
    // - '/api/fee-payer'
    // - '/api/key/*'