chore: Use Bun instead of yarn as a package manager

pull/1089/head
Jonathan Haines 2025-04-02 09:33:32 +11:00
parent 542391f8db
commit e369d434d4
No known key found for this signature in database
GPG Key ID: A045A2D259E8FB45
83 changed files with 337 additions and 16440 deletions

View File

@ -2,5 +2,5 @@
- [ ] Add tests - [ ] Add tests
- [ ] Run tests - [ ] Run tests
- [ ] `yarn changeset` at the top of this repo and push the changeset - [ ] `bun changeset` at the top of this repo and push the changeset
- [ ] Follow [the contribution guide](https://github.com/honojs/middleware?tab=readme-ov-file#how-to-contribute) - [ ] Follow [the contribution guide](https://github.com/honojs/middleware?tab=readme-ov-file#how-to-contribute)

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/ajv-validator'
node-version: 20.x - run: bun --filter './packages/ajv-validator' build
- run: yarn workspaces focus hono-middleware @hono/ajv-validator - run: bun --filter './packages/ajv-validator' publint
- run: yarn workspace @hono/ajv-validator build - run: bun --filter './packages/ajv-validator' typecheck
- run: yarn workspace @hono/ajv-validator publint - run: bun eslint packages/ajv-validator
- run: yarn workspace @hono/ajv-validator typecheck - run: bun vitest --coverage --project @hono/ajv-validator
- run: yarn eslint packages/ajv-validator
- run: yarn test --coverage --project @hono/ajv-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/arktype-validator'
node-version: 20.x - run: bun --filter './packages/arktype-validator' build
- run: yarn workspaces focus hono-middleware @hono/arktype-validator - run: bun --filter './packages/arktype-validator' publint
- run: yarn workspace @hono/arktype-validator build - run: bun --filter './packages/arktype-validator' typecheck
- run: yarn workspace @hono/arktype-validator publint - run: bun eslint packages/arktype-validator
- run: yarn workspace @hono/arktype-validator typecheck - run: bun vitest --coverage --project @hono/arktype-validator
- run: yarn eslint packages/arktype-validator
- run: yarn test --coverage --project @hono/arktype-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/auth-js'
node-version: 20.x - run: bun --filter './packages/auth-js' build
- run: yarn workspaces focus hono-middleware @hono/auth-js - run: bun --filter './packages/auth-js' publint
- run: yarn workspace @hono/auth-js build - run: bun --filter './packages/auth-js' typecheck
- run: yarn workspace @hono/auth-js publint - run: bun eslint packages/auth-js
- run: yarn workspace @hono/auth-js typecheck - run: bun vitest --coverage --project @hono/auth-js
- run: yarn eslint packages/auth-js
- run: yarn test --coverage --project @hono/auth-js
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/bun-transpiler'
bun-version: 1.1.32 - run: bun --filter './packages/bun-transpiler' build
- run: yarn workspaces focus hono-middleware @hono/bun-transpiler - run: bun --filter './packages/bun-transpiler' publint
- run: yarn workspace @hono/bun-transpiler build - run: bun --filter './packages/bun-transpiler' typecheck
- run: yarn workspace @hono/bun-transpiler publint - run: bun eslint packages/bun-transpiler
- run: yarn workspace @hono/bun-transpiler typecheck - run: bun --filter './packages/bun-transpiler' test --coverage --coverage-reporter lcov
- run: yarn eslint packages/bun-transpiler
- run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/casbin'
node-version: 20.x - run: bun --filter './packages/casbin' build
- run: yarn workspaces focus hono-middleware @hono/casbin - run: bun --filter './packages/casbin' publint
- run: yarn workspace @hono/casbin build - run: bun --filter './packages/casbin' typecheck
- run: yarn workspace @hono/casbin publint - run: bun eslint packages/casbin
- run: yarn workspace @hono/casbin typecheck - run: bun vitest --coverage --project @hono/casbin
- run: yarn eslint packages/casbin
- run: yarn test --coverage --project @hono/casbin
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/class-validator'
node-version: 20.x - run: bun --filter './packages/class-validator' build
- run: yarn workspaces focus hono-middleware @hono/class-validator - run: bun --filter './packages/class-validator' publint
- run: yarn workspace @hono/class-validator build - run: bun --filter './packages/class-validator' typecheck
- run: yarn workspace @hono/class-validator publint - run: bun eslint packages/class-validator
- run: yarn workspace @hono/class-validator typecheck - run: bun vitest --coverage --project @hono/class-validator
- run: yarn eslint packages/class-validator
- run: yarn test --coverage --project @hono/class-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/clerk-auth'
node-version: 20.x - run: bun --filter './packages/clerk-auth' build
- run: yarn workspaces focus hono-middleware @hono/clerk-auth - run: bun --filter './packages/clerk-auth' publint
- run: yarn workspace @hono/clerk-auth build - run: bun --filter './packages/clerk-auth' typecheck
- run: yarn workspace @hono/clerk-auth publint - run: bun eslint packages/clerk-auth
- run: yarn workspace @hono/clerk-auth typecheck - run: bun vitest --coverage --project @hono/clerk-auth
- run: yarn eslint packages/clerk-auth
- run: yarn test --coverage --project @hono/clerk-auth
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/cloudflare-access'
node-version: 20.x - run: bun --filter './packages/cloudflare-access' build
- run: yarn workspaces focus hono-middleware @hono/cloudflare-access - run: bun --filter './packages/cloudflare-access' publint
- run: yarn workspace @hono/cloudflare-access build - run: bun --filter './packages/cloudflare-access' typecheck
- run: yarn workspace @hono/cloudflare-access publint - run: bun eslint packages/cloudflare-access
- run: yarn workspace @hono/cloudflare-access typecheck - run: bun vitest --coverage --project @hono/cloudflare-access
- run: yarn eslint packages/cloudflare-access
- run: yarn test --coverage --project @hono/cloudflare-access
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/conform-validator'
node-version: 20.x - run: bun --filter './packages/conform-validator' build
- run: yarn workspaces focus hono-middleware @hono/conform-validator - run: bun --filter './packages/conform-validator' publint
- run: yarn workspace @hono/conform-validator build - run: bun --filter './packages/conform-validator' typecheck
- run: yarn workspace @hono/conform-validator publint - run: bun eslint packages/conform-validator
- run: yarn workspace @hono/conform-validator typecheck - run: bun vitest --coverage --project @hono/conform-validator
- run: yarn eslint packages/conform-validator
- run: yarn test --coverage --project @hono/conform-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/effect-validator'
node-version: 20.x - run: bun --filter './packages/effect-validator' build
- run: yarn workspaces focus hono-middleware @hono/effect-validator - run: bun --filter './packages/effect-validator' publint
- run: yarn workspace @hono/effect-validator build - run: bun --filter './packages/effect-validator' typecheck
- run: yarn workspace @hono/effect-validator publint - run: bun eslint packages/effect-validator
- run: yarn workspace @hono/effect-validator typecheck - run: bun vitest --coverage --project @hono/effect-validator
- run: yarn eslint packages/effect-validator
- run: yarn test --coverage --project @hono/effect-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/esbuild-transpiler'
node-version: 20.x - run: bun --filter './packages/esbuild-transpiler' build
- run: yarn workspaces focus hono-middleware @hono/esbuild-transpiler - run: bun --filter './packages/esbuild-transpiler' publint
- run: yarn workspace @hono/esbuild-transpiler build - run: bun --filter './packages/esbuild-transpiler' typecheck
- run: yarn workspace @hono/esbuild-transpiler publint - run: bun eslint packages/esbuild-transpiler
- run: yarn workspace @hono/esbuild-transpiler typecheck - run: bun vitest --coverage --project @hono/esbuild-transpiler
- run: yarn eslint packages/esbuild-transpiler
- run: yarn test --coverage --project @hono/esbuild-transpiler
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/event-emitter'
node-version: 20.x - run: bun --filter './packages/event-emitter' build
- run: yarn workspaces focus hono-middleware @hono/event-emitter - run: bun --filter './packages/event-emitter' publint
- run: yarn workspace @hono/event-emitter build - run: bun --filter './packages/event-emitter' typecheck
- run: yarn workspace @hono/event-emitter publint - run: bun eslint packages/event-emitter
- run: yarn workspace @hono/event-emitter typecheck - run: bun vitest --coverage --project @hono/event-emitter
- run: yarn eslint packages/event-emitter
- run: yarn test --coverage --project @hono/event-emitter
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/firebase-auth'
node-version: 20.x - run: bun --filter './packages/firebase-auth' build
- run: yarn workspaces focus hono-middleware @hono/firebase-auth - run: bun --filter './packages/firebase-auth' publint
- run: yarn workspace @hono/firebase-auth build - run: bun --filter './packages/firebase-auth' typecheck
- run: yarn workspace @hono/firebase-auth publint - run: bun eslint packages/firebase-auth
- run: yarn workspace @hono/firebase-auth typecheck - run: bun vitest --coverage --project @hono/firebase-auth
- run: yarn eslint packages/firebase-auth
- run: yarn test --coverage --project @hono/firebase-auth
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/graphql-server'
node-version: 20.x - run: bun --filter './packages/graphql-server' build
- run: yarn workspaces focus hono-middleware @hono/graphql-server - run: bun --filter './packages/graphql-server' publint
- run: yarn workspace @hono/graphql-server build - run: bun --filter './packages/graphql-server' typecheck
- run: yarn workspace @hono/graphql-server publint - run: bun eslint packages/graphql-server
- run: yarn workspace @hono/graphql-server typecheck - run: bun vitest --coverage --project @hono/graphql-server
- run: yarn eslint packages/graphql-server
- run: yarn test --coverage --project @hono/graphql-server
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/hello'
node-version: 20.x - run: bun --filter './packages/hello' build
- run: yarn workspaces focus hono-middleware @hono/hello - run: bun --filter './packages/hello' publint
- run: yarn workspace @hono/hello build - run: bun --filter './packages/hello' typecheck
- run: yarn workspace @hono/hello publint - run: bun eslint packages/hello
- run: yarn workspace @hono/hello typecheck - run: bun vitest --coverage --project @hono/hello
- run: yarn eslint packages/hello
- run: yarn test --coverage --project @hono/hello
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/medley-router'
node-version: 20.x - run: bun --filter './packages/medley-router' build
- run: yarn workspaces focus hono-middleware @hono/medley-router - run: bun --filter './packages/medley-router' publint
- run: yarn workspace @hono/medley-router build - run: bun --filter './packages/medley-router' typecheck
- run: yarn workspace @hono/medley-router publint - run: bun eslint packages/medley-router
- run: yarn workspace @hono/medley-router typecheck - run: bun vitest --coverage --project @hono/medley-router
- run: yarn eslint packages/medley-router
- run: yarn test --coverage --project @hono/medley-router
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/node-ws'
node-version: 20.x - run: bun --filter './packages/node-ws' build
- run: yarn workspaces focus hono-middleware @hono/node-ws - run: bun --filter './packages/node-ws' publint
- run: yarn workspace @hono/node-ws build - run: bun --filter './packages/node-ws' typecheck
- run: yarn workspace @hono/node-ws publint - run: bun eslint packages/node-ws
- run: yarn workspace @hono/node-ws typecheck - run: bun vitest --coverage --project @hono/node-ws
- run: yarn eslint packages/node-ws
- run: yarn test --coverage --project @hono/node-ws
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/oauth-providers'
node-version: 20.x - run: bun --filter './packages/oauth-providers' build
- run: yarn workspaces focus hono-middleware @hono/oauth-providers - run: bun --filter './packages/oauth-providers' publint
- run: yarn workspace @hono/oauth-providers build - run: bun --filter './packages/oauth-providers' typecheck
- run: yarn workspace @hono/oauth-providers publint - run: bun eslint packages/oauth-providers
- run: yarn workspace @hono/oauth-providers typecheck - run: bun vitest --coverage --project @hono/oauth-providers
- run: yarn eslint packages/oauth-providers
- run: yarn test --coverage --project @hono/oauth-providers
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/oidc-auth'
node-version: 20.x - run: bun --filter './packages/oidc-auth' build
- run: yarn workspaces focus hono-middleware @hono/oidc-auth - run: bun --filter './packages/oidc-auth' publint
- run: yarn workspace @hono/oidc-auth build - run: bun --filter './packages/oidc-auth' typecheck
- run: yarn workspace @hono/oidc-auth publint - run: bun eslint packages/oidc-auth
- run: yarn workspace @hono/oidc-auth typecheck - run: bun vitest --coverage --project @hono/oidc-auth
- run: yarn eslint packages/oidc-auth
- run: yarn test --coverage --project @hono/oidc-auth
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/otel'
node-version: 20.x - run: bun --filter './packages/otel' build
- run: yarn workspaces focus hono-middleware @hono/otel - run: bun --filter './packages/otel' publint
- run: yarn workspace @hono/otel build - run: bun --filter './packages/otel' typecheck
- run: yarn workspace @hono/otel publint - run: bun eslint packages/otel
- run: yarn workspace @hono/otel typecheck - run: bun vitest --coverage --project @hono/otel
- run: yarn eslint packages/otel
- run: yarn test --coverage --project @hono/otel
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/prometheus'
node-version: 20.x - run: bun --filter './packages/prometheus' build
- run: yarn workspaces focus hono-middleware @hono/prometheus - run: bun --filter './packages/prometheus' publint
- run: yarn workspace @hono/prometheus build - run: bun --filter './packages/prometheus' typecheck
- run: yarn workspace @hono/prometheus publint - run: bun eslint packages/prometheus
- run: yarn workspace @hono/prometheus typecheck - run: bun vitest --coverage --project @hono/prometheus
- run: yarn eslint packages/prometheus
- run: yarn test --coverage --project @hono/prometheus
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/qwik-city'
node-version: 20.x - run: bun --filter './packages/qwik-city' build
- run: yarn workspaces focus hono-middleware @hono/qwik-city - run: bun --filter './packages/qwik-city' publint
- run: yarn workspace @hono/qwik-city build - run: bun --filter './packages/qwik-city' typecheck
- run: yarn workspace @hono/qwik-city publint - run: bun eslint packages/qwik-city
- run: yarn workspace @hono/qwik-city typecheck # - run: bun vitest --coverage --project @hono/qwik-city
- run: yarn eslint packages/qwik-city
# - run: yarn test --coverage --project @hono/qwik-city
# - uses: codecov/codecov-action@v5 # - uses: codecov/codecov-action@v5
# with: # with:
# fail_ci_if_error: true # fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/react-compat'
node-version: 20.x - run: bun --filter './packages/react-compat' build
- run: yarn workspaces focus hono-middleware @hono/react-compat - run: bun --filter './packages/react-compat' publint
- run: yarn workspace @hono/react-compat build - run: bun --filter './packages/react-compat' typecheck
- run: yarn workspace @hono/react-compat publint - run: bun eslint packages/react-compat
- run: yarn workspace @hono/react-compat typecheck # - run: bun vitest --coverage --project @hono/react-compat
- run: yarn eslint packages/react-compat
# - run: yarn test --coverage --project @hono/react-compat
# - uses: codecov/codecov-action@v5 # - uses: codecov/codecov-action@v5
# with: # with:
# fail_ci_if_error: true # fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/react-renderer'
node-version: 20.x - run: bun --filter './packages/react-renderer' build
- run: yarn workspaces focus hono-middleware @hono/react-renderer - run: bun --filter './packages/react-renderer' publint
- run: yarn workspace @hono/react-renderer build - run: bun --filter './packages/react-renderer' typecheck
- run: yarn workspace @hono/react-renderer publint - run: bun eslint packages/react-renderer
- run: yarn workspace @hono/react-renderer typecheck - run: bun vitest --coverage --project @hono/react-renderer
- run: yarn eslint packages/react-renderer
- run: yarn test --coverage --project @hono/react-renderer
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/sentry'
node-version: 20.x - run: bun --filter './packages/sentry' build
- run: yarn workspaces focus hono-middleware @hono/sentry - run: bun --filter './packages/sentry' publint
- run: yarn workspace @hono/sentry build - run: bun --filter './packages/sentry' typecheck
- run: yarn workspace @hono/sentry publint - run: bun eslint packages/sentry
- run: yarn workspace @hono/sentry typecheck - run: bun vitest --coverage --project @hono/sentry
- run: yarn eslint packages/sentry
- run: yarn test --coverage --project @hono/sentry
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/standard-validator'
node-version: 20.x - run: bun --filter './packages/standard-validator' build
- run: yarn workspaces focus hono-middleware @hono/standard-validator - run: bun --filter './packages/standard-validator' publint
- run: yarn workspace @hono/standard-validator build - run: bun --filter './packages/standard-validator' typecheck
- run: yarn workspace @hono/standard-validator publint - run: bun eslint packages/standard-validator
- run: yarn workspace @hono/standard-validator typecheck - run: bun vitest --coverage --project @hono/standard-validator
- run: yarn eslint packages/standard-validator
- run: yarn test --coverage --project @hono/standard-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/swagger-editor'
node-version: 20.x - run: bun --filter './packages/swagger-editor' build
- run: yarn workspaces focus hono-middleware @hono/swagger-editor - run: bun --filter './packages/swagger-editor' publint
- run: yarn workspace @hono/swagger-editor build - run: bun --filter './packages/swagger-editor' typecheck
- run: yarn workspace @hono/swagger-editor publint - run: bun eslint packages/swagger-editor
- run: yarn workspace @hono/swagger-editor typecheck - run: bun vitest --coverage --project @hono/swagger-editor
- run: yarn eslint packages/swagger-editor
- run: yarn test --coverage --project @hono/swagger-editor
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/swagger-ui'
node-version: 20.x - run: bun --filter './packages/swagger-ui' build
- run: yarn workspaces focus hono-middleware @hono/swagger-ui - run: bun --filter './packages/swagger-ui' publint
- run: yarn workspace @hono/swagger-ui build - run: bun --filter './packages/swagger-ui' typecheck
- run: yarn workspace @hono/swagger-ui publint - run: bun eslint packages/swagger-ui
- run: yarn workspace @hono/swagger-ui typecheck - run: bun vitest --coverage --project @hono/swagger-ui
- run: yarn eslint packages/swagger-ui
- run: yarn test --coverage --project @hono/swagger-ui
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/trpc-server'
node-version: 20.x - run: bun --filter './packages/trpc-server' build
- run: yarn workspaces focus hono-middleware @hono/trpc-server - run: bun --filter './packages/trpc-server' publint
- run: yarn workspace @hono/trpc-server build - run: bun --filter './packages/trpc-server' typecheck
- run: yarn workspace @hono/trpc-server publint - run: bun eslint packages/trpc-server
- run: yarn workspace @hono/trpc-server typecheck - run: bun vitest --coverage --project @hono/trpc-server
- run: yarn eslint packages/trpc-server
- run: yarn test --coverage --project @hono/trpc-server
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/tsyringe'
node-version: 20.x - run: bun --filter './packages/tsyringe' build
- run: yarn workspaces focus hono-middleware @hono/tsyringe - run: bun --filter './packages/tsyringe' publint
- run: yarn workspace @hono/tsyringe build - run: bun --filter './packages/tsyringe' typecheck
- run: yarn workspace @hono/tsyringe publint - run: bun eslint packages/tsyringe
- run: yarn workspace @hono/tsyringe typecheck - run: bun vitest --coverage --project @hono/tsyringe
- run: yarn eslint packages/tsyringe
- run: yarn test --coverage --project @hono/tsyringe
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/typebox-validator'
node-version: 20.x - run: bun --filter './packages/typebox-validator' build
- run: yarn workspaces focus hono-middleware @hono/typebox-validator - run: bun --filter './packages/typebox-validator' publint
- run: yarn workspace @hono/typebox-validator build - run: bun --filter './packages/typebox-validator' typecheck
- run: yarn workspace @hono/typebox-validator publint - run: bun eslint packages/typebox-validator
- run: yarn workspace @hono/typebox-validator typecheck - run: bun vitest --coverage --project @hono/typebox-validator
- run: yarn eslint packages/typebox-validator
- run: yarn test --coverage --project @hono/typebox-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/typia-validator'
node-version: 20.x - run: bun --filter './packages/typia-validator' build
- run: yarn workspaces focus hono-middleware @hono/typia-validator - run: bun --filter './packages/typia-validator' publint
- run: yarn workspace @hono/typia-validator build - run: bun --filter './packages/typia-validator' typecheck
- run: yarn workspace @hono/typia-validator publint - run: bun eslint packages/typia-validator
- run: yarn workspace @hono/typia-validator typecheck - run: bun vitest --coverage --project @hono/typia-validator
- run: yarn eslint packages/typia-validator
- run: yarn test --coverage --project @hono/typia-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/valibot-validator'
node-version: 20.x - run: bun --filter './packages/valibot-validator' build
- run: yarn workspaces focus hono-middleware @hono/valibot-validator - run: bun --filter './packages/valibot-validator' publint
- run: yarn workspace @hono/valibot-validator build - run: bun --filter './packages/valibot-validator' typecheck
- run: yarn workspace @hono/valibot-validator publint - run: bun eslint packages/valibot-validator
- run: yarn workspace @hono/valibot-validator typecheck - run: bun vitest --coverage --project @hono/valibot-validator
- run: yarn eslint packages/valibot-validator
- run: yarn test --coverage --project @hono/valibot-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/zod-openapi' --filter './packages/zod-validator'
node-version: 20.x - run: bun --filter './packages/zod-openapi' build
- run: yarn workspaces focus hono-middleware @hono/zod-openapi - run: bun --filter './packages/zod-openapi' publint
- run: yarn workspaces foreach --topological --recursive --from @hono/zod-openapi run build - run: bun --filter './packages/zod-openapi' typecheck
- run: yarn workspace @hono/zod-openapi publint - run: bun eslint packages/zod-openapi
- run: yarn workspace @hono/zod-openapi typecheck - run: bun vitest --coverage --project @hono/zod-openapi
- run: yarn eslint packages/zod-openapi
- run: yarn test --coverage --project @hono/zod-openapi
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -14,15 +14,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: oven-sh/setup-bun@v2
with: - run: bun install --filter './' --filter './packages/zod-validator'
node-version: 20.x - run: bun --filter './packages/zod-validator' build
- run: yarn workspaces focus hono-middleware @hono/zod-validator - run: bun --filter './packages/zod-validator' publint
- run: yarn workspace @hono/zod-validator build - run: bun --filter './packages/zod-validator' typecheck
- run: yarn workspace @hono/zod-validator publint - run: bun eslint packages/zod-validator
- run: yarn workspace @hono/zod-validator typecheck - run: bun vitest --coverage --project @hono/zod-validator
- run: yarn eslint packages/zod-validator
- run: yarn test --coverage --project @hono/zod-validator
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
fail_ci_if_error: true fail_ci_if_error: true

View File

@ -15,22 +15,17 @@ jobs:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js 18.x - name: Setup Bun
uses: actions/setup-node@v4 uses: oven-sh/setup-bun@v2
with:
node-version: 20.x
- name: Install Dependencies - name: Install Dependencies
run: yarn run: bun install
- name: Build
run: yarn build
- name: Create Release Pull Request or Publish to npm - name: Create Release Pull Request or Publish to npm
id: changesets id: changesets
uses: changesets/action@v1 uses: changesets/action@v1
with: with:
publish: yarn changeset publish publish: bun run changeset publish
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

9
.gitignore vendored
View File

@ -4,15 +4,6 @@ node_modules
*.tgz *.tgz
coverage coverage
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-error.log
# for debug or playing # for debug or playing
sandbox sandbox
*.log *.log

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1,5 +0,0 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.0.2.cjs
nmHoistingLimits: 'workspaces'

View File

@ -44,14 +44,14 @@ and include `.test.` in their file name, for example; `index.test.ts`.
Run the following command in the middleware directory to run tests. Run the following command in the middleware directory to run tests.
```plain ```plain
yarn test bun test
``` ```
We use [changesets](https://github.com/changesets/changesets) to manage releases and CHANGELOG. We use [changesets](https://github.com/changesets/changesets) to manage releases and CHANGELOG.
Run the following command at the top level to describe any changes. Run the following command at the top level to describe any changes.
```plain ```
yarn changeset bun changeset
``` ```
When merged into the main, a pull request for release is created. When merged into the main, a pull request for release is created.

BIN
bun.lockb 100755

Binary file not shown.

View File

@ -1,7 +1,7 @@
import baseConfig from '@hono/eslint-config' import baseConfig from '@hono/eslint-config'
import { defineConfig, globalIgnores } from 'eslint/config' import { defineConfig, globalIgnores } from 'eslint/config'
export default defineConfig(globalIgnores(['.yarn', '**/coverage', '**/dist']), { export default defineConfig(globalIgnores(['**/coverage', '**/dist']), {
extends: baseConfig, extends: baseConfig,
languageOptions: { languageOptions: {

View File

@ -2,17 +2,15 @@
"name": "hono-middleware", "name": "hono-middleware",
"version": "0.0.0", "version": "0.0.0",
"description": "Third-party middleware for Hono", "description": "Third-party middleware for Hono",
"workspaces": { "workspaces": [
"packages": [ "packages/*"
"packages/*" ],
]
},
"scripts": { "scripts": {
"build": "yarn workspaces foreach --all --topological --verbose run build", "build": "bun run --filter '*' build",
"publint": "yarn workspaces foreach --all --topological --verbose run publint", "publint": "bun run --filter '*' publint",
"typecheck": "yarn tsc --build", "typecheck": "bun run tsc --build",
"typecheck:clean": "yarn tsc --build --clean", "typecheck:clean": "bun run tsc --build --clean",
"typecheck:watch": "yarn tsc --build --watch", "typecheck:watch": "bun run tsc --build --watch",
"test": "vitest", "test": "vitest",
"lint": "eslint 'packages/**/*.{ts,tsx}'", "lint": "eslint 'packages/**/*.{ts,tsx}'",
"lint:fix": "eslint --fix 'packages/**/*.{ts,tsx}'", "lint:fix": "eslint --fix 'packages/**/*.{ts,tsx}'",
@ -43,5 +41,5 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
}, },
"packageManager": "yarn@4.0.2" "packageManager": "bun@1.2.8"
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -50,4 +50,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -11,7 +11,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -45,10 +45,10 @@
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4", "@arethetypeswrong/cli": "^0.17.4",
"arktype": "^2.0.0-dev.14", "arktype": "2.0.0-dev.14",
"publint": "^0.3.9", "publint": "^0.3.9",
"tsup": "^8.4.0", "tsup": "^8.4.0",
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -38,7 +38,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup src/index.ts src/react.tsx", "build": "tsup src/index.ts src/react.tsx",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack --profile node16 && publint", "publint": "attw --pack --profile node16 && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -72,4 +72,4 @@
"engines": { "engines": {
"node": ">=18.4.0" "node": ">=18.4.0"
} }
} }

View File

@ -11,7 +11,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts --external bun", "build": "tsup ./src/index.ts --external bun",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "bun test" "test": "bun test"
@ -52,4 +52,4 @@
"engines": { "engines": {
"node": ">=18.14.1" "node": ">=18.14.1"
} }
} }

View File

@ -8,7 +8,7 @@ const TS = 'const add = (a: number, b: number): number => a + b'
const TS_TRANSPILED = 'const add=(a,b)=>a+b;' const TS_TRANSPILED = 'const add=(a,b)=>a+b;'
const TSX = 'const element = <h1>hello world</h1>' const TSX = 'const element = <h1>hello world</h1>'
const TSX_TRANSPILED = const TSX_TRANSPILED =
'const element=jsxDEV("h1",{children:"hello world"},undefined,false,undefined,this);' 'const element=jsxDEV_7x81h0kn("h1",{children:"hello world"},undefined,false,undefined,this);'
const BAD = 'function { !!! !@#$ add(a: INT) return a + b + c; }' const BAD = 'function { !!! !@#$ add(a: INT) return a + b + c; }'
describe('Bun Transpiler middleware', () => { describe('Bun Transpiler middleware', () => {
@ -43,7 +43,7 @@ describe('Bun Transpiler middleware', () => {
const res = await app.request(`${HOST}/script.tsx`) const res = await app.request(`${HOST}/script.tsx`)
expect(res).not.toBeNull() expect(res).not.toBeNull()
expect(res.status).toBe(200) expect(res.status).toBe(200)
expect(await res.text()).toBe(TSX_TRANSPILED) expect(await res.text()).toMatch(TSX_TRANSPILED)
expect(res.headers.get('content-type')).toBe('application/javascript') expect(res.headers.get('content-type')).toBe('application/javascript')
}) })

View File

@ -33,7 +33,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts ./src/helper/index.ts", "build": "tsup ./src/index.ts ./src/helper/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack --profile node16 && publint", "publint": "attw --pack --profile node16 && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -61,4 +61,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -1,6 +1,5 @@
{ {
"name": "@hono/class-validator", "name": "@hono/class-validator",
"packageManager": "yarn@4.0.2",
"description": "Validator middleware using class-validator", "description": "Validator middleware using class-validator",
"version": "1.0.0", "version": "1.0.0",
"type": "module", "type": "module",
@ -24,7 +23,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -55,4 +54,4 @@
"class-validator": "^0.14.1", "class-validator": "^0.14.1",
"reflect-metadata": "^0.2.2" "reflect-metadata": "^0.2.2"
} }
} }

View File

@ -11,7 +11,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -56,4 +56,4 @@
"engines": { "engines": {
"node": ">=16.x.x" "node": ">=16.x.x"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -48,4 +48,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -11,7 +11,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -57,4 +57,4 @@
"yup": "^1.4.0", "yup": "^1.4.0",
"zod": "^3.23.8" "zod": "^3.23.8"
} }
} }

View File

@ -23,7 +23,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -51,4 +51,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/*.ts ./src/transpilers/*.ts --no-splitting --external esbuild-wasm,esbuild", "build": "tsup ./src/*.ts ./src/transpilers/*.ts --no-splitting --external esbuild-wasm,esbuild",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -83,4 +83,4 @@
"engines": { "engines": {
"node": ">=18.14.1" "node": ">=18.14.1"
} }
} }

View File

@ -11,7 +11,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -53,4 +53,4 @@
"engines": { "engines": {
"node": ">=16.0.0" "node": ">=16.0.0"
} }
} }

View File

@ -275,5 +275,5 @@ If you are interested, send me PR would be greatly appreciated!
To test this code in your local environment, execute the following command. To test this code in your local environment, execute the following command.
``` ```
$ yarn test-with-emulator $ bun run test-with-emulator
``` ```

View File

@ -15,7 +15,7 @@
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest", "test": "vitest",
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint" "publint": "attw --pack && publint"
}, },
"exports": { "exports": {
@ -57,4 +57,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -29,7 +29,7 @@
}, },
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -50,4 +50,4 @@
"engines": { "engines": {
"node": ">=16.0.0" "node": ">=16.0.0"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -48,4 +48,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -11,7 +11,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -52,4 +52,4 @@
"dependencies": { "dependencies": {
"@medley/router": "^0.2.1" "@medley/router": "^0.2.1"
} }
} }

View File

@ -11,7 +11,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"

View File

@ -11,7 +11,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts ./src/providers/**/index.ts ./src/providers/**/types.ts --no-splitting", "build": "tsup ./src/index.ts ./src/providers/**/index.ts ./src/providers/**/types.ts --no-splitting",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -77,4 +77,4 @@
"engines": { "engines": {
"node": ">=18.4.0" "node": ">=18.4.0"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -56,4 +56,4 @@
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=18.0.0"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -54,4 +54,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -50,4 +50,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json" "typecheck": "tsc -b tsconfig.json"
}, },
@ -53,4 +53,4 @@
"engines": { "engines": {
"node": ">=18" "node": ">=18"
} }
} }

