Commit Graph

73 Commits (main)

Author SHA1 Message Date
Max Gerber a2409d2314
chore: Prettier should operate on all files (#1222)
* chore: Prettier should operate on all files

* Update package.json

Co-authored-by: Jonathan Haines <jonno.haines@gmail.com>

---------

Co-authored-by: Jonathan Haines <jonno.haines@gmail.com>
2025-06-15 09:08:01 +09:00
Jonathan Haines b73b7aed29
chore: update yarn to v4.9.2 (#1219) 2025-06-13 05:21:52 +09:00
Jonathan Haines 3c70dcd6ae
chore: update hono (#1185) 2025-06-02 05:06:04 +09:00
Yusuke Wada a62b59f450
feat(zod-validator): support Zod v4 (#1173)
* feat(zod-validator): support Zod v4

* changeset

* oops. using `any`

* remove the not used value

* [wip] support both v3 and v4

* update

* avoid the type error on build

* remove unnecessary `unknown`

* fixed type and add test

* avoid the type error

* rename the test

* don't use `schema instanceof ZodObject`

* update README

* use released `3.25.6`

* changeset

* use `zod` instead of `zod/v3`

* don't update the peerDependencies

* use both v3 and v4 types if Zod has v4

* fix ZodError

* fixed

* update lock file

* update README

* remove unnecessary cast
2025-05-27 17:47:54 +09:00
Jonathan Haines 1ca88da019
fix(release): publish tags (#1161) 2025-05-15 22:59:54 +09:00
Yusuke Wada 684ae9a21d
feat(react-renderer): use React v19 and specify `react-dom/server.edge` for `renderToReadableStream` (#1119)
* feat(react-renderer): use React v19 and specify `react-dom/server.edge` for `renderToReadableStream`

* changeset
2025-04-11 07:43:03 +09:00
Jonathan Haines ad4622a853
fix(zod-openapi): republish without workspace reference (#1111)
fixes #1109
2025-04-09 18:37:30 +09:00
Jonathan Haines 1fd8ebf9b6
feat(eslint-config): enable linting with type information (#1098) 2025-04-07 19:31:09 +09:00
Jonathan Haines e8512f0ee9
build: typescript project references (#1077)
* build: typescript project references

* chore: remove duplicate keys
2025-04-02 18:28:02 +09:00
Jonathan Haines b18f24379b
chore(dev-deps): upgrade to hono v4 (#1092)
* chore(dev-deps): upgrade to hono v4

* chore(zod-openapi): build workspace dependencies

* chore(trpc-server): ignore null body type
2025-03-31 18:20:57 +09:00
Jonathan Haines 9a536e6abb
ci: run eslint in each workflow (#1083) 2025-03-30 11:28:44 +09:00
Jonathan Haines 4f9bb1dd8e
test: move tests to src directory (#1075)
* test(react-renderer): move tests to src directory

* test: move tests to src directory

* test: ensure vitest-pool-workers is installed at the root
2025-03-28 18:50:19 +09:00
Jonathan Haines 5fac2ef09c
build(react-renderer): lint published package (#1058)
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-03-27 15:49:10 +09:00
Jonathan Haines ff2c1cd2fc
build(zod-openapi): lint published package (#1069) 2025-03-27 15:08:49 +09:00
Jonathan Haines 3eab82809a
chore: add tsup to monorepo root (#1032) 2025-03-24 19:41:18 +09:00
Jonathan Haines 67d0186fb4
build(ajv-validator): lint published package (#1030) 2025-03-24 17:51:26 +09:00
Jonathan Haines b6267e721d
ci(coverage): upload initial coverage to codecov (#1021)
* ci(coverage): upload initial coverage to codecov

* ci(coverage): add flags

* ci(bun-transpiler): add coverage
2025-03-18 15:38:54 +09:00
Jonathan Haines fc56cf2ae3
ci: run workspace scripts (#1015)
* ci: run workspace scripts

* ci: remove run option

* ci: remvoe default working directory

* test(firebase-auth): start emulator in vitest
2025-03-17 23:38:56 +09:00
Jonathan Haines 4d67af162f
test(workspace): upgrade to vitest v3 (#1009)
* test(workspace): upgrade to vitest v3

Fixes #1007

* chore(standard-validator): add vitest type to `tsconfig.json`

* chore: update `yarn.lock`

* chore(zod-openapi): bump `typescript`

* chore(typia-validator): make it ESM

* ci(bun-transpiler): fix Bun to v1.1.32

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-03-12 12:52:15 +09:00
Hong Minhee 15f3dddc3e
feat(otel): Add OpenTelemetry middleware
Close https://github.com/honojs/hono/issues/1864
2025-03-10 19:29:14 +09:00
Jonathan Haines 5ea7fb5d09
chore: Migrate workspaces that use `jest` to `vitest` (#998)
* docs(contributing): add section on testing

Fixes #994

* test(clerk-auth): replace jest with vitest

* test(graphql-server): replace jest with vitest

* test(medley-router): replace jest with vitest

* test(oauth-providers): replace jest with vitest

* test(oidc-auth): replace jest with vitest

* test(sentry): replace jest with vitest

* test(trpc-server): replace jest with vitest

* test(typebox-validator): replace jest with vitest

* test(typia-validator): replace jest with vitest

* test(valibot-validator): replace jest with vitest

* chore: cleanup remaining references to jest

* chore: fix lint errors

* test(typia-validator): fix exclude directory

* test(oauth-providers): use vitest environment miniflare

* chore: update `yarn.lock`

* chore(zod-openapi): pin zod-validator to 0.4.2

* test(graphql-server): remove console filtering

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-03-04 22:00:28 +09:00
Rokas Muningis f77d7ba2e2
feat(standard-validator): Add standard schema validation (#887)
* feat(standard-validator): Add standard schema validation

* feat(standard-validator): add changeset

* feat(standard-validator): reintroduce type tests

* feat(standard-validator): simplif tests

* build(standard-validator): add gitlab pipeline

* chore(standard-validator): remove redundant files

* feat(standard-validator): cleanup tests, adjust comments

* fix(standard-validator): adjust versions, fix doc

* build: fix lockfile

* feat(standard-validator): drop headers lower-casing, update readme

* check types in test dir and add `tsc` to the test command
2025-02-06 21:38:36 +09:00
Yusuke Wada 7a401b0850
chore: use the latest eslint and `@hono/eslint-config` (#904)
* chore: use the latest eslint and `@hono/eslint-config`

* update codes
2024-12-25 18:08:43 +09:00
Gabriel Massadas 2720ac7172
feat: Add Cloudflare Access middleware (#880) 2024-12-13 17:16:11 +09:00
Yusuke Wada 88e54c1b9d
chore(tsyringe): add a build command (#834)
* chore(tsyringe): add a build command

* add changeset
2024-11-18 11:05:17 +09:00
Illia Khvost c9f63deb95
feat(ajv-validator): Add Ajv validator middleware (#794) 2024-11-15 05:17:22 +09:00
Pr0m3th3us a5c20b3428
feat: class validator middleware for Hono (#788)
* setup middleware package

* add implementation middleware

* add documentation + updae tsconfig for decorator handling

* add tests

* fix format class-validator middleware

* Add Readme

* Update changelog & changeset

* update changelog 2

* update changelog 2

* fix working directory ci

* rm jest dependencies

change to tsup for build

fix ci name

* revert changes not related to class-validator

* remove the changeset since Changesets will add a changeset automatically

* package description
2024-11-08 12:08:18 +09:00
Ogabek 5fd80263f2
feat: introduce Swagger Editor middleware (#800)
Closes https://github.com/honojs/hono/issues/1415

* chore(swagger-editor): 🔨 init

* ci: 🎡 swagger editor workflow

create workflow for swagger-editor package

* docs: 📝 readme

have writed documentation

* test(test):  create test for swagger-editor middleware

* fix(swagger-editor): 🐛 fixed cdn url in html content

* chore: 🔨 v0.1.0

release

* format

* fix the typos

* remove unnecessary `.`

* remove unnecessay `vite` and fix the `vitest.config.ts`

* fix the relase workflow

* update the changeset and `package.json`

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-11-05 11:00:20 +09:00
Yusuke Wada 2378265f71
fix(eslint): update dependencies (#745)
* fix(eslint): update dependencies

* add changeset
2024-09-24 20:16:09 +09:00
sugar b7e740f930
Introduce Casbin Middleware (#676)
* feat: impl casbin middleware

* fix: defaultCheckPermission logic

* fix: divide authorizer

* chore: testing and docs

* fixed: hono version

* fix: export and module resolution

* fix: typo

* docs: fix model

* fix: conflict

* fix: version
2024-09-09 21:56:28 +09:00
Antony David f7a950a649
chore(eslint-config): use modern plugins alternatives (#724)
* chore(eslint-config): use modern plugins alternatives

* chore: migrate missing ones

* chore: migrate eslint plugin comments

* fix(eslint): update configuration

* chore: bump eslint dev deps

* chore: add changeset
2024-09-08 08:38:30 +09:00
Yusuke Wada 96b0fd6174 chore: update the lockfile 2024-08-10 16:04:13 +09:00
uttk d4a69131e1
feat: Conform Validator Middleware (#666)
* feat: add `@hono/conform-validator` to packages

* docs: Add the conform-validtor middleware usage to README.md

* docs: fix README

* refactor: Fix tests to use HTTPException

* fix: update devDependencies in conform-validator

* chore: add github workflows for conform-validator

* feat: add changesets

* fix: Init conform-validator version to 0.0.0 for changesets

* feat: Add a hook option to `conformValidator()`

* feat: Fixed the conformValidator to return an error response when a validation error occurs

* fix: Fixed node version used in CI from 18.x to 20.x

* fix: Fix to use tsup in build command

* chore: delete `.skip` from `it` in test files.

* chore: fix title in test files.

* fix: Fixed to return 400 response when the request body is not FormData

* chore: fixed to change patch to major in changeset.

* chore: Removed unused libraries
2024-07-31 22:55:02 +09:00
Yusuke Wada 8cf5bf0055
fix(effect-validator): add a build command to `package.json` at the top (#657)
* fix(effect-validator): add a build command to `package.json` at the top

* add chageset
2024-07-21 18:18:37 +09:00
David Havl 53b4f33190
feat: Event Emitter middleware (#615)
* Add event-emitter middleware

* Commit yarn.lock

* Add author to package.json

* Remove CHANGELOG.md

* Bump up node version

* Adjust initial version
2024-07-07 16:03:10 +09:00
Yusuke Wada ef9f45ab69
fix(zod-openapi): relax types to support `.refine()` for an object (#574)
* fix(zod-openapi): relax types to support `.refine()` for an object

* add a chengeset
2024-06-14 18:58:40 +09:00
Taku Amano 2b981105db
feat: add @hono/react-compat package (#563)
* Add @hono/react-compat package

The creation of this package was proposed by Gaetan Puleo.

Co-authored-by: Gaetan Puleo <pro@gaetanpuleo.com>

* remove the changelog file and fix the version in `package.json`
these will be modified by Changesets

* correct `exports` paths in `package.json` and add `hono` as dev dependency

* export as `default`

* add build command to the `package.json` at the top

* add changeset. we release it as `patch` first.

---------

Co-authored-by: Gaetan Puleo <pro@gaetanpuleo.com>
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-06-12 22:38:58 +09:00
Shotaro Nakamura d11c3a565f
feat: Introduce WebSocket helper for Node.js | `@hono/node-ws` (#503)
* feat: Introduce WebSocket helper for Node.js | `@hono/node-ws`

* feat(node-ws): add ci and build command

* chore: update yarn.lock

* update `yarn.lock`

* fixed the ci config

* add `@hono/node-server` to devDependecies

* fixed format and specify node version

* fix(node-ws/docs): fix example

* feat: `upgradeWebSocket` be named function

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-05-09 21:51:25 +09:00
Yoshio HANAWA fda62dea37
fix(oidc-auth): Fix "yarn release" for Yarn v4 / Build ESM only (#386) 2024-02-13 23:20:36 +09:00
Carlos Ricardo Ziegler ea19f6bdeb
fix: change peer dependency to support v4.0.0 (#380)
* chore: Update hono peer dependency to support v4.0.0

* chore: Update hono peer dependency to support v4.0.0 in some packages

* update `yarn.lock`

* add changeset

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-02-10 08:44:21 +09:00
Yusuke Wada 404b44bf3a
chore: update script to build zod-openapi (#375) 2024-02-03 21:08:02 +09:00
David Dios 5c165793fc
feat: Adding hono/prometheus middleware (#340)
* adding hono/prometheus middleware

* adding tests for the metrics endpoint

* adding changeset

* adding workflow and a build script to main package.json

* change to middleware factory instead

* extending the readme with some examples

* updating required hono version, adding installation section to readme

* updating hono version in devdependencies
2024-01-25 08:47:57 +09:00
floriankapaun 3f39be7a27
Add Bun Transpiler middleware #344 (#345)
* 🎉 Create Bun Transpiler Middleware Package

*  Add @types/bun dev dependency

* 🔧 Use Bun Testrunner

*  Implement Bun Transpiler Middleware

*  Add Tests for Bun Transpiler middleware

* 📝 Add README to Bun Transpiler middleware

* 📝 Add Changeset

* 👷 Setup CI for Bun Transpiler middleware

* 🔧 Configure Bun as external during Build

* 🔧 Setup global build script for Bun Transpiler middleware
2024-01-08 07:03:56 +09:00
Andrew b84c6c8eb3
feat: ArkType validator middleware (#325)
* feat: Create arktype-validator

* feat: Add changeset

* chore(arktype-validator): Fix formatting

* chore(index.test.ts): Replace `jsonT` with `json`

* feat(ci): Create arktype validator CI

* feat(package.json): Add arktype validator build script

* fix(ci): Fix lock file
2024-01-04 13:05:17 +09:00
divyam234 f9859e8fa7
added auth.js middleware (#326)
* added next-auth middleware

* fix react types

* code cleanup and improve tests

* renamed to authjs

* added example in readme

* Update README.md

* options to set dynamic base paths , urls and credentials in fetch

* update readme

* update readme

* Update README.md

* fix typos and set correct origin for local development
2023-12-29 04:30:25 +09:00
Yusuke Wada fd1f92b815
chore(react-renderer): add CI and update lock file/package.json (#314) 2023-12-16 10:34:54 +09:00
Yusuke Wada 14da8577fd chore: update `yarn.lock` 2023-12-13 18:23:48 +09:00
Yusuke Wada 40aeab8e3e
feat: introduce `@hono/eslint-config` (#302)
* changeset

* chore: setup prettier

* feat: introduce `@hono/eslint-config`

* changeset
2023-12-13 18:19:43 +09:00
Yusuke Wada a03e133d42
chore: setup prettier (#301)
* changeset

* chore: setup prettier
2023-12-13 17:31:25 +09:00
Yusuke Wada 5403955ef6
chore: enable `eslint` and remove `denoify` (#300)
* changeset

* chore: enable `eslint` and remove `denoify`
2023-12-13 17:22:53 +09:00