Skip to content
Myr

feat(helper/adapter): add `runtime` option to `env` (#1622)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* feat(helper/adapter): add `runtime` option to `env` * denoify

authored by Yusuke Wada · committed by GitHub · parent 0bc72b8 · Browse files · 4 files+28 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+28 added−6 removed

  • other:+28 added−6 removed

4 files+28 added−6 removed

modified:deno_dist/helper/adapter/index.ts+13 added-2 removed
modified:deno_dist/context.ts+1 added-1 removed
1import type { Runtime } from './helper/adapter/index.ts'2import type { HonoRequest } from './request.ts'3import type { Env, FetchEventLike, NotFoundHandler, Input, TypedResponse } from './types.ts'4import type { CookieOptions } from './utils/cookie.ts'5import { serialize } from './utils/cookie.ts'6import type { StatusCode } from './utils/http-status.ts'7import { StreamingApi } from './utils/stream.ts'8import type { JSONValue, InterfaceToType } from './utils/types.ts'99type Runtime = 'node' | 'deno' | 'bun' | 'workerd' | 'fastly' | 'edge-light' | 'lagon' | 'other'10type HeaderRecord = Record<string, string | string[]>11type Data = string | ArrayBuffer | ReadableStream1213export interface ExecutionContext {
458 unmodified lines
modified:src/helper/adapter/index.ts+13 added-2 removed
modified:src/context.ts+1 added-1 removed
1import type { Runtime } from './helper/adapter'2import type { HonoRequest } from './request'3import type { Env, FetchEventLike, NotFoundHandler, Input, TypedResponse } from './types'4import type { CookieOptions } from './utils/cookie'5import { serialize } from './utils/cookie'6import type { StatusCode } from './utils/http-status'7import { StreamingApi } from './utils/stream'8import type { JSONValue, InterfaceToType } from './utils/types'99type Runtime = 'node' | 'deno' | 'bun' | 'workerd' | 'fastly' | 'edge-light' | 'lagon' | 'other'10type HeaderRecord = Record<string, string | string[]>11type Data = string | ArrayBuffer | ReadableStream1213export interface ExecutionContext {
458 unmodified lines