1tube 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ![NPM Version](https://img.shields.io/npm/v/1tube)
2
+
1
3
  # 1tube
2
4
 
3
5
  Self-hosted Supabase Edge Functions gateway. Runs your Deno edge functions locally or behind a .NET host with zero-copy YARP proxying — no cold starts, no version lock, no Supabase compute dependency.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "1tube",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "description": "Self-hosted Supabase Edge Functions gateway for Deno, plus an ESLint plugin for consumers",
6
6
  "license": "MIT",
package/src/server.ts CHANGED
@@ -17,6 +17,7 @@ import { corsMiddleware } from "./gateway/cors.ts";
17
17
  import { loggingMiddleware } from "./gateway/logging.ts";
18
18
  import { createRateLimiter } from "./gateway/rate-limit.ts";
19
19
  import { createHealthHandler, createMetricsHandler } from "./health.ts";
20
+ import { VERSION } from "./version.ts";
20
21
 
21
22
  // ---------------------------------------------------------------------------
22
23
  // CLI args & env
@@ -74,6 +75,13 @@ const { port, functionsPath, defaultTimeoutMs } = parseArgs();
74
75
 
75
76
  applyLocalDefaults();
76
77
 
78
+ const denoVersion = `${Deno.version.deno} (V8 ${Deno.version.v8}, TS ${Deno.version.typescript})`;
79
+ const bannerText = ` 1tube v${VERSION} · Deno ${denoVersion} `;
80
+ const bannerLine = "─".repeat(bannerText.length);
81
+ console.log(`\x1b[36m┌${bannerLine}┐\x1b[0m`);
82
+ console.log(`\x1b[36m│\x1b[0m \x1b[1m1tube\x1b[0m v${VERSION} \x1b[2m·\x1b[0m Deno ${denoVersion} \x1b[36m│\x1b[0m`);
83
+ console.log(`\x1b[36m└${bannerLine}┘\x1b[0m`);
84
+
77
85
  const registry = new FunctionRegistry();
78
86
  (globalThis as any).__edgeFunctionRegistry = registry;
79
87
 
package/src/version.ts ADDED
@@ -0,0 +1,13 @@
1
+ import { join, fromFileUrl } from "jsr:@std/path@^1";
2
+
3
+ function readVersion(): string {
4
+ try {
5
+ const dir = fromFileUrl(new URL(".", import.meta.url));
6
+ const raw = Deno.readTextFileSync(join(dir, "..", "package.json"));
7
+ return JSON.parse(raw).version ?? "unknown";
8
+ } catch {
9
+ return "unknown";
10
+ }
11
+ }
12
+
13
+ export const VERSION = readVersion();