@nifrajs/cli 5.11.0 → 5.12.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/CHANGELOG.md +24 -0
- package/dist/cli.js +1 -1
- package/dist/mcp-http.js +1 -1
- package/dist/recipes/5.12.0.d.ts +9 -0
- package/dist/recipes/5.12.0.d.ts.map +1 -0
- package/dist/recipes/5.12.0.js +34 -0
- package/dist/recipes/5.12.0.js.map +1 -0
- package/dist/recipes/index.d.ts.map +1 -1
- package/dist/recipes/index.js +2 -0
- package/dist/recipes/index.js.map +1 -1
- package/docs/examples.json +36 -0
- package/docs/llms-full.txt +373 -167
- package/docs/types.json +48 -13
- package/package.json +11 -11
- package/src/cli.ts +1 -1
- package/src/mcp-http.ts +1 -1
- package/src/recipes/5.12.0.ts +35 -0
- package/src/recipes/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nifrajs/cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.0",
|
|
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",
|
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@nifrajs/client": "5.
|
|
74
|
-
"@nifrajs/core": "5.
|
|
75
|
-
"@nifrajs/agent-review": "5.
|
|
76
|
-
"@nifrajs/i18n": "5.
|
|
77
|
-
"@nifrajs/mcp": "5.
|
|
78
|
-
"@nifrajs/mcp-db": "5.
|
|
79
|
-
"@nifrajs/runner": "5.
|
|
80
|
-
"@nifrajs/schema": "5.
|
|
81
|
-
"@nifrajs/testing": "5.
|
|
82
|
-
"@nifrajs/web": "5.
|
|
73
|
+
"@nifrajs/client": "5.12.0",
|
|
74
|
+
"@nifrajs/core": "5.12.0",
|
|
75
|
+
"@nifrajs/agent-review": "5.12.0",
|
|
76
|
+
"@nifrajs/i18n": "5.12.0",
|
|
77
|
+
"@nifrajs/mcp": "5.12.0",
|
|
78
|
+
"@nifrajs/mcp-db": "5.12.0",
|
|
79
|
+
"@nifrajs/runner": "5.12.0",
|
|
80
|
+
"@nifrajs/schema": "5.12.0",
|
|
81
|
+
"@nifrajs/testing": "5.12.0",
|
|
82
|
+
"@nifrajs/web": "5.12.0"
|
|
83
83
|
},
|
|
84
84
|
"repository": {
|
|
85
85
|
"type": "git",
|
package/src/cli.ts
CHANGED
|
@@ -356,7 +356,7 @@ set in the process environment is never overwritten by a file.
|
|
|
356
356
|
${renderCommandCatalogHelp()}`
|
|
357
357
|
|
|
358
358
|
// Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
|
|
359
|
-
const CLI_VERSION = "5.
|
|
359
|
+
const CLI_VERSION = "5.12.0"
|
|
360
360
|
|
|
361
361
|
// A render adapter + nifra server are opaque to the CLI (it just forwards them); cast at the seam.
|
|
362
362
|
const asAdapter = (v: unknown): RenderAdapter => v as RenderAdapter
|
package/src/mcp-http.ts
CHANGED
|
@@ -30,7 +30,7 @@ export { docsTools } from "./mcp-docs-tools.ts"
|
|
|
30
30
|
export type { TypeEntry } from "./types-search.ts"
|
|
31
31
|
|
|
32
32
|
// Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
|
|
33
|
-
const VERSION = "5.
|
|
33
|
+
const VERSION = "5.12.0"
|
|
34
34
|
const SERVER_INFO = { name: "nifra-docs", version: VERSION }
|
|
35
35
|
// Derive the GET/health tool list from the tools actually served, so the line can never drift from them.
|
|
36
36
|
const docsHealth = (tools: McpTool[]): string =>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { UpgradeRecipe } from "./index.ts"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Upgrade recipe for Nifra 5.12.
|
|
5
|
+
*
|
|
6
|
+
* This release has no import or dependency moves. Its notes cover the opt-in static response lane,
|
|
7
|
+
* schema validation and coercion changes, shared body limits, and WebSocket topic adapters.
|
|
8
|
+
*/
|
|
9
|
+
export const recipe: UpgradeRecipe = {
|
|
10
|
+
version: "5.12.0",
|
|
11
|
+
pins: [
|
|
12
|
+
{ match: "@nifrajs/", to: "5.12.0" },
|
|
13
|
+
{ match: "create-nifra", to: "5.12.0" },
|
|
14
|
+
{ match: "nifra", to: "5.12.0" },
|
|
15
|
+
],
|
|
16
|
+
importMoves: [],
|
|
17
|
+
affects: [
|
|
18
|
+
"@nifrajs/core",
|
|
19
|
+
"@nifrajs/deno",
|
|
20
|
+
"@nifrajs/edge",
|
|
21
|
+
"@nifrajs/node",
|
|
22
|
+
"@nifrajs/schema",
|
|
23
|
+
"@nifrajs/web",
|
|
24
|
+
],
|
|
25
|
+
notes: [
|
|
26
|
+
"`staticResponse()` registers fixed, bodyless GET/HEAD routes. Eligible Bun listeners serve them directly from Bun's route table; existing routes are unchanged unless they opt in.",
|
|
27
|
+
"Capability IDs now allow `_` separators, so grants work for IDs derived from snake_case `defineTool` names. Names with empty segments still need an explicit valid capability.",
|
|
28
|
+
"Server apps can provide a WebSocket `TopicAdapter`. The Node and Deno adapters report topic cleanup failures without skipping close callbacks.",
|
|
29
|
+
"Core exports its default request-body cap for the edge kit, and the core and edge servers now use the same default.",
|
|
30
|
+
"Schema validation treats inherited `Object.prototype` members as absent unless the input has that own key. Optional keys such as `constructor` no longer cause false validation failures; coercing schemas validate and return a prototype-free copy without mutating a plain-object input.",
|
|
31
|
+
"`compileSchema()` output works with strict TypeScript, `noUnusedLocals`, `noUnusedParameters`, and Node's built-in type stripping. It also rejects schema text containing a type annotation Node cannot strip.",
|
|
32
|
+
"The schema coercion fast path now covers scalar arrays and primitive literal unions. Ordinary loader contexts also use shallow copies while specialized contexts retain lazy request accessors.",
|
|
33
|
+
"Common routes that combine validated HTTP inputs and lifecycle hooks now use the compiled fast path, preserving their route behavior.",
|
|
34
|
+
],
|
|
35
|
+
}
|
package/src/recipes/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { recipe as v5_8_0 } from "./5.8.0.ts"
|
|
|
23
23
|
import { recipe as v5_9_0 } from "./5.9.0.ts"
|
|
24
24
|
import { recipe as v5_10_0 } from "./5.10.0.ts"
|
|
25
25
|
import { recipe as v5_11_0 } from "./5.11.0.ts"
|
|
26
|
+
import { recipe as v5_12_0 } from "./5.12.0.ts"
|
|
26
27
|
|
|
27
28
|
/** A pin rule: every dependency whose name starts with `match` is set to version `to`. */
|
|
28
29
|
export interface PinRule {
|
|
@@ -105,6 +106,7 @@ const RECIPES: Record<string, UpgradeRecipe> = {
|
|
|
105
106
|
[v5_9_0.version]: v5_9_0,
|
|
106
107
|
[v5_10_0.version]: v5_10_0,
|
|
107
108
|
[v5_11_0.version]: v5_11_0,
|
|
109
|
+
[v5_12_0.version]: v5_12_0,
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
export function getRecipe(version: string): UpgradeRecipe | undefined {
|