srvx 0.11.12 → 0.11.13

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.
@@ -55,7 +55,8 @@ const FastURL = /* @__PURE__ */ (() => {
55
55
  #searchParams;
56
56
  #pos;
57
57
  constructor(url) {
58
- if (typeof url === "string") this.#href = url;
58
+ if (typeof url === "string") if (url[0] === "/") this.#href = url;
59
+ else this.#url = new NativeURL(url);
59
60
  else if (_needsNormRE.test(url.pathname)) this.#url = new NativeURL(`${url.protocol || "http:"}//${url.host || "localhost"}${url.pathname}${url.search || ""}`);
60
61
  else {
61
62
  this.#protocol = url.protocol;
package/dist/cli.mjs CHANGED
@@ -184,7 +184,7 @@ function getResponseFormat(res) {
184
184
  //#region src/cli/_meta.ts
185
185
  const srvxMeta = {
186
186
  name: "srvx",
187
- version: "0.11.11",
187
+ version: "0.11.13",
188
188
  description: "Universal Server."
189
189
  };
190
190
  //#endregion
package/dist/log.d.mts CHANGED
@@ -2,6 +2,6 @@ import { ServerMiddleware } from "./types.mjs";
2
2
 
3
3
  //#region src/log.d.ts
4
4
  interface LogOptions {}
5
- declare const log: (_options?: LogOptions) => ServerMiddleware;
5
+ declare const log: (options?: LogOptions) => ServerMiddleware;
6
6
  //#endregion
7
7
  export { LogOptions, log };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "srvx",
3
- "version": "0.11.12",
3
+ "version": "0.11.13",
4
4
  "description": "Universal Server.",
5
5
  "homepage": "https://srvx.h3.dev",
6
6
  "license": "MIT",
@@ -59,38 +59,38 @@
59
59
  "vitest": "vitest"
60
60
  },
61
61
  "devDependencies": {
62
- "@cloudflare/workers-types": "^4.20260313.1",
63
- "@hono/node-server": "^1.19.11",
62
+ "@cloudflare/workers-types": "^4.20260317.1",
63
+ "@hono/node-server": "^2.0.0-rc.1",
64
64
  "@mitata/counters": "^0.0.8",
65
65
  "@mjackson/node-fetch-server": "^0.7.0",
66
66
  "@types/aws-lambda": "^8.10.161",
67
- "@types/bun": "^1.3.10",
67
+ "@types/bun": "^1.3.11",
68
68
  "@types/deno": "^2.5.0",
69
69
  "@types/express": "^5.0.6",
70
70
  "@types/node": "^25.5.0",
71
71
  "@types/node-forge": "^1.3.14",
72
- "@types/serviceworker": "^0.0.193",
73
- "@typescript/native-preview": "^7.0.0-dev.20260315.1",
74
- "@vitest/coverage-v8": "^4.1.0",
72
+ "@types/serviceworker": "^0.0.194",
73
+ "@typescript/native-preview": "^7.0.0-dev.20260323.1",
74
+ "@vitest/coverage-v8": "^4.1.1",
75
75
  "@whatwg-node/server": "^0.10.18",
76
76
  "automd": "^0.4.3",
77
77
  "changelogen": "^0.6.2",
78
78
  "eslint-config-unjs": "^0.6.2",
79
79
  "execa": "^9.6.1",
80
80
  "express": "^5.2.1",
81
- "fastify": "^5.8.2",
81
+ "fastify": "^5.8.4",
82
82
  "get-port-please": "^3.2.0",
83
83
  "mdbox": "^0.1.1",
84
84
  "mitata": "^1.0.34",
85
85
  "node-forge": "^1.3.3",
86
86
  "obuild": "^0.4.32",
87
- "oxfmt": "^0.40.0",
88
- "oxlint": "^1.55.0",
89
- "srvx-release": "npm:srvx@^0.11.9",
87
+ "oxfmt": "^0.41.0",
88
+ "oxlint": "^1.56.0",
89
+ "srvx-release": "npm:srvx@^0.11.12",
90
90
  "tslib": "^2.8.1",
91
- "typescript": "^5.9.3",
92
- "undici": "^7.24.3",
93
- "vitest": "^4.1.0"
91
+ "typescript": "^6.0.2",
92
+ "undici": "^7.24.5",
93
+ "vitest": "^4.1.1"
94
94
  },
95
95
  "resolutions": {
96
96
  "srvx": "link:."