Commit Graph

558 Commits (cc26ddcae34d687faccbbdf04cd58d2cae4f388e)

Author SHA1 Message Date
github-actions[bot] 352e74fcbe
Version Packages (#586) 2024-06-20 06:27:30 +09:00
James Moger 414715b0d3
fix(swagger-ui): Add support for several more configuration options (#585)
fix #267
2024-06-20 06:07:43 +09:00
github-actions[bot] 023e07be0a
Version Packages (#583) 2024-06-18 00:13:24 +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
github-actions[bot] 9d3609f1ca
Version Packages (#577) 2024-06-15 00:26:54 +09:00
Yusuke Wada 9a9de50494
fix(zod-openapi): use `JSONParsed` for creating a response type (#576)
* fix(zod-openapi): use `JSONParsed` for creating a response type

* add changeset
2024-06-15 00:21:44 +09:00
github-actions[bot] 6b06138a50
Version Packages (#575) 2024-06-14 19:08:46 +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
github-actions[bot] 5a0488a254
Version Packages (#572) 2024-06-14 07:43:49 +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
github-actions[bot] 955230b68b
Version Packages (#569) 2024-06-12 22:42:10 +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
github-actions[bot] 3d83b7a36f
Version Packages (#565) 2024-06-09 13:22:26 +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
github-actions[bot] ce635982d7
Version Packages (#558) 2024-06-05 00:01:05 +09:00
arjunyel 69e5364464
fix(zod-openapi): support openapi yaml with middleware (#557) 2024-06-04 23:48:47 +09:00
github-actions[bot] 0996475ab3
Version Packages (#554) 2024-06-01 11:40:07 +09:00
Ame_x aa05549497
fix(zod-validator): validator support async hook (#552)
* fix(zod-validator): validator support async hook

* fix

* changeset

* refactor

* chore: format (includes other middleware)

* fix

* revert

* Revert "chore: format (includes other middleware)"

This reverts commit 16b4462014.

* changeset

* revert
2024-06-01 11:35:21 +09:00
github-actions[bot] 63898bbdab
Version Packages (#551) 2024-05-29 01:36:05 +09:00
divyam234 d5ebee9c70
fix(auth-js): handle x-forwarded headers to detect auth url (#549)
* fix: handle  x-forwarded headers to detect auth url

* added changeset
2024-05-29 01:18:18 +09:00
github-actions[bot] 39edec1249
Version Packages (#548) 2024-05-26 11:38:46 +09:00
Mike Stop Continues ec6ec4ec02
fix(node-ws): create only one WebSocketServer instead of per websocket request (#539) 2024-05-26 11:36:11 +09:00
github-actions[bot] e779454966
Version Packages (#546) 2024-05-26 04:54:13 +09:00
Yusuke Wada 6fe211ba1f
fix(eslint-config): use `import/no-duplicates` (#545)
* fix(eslint): use `import/no-duplicates`

* add changeset
2024-05-26 04:51:22 +09:00
github-actions[bot] 44c065aec4
Version Packages (#544) 2024-05-26 04:42:35 +09:00
Yusuke Wada ee6569d62b
fix(eslint-config): update rules (#543)
* fix(eslint-config): update rules

* add changeset
2024-05-26 04:40:13 +09:00
github-actions[bot] 54777128b8
Version Packages (#541) 2024-05-24 10:23:25 +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
github-actions[bot] 30cee0c482
Version Packages (#540) 2024-05-23 22:06:31 +09:00
taku-hatano a595e4e260
feat(zod-openapi): extract range definitions to StatusCode (#535)
* fix: extract range definitions to StatusCode

* docs: add minor changeset
2024-05-23 22:01:05 +09:00
github-actions[bot] 1d5c467d5f
Version Packages (#533) 2024-05-20 07:13:58 +09:00
akineko eeccd4fc2f
feat(zod-openapi): export RouteConfig type (#532)
Fixes #432

* feat(zod-openapi): export RouteConfig type

* add .changeset/itchy-glasses-smell.md
2024-05-20 07:11:02 +09:00
github-actions[bot] 680176d508
Version Packages (#530) 2024-05-19 01:01:25 +09:00
akineko 0a43d2c562
fix(zod-openapi): update RouteHandler type to support MaybePromise (#529)
* fix(zod-openapi): update RouteHandler type to support MaybePromise

* add .changeset/cuddly-pets-drum.md
2024-05-19 00:58:15 +09:00
github-actions[bot] cd0a2ce6c0
Version Packages (#526) 2024-05-16 07:27:17 +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
github-actions[bot] 44766bff2f
Version Packages (#523) 2024-05-15 17:56:40 +09:00
Alex 2d5ef82558
fix(zod-openapi): return type of handler should be MaybePromise (#522)
* fix(zod-openapi): return type of handler should be MaybePromise

* revert: changes

* Create modern-buttons-impress.md

* fix: types
2024-05-15 16:51:34 +09:00
github-actions[bot] c5001c01e7
Version Packages (#520) 2024-05-15 10:08:59 +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
github-actions[bot] fb81f4ea4a
Version Packages (#516) 2024-05-13 07:06:25 +09:00
mizunohito f59edfe89c
fix(valibot-validator): Add supports async validation (#515) 2024-05-13 06:56:42 +09:00
github-actions[bot] 16e3784d50
Version Packages (#512) 2024-05-11 18:26:21 +09:00
taku-hatano 88113fae8b
fix(zod-openapi): add Promise<void> to Hook (#510)
* fix(zod-openapi): add Promise<void> to Hook

* add changeset
2024-05-11 18:21:21 +09:00
github-actions[bot] b0c94cd840
Version Packages (#508) 2024-05-09 21:55:47 +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
github-actions[bot] 650e20fab5
Version Packages (#506) 2024-05-07 05:48:38 +09:00
Carlos Sanjines Aldazosa 42e75f07dc
Get email with github token (#505)
* Get email with github token

* Changeset added
2024-05-07 05:38:37 +09:00
github-actions[bot] 9495f5ddab
Version Packages (#504) 2024-05-06 10:24:07 +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
github-actions[bot] 3e96b5e128
Version Packages (#500) 2024-05-04 15:23:31 +09:00
Yusuke Wada e44314fdd3
feat(sentry): support esm (#499)
* feat(sentry): support esm

* add changeset

* fixed `package.json`
2024-05-04 15:21:05 +09:00
github-actions[bot] f16dfacb7e
Version Packages (#498) 2024-05-04 12:15:21 +09:00
divyam234 300ef2f8bf
fix(auth-js): react package work with ssr (#494) 2024-05-04 11:42:10 +09:00
github-actions[bot] 017bf8e9f0
Version Packages (#489) 2024-04-30 20:43:32 +09:00
t.kasuo 1cc5e0a5b0
fix: deprecated json response method (#488)
* fix deprecated json response method

* apply changesets
2024-04-30 20:32:15 +09:00
github-actions[bot] 4194ac691a
Version Packages (#487) 2024-04-30 17:27:29 +09:00
Yusuke Wada 18959557f4
fix(auth-js): use `env` in `hono/adapter` and add tests (#486)
* fix(auth-js): use `env` in `hono/adapter` and add tests

* add changeset

* polyfill crypto
2024-04-30 17:25:05 +09:00
github-actions[bot] 173fed200a
Version Packages (#485) 2024-04-29 13:54:29 +09:00
DIYgod b8fb9a06c1
fix(auth-js): AUTH_URL not working in getAuthUser (#481)
* fix(auth-js): AUTH_URL not working in getAuthUser

* chore(auth-js): add changeset
2024-04-29 13:49:15 +09:00
github-actions[bot] 319b955c74
Version Packages (#484) 2024-04-29 13:07:35 +09:00
Jikyu Choi 4446eeeb9f
fix(trpc-server): Support asynchronous context creation (#482)
* Support asynchronous context generation

* Added changeset
2024-04-29 13:04:45 +09:00
github-actions[bot] 9c98a73405
Version Packages (#480) 2024-04-27 17:33:56 +09:00
Benjamín Eidelman 2526e1e685
feat(trpc): access hono context from trpc procedures (#458)
* trpc: access hono context from trpc procedures

* chore: Add changeset
2024-04-27 11:46:09 +09:00
github-actions[bot] 9e60a47df4
Version Packages (#479) 2024-04-26 11:09:48 +09:00
DIYgod 5004ca9c5b
fix(auth-js): env AUTH_URL not working (#478)
* fix(auth-js): env AUTH_URL not working

* test(auth-js): add reqWithEnvUrl test case

* chore: add changeset
2024-04-26 10:57:56 +09:00
github-actions[bot] 9533c582ae
Version Packages (#477) 2024-04-26 00:37:47 +09:00
Yusuke Wada 7e12913812
fix(prometheus): bump peer dependency (#476) 2024-04-26 00:30:02 +09:00
github-actions[bot] 8e8acb916f
Version Packages (#474) 2024-04-25 22:46:58 +09:00
Andrei 1823a28627
feat(clerk-auth): Migrate to Clerk Core v2 (#465)
* chore(valibot-validator): Replace `jsonT` in tests

* fix(valibot-validator): Handle optional schema

* test(valibot-validator): Update tests

* chore(valibot-validator): Add changeset

* chore(valibot-validator): Fix formatting

* remove old changeset

* feat(clerk-auth): Migrate to Clerk Core v2

* chore: Add changeset

* fix: Add back tsup devDep

* chore: Fix lockfile

* chore: infer clerkAuth type instead of importing it directly

* chore: refactor redirect handling

* chore: remove unnecessary `rimraf` devDep

* chore: rewrite clerk devDeps versions

* chore: fix peerDeps

* chore: update lockfile

* drop `@clerk/shared` peerDep
2024-04-25 22:43:36 +09:00
github-actions[bot] 7e5e3de28f
Version Packages (#469) 2024-04-22 08:11:19 +09:00
Aaron Ware 65418948ab
feat(oauth-providers): Allow passing state in google oath middleware (#454)
* improve(#453): Allow for state to be passed to AuthFlow

* fix(#453): No need to cast as string

* chore(#453): Create changeset

Closes #453

* fix(#453): Needed to take CSRF into account
2024-04-22 08:08:03 +09:00
github-actions[bot] 3c351e1097
Version Packages (#464) 2024-04-20 16:31:53 +09:00
Yudai Nakata 892ea7da85
chore(peer-deps): install newer peer depenencies (#463)
* chore(peer-deps): install newer peer depenencies

fix #442.

* chore: add a changeset entry

* chore: update lockfile
2024-04-20 16:28:36 +09:00
github-actions[bot] afcb36f053
Version Packages (#462) 2024-04-19 09:06:11 +09:00
Hadeeb Farhan 6497f5772f
fix(clerk-auth): export esm (#460)
* fix(clerk-auth): export esm

* update extension of `jest.config`
2024-04-19 09:00:06 +09:00
github-actions[bot] 0bf53d18b9
Version Packages (#461) 2024-04-18 07:43:42 +09:00
Kei Kamikawa 2d7af647ca
fix(firebase-auth): error handling to wrap root errors (#456) 2024-04-18 07:38:42 +09:00
github-actions[bot] dde9854e51
Version Packages (#457) 2024-04-16 21:39:25 +09:00
Yuto Yoshino 284904357f
feat(react-renderer): Nested layout support for react-renderer (#449)
* feat: nested layout support for react-renderer

* refactor

* feat: describe changeset
2024-04-16 20:58:39 +09:00
github-actions[bot] ffd67e5412
Version Packages (#452) 2024-04-14 09:06:45 +09:00
Yusuke Wada db390602b4
fix(esbuild-transpiler): set a content-type correctly (#451)
* fix(esbuild-transpiler): set a content-type correctly

* add changeset
2024-04-14 09:04:06 +09:00
github-actions[bot] 96703ff823
Version Packages (#447) 2024-04-11 19:19:48 +09:00
Roman Nabukhotnyi 4660092b9a
feat(zod-openapi): Add 'middleware' property for route (#435)
* feat: Add 'middlewares' property for route

* fix: Rename `middlewares` to `middleware`

* fix: Update README.md

* fix: Fix changeset
2024-04-11 19:16:12 +09:00
github-actions[bot] 56b11664ec
Version Packages (#446) 2024-04-11 14:49:29 +09:00
Fumiaki Kinoshita 110e272460
fix(zod-openapi): make getRoutingPath non-enumerable (#445)
* zod-openapi: make getRoutingPath non-enumerable

This prevents potential serialisation errors (e.g. yaml's `stringify`) of the return value of getOpenAPIDocument

* .changeset: add an entry for #445
2024-04-11 14:28:53 +09:00
github-actions[bot] b865bb7ca4
Version Packages (#444) 2024-04-07 19:25:44 +09:00
Yusuke Wada 1e0d857ef9
feat(zod-openapi): bump `zod-to-openapi` supports ESM (#443)
* feat(zod-openapi): bump `zod-to-openapi` supports ESM

* add changeset
2024-04-07 19:18:56 +09:00
github-actions[bot] c56b22f15a
Version Packages (#438) 2024-03-29 14:27:28 +09:00
Yusuke Wada 9fc8591960
fix(zod-openapi): bump `@hono/zod-validator` (#437)
* fix(zod-openapi): bump `@hono/zod-validator`

* add changeset
2024-03-29 14:22:18 +09:00
github-actions[bot] 9e9c326c73
Version Packages (#434) 2024-03-26 09:26:33 +09:00
MAKS11060 c721d14d4b
fix(zod-validator): fix export for esm module (#431)
* fix: incorrect import, (deno/node) loaded cjs file instead of esm

* fix: default esm mode

* upd build step

* use changeset

* replace test runner to vitest
2024-03-26 09:03:48 +09:00
github-actions[bot] e6171707c6
Version Packages (#430) 2024-03-22 17:29:47 +09:00
David b1f8a5325c
fix(zod-openapi): BasePath not included in client types (#429)
fixes #428
2024-03-22 17:23:53 +09:00
github-actions[bot] 6bdbf88854
Version Packages (#425) 2024-03-20 14:57:56 +09:00
Carlos Sanjines Aldazosa cef4be898a
fix(oauth-providers): OAuth Providers Github App email problem (#421)
* [UPDATE (OAuth Providers): Github] request emails if Github App

* changlog

* [FIX: changeset] minor bump instead patch bump
2024-03-20 14:37:16 +09:00
github-actions[bot] 830559c559
Version Packages (#423) 2024-03-17 10:43:37 +09:00
yoshikouki 6eaf2a14cd
fix(react-renderer): fix overwriting headers when stream is enabled (#419)
* fix(react-renderer): fix overwriting headers when stream is enabled

* Create changeset

* Add test to set headers with stream enaabled
2024-03-17 10:40:58 +09:00
github-actions[bot] 74dfa07ded
Version Packages (#414) 2024-03-06 22:51:03 +09:00
yoshikouki bda918e286
feat(react-renderer): Support renderToReadableStream options for hydration (#410)
* Support renderToReadableStream options for hydration

* Add changeset for @hono/react-renderer

* Minor updates, not patches
2024-03-06 22:43:31 +09:00
github-actions[bot] 053b2d5143 Version Packages (#413) 2024-03-06 19:49:29 +09:00
Yusuke Wada 4875e1c531
feat(zod-validator): support `coerce` (#411)
* fix(zod-validator): support `coerce`

* changeset

* refactored

* make it as minor
2024-03-06 19:35:27 +09:00
github-actions[bot] d776ada43a
Version Packages (#409) 2024-03-05 06:57:18 +09:00
David Havl d4ca1ce98f
fix(zod-openapi): Fix basePath method to transfer defaultHook of the parent app. (#408)
* Fix basePath method to transfer defaultHook of the parent app.

* Revert back variable typing

* Add changeset for @hono/zod-openapi
2024-03-05 06:53:44 +09:00
github-actions[bot] 5c0d4adf62
Version Packages (#403) 2024-02-24 22:42:29 +09:00
Kei Kamikawa c9f110d4e0
feat(firebase-auth): added a new middleware to verify session with firebase-auth (#402)
* fix(firebase-auth): updated firebase-auth-cloudflare-workers

* add(firebase-auth): added a new `verifySessionCookieFirebaseAuth` middleware to verify w/ session cookie
2024-02-24 22:35:24 +09:00
github-actions[bot] e4b6d4dfb9
Version Packages (#397) 2024-02-16 16:49:10 +09:00
Yusuke Wada 98cffb0ae9
fix(oauth-providers): update `peerDependencies` (#396)
* fix(oauth-providers): update `peerDependencies`

* run `yarn` command

* changeset
2024-02-16 16:40:36 +09:00
github-actions[bot] 5e0c8a6e0c
Version Packages (#394) 2024-02-15 19:05:15 +09:00
Kei Kamikawa 7e36ecc3f6
fix(firebase-auth): retrive header values for v4 (#393) 2024-02-15 19:02:01 +09:00
github-actions[bot] 3fdf755ed6
Version Packages (#392) 2024-02-15 05:44:45 +09:00
Andrew 9b57c3bb30
fix(valibot-validator): make validation input optional when schema is optional (#384)
* chore(valibot-validator): Replace `jsonT` in tests

* fix(valibot-validator): Handle optional schema

* test(valibot-validator): Update tests

* chore(valibot-validator): Add changeset

* chore(valibot-validator): Fix formatting
2024-02-15 05:38:43 +09:00
github-actions[bot] df8d403182
Version Packages (#391) 2024-02-15 05:28:23 +09:00
asuka c789dab697
fix(graphql-server): hono peer dependency to support v4.0.0 (#390)
* chore(graphql-server): Update hono peer dependency to support v4.0.0

* chore(graphql-server): Add changeset
2024-02-15 05:22:19 +09:00
github-actions[bot] 86f2be936c
Version Packages (#389) 2024-02-14 17:11:30 +09:00
Yusuke Wada e0d94dfa1a
chore: add changeset for sentry middleware (#388) 2024-02-14 17:07:43 +09:00
github-actions[bot] 37fb8662cb
Version Packages (#387) 2024-02-13 23:51:50 +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
github-actions[bot] 4d8389a8c7
Version Packages (#385) 2024-02-13 11:17:53 +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
github-actions[bot] 599e5f5058
Version Packages (#382) 2024-02-10 08:47:06 +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
github-actions[bot] fce4d55b9a
Version Packages (#366) 2024-01-29 21:47:57 +09:00
Yusuke Wada 716bd4d0a7
fix(eslint): set `curly` rule as `all` (#365)
* fix(eslint): set `curly` rule as `all`

* changeset
2024-01-29 21:44:33 +09:00
github-actions[bot] 9b9cebe6d3
Version Packages (#362) 2024-01-28 22:04:32 +09:00
Minghe 2c7b25fc2a
fix(graphql): fix the context not propagated down to resolvers. (#361)
* fix(ctx): fix the context not propagated down to resolvers.

* chore(changeset): add a changeset
2024-01-28 22:00:32 +09:00
github-actions[bot] bc23e035e6
Version Packages (#360) 2024-01-27 22:17:51 +09:00
divyam234 4ccda19d31
fix(auth-js): Update @auth/core version and set default basePath (#359)
* Update @auth/core version and set default basePath

* update changeset
2024-01-27 22:15:06 +09:00
github-actions[bot] 7701152c2a
Version Packages (#358) 2024-01-25 08:50:20 +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
github-actions[bot] 64988bc7e8
Version Packages (#357) 2024-01-25 08:39:11 +09:00
Yusuke Wada 168a0a6d68
fix(zod-openapi): handle `Conflicting names for parameter` (#356)
* fix(zod-openapi): handle `Conflicting names for parameter`

* add changeset
2024-01-25 08:36:58 +09:00
github-actions[bot] 2494a61635
Version Packages (#350) 2024-01-12 05:05:32 +09:00
floriankapaun b6e59dd19c
fix(bun-transpiler): Apply headers when using serveStatic; Improvement: Make options optional; (#349)
*  Add failing serveStatic test (headers not applied)

* 🐛 Fix: Apply headers when using serveStatic

* 🚸 Make options optional

* 🔖 Add changeset

* ✏️ Fix naming in comment

* 🚸 Export defaultOptions

* 🏷️ Improve Typing of defaultOptions
2024-01-12 05:03:13 +09:00
github-actions[bot] 935560f677
Version Packages (#347) 2024-01-08 07:40:41 +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
github-actions[bot] 965d5a3f6d
Version Packages (#346) 2024-01-08 05:26:18 +09:00
Carlos Sanjines Aldazosa 8841b6427d
feat(oauth-providers): Discord (#342) 2024-01-08 05:22:20 +09:00
github-actions[bot] 0d7244b5bb
Version Packages (#339) 2024-01-04 13:08:08 +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
github-actions[bot] 353d91e6c6
Version Packages (#338) 2024-01-03 12:16:47 +09:00
Yusuke Wada 75841d6b48
fix(firebase-auth): export esm (#337)
* fix(firebase-auth): export esm

* add changeset
2024-01-03 12:14:06 +09:00
github-actions[bot] 42f9a1bd77
Version Packages (#332) 2023-12-29 21:56:14 +09:00
Sor4chi 5b17228c0b
fix: swaggerUI middleware option's required property (#329)
* feat: make swaggerUI middleware option optional

* chore: changeset
2023-12-29 21:49:35 +09:00
github-actions[bot] 7844bfd4a1
Version Packages (#331) 2023-12-29 21:41:04 +09:00
divyam234 766738e0ea
fix(auth.js): added react as peer (#330)
* added react as peer

* added Changeset

* update yarn.lock

* Update beige-sloths-raise.md
2023-12-29 21:36:26 +09:00
github-actions[bot] a32b21bcd2
Version Packages (#322) 2023-12-29 04:44:37 +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
Thomas Lepérou 616afbcd03
docs(qwik-city) support all request methods (#321) 2023-12-20 07:22:43 +09:00
github-actions[bot] f37933be60
Version Packages (#319) 2023-12-17 21:55:10 +09:00
Yusuke Wada 0c2dbee52a
fix(react-renderer): dynamic import `renderToReadableStream` (#318)
* fix(react-renderer): dynamic import `renderToReadableStream`

* add changeset
2023-12-17 21:51:26 +09:00
github-actions[bot] 729c42067d
Version Packages (#317) 2023-12-16 15:37:45 +09:00
Yusuke Wada 5eeb555c89
fix(zod-openapi): supports named params in nested routes (#316)
* fix(zod-openapi): supports named params in nested routes

* changeset

* github works fine?

* fixed
2023-12-16 15:35:36 +09:00
github-actions[bot] 28a8dfa312
Version Packages (#315) 2023-12-16 10:41:30 +09:00
Luis Bizarro b8219d9b68
fix(zod-openapi): Export Hook in @hono/zod-openapi (#313) 2023-12-16 10:39:13 +09:00
Yusuke Wada 9348fa2663
feat: introduce React Renderer Middleware (#309)
* feat: introduce React Renderer Middleware

* docs: update readme

* chore: add changeset

* use `global.d.ts`

* remove global.d.ts

* import types correctly
2023-12-16 10:28:19 +09:00
github-actions[bot] a7a8aa62ef
Version Packages (#307) 2023-12-13 21:58:51 +09:00
Yusuke Wada 165a415ec3
fix(eslint-config): `no-unused-vars` as `warn` (#306)
* fix(eslint-config): `no-unused-vars` as `warn`

* changeset
2023-12-13 21:56:22 +09:00
github-actions[bot] 8aabb93065
Version Packages (#305) 2023-12-13 19:17:28 +09:00
Yusuke Wada 6f236ce823
fix(eslint-config): `no-explicit-any` as `warn` (#304)
* fix(eslint-config): `no-explicit-any` as `warn`

* changeset
2023-12-13 19:15:00 +09:00
github-actions[bot] cdc93d61dd
Version Packages (#303) 2023-12-13 18:26:07 +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 8365d2a656 chore: remove `changeset` 2023-12-13 18:16:37 +09:00
Yusuke Wada 41ebd5b953 changeset 2023-12-13 18:16:19 +09:00
github-actions[bot] 954069dabe
Version Packages (#295) 2023-12-09 09:20:14 +09:00
Carlos Sanjines Aldazosa aa9527b9e7
feat(oauth-providers): Add X (Twitter) to OAuth providers (#283)
* [FEAT] x (Twitter) provider

* [UPDATE] replace crypto-js with native api

* [UPDATE] Remove unused dependencies
2023-12-09 09:18:12 +09:00
github-actions[bot] 186ce0db8e
Version Packages (#293) 2023-12-07 09:57:45 +09:00
Yusuke Wada 7ded22a57e
fix(zod-openapi): bump Hono for `peerDependencies` and add tests (#292)
* changeset

* fix(zod-openapi): bump `Hono` for `peerDependencies` and add tests

* remove changeset

* changeset
2023-12-07 09:55:42 +09:00
github-actions[bot] f8027e1bd2
Version Packages (#289) 2023-12-05 18:17:37 +09:00
Phil Chen 8178ba094f
feat(zod-openapi): use z.input to infer input types of the request (#286)
* fix(zod-openapi): vite typecheck for type testing

* feat(zod-openapi): use z.input to infer types for inputs of the input
2023-12-05 18:15:06 +09:00
github-actions[bot] 7cd3fd40c8
Version Packages (#288) 2023-12-04 22:25:01 +09:00
Yusuke Wada 1568b920de
fix(zod-openapi): Strict type checking of return values (#287)
* changeset

* fix(zod-openapi): Strict type checking of return values

* bump hono `v3.11.1`

* remove changeset

* add changeset
2023-12-04 22:23:15 +09:00
github-actions[bot] d8300e5cc7
Version Packages (#281) 2023-11-29 06:31:20 +09:00
David Flanagan 14443cc255
fix: redirect url for github apps (#280) 2023-11-29 06:27:04 +09:00
David Flanagan cfaa80a9e7
fix: ensure state is passed through for both github app types (#279) 2023-11-29 05:34:49 +09:00
github-actions[bot] 4aa5f67c1b
Version Packages (#278) 2023-11-28 14:44:36 +09:00
Karibash d4aa8ec5ad
feat(zod-openapi): Make context accessible in the doc route (#272)
* feat(zod-openapi): Make context accessible in the doc route

* docs(zod-openapi): Fix typo

* docs(zod-openapi): Add a tips to the README.md on how to access the context in app.doc
2023-11-28 14:41:14 +09:00
github-actions[bot] b0adaab247
Version Packages (#277) 2023-11-28 06:43:11 +09:00
Yusuke Wada d8eebd7822
fix(oauth-providers): enable building (#276)
* changeset

* fix(oauth-providers): enable building

* remove changeset

* changeset
2023-11-28 06:39:59 +09:00
github-actions[bot] c5dd9ab52a
Version Packages (#266) 2023-11-27 21:38:00 +09:00
Carlos Sanjines Aldazosa d2696c46ba
Oauth providers (#262)
* [FEAT] facebook and google authentication

* [FEAT] github authentication

* [FEAT] linkedin authentication

* [TEST] all methods tested

* [UPDATE] open-auth middleware split

* [UPDATE] auth packages merged into oauth-provider

* docs: format README

* fix: fix `package.json`, prettify, rename something

* fix: use `ContextVariableMap`

* docs: update README

* make it as a minor release

* [FIX: linkedin] path name

* [UPDATE: linkedin] pathname

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2023-11-27 21:33:31 +09:00
scarf 2e697077bf
fix(swagger-ui): support `persistAuthorization` and boolean option (#265)
* feat: `persistAuthorization`

Co-authored-by: Sor4chi <80559385+sor4chi@users.noreply.github.com>

* test: `persistAuthorization`

* chore: changeset

Co-authored-by: Sor4chi <80559385+sor4chi@users.noreply.github.com>

---------

Co-authored-by: Sor4chi <80559385+sor4chi@users.noreply.github.com>
2023-11-20 14:08:12 +09:00
github-actions[bot] a43558b2d6
Version Packages (#263) 2023-11-18 06:10:41 +09:00
Karibash ba83a268e0
feat(zod-openapi): Make it possible to do method chaining even for do… (#260)
* feat(zod-openapi): Make it possible to do method chaining even for doc methods

* fix: Fix incorrect generics type specification
2023-11-18 06:04:56 +09:00
github-actions[bot] 4c5b5be848
Version Packages (#259) 2023-11-16 19:26:44 +09:00
Karibash 368c3520fa
fix(zod-openapi): Fix a bug that slashes were duplicated when mountin… (#258)
* fix(zod-openapi): Fix a bug that slashes were duplicated when mounting a path using the route method

* fix: Make the paths be merged using internally defined utility functions instead
2023-11-16 19:24:53 +09:00
github-actions[bot] 53cd5f7bec
Version Packages (#256) 2023-11-16 06:36:27 +09:00
Karibash 129f4680a2
fix(zod-openapi): Fix incorrect specification of the exports field in package.json (#255) 2023-11-16 06:27:56 +09:00
github-actions[bot] 0232214d4b
Version Packages (#250) 2023-11-12 10:10:58 +09:00
Yusuke Wada 139504a145
fix(medley-router): support new path matching (#249)
* fix(medley-router): support new path matching

* add changeset
2023-11-12 10:08:45 +09:00
Kei Kamikawa 545997181f
fixed firebase-auth for #247 (#248)
* chore: npx yarn-deduplicate && yarn install

* chore(firebase-auth): Update package deps and test

* chore(firebase-auth): update hono version

* fix(firebase-auth): responds 501 when PUBLIC_JWK_CACHE_KV is undefined in defaultKeyStoreInitializer function
2023-11-12 09:50:13 +09:00
github-actions[bot] 037d748c23
Version Packages (#245) 2023-11-07 12:16:53 +09:00
Yusuke Wada 007de80662
fix(esbuild-transpiler) exports modules correctrly (#244)
* changeset

* remove changeset
2023-11-07 12:13:18 +09:00
github-actions[bot] 1c7f40b022
Version Packages (#242) 2023-11-07 11:40:33 +09:00
Yusuke Wada f79f40bd48
fix(esbuild-transpiler): build correctly (#241)
* fix(esbuild-transpiler): build correctly

* changeset
2023-11-07 11:38:09 +09:00
github-actions[bot] 73eaaa588d
Version Packages (#236) 2023-11-05 16:48:09 +09:00
Yusuke Wada a3da3dac91
chore(hello): tweak (#235)
* chore(hello): tweak

* changeset
2023-11-05 16:45:07 +09:00
github-actions[bot] a60dd96808
Version Packages (#233) 2023-11-05 11:12:27 +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
github-actions[bot] 87c3795dc3
Version Packages (#232) 2023-11-04 18:25:02 +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
github-actions[bot] 296446be5a
Version Packages (#229) 2023-11-03 05:59:16 +09:00
Yusuke Wada b9baf4a990
feat(hello): infer type correctly using `satisfies` (#228)
* feat(hello): infer type correctly using `satisfies`

* changeset
2023-11-03 05:53:53 +09:00
github-actions[bot] b8076dfb47
Version Packages (#223) 2023-10-31 19:23:37 +09:00
Yusuke Wada 73ab82a902
fix(zod-openapi): import types correctly (#222)
* fix(zod-openapi): import types correctly

* changeset
2023-10-31 19:17:34 +09:00
github-actions[bot] 3633efd1de
Version Packages (#218) 2023-10-30 06:46:28 +09:00
Yusuke Wada b3d80a0cca
fix: bump hono version of `peerDependencies` (#219)
* fix: bump hono version of `peerDependencies`

* add changeset
2023-10-30 06:39:46 +09:00
Yusuke Wada a80c84ba07
fix(zod-openapi): bump Hono for `peerDependencies` (#217) 2023-10-30 06:35:00 +09:00
github-actions[bot] 66710bcca0
Version Packages (#216) 2023-10-30 06:19:00 +09:00
Yusuke Wada ab2176bf6e
fix(zod-validator): bump Hono version of `peerDependencie` (#215)
* fix(zod-validator): bump Hono version of `peerDependencie`

* changeset
2023-10-30 06:13:40 +09:00
github-actions[bot] e5434ffc2f
Version Packages (#213) 2023-10-27 16:58:49 +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
github-actions[bot] 90d3e84831
Version Packages (#212) 2023-10-26 17:51:09 +09:00
Yusuke Wada 6ca8e8d8de
fix(zod-openapi): relax input types (#211)
* fix(zod-openapi): relax input types

* changeset
2023-10-26 17:49:10 +09:00
github-actions[bot] cb5bba456b
Version Packages (#209) 2023-10-23 05:20:38 +09:00
Andrew 46575b4395
fix(zod-validator): make validation input optional when schema is optional (#208)
* fix(zod-validator): make validation input optional when schema is optional

* feat(index.test.ts): add tests for optional schema

* feat(index.test.ts): add more tests for optional schema

* chore: add changeset
2023-10-23 05:18:23 +09:00
github-actions[bot] d7a703b556
Version Packages (#207) 2023-10-22 12:08:10 +09:00
Yusuke Wada 2d2fdd0379
feat(zod-openapi): allows the response to be `Response` (#206)
* feat: allows the response to be `Response`

* add changeset
2023-10-22 12:05:43 +09:00
github-actions[bot] a593d311f5
Version Packages (#202) 2023-10-19 07:29:04 +09:00
koralle 989d968795
fix(graphql-server): enhance type safety of RootResolvers and Options (#201)
* fix(graphql-server): enhance type safety of RootResolvers and Options

This commit introduces more specific type annotations to the following modules:
* RootResolvers
* Options

Specifically, the same type parameters used in the definition of `Context` class were given to them:

```ts
<E extends Env = any, P extends string = any, I extends Input = {}>
```

* chore: run `changeset`
2023-10-19 07:16:11 +09:00
github-actions[bot] 1d316c188f
Version Packages (#195) 2023-10-07 01:52:09 +09:00
Kei Kamikawa 152e93e598
fix(firebase-auth): throw HTTPException for bad request (#194) 2023-10-06 16:48:22 +09:00
github-actions[bot] 4eb3eb5e5a
Version Packages (#193) 2023-10-05 22:44:30 +09:00
Kei Kamikawa 794f03c363
fix(firebase-auth): throw HTTPException instead of reponse null (#191)
* fix(firebase-auth): throw HTTPException instead of reponse null

* added changeset
2023-10-05 22:42:21 +09:00
github-actions[bot] b77369e6f1
Version Packages (#190) 2023-10-04 23:46:25 +00:00
Yusuke Wada 58167f3b7f
fix(zod-openapi): publish as cjs by default (#189)
* fix(zod-openapi): publish as cjs by default

* changeset
2023-10-04 23:40:56 +00:00
github-actions[bot] b96e7f25ce
Version Packages (#183) 2023-09-29 06:18:32 +09:00
melbourne2991 7c6573da69
fix(typebox-validator): Update typebox dependency (#178)
* Update typebox dependency
2023-09-29 06:13:56 +09:00
Nico Franke 9aefddc45d
fix(zod-openapi): properly convert openapi path type to hono (#182)
* fix: properly convert openapi path type to hono

* chore: add changeset
2023-09-29 06:08:26 +09:00
github-actions[bot] d4ae60d489
Version Packages (#177) 2023-09-26 17:21:38 +09:00
Yusuke Wada 047eca5ca9
fix(zod-openapi): enable `basePath()` (#179)
* fix(zod-openapi): enable `basePath()`

* add changeset
2023-09-26 17:16:36 +09:00
Matt Sutkowski 9c45dbc41d
feat(zod-openapi): add support for defaultHook in initializer (#170)
* feat: add support for defaultHook in initializer

* update README
2023-09-26 17:09:02 +09:00
Luis Bizarro a9123dd9e3
fix: Async zod support. (#175)
* add: Async zod support.

* add: Missing changeset.
2023-09-26 05:20:41 +09:00
Yusuke Wada fb63ef413c
fix(zod-openapi): multiple routes types correct for `hc` (#176)
* fix(zod-openapi): multiple routes types correct for `hc`

* changeset
2023-09-25 12:57:51 +09:00
github-actions[bot] fd4aa8754e
Version Packages (#169) 2023-09-22 06:01:38 +09:00
Jakob Bergström (NotoriousSledge) dbebf747c9
feat: Zod-Openapi-Middleware: Export types to allow handlers and hooks to be declared in more places. (#167)
* Exported Handler and Hook types

* Performed changeset
2023-09-22 05:59:22 +09:00
github-actions[bot] a8747ab6fe
Version Packages (#165) 2023-09-20 06:18:58 +09:00
Yusuke Wada 62a97fda6a
fix(zod-openapi): use `z.output` for types after validation (#164)
* fix(zod-openapi): use `z.output` for types after validation

* changeset
2023-09-20 06:15:33 +09:00
github-actions[bot] 55373edb67
Version Packages (#162) 2023-09-19 08:26:24 +09:00
naporitan 05b8e9a751
feat: Add `getRoutingPath` to the return value of `createRoute`. (#161)
* feat(zod-openapi): add getRoutingPath

* feat(zod-openapi): add docs

* feat(zod-openapi): add versioning doc
2023-09-19 08:24:10 +09:00
github-actions[bot] 928f84a226
Version Packages (#160) 2023-09-15 22:57:15 +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
github-actions[bot] 752e6b2fd3
Version Packages (#157) 2023-09-12 08:32:02 +09:00
Mike Stop Continues 430088e175
[zod-openapi] Merge subapps' definitions into main app (#153)
* feat(zod-openapi): support `init` object

* feat(zod-openapi): support `v3.1` spec output

* feat(zod-openapi): Merge subapps' definitions
2023-09-12 08:25:41 +09:00
github-actions[bot] ec3beefd63
Version Packages (#156) 2023-09-11 11:47:16 +09:00
Yusuke Wada 804caac191
fix(zod-openapi): support multiple params (#155)
* fix(zod-openapi): support multiple params

* changeset
2023-09-11 11:44:47 +09:00
github-actions[bot] be7d4a6916
Version Packages (#149) 2023-09-05 19:01:34 +09:00
Yusuke Wada ee9e2a3d21 fix: make it as patch 2023-09-05 18:58:45 +09:00
Yusuke Wada 1006cbca6b
feat(zod-openapi): make `app.openAPIRegistry` public (#150)
* feat(zod-openapi): make `app.openAPIRegistry` public

* changeset
2023-09-05 18:55:09 +09:00
Yusuke Wada 1bfd648df8
fix(zod-openapi): fix the type error (#148)
* fix(zod-openapi): fix the type error

* changeset
2023-09-05 18:34:58 +09:00