Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/actions/what-changed/action.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/actions/what-changed/main.ts

This file was deleted.

2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

- [ ] Add 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)
10 changes: 5 additions & 5 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
restore-keys: |
${{ runner.os }}-turbo-autofix-
${{ runner.os }}-turbo-
- uses: actions/setup-node@v5
- uses: oven-sh/setup-bun@v2
with:
node-version-file: .tool-versions
- run: yarn install
- run: yarn format:fix
- run: yarn lint:fix
bun-version-file: .tool-versions
- run: bun install
- run: bun format:fix
- run: bun lint:fix
- name: Apply fixes
uses: autofix-ci/action@v1
with:
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/ci-bun-transpiler.yml

This file was deleted.

44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
outputs:
packages: ${{ steps.set-packages.outputs.packages }}
permissions:
contents: 'read'
actions: 'read'
pull-requests: 'read'
contents: "read"
actions: "read"
pull-requests: "read"
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v4
id: setSHAs
- uses: actions/setup-node@v5
- uses: oven-sh/setup-bun@v2
with:
node-version-file: .tool-versions
- run: yarn workspaces focus what-changed
- uses: ./.github/actions/what-changed
bun-version-file: .tool-versions
- run: bun install --filter ./ --filter ./scripts/what-changed
- run: bun run what-changed
id: set-packages
with:
since: ${{ steps.setSHAs.outputs.base }}
env:
TURBO_SCM_BASE: ${{ steps.setSHAs.outputs.base }}

build:
runs-on: ubuntu-latest
Expand All @@ -38,14 +38,14 @@ jobs:
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: actions/setup-node@v5
- uses: oven-sh/setup-bun@v2
with:
node-version-file: .tool-versions
- run: yarn
- run: yarn publint
- run: yarn typecheck
- run: yarn lint
- run: yarn format
bun-version-file: .tool-versions
- run: bun install
- run: bun run publint
- run: bun run typecheck
- run: bun run lint
- run: bun run format

test:
runs-on: ubuntu-latest
Expand All @@ -57,17 +57,17 @@ jobs:

steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
- uses: oven-sh/setup-bun@v2
with:
node-version-file: .tool-versions
- run: yarn workspaces focus hono-middleware @hono/${{ matrix.package }}
- run: yarn workspaces foreach --topological --recursive --from @hono/${{ matrix.package }} run build
- run: yarn test --coverage --project @hono/${{ matrix.package }}
bun-version-file: .tool-versions
- run: bun install --filter ./ ${{ matrix.package.path }}
- run: bun run build --filter ${{ matrix.package.path }}
- run: bun run test --coverage --project ${{ matrix.package.name }}
id: test
if: ${{ matrix.package != 'eslint-config' && matrix.package != 'qwik-city' && matrix.package != 'react-compat' }}
- uses: codecov/codecov-action@v5
if: ${{ matrix.package != 'eslint-config' && matrix.package != 'qwik-city' && matrix.package != 'react-compat' }}
with:
fail_ci_if_error: true
directory: ./coverage
flags: ${{ matrix.package }}
flags: ${{ matrix.package.name }}
17 changes: 12 additions & 5 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,22 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-node@v5
- uses: actions/cache@v4
with:
node-version-file: .tool-versions
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- uses: oven-sh/setup-bun@v2
with:
bun-version-file: .tool-versions

- name: Install Dependencies
run: yarn
run: bun install

- name: Build
run: yarn workspaces foreach --all --topological --parallel --no-private run build
run: bun run build

- name: Publish to StackBlitz
run: yarn pkg-pr-new publish --compact --no-template './packages/*'
run: bun run pkg-pr-new publish --compact --no-template './packages/*'
40 changes: 20 additions & 20 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
outputs:
packages: ${{ steps.set-packages.outputs.packages }}
permissions:
contents: 'read'
actions: 'read'
pull-requests: 'read'
contents: "read"
actions: "read"
pull-requests: "read"
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-node@v5
- uses: oven-sh/setup-bun@v2
with:
node-version-file: .tool-versions
- run: yarn workspaces focus what-changed
- uses: ./.github/actions/what-changed
bun-version-file: .tool-versions
- run: bun install --filter ./ --filter ./scripts/what-changed
- run: bun run what-changed
id: set-packages

build:
Expand All @@ -37,14 +37,14 @@ jobs:
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: actions/setup-node@v5
- uses: oven-sh/setup-bun@v2
with:
node-version-file: .tool-versions
- run: yarn
- run: yarn publint
- run: yarn typecheck
- run: yarn lint
- run: yarn format
bun-version-file: .tool-versions
- run: bun install
- run: bun run publint
- run: bun run typecheck
- run: bun run lint
- run: bun run format

dry-run:
runs-on: ubuntu-latest
Expand All @@ -67,17 +67,17 @@ jobs:

steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
- uses: oven-sh/setup-bun@v2
with:
node-version-file: .tool-versions
- run: yarn workspaces focus hono-middleware @hono/${{ matrix.package }}
- run: yarn workspaces foreach --topological --recursive --from @hono/${{ matrix.package }} run build
- run: yarn test --coverage --project @hono/${{ matrix.package }}
bun-version-file: .tool-versions
- run: bun install --filter ./ ${{ matrix.package.path }}
- run: bun run build --filter ${{ matrix.package.path }}
- run: bun run test --coverage --project ${{ matrix.package.name }}
id: test
if: ${{ matrix.package != 'eslint-config' && matrix.package != 'qwik-city' && matrix.package != 'react-compat' }}
- uses: codecov/codecov-action@v5
if: ${{ matrix.package != 'eslint-config' && matrix.package != 'qwik-city' && matrix.package != 'react-compat' }}
with:
fail_ci_if_error: true
directory: ./coverage
flags: ${{ matrix.package }}
flags: ${{ matrix.package.name }}
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,24 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v5

- name: Setup Node.js 20.x
uses: actions/setup-node@v5
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
node-version-file: .tool-versions
bun-version-file: .tool-versions

- uses: denoland/setup-deno@v2
with:
cache: true
deno-version-file: .tool-versions
- name: Install Dependencies
run: yarn

- name: Build
run: yarn build
run: bun install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn run publish
version: yarn run version
publish: bun run publish
version: bun run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@ dist
node_modules
*.tgz
coverage
.eslintcache
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-error.log

# for debug or playing
sandbox
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.changeset
.vscode
.yarn

# Casbin
*.conf
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bun 1.1.32
bun 1.3.0
# TODO: Update to v2.x when https://github.com/jsr-io/jsr-npm/issues/129 is resolved
deno 2.3.7
node 22.18.0
Loading