@nifrajs/cli 2.6.0 → 2.6.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.
package/dist/cli.js CHANGED
@@ -134,7 +134,7 @@ routes/ from the current directory. Run from your project root.
134
134
  Port: \`dev\` and \`start\` share the default ${DEFAULT_DEV_PORT}. Override with \`--port <n>\` (alias \`-p\`) or the
135
135
  \`PORT\` env var (\`--port\` wins over \`PORT\`, which wins over the default).`;
136
136
  // Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
137
- const CLI_VERSION = "2.6.0";
137
+ const CLI_VERSION = "2.6.1";
138
138
  // A render adapter + nifra server are opaque to the CLI (it just forwards them); cast at the seam.
139
139
  const asAdapter = (v) => v;
140
140
  const asBunPlugins = (v) => v;
package/dist/mcp-http.js CHANGED
@@ -23,7 +23,7 @@ import { loadTypesCorpus } from "./types-search.js";
23
23
  export { examplesAppTool, examplesWidget } from "./mcp-app-tool.js";
24
24
  export { docsTools } from "./mcp-docs-tools.js";
25
25
  // Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
26
- const VERSION = "2.6.0";
26
+ const VERSION = "2.6.1";
27
27
  const SERVER_INFO = { name: "nifra-docs", version: VERSION };
28
28
  // Derive the GET/health tool list from the tools actually served, so the line can never drift from them.
29
29
  const docsHealth = (tools) => `nifra docs MCP - POST JSON-RPC 2.0 here (methods: initialize, tools/list, tools/call). Tools: ${tools
@@ -186,12 +186,13 @@ to full-stack later without a rewrite.
186
186
  -
187
187
  **Throughput - the realistic case.** Router micro-benchmarks flatter Hono (a single compiled
188
188
  regex), but a router is **~1% of a real request** - the time goes to middleware, validation,
189
- context, and serialization. On the bare Bun/Deno micro-GET rows Nifra runs within **~1-3% of
190
- Elysia** - a statistical tie at the runtime ceiling; on **Node it's ahead of Elysia on every
191
- workload**, and it leads on every POST/validated row across runtimes. In the realistic shape
192
- (security headers + CORS + bearer auth + cookies + validated query/body + a ~2.4 KB JSON
193
- response, measured with `oha`) Nifra runs at **103% of Elysia on GET and 108% on
194
- POST**. Treat benchmark rows as same-run evidence, not a permanent law of nature.
189
+ context, and serialization. In the current Bun matrix Nifra **matches or beats Elysia on three
190
+ of the four workloads** (medians 101%, 104%, 99%, 101%) and takes the top `GET /`
191
+ row outright; on **Node it leads the whole framework field - Elysia, Fastify, Hono, Express -
192
+ on every workload**. In the realistic shape (security headers + CORS + bearer auth + cookies +
193
+ validated query/body + a ~2.4 KB JSON response, measured with `oha`) Nifra runs
194
+ at **103% of Elysia on GET and 108% on POST**. Treat benchmark rows as same-run evidence, not
195
+ a permanent law of nature.
195
196
 
196
197
  -
197
198
  **End-to-end types.** `client<typeof app>()` derives request inputs _and_
package/docs/types.json CHANGED
@@ -10814,14 +10814,14 @@
10814
10814
  "name": "VERSION",
10815
10815
  "kind": "const",
10816
10816
  "package": "@nifrajs/core",
10817
- "signature": "export declare const VERSION: \"2.6.0\";",
10817
+ "signature": "export declare const VERSION: \"2.6.1\";",
10818
10818
  "doc": "/**\n * Current package version. A hardcoded literal on purpose - core runs on the edge (no fs), so it can't\n * read its own package.json at runtime. `scripts/version.ts` rewrites it on every release bump and\n * `check:publish` asserts it equals `@nifrajs/core`'s package version.\n */"
10819
10819
  },
10820
10820
  {
10821
10821
  "name": "VERSION",
10822
10822
  "kind": "const",
10823
10823
  "package": "nifra",
10824
- "signature": "export declare const VERSION: \"2.6.0\";",
10824
+ "signature": "export declare const VERSION: \"2.6.1\";",
10825
10825
  "doc": "/**\n * Current package version. A hardcoded literal on purpose - core runs on the edge (no fs), so it can't\n * read its own package.json at runtime. `scripts/version.ts` rewrites it on every release bump and\n * `check:publish` asserts it equals `@nifrajs/core`'s package version.\n */"
10826
10826
  },
10827
10827
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nifrajs/cli",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "The nifra CLI - zero-config dev/build/start for a nifra app (`nifra dev`, `nifra build`, `nifra start`).",
5
5
  "keywords": [
6
6
  "bun",
@@ -41,14 +41,14 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@nifrajs/client": "2.6.0",
45
- "@nifrajs/core": "2.6.0",
46
- "@nifrajs/mcp": "2.6.0",
47
- "@nifrajs/runner": "2.6.0",
48
- "@nifrajs/schema": "2.6.0",
49
- "@nifrajs/testing": "2.6.0",
50
- "@nifrajs/web": "2.6.0",
51
- "create-nifra": "2.6.0"
44
+ "@nifrajs/client": "2.6.1",
45
+ "@nifrajs/core": "2.6.1",
46
+ "@nifrajs/mcp": "2.6.1",
47
+ "@nifrajs/runner": "2.6.1",
48
+ "@nifrajs/schema": "2.6.1",
49
+ "@nifrajs/testing": "2.6.1",
50
+ "@nifrajs/web": "2.6.1",
51
+ "create-nifra": "2.6.1"
52
52
  },
53
53
  "repository": {
54
54
  "type": "git",
package/src/cli.ts CHANGED
@@ -154,7 +154,7 @@ Port: \`dev\` and \`start\` share the default ${DEFAULT_DEV_PORT}. Override with
154
154
  \`PORT\` env var (\`--port\` wins over \`PORT\`, which wins over the default).`
155
155
 
156
156
  // Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
157
- const CLI_VERSION = "2.6.0"
157
+ const CLI_VERSION = "2.6.1"
158
158
 
159
159
  // A render adapter + nifra server are opaque to the CLI (it just forwards them); cast at the seam.
160
160
  const asAdapter = (v: unknown): RenderAdapter => v as RenderAdapter
package/src/mcp-http.ts CHANGED
@@ -29,7 +29,7 @@ export { docsTools } from "./mcp-docs-tools.ts"
29
29
  export type { TypeEntry } from "./types-search.ts"
30
30
 
31
31
  // Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
32
- const VERSION = "2.6.0"
32
+ const VERSION = "2.6.1"
33
33
  const SERVER_INFO = { name: "nifra-docs", version: VERSION }
34
34
  // Derive the GET/health tool list from the tools actually served, so the line can never drift from them.
35
35
  const docsHealth = (tools: McpTool[]): string =>