0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-30 19:30:47 +01:00
Commit Graph

20 Commits

Author SHA1 Message Date
Yusuke Wada
f8371ab356
fix(serve-static): support extensionless files and refactor (#2260) 2024-02-24 22:38:39 +09:00
ryu
d74d95d11c
feat(serve-static): mimes option for serve-static (#2094)
* feat(serve-static): `mime` option for serve-static

* undo getExtension()

* add mime and serve-static tests

* reaname mimes to baseMime

* rename mime to mimes and add getMimeType() callback

Co-Authored-By: Yusuke Wada <yusuke@kamawada.com>

* update test description

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-01-30 03:16:49 +09:00
Yusuke Wada
b24f9e38da Merge branch 'main' into v4 2024-01-29 23:44:20 +09:00
Yusuke Wada
f616ed9abe
chore(lint): set curly rule as all (#2112)
* chore(lint): set `curly` rule as `all`

* denoify
2024-01-29 22:21:09 +09:00
watany
23d96a9b08
refactor(ssg): Removal of Libraries Dependent on Node.js (#2012)
* remove Buffer

* fix

* fix

* type Bun

* test import

* fix & rename

* move a ssg test for deno

* import jsx

* console.log

* update CI

* revert toAbcSSG name

* rename

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-01-19 11:38:09 +09:00
watany
54ef22adff
chore(helper): Add experimental flag the SSG features (#1967) 2024-01-14 03:55:04 +09:00
watany
04b686ca39
feat: Introducing a New SSG Adaptor/Helper (#1904)
* first

* v0.1

* faster

* enhanced type

* tsx

* jsx

* split

* fix

* denoify

* fix:  compatible with node:fs/promises

* rename

* fixed

* for bun

* add Deno

* add Deno

* fix

* revert

* 1.0

* denoify

* remove message

* ToSSGResult

* fix comment

* fix comment
2024-01-12 06:04:49 +09:00
Charles Kornoelje
0af52f828d
fix(netlify): change path in deno_dist/adapter/netlify 2024-01-11 16:12:22 +09:00
Yusuke Wada
d469ed9347
fix(netlify): add adapter/netlify/index.ts (#1932)
* fix(netlify): add `adapter/netlify/index.ts`

* denoify

* remove unnecessary comments

* denoify
2024-01-10 06:59:07 +09:00
Sor4chi
b8b0b384b6
feat: pass context to onNotFound callback in serveStatic (#1865)
* feat: pass context to onNotFound callback in serveStatic

* chore: denoify

* test: update notFoundHandler's callback expect

* feat: add Env generics for serveStatic to support `c.env` type in callback handler

* feat: add Env generics for serveStatic to support c.env type in cloudflare workers module's callback handler
2024-01-02 22:42:16 +09:00
Withee Poositasai
b128d02336
feat: Add onNotFound handler in adapters' serveStatic (#1825)
* feat: add onNotFound handler in adapters' serveStatic

* test: add serveStatic onNotFound tests for bun and deno

* test: add serveStatic onNotFound tests for cloudflare workers
2023-12-27 07:04:46 +09:00
Yusuke Wada
a104bf0010
fix(netlify): fix import paths (#1304) 2023-08-08 09:35:05 +09:00
Yusuke Wada
09368ac9cc
feat(adapter): add Netlify adapter (#1290)
* feat(adapter): add Netlify adapter

* denoify
2023-08-05 18:12:02 +09:00
Yusuke Wada
614ab9d6e4
fix(utils/filepath): don't allow dot segments (#1271) 2023-07-27 08:37:20 +09:00
markthree
0efc6952a3
perf(deno/middlewares/serveStatic): serve static with stream (#1234)
* perf(deno/middlewares/serveStatic): serve static with stream

* Revert "perf(deno/middlewares/serveStatic): serve static with stream"

This reverts commit 0360966d1e.

* fix(deno/middlewares/serveStatic): fix position and test for serve static with stream

* chore(deno/middlewares/serveStatic): clean temp dist files
2023-07-15 14:28:48 +09:00
Yusuke Wada
ee5929b045
fix(tsconfig): remove skipLibCheck (#1201) 2023-06-26 17:14:40 +09:00
Yusuke Wada
21f4c196e7
feat(serve-static): rewriteRequestPath option for Workers/Deno/Bun (#1065) 2023-05-03 23:05:21 +09:00
Yusuke Wada
23b05425da fix(deno): export deno adapter (#886) 2023-02-12 16:35:22 +09:00
Yusuke Wada
2828e59a6c Merge branch 'main' into next 2023-02-06 07:09:03 +09:00
Yusuke Wada
7beb64956c feat: [BREAKING] introduce adapters (#807)
* feat: [BREAKING] introduce adapters

* added Next.js adapter

* denoify
2023-01-19 22:45:25 +09:00