Commit Graph

152 Commits (b6267e721d619a71ec9112f5b1cbc9861964b513)

Author SHA1 Message Date
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
Yusuke Wada e678c36193
chore: update the lock file (#1019) 2025-03-17 23:43:15 +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 0c24e85798
test(oauth-providers): use node 20.x in CI (#1004)
Fixes #1003
2025-03-06 07:33:42 +09:00
Jonathan Haines cc26ddcae3
test(typia-validator): use `unplugin-typia` (#1000)
* test(typia-validator): use `unplugin-typia`

Fixes #999

* chore: cleanup ignored test-generated
2025-03-05 14:13:40 +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
Adel Ak 3e2db6dc33
fix(node-ws): Added missing WSContext raw type (#940)
* node-ws: Added missing WSContext raw type

* Updated hono version and added it as peer dependencies

* update `package.json` and the lock file

* add changeset

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-01-21 18:39:56 +09:00
miyaji255 1e0f0a0175
deps: Update vitest (#931) 2025-01-14 15:59:41 +09:00
Kei Kamikawa 0e4118b096
update(firebase-auth): updated firebase deps (#923) 2025-01-05 17:05:41 +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
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