0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 11:51:01 +01:00
hono/deno_dist/utils
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
..
jwt fix(jwt): incorrect error message (#1487) 2023-09-21 06:14:48 +09:00
body.ts feat: parseBody() for multi values' field (#1528) 2023-10-05 16:33:56 +09:00
buffer.ts fix(utils/buffer): fix bufferToFormData() (#1500) 2023-09-23 23:46:09 +09:00
cookie.ts feat: Add CHIP support - supersedes #1198 (#1456) 2023-09-17 00:57:26 +09:00
crypto.ts refactor: support new @cloudflare/worker-types (#673) 2022-11-23 07:27:42 +09:00
encode.ts fix: avoid range-error (#1168) 2023-06-07 21:54:49 +09:00
filepath.ts fix(utils/filepath): filepath supports Windows (#1642) 2023-11-04 06:56:14 +09:00
html.ts feat: introduce css Helper (#1850) 2024-01-02 22:47:42 +09:00
http-status.ts feat(utils): remove HTTP status messages from http-status.ts (#1037) 2023-04-28 12:10:20 +09:00
mime.ts Add missing wasm mime type (#1307) 2023-08-09 21:45:07 +09:00
stream.ts fix(context): fix c.stream() and c.streamText() matters (#1482) 2023-09-20 22:53:30 +09:00
types.ts fix(types): JSONParsed supports interface and Date etc. (#1853) 2024-01-01 18:23:12 +09:00
url.ts fix(req): avoid error when req.queries() receives unexpected values (#1862) 2023-12-27 06:41:48 +09:00