h3 1.14.0 → 1.15.0

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.
package/dist/index.cjs CHANGED
@@ -8,7 +8,7 @@ const destr = require('destr');
8
8
  const defu = require('defu');
9
9
  const crypto = require('uncrypto');
10
10
  const ironWebcrypto = require('iron-webcrypto');
11
- const index = require('unenv/runtime/node/http/index');
11
+ const nodeMockHttp = require('node-mock-http');
12
12
 
13
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
14
14
 
@@ -2366,8 +2366,8 @@ async function _handlePlainRequest(app, request) {
2366
2366
  const path = request.path;
2367
2367
  const method = (request.method || "GET").toUpperCase();
2368
2368
  const headers = new Headers(request.headers);
2369
- const nodeReq = new index.IncomingMessage();
2370
- const nodeRes = new index.ServerResponse(nodeReq);
2369
+ const nodeReq = new nodeMockHttp.IncomingMessage();
2370
+ const nodeRes = new nodeMockHttp.ServerResponse(nodeReq);
2371
2371
  nodeReq.method = method;
2372
2372
  nodeReq.url = path;
2373
2373
  nodeReq.headers = Object.fromEntries(headers.entries());
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import destr from 'destr';
6
6
  import { defu } from 'defu';
7
7
  import crypto from 'uncrypto';
8
8
  import { seal, defaults, unseal } from 'iron-webcrypto';
9
- import { IncomingMessage, ServerResponse } from 'unenv/runtime/node/http/index';
9
+ import { IncomingMessage, ServerResponse } from 'node-mock-http';
10
10
 
11
11
  function useBase(base, handler) {
12
12
  base = withoutTrailingSlash(base);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "h3",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "Minimal H(TTP) framework built for high performance and portability.",
5
5
  "repository": "unjs/h3",
6
6
  "license": "MIT",
@@ -30,35 +30,35 @@
30
30
  "test": "pnpm lint && vitest --run --coverage"
31
31
  },
32
32
  "resolutions": {
33
- "h3": "link:."
33
+ "h3": "^1.14.0"
34
34
  },
35
35
  "dependencies": {
36
36
  "cookie-es": "^1.2.2",
37
- "crossws": "^0.3.2",
37
+ "crossws": "^0.3.3",
38
38
  "defu": "^6.1.4",
39
39
  "destr": "^2.0.3",
40
40
  "iron-webcrypto": "^1.2.1",
41
+ "node-mock-http": "^1.0.0",
41
42
  "ohash": "^1.1.4",
42
43
  "radix3": "^1.1.2",
43
44
  "ufo": "^1.5.4",
44
- "uncrypto": "^0.1.3",
45
- "unenv": "^1.10.0"
45
+ "uncrypto": "^0.1.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "0x": "^5.8.0",
49
49
  "@types/express": "^5.0.0",
50
- "@types/node": "^22.10.7",
50
+ "@types/node": "^22.13.1",
51
51
  "@types/supertest": "^6.0.2",
52
- "@vitest/coverage-v8": "^3.0.3",
52
+ "@vitest/coverage-v8": "^3.0.5",
53
53
  "autocannon": "^8.0.0",
54
54
  "automd": "^0.3.12",
55
55
  "changelogen": "^0.5.7",
56
56
  "connect": "^3.7.0",
57
- "eslint": "^9.18.0",
57
+ "eslint": "^9.19.0",
58
58
  "eslint-config-unjs": "^0.4.2",
59
59
  "express": "^4.21.2",
60
60
  "get-port": "^7.1.0",
61
- "h3": "^1.13.1",
61
+ "h3": "^1.14.0",
62
62
  "jiti": "^2.4.2",
63
63
  "listhen": "^1.9.0",
64
64
  "node-fetch-native": "^1.6.6",
@@ -69,8 +69,8 @@
69
69
  "typescript": "^5.7.3",
70
70
  "unbuild": "^3.3.1",
71
71
  "undici": "^7.3.0",
72
- "vitest": "^3.0.3",
72
+ "vitest": "^3.0.5",
73
73
  "zod": "^3.24.1"
74
74
  },
75
- "packageManager": "pnpm@9.15.4"
75
+ "packageManager": "pnpm@10.2.0"
76
76
  }