@nifrajs/cli 5.3.0 → 5.4.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 +23 -0
- package/dist/cli.js +1 -1
- package/dist/mcp-http.js +1 -1
- package/dist/recipes/5.4.0.d.ts +10 -0
- package/dist/recipes/5.4.0.d.ts.map +1 -0
- package/dist/recipes/5.4.0.js +25 -0
- package/dist/recipes/5.4.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/llms-full.txt +413 -178
- package/docs/types.json +95 -5
- package/package.json +11 -11
- package/src/cli.ts +1 -1
- package/src/mcp-http.ts +1 -1
- package/src/recipes/5.4.0.ts +26 -0
- package/src/recipes/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @nifrajs/cli
|
|
2
2
|
|
|
3
|
+
## 5.4.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 19e16be: `nifra upgrade 5.4.0` prints what changes for a 5.3 app: a `node` build needs the adapter of the same release, static files carry content `ETag`s and drop `Last-Modified` for copied mtimes, the Deno entry answers validators, and `@nifrajs/node`'s `static` reader changes its types, ranges and link answers.
|
|
8
|
+
- Updated dependencies [e7d43ca]
|
|
9
|
+
- Updated dependencies [5183c00]
|
|
10
|
+
- Updated dependencies [01b97ec]
|
|
11
|
+
- Updated dependencies [e589893]
|
|
12
|
+
- Updated dependencies [ff66db6]
|
|
13
|
+
- Updated dependencies [02ac072]
|
|
14
|
+
- Updated dependencies [529f8d2]
|
|
15
|
+
- @nifrajs/web@5.4.0
|
|
16
|
+
- @nifrajs/core@5.4.0
|
|
17
|
+
- @nifrajs/client@5.4.0
|
|
18
|
+
- @nifrajs/i18n@5.4.0
|
|
19
|
+
- @nifrajs/mcp@5.4.0
|
|
20
|
+
- @nifrajs/schema@5.4.0
|
|
21
|
+
- @nifrajs/testing@5.4.0
|
|
22
|
+
- @nifrajs/agent-review@5.4.0
|
|
23
|
+
- @nifrajs/mcp-db@5.4.0
|
|
24
|
+
- @nifrajs/runner@5.4.0
|
|
25
|
+
|
|
3
26
|
## 5.3.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
package/dist/cli.js
CHANGED
|
@@ -300,7 +300,7 @@ set in the process environment is never overwritten by a file.
|
|
|
300
300
|
|
|
301
301
|
${renderCommandCatalogHelp()}`;
|
|
302
302
|
// Kept in lockstep with packages/cli/package.json by check:publish's version-consistency gate.
|
|
303
|
-
const CLI_VERSION = "5.
|
|
303
|
+
const CLI_VERSION = "5.4.0";
|
|
304
304
|
// A render adapter + nifra server are opaque to the CLI (it just forwards them); cast at the seam.
|
|
305
305
|
const asAdapter = (v) => v;
|
|
306
306
|
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 = "5.
|
|
26
|
+
const VERSION = "5.4.0";
|
|
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
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UpgradeRecipe } from "./index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Upgrade recipe for Nifra 5.4.
|
|
4
|
+
*
|
|
5
|
+
* No import or dependency moves. A `node` build needs the adapter of the same release, and static
|
|
6
|
+
* files answer validators, ranges and types the same way on every runtime; each note says what an
|
|
7
|
+
* app or a client sees differently.
|
|
8
|
+
*/
|
|
9
|
+
export declare const recipe: UpgradeRecipe;
|
|
10
|
+
//# sourceMappingURL=5.4.0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"5.4.0.d.ts","sourceRoot":"","sources":["../../src/recipes/5.4.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,EAAE,aAgBpB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Upgrade recipe for Nifra 5.4.
|
|
3
|
+
*
|
|
4
|
+
* No import or dependency moves. A `node` build needs the adapter of the same release, and static
|
|
5
|
+
* files answer validators, ranges and types the same way on every runtime; each note says what an
|
|
6
|
+
* app or a client sees differently.
|
|
7
|
+
*/
|
|
8
|
+
export const recipe = {
|
|
9
|
+
version: "5.4.0",
|
|
10
|
+
pins: [
|
|
11
|
+
{ match: "@nifrajs/", to: "5.4.0" },
|
|
12
|
+
{ match: "create-nifra", to: "5.4.0" },
|
|
13
|
+
{ match: "nifra", to: "5.4.0" },
|
|
14
|
+
],
|
|
15
|
+
importMoves: [],
|
|
16
|
+
notes: [
|
|
17
|
+
"The server entry a `node` build generates passes the app itself to `@nifrajs/node`'s `serve` and serves files with the adapter's own reader, so it needs the `@nifrajs/node` of the same release. With an older adapter installed the build stops before bundling, names both versions and leaves the last deploy dir in place, where a 5.3 adapter used to build and then throw when the server started. Upgrade `@nifrajs/node` with the rest.",
|
|
18
|
+
"Static files carry a strong `ETag` from their content (128 bits of SHA-256) on the Bun entry and `nifra dev` (`servePublicDir`), `@nifrajs/node`'s `static` reader and the generated Deno entry, the same for the same bytes on every instance. The Node reader's `\"<mtime>-<size>\"` tag is gone, so clients and caches revalidate each file once after the upgrade. `Last-Modified` is sent only while a file's mtime is its own last change, so a file whose mtime a copy or build set (every file in a container image) is sent without one and `If-Modified-Since` cannot validate it. An `If-Range` date no longer keeps a range for a tagged file; a client resumes by the tag.",
|
|
19
|
+
"The generated Deno entry answers static files with `etag` and `last-modified`, a `304` with no body for a current copy (HEAD included), and honors `Range` only when `If-Range` is absent or names the file's current validator, as the Bun and Node entries do. On Bun and Deno `If-None-Match` is evaluated before `If-Modified-Since`, so a stale entity tag no longer gets a `304` from the date beside it.",
|
|
20
|
+
"`@nifrajs/node`'s `serve({ static })` types files from the same table as `servePublicDir`, so `.pdf`, `.mp4`, `.xml`, `.csv` and other common types are no longer sent as `application/octet-stream`. It serves `/.well-known` by default, refuses a visible name that links to a dotfile, and answers a link that leaves the directory with `404` where it answered `403`. `static` also takes an array of mounts, a `files` list a mount is limited to, and `cacheControl`.",
|
|
21
|
+
"`@nifrajs/node`'s `static` reader parses `Range` with `@nifrajs/core/range`, like the other runtimes: overlapping or adjacent ranges are served as the one range they cover, a satisfiable range listed with unsatisfiable ones is served, an inverted range (`bytes=9-0`) answers `416` where it was ignored, a zero-length suffix (`bytes=-0`) sends the whole file where it answered `416`, and a `Range` longer than 16 KiB is ignored.",
|
|
22
|
+
"On Bun, `servePublicDir` (the Bun entry and `nifra dev`) sends `content-length` for files up to 1 MiB, whole or ranged, where Bun used to send them chunked with no length. Files above 1 MiB are still sent chunked.",
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=5.4.0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"5.4.0.js","sourceRoot":"","sources":["../../src/recipes/5.4.0.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,MAAM,GAAkB;IACnC,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE;QACJ,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE;QACnC,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,EAAE,OAAO,EAAE;QACtC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE;KAChC;IACD,WAAW,EAAE,EAAE;IACf,KAAK,EAAE;QACL,kbAAkb;QAClb,ypBAAypB;QACzpB,iZAAiZ;QACjZ,+cAA+c;QAC/c,6aAA6a;QAC7a,uNAAuN;KACxN;CACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/recipes/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/recipes/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH,0FAA0F;AAC1F,MAAM,WAAW,OAAO;IACtB,uEAAuE;IACvE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,mGAAmG;IACnG,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACpB;AAED,mGAAmG;AACnG,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,gFAAgF;AAChF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACpB;AAED,oGAAoG;AACpG,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,OAAO,EAAE,CAAA;IACjC,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;IACpD,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAA;IAC3C,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,aAAa,EAAE,CAAA;IAClD,qGAAqG;IACrG,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACnC;AAcD,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEpE;AAED,4CAA4C;AAC5C,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C"}
|
package/dist/recipes/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { recipe as v5_0_0 } from "./5.0.0.js";
|
|
|
14
14
|
import { recipe as v5_1_0 } from "./5.1.0.js";
|
|
15
15
|
import { recipe as v5_2_0 } from "./5.2.0.js";
|
|
16
16
|
import { recipe as v5_3_0 } from "./5.3.0.js";
|
|
17
|
+
import { recipe as v5_4_0 } from "./5.4.0.js";
|
|
17
18
|
const RECIPES = {
|
|
18
19
|
[v1_8_0.version]: v1_8_0,
|
|
19
20
|
[v2_0_0.version]: v2_0_0,
|
|
@@ -23,6 +24,7 @@ const RECIPES = {
|
|
|
23
24
|
[v5_1_0.version]: v5_1_0,
|
|
24
25
|
[v5_2_0.version]: v5_2_0,
|
|
25
26
|
[v5_3_0.version]: v5_3_0,
|
|
27
|
+
[v5_4_0.version]: v5_4_0,
|
|
26
28
|
};
|
|
27
29
|
export function getRecipe(version) {
|
|
28
30
|
return RECIPES[version];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/recipes/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,MAA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