Commit Graph

48 Commits (4d67af162fbdaa75484eccae5dc4fad44ff2dab0)

Author SHA1 Message Date
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 21c6b5b3f9
test(auth-js): use node 20.x in CI (#1008) 2025-03-07 08:51:16 +09:00
Jonathan Haines 0c24e85798
test(oauth-providers): use node 20.x in CI (#1004)
Fixes #1003
2025-03-06 07:33:42 +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 88bb11657a
chore: add GitHub a pull request template (#911) 2024-12-26 15:18:38 +09:00
Yusuke Wada 25e4c1e936
chore: tweak GitHub issue template (#909) 2024-12-26 14:42:00 +09:00
Yusuke Wada 135db3cab6
chore: add GitHub issue templates (#908) 2024-12-26 14:38:51 +09:00
Gabriel Massadas 2720ac7172
feat: Add Cloudflare Access middleware (#880) 2024-12-13 17:16:11 +09:00
蒼時弦也 932d651aaf
feat(tsyringe): add @hono/tsyringe middleware (#785) 2024-11-17 05:36:39 +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
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
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
Gunther Brunner 95eb48c83e
feat: Add Effect Schema validator (#589)
* First commit

* Add basic Effect Schema validator

* chore(effect-validator): Change name of middleware to `effect-validator` and fix devDependencies

* chores(effect-validator): Update yarn.lock

* Remove bun lock file

* chores(effect-validator): Add github workflow

* chores: Update yarn.lock

* refactor the code and correct settings

* remove unnecessary files

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-07-11 23:46:31 +09:00
Yusuke Wada 61cd9b6a57
chore(hello): update CI, dependencies, and build scripts (#626) 2024-07-07 16:24:11 +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
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
ryu 701145178c
ci: update actions/checkout and actions/setup-node to v4 (#399) 2024-02-19 07:15:37 +09:00
Yoshio HANAWA 7777562f64
feat: Add OpenID Connect authentication middleware (#372)
* Add OpenID Connect authentication middleware

* add ci

* use tsup to build and use `module`

* update `yarn.lock`

* update `yarn.lock`

* Add `configureOidcAuth()` and remove the use of environment variables / Replace `Error` to `HTTPException` / Fix README / Fix version to 0.0.0

* Use environment variables for configuration of the middleware and remove `configureOidcAuth()` / Fix README

* chore: update `peerDependencies` and use latest hono

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-02-13 11:14:48 +09:00
Yusuke Wada e8b494b207
chore: add lint rule and format (#367)
* chore: add lint rule and format

* fix ci

* add typescript

* yarn install

* add `@cloudflare/workers-types`
2024-01-29 22:53:43 +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
Yusuke Wada 7b03c05178 ci(bun-transpiler): fixed CI setting 2024-01-08 07:37:33 +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 bd18b966ee
chore: migrate to `yarn v4` (#299)
* changeset

* chore: migrate to `yarn v4`

* remove changeset

* fixed Github Actions for `hello`

* fix gitignore

* add dependencies

* add ci for oauth-providers

* add dependencies

* add `publint`

* update msw
2023-12-13 15:54:00 +09:00
Yusuke Wada 1243fc5697
feat: esbuild Transpiler Middleware (#231)
* feat: esbuild Transpiler Middleware

* changeset

* add linkt to docs

* add `global.d.ts` for docs

* update readme

Co-authored-by: Andres C. Rodriguez <acrodrig@users.noreply.github.com>
2023-11-05 10:57:04 +09:00
Sor4chi c608fa9532
feat: swagger ui middleware (#230)
* feat(zod-openapi): create swagger-ui jsx component

* feat(zod-openapi): add swagger ui docs

* chore(zod-openapi): add versioning doc

* chore(zod-openapi): fix SwaggerUI component doc

* refactor(zod-openapi): remove jsx comment

* feat(swagger-ui): create new package

* feat(swagger-ui): provides swagger ui middleware and swaggerui component

* feat(zod-openapi): Changed to use @hono/swagger-ui

* chore: add versioning doc

* feat: update ci for @hono/swagger-ui

* refactor: remove package-lock.json

* refactor: reverted the extra changes.

* chore: remove old changeset doc

* refactor(swagger-ui): remove unused file

* refactor(swagger-ui): change input type

* feat(swagger-ui): Select only the options you need.

* chore(swagger-ui): update README

* refactor(swagger-ui): rewrite simple

* refactor(zod-openapi): remove swagger-ui

* chore(swagger-ui): fix readme content

* chore(dep): add @types/swagger-ui-dist for option types support

* feat: implement SwaggerConfig Renderer for mapping config object to html

* feat: extend some option support for swagger-ui-dist

* test: move option rendering test and add some cases

* feat: add manually option for making full customizable

* docs: update swagger-ui middleware README

* fix: do not escape HTML strings

* docs: update README of swagger-ui middleware

* ci: update workflow environment for swagger-ui middleware

---------

Co-authored-by: naporin0624 <naporin0624@gmail.com>
2023-11-04 18:18:20 +09:00
Vaggelis Yfantis a18da2a545
feat: Clerk Middleware (#151)
* initial commit

* wip

* Update README.md

* tests(clerk-auth): Setup testing and added first test

* docs(clerk-auth): Update README.md

* tests(clerk-auth): Added some more tests

* chore(clerk-auth): Added refernece in tests

* ci(clerk-atuh): Add Clerk Auth workflow

* use `env` helper to get enviroment variables

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2023-10-27 16:50:22 +09:00
Patryk Dwórznik 2e4eeb0b70
feat: Add Typia validator (#158)
* Add Typia validator

* Add CI config
2023-09-15 22:54:56 +09:00
Yusuke Wada 7b898034a5
feat: zod-openapi (#118)
* wip

* wip

* update readme

* changeset

* nohoist

* fixed CI
2023-08-19 02:43:36 +09:00
Nico Franke c15de7ce3c
feat(valibot-validator): Add Valibot Validator Middleware (#102)
* feat: add valibot validator

* add changeset
2023-07-30 08:07:44 +09:00
Yusuke Wada e970536220
feat: add "medley-router" (#82)
* feat: add "medley-router"

* setup

* add changeset
2023-04-21 23:43:30 +09:00
Curtis Larson 2a3245ad06
feat(typebox-validator): Add TypeBox Validator middleware (#55)
* feat(typebox-validator): Add TypeBox Validator middleware

* fix(typebox-validator): Updates based on code review comments
2023-02-24 18:22:02 +09:00
Yusuke Wada e7c60b3492
feat: introduce tRPC server middleware (#36)
* feat: introduce tRPC server middleware

* chore: add changeset
2023-02-04 23:37:15 +09:00
Yusuke Wada e0f68909ea setup Firebase Auth middleware 2023-02-04 20:20:42 +09:00
Yusuke Wada 34ad29dca5 setup Sentry middleware 2023-02-04 16:19:47 +09:00
Yusuke Wada 1991449506 ci: fixed node version 2023-02-04 12:35:46 +09:00
Yusuke Wada 094c2666d0 chore(graphql-server): setup 2023-02-04 11:53:27 +09:00
Yusuke Wada afe48fdb03 ci: fixed ci name 2023-01-02 00:11:13 +09:00
Yusuke Wada 6a1a99ad04
ci: add ci for zod-validator (#18) 2023-01-02 00:08:59 +09:00
Yusuke Wada 27d8874780 fixed gh actions 2022-12-24 21:07:01 +09:00
Yusuke Wada 7a9015ce57 fixed command 2022-12-24 21:03:36 +09:00
Yusuke Wada ac3cf49c14 fixed gh actions 2022-12-24 20:57:10 +09:00
Yusuke Wada f8df40d00c initial commit 2022-10-16 17:52:21 +09:00