View File

@ -11,7 +11,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src", "build": "tsup ./src",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json" "typecheck": "tsc -b tsconfig.json"
}, },
@ -34,4 +34,4 @@
"tsup": "^8.4.0", "tsup": "^8.4.0",
"typescript": "^5.8.2" "typescript": "^5.8.2"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -58,4 +58,4 @@
"engines": { "engines": {
"node": ">=18" "node": ">=18"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -52,4 +52,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -23,7 +23,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -54,4 +54,4 @@
"vitest": "^3.0.8", "vitest": "^3.0.8",
"zod": "^3.24.0" "zod": "^3.24.0"
} }
} }

View File

@ -23,7 +23,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -49,4 +49,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -23,7 +23,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -50,4 +50,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -54,4 +54,4 @@
"engines": { "engines": {
"node": ">=16.0.0" "node": ">=16.0.0"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -51,4 +51,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -22,7 +22,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -50,4 +50,4 @@
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -32,7 +32,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts ./src/http.ts", "build": "tsup ./src/index.ts ./src/http.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack --profile node16 && publint", "publint": "attw --pack --profile node16 && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -61,4 +61,4 @@
"typia": "^8.0.3", "typia": "^8.0.3",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -16,7 +16,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -44,4 +44,4 @@
"valibot": "^1.0.0", "valibot": "^1.0.0",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -10,7 +10,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -58,4 +58,4 @@
"engines": { "engines": {
"node": ">=16.0.0" "node": ">=16.0.0"
} }
} }

View File

@ -23,7 +23,7 @@
], ],
"scripts": { "scripts": {
"build": "tsup ./src/index.ts", "build": "tsup ./src/index.ts",
"prepack": "yarn build", "prepack": "bun run build",
"publint": "attw --pack && publint", "publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json", "typecheck": "tsc -b tsconfig.json",
"test": "vitest" "test": "vitest"
@ -51,4 +51,4 @@
"vitest": "^3.0.8", "vitest": "^3.0.8",
"zod": "^3.22.4" "zod": "^3.22.4"
} }
} }

15118
yarn.lock

File diff suppressed because it is too large Load Diff