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

Releases: tempoxyz/tempo-ts

tempo.ts@0.7.5

27 Nov 23:06
72936a2

Choose a tag to compare

Patch Changes

  • 3c43d28 Thanks @jxom! - Propogated options in Handler.feePayer.

tempo.ts@0.7.4

27 Nov 22:16
d28b612

Choose a tag to compare

Patch Changes

  • 1b5c63b Thanks @jxom! - Added headers to Handler functions.

tempo.ts@0.7.3

27 Nov 20:45
bdea0fa

Choose a tag to compare

Patch Changes

  • f0369cd Thanks @jxom! - Added error handling to Handler.feePayer.

tempo.ts@0.7.2

27 Nov 03:04
dc0c4a0

Choose a tag to compare

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/*'

tempo.ts@0.7.1

27 Nov 00:24
8857d6d

Choose a tag to compare

Patch Changes

tempo.ts@0.7.0

26 Nov 21:26
c73da4e

Choose a tag to compare

Minor Changes

  • #88 f6da019 Thanks @jxom! - Removed userToken.amount from amm.mint, and flattened the API:

    Actions.amm.mint({
    - userToken: {
    -   address: '0x...',
    -   amount: 100n,
    - },
    + userTokenAddress: '0x...',
    - validatorToken: {
    -   address: '0x...',
    -   amount: 100n,
    - },
    + validatorTokenAddress: '0x...',
    + validatorTokenAmount: 100n,
      to: '0x...',
    })
  • #88 f6da019 Thanks @jxom! - Removed the following APIs:

    tempo.ts/viem

    • Actions.reward.cancel
    • Actions.reward.cancelSync
    • Actions.reward.getStream

    tempo.ts/wagmi

    • Actions.reward.cancel
    • Actions.reward.cancelSync
    • Actions.reward.getStream
    • Hooks.reward.useCancel
    • Hooks.reward.useCancelSync
    • Hooks.reward.useGetStream

Patch Changes

  • #87 e5ff1a4 Thanks @jxom! - Added Handler.feePayer server handler for fee sponsorship.

    Handler.feePayer returns a fetch or listener handler that can be used by the majority of
    server frameworks.

    For example:

    import { privateKeyToAccount } from "viem/accounts";
    import { Handler } from "tempo.ts/server";
    import { client } from "./viem.config";
    
    const handler = Handler.feePayer({
      account: privateKeyToAccount("0x..."),
      client,
    });
    
    // Node.js
    import { createServer } from "node:http";
    const server = createServer(handler.listener);
    server.listen(3000);
    
    // Bun
    Bun.serve(handler);
    
    // Cloudflare
    export default {
      fetch(request) {
        return handler.fetch(request);
      },
    };
    
    // Express
    import express from "express";
    const app = express();
    app.use(handler.listener);
    app.listen(3000);
  • #82 94388bc Thanks @jxom! - Added tempo.ts/server entrypoint with a Handler module. The Handler module provides a keyManager handler to instantiate a lightweight Key Manager API to use for WebAuthn credential management.

    Each Handler function returns a fetch or listener handler that can be used by the majority of
    server frameworks.

    For example:

    import { Handler, Kv } from "tempo.ts/server";
    
    const handler = Handler.keyManager({ kv: Kv.memory() });
    
    // Node.js
    import { createServer } from "node:http";
    const server = createServer(handler.listener);
    server.listen(3000);
    
    // Bun
    Bun.serve(handler);
    
    // Cloudflare
    export default {
      fetch(request) {
        return handler.fetch(request);
      },
    };
    
    // Express
    import express from "express";
    const app = express();
    app.use(handler.listener);
    app.listen(3000);

tempo.ts@0.6.2

24 Nov 23:51
5aed989

Choose a tag to compare

Patch Changes

tempo.ts@0.6.1

24 Nov 21:54
178a34b

Choose a tag to compare

Patch Changes

tempo.ts@0.6.0

24 Nov 21:44
5faba54

Choose a tag to compare

Minor Changes

  • #71 95d4649 Thanks @gorried! - Renamed Instance#faucet.address to faucet.addresses in order to support multiple tokens.

  • #78 6c20dc0 Thanks @jxom! - Breaking: Removed feePayer from Transaction. Extract the feePayer from TransactionReceipt instead.

Patch Changes

  • 57ee208 Thanks @jxom! - Removed sig envelope assertions on account signing.

  • #74 b604600 Thanks @gorried! - Fixed formatting of addresses when starting prool Instance

  • e82713f Thanks @jxom! - Normalized credential before storing.

tempo.ts@0.5.4

18 Nov 04:58
21de761

Choose a tag to compare

Patch Changes

  • 3961295 Thanks @jxom! - Added timeout property to faucet.fundSync.