hono 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,10 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var jsx_dev_runtime_exports = {};
20
20
  __export(jsx_dev_runtime_exports, {
21
+ Fragment: () => import__2.Fragment,
21
22
  jsxDEV: () => jsxDEV
22
23
  });
23
24
  module.exports = __toCommonJS(jsx_dev_runtime_exports);
24
25
  var import__ = require(".");
26
+ var import__2 = require(".");
25
27
  function jsxDEV(tag, props) {
26
28
  const children = props.children ?? [];
27
29
  delete props["children"];
@@ -29,5 +31,6 @@ function jsxDEV(tag, props) {
29
31
  }
30
32
  // Annotate the CommonJS export names for ESM import in node:
31
33
  0 && (module.exports = {
34
+ Fragment,
32
35
  jsxDEV
33
36
  });
@@ -18,6 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var jsx_runtime_exports = {};
20
20
  __export(jsx_runtime_exports, {
21
+ Fragment: () => import_jsx_dev_runtime.Fragment,
21
22
  jsx: () => import_jsx_dev_runtime.jsxDEV,
22
23
  jsxs: () => import_jsx_dev_runtime2.jsxDEV
23
24
  });
@@ -26,6 +27,7 @@ var import_jsx_dev_runtime = require("./jsx-dev-runtime");
26
27
  var import_jsx_dev_runtime2 = require("./jsx-dev-runtime");
27
28
  // Annotate the CommonJS export names for ESM import in node:
28
29
  0 && (module.exports = {
30
+ Fragment,
29
31
  jsx,
30
32
  jsxs
31
33
  });
@@ -1,2 +1,3 @@
1
1
  import type { JSXNode } from '.';
2
+ export { Fragment } from '.';
2
3
  export declare function jsxDEV(tag: string | Function, props: Record<string, any>): JSXNode;
@@ -1,10 +1,12 @@
1
1
  // src/middleware/jsx/jsx-dev-runtime.ts
2
2
  import { jsx } from "./index.js";
3
+ import { Fragment } from "./index.js";
3
4
  function jsxDEV(tag, props) {
4
5
  const children = props.children ?? [];
5
6
  delete props["children"];
6
7
  return jsx(tag, props, children);
7
8
  }
8
9
  export {
10
+ Fragment,
9
11
  jsxDEV
10
12
  };
@@ -1,2 +1,2 @@
1
- export { jsxDEV as jsx } from './jsx-dev-runtime';
1
+ export { jsxDEV as jsx, Fragment } from './jsx-dev-runtime';
2
2
  export { jsxDEV as jsxs } from './jsx-dev-runtime';
@@ -1,7 +1,8 @@
1
1
  // src/middleware/jsx/jsx-runtime.ts
2
- import { jsxDEV } from "./jsx-dev-runtime.js";
2
+ import { jsxDEV, Fragment } from "./jsx-dev-runtime.js";
3
3
  import { jsxDEV as jsxDEV2 } from "./jsx-dev-runtime.js";
4
4
  export {
5
+ Fragment,
5
6
  jsxDEV as jsx,
6
7
  jsxDEV2 as jsxs
7
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Ultrafast web framework for Cloudflare Workers.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",