Commit Graph

140 Commits (88bb11657a5730d2258a38e01a8442eef730d68d)

Author SHA1 Message Date
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
miyaji255 c63470e491
feat(typia-validator): support typia http module (#888)
* feature(typia-validator): support typia http module

* feature(typia-validator): add change-set & update README
2024-12-15 18:54:40 +09:00
Gabriel Massadas 2720ac7172
feat: Add Cloudflare Access middleware (#880) 2024-12-13 17:16:11 +09:00
Yuichiro Yamashita 739d4a01fc
feat(effect-validator): support `effect@3.10.0` (#859)
* upgrade effect to 3.10.0

* add changeset

* tidy import

* update lock file

* remove RemoveReadonly
2024-12-02 10:56:10 +09:00
Yusuke Wada 52b63684d3 chore: update the lockfile 2024-11-19 10:56:41 +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
Yusuke Wada 72e7070acd
chore(zod-validator): use `tsup` for build (#826) 2024-11-14 15:54:50 +09:00
Fabian Hiller d6fcbbd336
feat(valibot-validator): upgrade valibot peer dependency (#819) 2024-11-10 18:46: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
Yusuke Wada f237ca68a8 chore: update lockfile 2024-11-08 04:50:24 +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
Fabian Hiller 0ff894aeb1
fix(valibot-validator): add support for v1 dist-tags (#797) 2024-10-29 09:31:59 +09:00
Shotaro Nakamura 40e3a780d1
fix(oauth-providers): support latest hono (#662)
* fix(oauth-providers): support latest hono

* chore: add changeset

* change major to patch
2024-10-12 15:35:14 +09:00
Fabian Hiller 05610f520e
feat(valibot-validator): upgrade valibot peer dependency (#762) 2024-10-07 19:35:10 +09:00
Yusuke Wada aba8ea6411 chore(zod-openapi): don't release 2024-10-06 13:42:27 +09:00
Yusuke Wada 6fe79472ef chore: update lockfile 2024-10-06 13:36:23 +09:00
Maksim 3d78fa470d
fix(auth-js): remove config.basePath (#752)
* remove config.basePath

* ⬆️ (auth-js): update @auth/core dependency from version ^0.30.0 to ^0.35.3 for latest features and bug fixes
 (index.test.ts): add basePath to config for consistency in authentication tests
♻️ (index.test.ts): correct code style inconsistencies for better readability and maintainability

* update yarn.lock
2024-10-05 12:40:14 +09:00
Andrei 9639103a9a
fix(valibot-validator): use `tsup` and fix esm/cjs (#753)
* fix(valibot-validator): use `tsup` and fix esm/cjs

* chore(valibot-validator): remove build tsconfigs

* chore(.changeset): add changeset

* fix(valibot-validator): replace jest config extension with `.cjs`
2024-09-28 11:33:30 +09:00
Yusuke Wada 98d4ceab9c
chore(zod-openapi): bump `@hono/zod-validator` (#750)
* chore(zod-openapi): bump `@hono/zod-validator`

* add changeset
2024-09-26 12:35:15 +09:00
Yusuke Wada c4f537ff63 chore: update lockfile 2024-09-26 12:18:36 +09:00
Yusuke Wada ede18e98ab chore: update lockfile 2024-09-26 12:12:52 +09:00
Yusuke Wada 2378265f71
fix(eslint): update dependencies (#745)
* fix(eslint): update dependencies

* add changeset
2024-09-24 20:16:09 +09:00
Yusuke Wada a810122ab6 chore: update the lock file 2024-09-09 22:10:00 +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
Yusuke Wada 80cd26ab6e
feat(eslint-config): support ESLint v9 (#731)
* feat(eslint-config): support ESLint v9

* add changeset
2024-09-08 12:59:41 +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
Shotaro Nakamura 1bd5cdcd09
fix(valibot-validator): update Hono version and fix test code (#663)
* fix(valibot-validator): update Hono and fix test code

* chore: update lockfile

* chore: add changeset

* chore: remove changeset
2024-08-21 20:20:37 +09:00
Yusuke Wada 96b0fd6174 chore: update the lockfile 2024-08-10 16:04:13 +09:00
David Havl 0b6d821c11
feat(event-emitter): Enable invoking asynchronous handlers (#649)
* Add new emitAsync method, memory leak prevention and significantly improve README.md

* Adjust ci yarn install command

* Commit yarn.lock

* Run changeset

* Revert ci yarn install command

* Move context parameter to the first position in the `emit` method

* Fix test
2024-08-06 21:05:35 +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 2b54aa037a
chore(react-compat): bump `hono` (#644) 2024-07-16 23:11:35 +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
naporitan 47be5c6956
feat(swagger-uri): Add Full Configuration Parameters and Update Dependencies (#618)
* chore(swagger-ui): update swagger-ui-dist types

* feat(swagger-ui): add swagger-ui parameters

* chore(swagger-ui): fix typeerror

add url parameter

* chore(swagger-ui): refactor test case

* chore: add versioning doc

* chore(swagger-ui): remove useUnsafeMarkdown

* chore(swagger-ui): add requestSnippetsEnabled

* chore(swagger-ui): syntaxHighlight: boolean

* chore(swagger-ui): fix propertykey

* chore(swagger-ui): format code

* chore(swagger-ui): add string function property commented
2024-07-10 10:20:52 +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
sam-lippert 16d4efb01b
feat(sentry): Toucan 4 (#620)
* Upgrade toucan

* Update package version

* Create poor-rules-compare.md

* Don't have to modify the version field since the changeset will update it automatically

* patch should be minor
2024-07-07 08:04:56 +09:00
Rahul Mishra 43f34ea4dc
chore: update `@hono/trpc-server` to allow using Trpc 11 (#599) 2024-07-01 16:51:09 +09:00
Yusuke Wada 053a85c722
fix(zod-openapi): bump `@asteasolutions/zod-to-openapi` (#582)
* fix(zod-openapi): bump `@asteasolutions/zod-to-openapi`

* add changeset

* update lockfile
2024-06-18 00:08:58 +09:00
Yusuke Wada 756033391b chore: update lockfile 2024-06-14 19:05:10 +09:00
ryoppippi 66366075d4
feat(typia-validator): upgrade typia dependency to ^6.1.0 (#570)
* feat(typia-validator): upgrade typia dependency to ^6.1.0

This commit updates the peer dependency of typia from ^5.0.4 to ^6.1.0
in the typia-validator package. The yarn.lock file has also been updated
to reflect this change.

* feat(typia-validator): update Typia peerDependency

The peerDependency of Typia in '@hono/typia-validator' has been updated
from version 5 to version 6.
2024-06-14 07:31:54 +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
chimame 7375c096b5
chore: Update valibot to version 0.31.0 (#553)
* chore: Update valibot to version 0.31.0

* Modify update valibot to version 0.31.0

* Modify update yarn.lock to valibot 0.31.0

* Add CHANGELOG using changesets
2024-06-09 13:15:41 +09:00
arjunyel 69e5364464
fix(zod-openapi): support openapi yaml with middleware (#557) 2024-06-04 23:48:47 +09:00
Yusuke Wada 1b641bee14 chore(zod-openapi): fixed the dependencies 2024-06-01 11:45:03 +09:00
David Blass c05e5456cb
feat(arktype-validator): migrate to 2.0 (#542)
* feat(arktype-validator): migrate to 2.0

* add changeset
2024-05-24 05:59:20 +09:00
Rahul Mishra 8f669cd338
feat(trpc-server): use c.body to create response to avoid header loss (#517) 2024-05-16 07:16:16 +09:00
Yusuke Wada b03484ba05
feat(zod-openapi): support "status code" (#519)
* feat(zod-openapi): support "status code"

* add changeset and tweak

* fixed lock file
2024-05-15 10:06:11 +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
hiraoka d703577b55
[valibot-validator] Fix Type Inference for number Types in `valibot-validator` Query (#502)
* [valibot-validator] Type inference failure in RPC routes when `"query"` contains `number` type(s). #501

* add changeset file.
2024-05-06 10:10:56 +09:00