portless 0.13.0 → 0.14.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.d.ts CHANGED
@@ -64,7 +64,16 @@ interface RouteMapping extends RouteInfo {
64
64
  tailscaleUrl?: string;
65
65
  tailscaleHttpsPort?: number;
66
66
  tailscaleFunnel?: boolean;
67
+ ngrokUrl?: string;
68
+ ngrokPid?: number;
67
69
  }
70
+ type RouteMetadataPatch = {
71
+ tailscaleUrl?: string | null;
72
+ tailscaleHttpsPort?: number | null;
73
+ tailscaleFunnel?: boolean | null;
74
+ ngrokUrl?: string | null;
75
+ ngrokPid?: number | null;
76
+ };
68
77
  /**
69
78
  * Thrown when a route is already registered by a live process and --force was
70
79
  * not specified. With --force, the existing process is killed instead.
@@ -126,7 +135,7 @@ declare class RouteStore {
126
135
  * Update metadata on an existing route entry. Only provided fields are
127
136
  * merged; the route must already exist (matched by hostname).
128
137
  */
129
- updateRoute(hostname: string, fields: Partial<Pick<RouteMapping, "tailscaleUrl" | "tailscaleHttpsPort" | "tailscaleFunnel">>): void;
138
+ updateRoute(hostname: string, fields: RouteMetadataPatch): void;
130
139
  removeRoute(hostname: string): void;
131
140
  }
132
141
 
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  removeBlock,
20
20
  shouldAutoSyncHosts,
21
21
  syncHostsFile
22
- } from "./chunk-3WLVQXFE.js";
22
+ } from "./chunk-OZM4AEYL.js";
23
23
  export {
24
24
  DIR_MODE,
25
25
  FILE_MODE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portless",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Replace port numbers with stable, named .localhost URLs. For humans and agents.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "engines": {
21
- "node": ">=20"
21
+ "node": ">=24"
22
22
  },
23
23
  "os": [
24
24
  "darwin",
@@ -53,7 +53,7 @@
53
53
  "url": "https://github.com/vercel-labs/portless/issues"
54
54
  },
55
55
  "devDependencies": {
56
- "@types/node": "^20.11.0",
56
+ "@types/node": "^24.12.4",
57
57
  "@vitest/coverage-v8": "^4.0.18",
58
58
  "eslint": "^9.39.2",
59
59
  "tsup": "^8.0.1",