Skip to content

hono-do@1.1.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 11:24
· 16 commits to main since this release
a0fbd34

Minor Changes

  • #31 44c46e2 Thanks @sor4chi! - feat: enable to get bindings env from vars

    import { generateHonoObject } from "hono-do";
    
    type Env = {
      Bindings: {
        KV: KVNamespace;
      };
    };
    
    export const Batcher = generateHonoObject<Env>(
      "/",
      async (app, state, vars) => {
        vars.env.KV; // KVNamespace
      },
    );