0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-22 11:17:33 +01:00
Commit Graph

410 Commits

Author SHA1 Message Date
Yusuke Wada
8ad3b61bb4 v3.12.8 2024-01-27 22:47:13 +09:00
Yusuke Wada
4ec3a9bf41 v3.12.7 2024-01-25 10:44:45 +09:00
ryu
45d612d641
refactor(test): change to not use env command (#2062)
* refactor(test): change to not use `env` command

* fix bun test
2024-01-23 17:07:31 +09:00
Yusuke Wada
cce2b3cd21 v3.12.6 2024-01-19 08:09:30 +09:00
Aris Kemper
fb0b9d42a3
feat: add script for watch, remove tsc from test (#2008)
* feat: add script for watch, remove tsc from test

* feat: reverted back to use of tsc with no emit in test
2024-01-18 08:46:56 +09:00
Yusuke Wada
1ad251c1ba v3.12.5 2024-01-16 14:08:40 +09:00
Yusuke Wada
7d8cdd5e30 v3.12.4 2024-01-15 16:10:43 +09:00
ryu
4c2f57510d
chore(package.json): use escape double quotes (#1957) 2024-01-13 08:02:02 +09:00
Yusuke Wada
de1eb2a324 v3.12.3 2024-01-12 17:31:35 +09:00
Yusuke Wada
1489e1dc90 v3.12.2 2024-01-11 16:16:24 +09:00
Charles Kornoelje
df6c60b619
fix(netlify): update package.json to export .netlify/ (#1930)
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-01-11 16:09:34 +09:00
Yusuke Wada
8de60599aa v3.12.1 2024-01-09 23:04:13 +09:00
Shotaro Nakamura
cf4c7ebd90
feat: exports router types (#1900) 2024-01-08 22:50:46 +09:00
Yusuke Wada
3f8d1ea511 v3.12.0 2024-01-05 00:31:06 +09:00
Yusuke Wada
74287a82cc
feat: introduce css Helper (#1850)
* feat: introduce CSS Helper

* shorten

* feat(css): Implement css helper with callback (#1858)

* feat(css): Implement css helper with callback

* feat(css): add keyframes and pseudo selectors support

* fix(css): Specify missing "context" argument in resolveCallback()

* feat(css): use WeakMap instead of Map, to avoid memory leak

* feat(css): improve CSS helper

* fix(css): fix formatting and types in css helper

* chore: denoify

* docs(css): add experimental flag to css helper

* feat(css): Enable to embed sub `css`.

* fix(css): propagate selector to parent class

* feat(css): Use Record again for usedClassNameData

* feat(css): escape only close tag "</...>", not all slashes. we can use url() without escaping.

* fix(css): embedded `css` must have ";"

* Fix format.

* feat(css): add cx() helper

`cx()` is a helper function to combine multiple css classes.
This function is compatible with `cx()` in @emotion/css.

* feat(css): ignore boolean, null, and undefined values as same as jsx

* chore: denoify

* feat(css): enable to use cx() with external class name

* refactor(css): use symbols for keys

* chore: denoify

---------

Co-authored-by: Taku Amano <taku@taaas.jp>
2024-01-02 22:47:42 +09:00
Yusuke Wada
0e7f519916 Merge branch 'main' into next 2024-01-02 14:37:01 +09:00
Yusuke Wada
4f8ffcfada v3.11.12 2024-01-01 18:27:37 +09:00
Taku Amano
b143c4ed8b
feat(middleware/csrf): Introduce CSRF middleware (#1823)
* feat(middleware/csrf): Introduce CSRF middleware

* test(middleware/csrf): Add tests for CSRF middleware

* chore: denoify

* fix(middleware/csrf): fix typo.
2023-12-27 06:58:20 +09:00
Yusuke Wada
7a86bb0ef7 v3.11.11 2023-12-27 06:44:23 +09:00
watany
7f0e51a389
chore(vitest/tsconfig): bump vitest and update tsconfig.build.json (#1851)
* update vitest

* vitest typecheck

* ignore vitest setting in build

* Revert "vitest typecheck"
2023-12-25 11:46:37 +09:00
Yusuke Wada
a8fb2377c9 v3.11.10 2023-12-24 16:57:02 +09:00
Yusuke Wada
0a9a753da9 v3.11.9 2023-12-21 22:51:14 +09:00
watany
8addfd442a
chore: upgrading vitest to v1.0 (#1830)
* update vitest

* vitest type
2023-12-19 07:29:30 +09:00
Yusuke Wada
76dbc74407
chore(package.json): remove ts-jest (#1829) 2023-12-17 21:21:22 +09:00
Yoshiaki Sugimoto
7a55399bc2
test: Use vitest for fastly compute testing (#1828)
* use vitest for fastly compute testing

* reflect reviews and solve problem

* chore: update comment

* run lint:fix
2023-12-17 21:17:18 +09:00
Yusuke Wada
77bc4416d9 v3.11.8 2023-12-17 07:39:05 +09:00
Yusuke Wada
f18e8f9950
chore: bump devDependencies (#1820) 2023-12-14 18:10:27 +09:00
Yusuke Wada
8edb160c0e v3.11.7 2023-12-14 10:24:02 +09:00
Yusuke Wada
af9e485266
chore: bump up @hono/eslint-config (#1816) 2023-12-13 19:29:26 +09:00
Yusuke Wada
18b62821dd
chore: use @hono/eslint-config (#1815) 2023-12-13 18:35:30 +09:00
Yusuke Wada
0e11444b44 v3.11.6 2023-12-13 16:23:26 +09:00
Yusuke Wada
a86b75b2e4 v3.11.5 2023-12-13 09:05:04 +09:00
Yusuke Wada
75dbd4dc22 v3.11.4 2023-12-09 17:07:05 +09:00
Yusuke Wada
0afb5e1bba v3.11.3 2023-12-07 09:36:36 +09:00
Yusuke Wada
f841c2dcae v3.11.2 2023-12-05 18:52:22 +09:00
Yusuke Wada
5e0ef3048b v3.11.1 2023-12-04 22:17:11 +09:00
Yusuke Wada
8028437b0f v3.11.0 2023-12-04 17:40:57 +09:00
Yusuke Wada
b21f33c987
Merge pull request #1774 from honojs/next
Next
2023-12-04 17:36:48 +09:00
Yusuke Wada
0497097b15 v3.10.5 2023-12-04 05:01:30 +09:00
Yusuke Wada
472fee3629 Merge branch 'main' into next 2023-12-02 05:22:10 +09:00
Yusuke Wada
bd00d28469 v3.10.4 2023-12-02 05:19:22 +09:00
Taku Amano
bd36ad10fc
feat(helper/dev): Introduce inspectRoutes() and showRoutes() (#1716)
* feat(dev): Introduce "dev" helper

* feat(dev): Expose "dev" helper

* refactor: Use "named function" in some middleware.

* feat: `app.showRoutes()` is now deprecated. Use `showRoutes()` in `helper` instead.

* refactor: export RouterRoute interface for utility

* refactor: remove captureRouteStackTrace, add inspectRoutes

`captureRouteStackTrace` will be implemented after some more thought.
Instead, I added `inspectRoutes` to get routes as data.

* test: add tests for helper/dev/index.ts

* fix: run `format:fix`

* refactor: use named functions for middleware

* chore: denoify

* docs: tweaks deprecation warning message

* refactor(dev): Simplification of showList options

* chore: denoify
2023-11-29 19:22:09 +09:00
Yusuke Wada
d34343c4a3 v3.10.3 2023-11-28 17:57:57 +09:00
Yusuke Wada
1a3a9022ca v3.10.2 2023-11-21 17:20:50 +09:00
Yusuke Wada
e13000f199 v3.10.1 2023-11-15 22:43:30 +09:00
Yusuke Wada
b158143075 v3.10.0 2023-11-13 14:30:12 +09:00
Yusuke Wada
d7d6ced432 v3.10.0-rc.2 2023-11-08 21:33:21 +09:00
Taku Amano
652ef7c867
feat(jsx): Define jsxTemplate/jsxAttr/jsxEscape for "@jsx precompile" of Deno 1.38 (#1651)
* fix(jsx/streaming): Fix for renderToReadableStream(promise: Promise<HtmlEscapedString>).

* feat(jsx): Define jsxTemplate/jsxAttr/jsxEscape for "@jsx precompile" of Deno 1.38

* chore: denoify

* fix(jsx/streaming): some times jsxDEV is called with null props.

* test(deno-jsx): Add runtime tests for JSX by Deno.

* test: Refactor import map.

* test: Added @jsxImportSource to avoid type warnings
2023-11-08 21:07:35 +09:00
Yusuke Wada
125cf98398 v3.10.0-rc.1 2023-11-07 07:23:23 +09:00
Taku Amano
fedeb3d696
feat: Introduce streaming API with Suspense and use. (#1630)
* feat(jsx): Support async component.

* chore: denoify

* feat: Support nested async components.

* chore: denoify

* Remove unintended file from commit.

* test(jsx): Add test for html tagged template strings.

* feat: Introduce streaming API with `Suspense` and `use`.

* chore: denoify

* "use" receives only Promise.

* feat: Support multiple calls and nested calls to "use".

* refactor: tweaks replacement script.

* test: Add test for replacement result of streaming

* chore: denoify

* test: Add test "Complex fallback content"

* refactor: Add "typescript-eslint/no-explicit-any".

* Use jsdom instead of happy-dom due to ci failure.

* test: update test data for suspense.

* refactor: Remove excessive exports

* refactor: Changed initialization of `useContexts[]` to clarify intent.

* perf: improve `renderToReadableStream()` performance.

* chore: denoify

* pref: Shortened the output JS a bit.

* pref: Delete unneeded condition

* docs(jsx/streaming): Add `@experimental` flag to streaming API.

* fix(jsx/streadming): fix loop when using fullfilled Promise with null or undefined.

* fix(jsx/streaming): Catch unhandledRejection to avoid streaming not being closed.

* chore(jsx/streaming): Add entries for jsx/streaming to package.json.

* chore: denoify

* feat(jsx/streaming): Support the Async Component inside Suspense.

* chore: denoify

* feat(jsx/streaming): remove implementation of `use()`.
2023-11-07 07:09:04 +09:00