fumapress 0.6.2 → 0.6.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.
@@ -9,7 +9,7 @@ import { loader } from "fumadocs-core/source";
9
9
  import { AsyncLocalStorage } from "node:async_hooks";
10
10
  import { dynamicLoader } from "fumadocs-core/source/dynamic";
11
11
  //#region src/lib/shared.tsx
12
- var import_deepmerge = /* @__PURE__ */ __toESM(require_deepmerge());
12
+ var import_deepmerge = /* @__PURE__ */ __toESM(require_deepmerge(), 1);
13
13
  const appContext = new AsyncLocalStorage({ name: "fumapress:core" });
14
14
  function getPressContext() {
15
15
  const store = appContext.getStore();
@@ -16,7 +16,7 @@ var require_http_cache_semantics = /* @__PURE__ */ __commonJSMin(((exports, modu
16
16
  * Set of default cacheable status codes per RFC 7231 section 6.1.
17
17
  * @type {Set<number>}
18
18
  */
19
- const statusCodeCacheableByDefault = new Set([
19
+ const statusCodeCacheableByDefault = /* @__PURE__ */ new Set([
20
20
  200,
21
21
  203,
22
22
  204,
@@ -35,7 +35,7 @@ var require_http_cache_semantics = /* @__PURE__ */ __commonJSMin(((exports, modu
35
35
  * Note: This implementation does not understand partial responses (206).
36
36
  * @type {Set<number>}
37
37
  */
38
- const understoodStatuses = new Set([
38
+ const understoodStatuses = /* @__PURE__ */ new Set([
39
39
  200,
40
40
  203,
41
41
  204,
@@ -55,7 +55,7 @@ var require_http_cache_semantics = /* @__PURE__ */ __commonJSMin(((exports, modu
55
55
  * Set of HTTP error status codes.
56
56
  * @type {Set<number>}
57
57
  */
58
- const errorStatusCodes = new Set([
58
+ const errorStatusCodes = /* @__PURE__ */ new Set([
59
59
  500,
60
60
  502,
61
61
  503,
@@ -3,7 +3,7 @@ import { isFullPathname } from "../../lib/pathname.js";
3
3
  import { require_http_cache_semantics } from "../../node_modules/.pnpm/http-cache-semantics@4.2.0/node_modules/http-cache-semantics/index.js";
4
4
  //#region src/plugins/image/self-hosted.utils.ts
5
5
  var import_http_cache_semantics = /* @__PURE__ */ __toESM(require_http_cache_semantics(), 1);
6
- const SAFE_IMAGE_CONTENT_TYPES = new Set([
6
+ const SAFE_IMAGE_CONTENT_TYPES = /* @__PURE__ */ new Set([
7
7
  "image/jpeg",
8
8
  "image/png",
9
9
  "image/gif",
@@ -27,16 +27,19 @@ function llmsPlugin(options = {}) {
27
27
  pathname: joinPathname(lang ?? "", basePath, ...segments)
28
28
  };
29
29
  }
30
+ function initRenderers(data) {
31
+ data.renderers ??= [];
32
+ data.renderers.push(function(res) {
33
+ res.markdownUrl ??= slugsToMarkdownPath(this.page.slugs, this.page.locale).pathname;
34
+ return res;
35
+ });
36
+ }
30
37
  return {
31
38
  name: "core:llms.txt",
32
39
  init() {
33
40
  if (this.mode === "dynamic") basePath = "/_llms.txt";
34
- this.data["core:docs-layout"] ??= {};
35
- this.data["core:docs-layout"].renderers ??= [];
36
- this.data["core:docs-layout"].renderers.push(function(res) {
37
- res.markdownUrl ??= slugsToMarkdownPath(this.page.slugs, this.page.locale).pathname;
38
- return res;
39
- });
41
+ initRenderers(this.data["core:docs-layout"] ??= {});
42
+ initRenderers(this.data["core:notebook-layout"] ??= {});
40
43
  },
41
44
  createMiddlewares({ app }) {
42
45
  if (this.mode === "static") return;
package/dist/router/fs.js CHANGED
@@ -10,8 +10,8 @@ const Methods = [
10
10
  "OPTIONS"
11
11
  ];
12
12
  const ValidMethods = new Set(Methods);
13
- const IGNORED_PATH_PARTS = new Set(["_components", "_hooks"]);
14
- const SPECIAL_BASENAME = new Set([
13
+ const IGNORED_PATH_PARTS = /* @__PURE__ */ new Set(["_components", "_hooks"]);
14
+ const SPECIAL_BASENAME = /* @__PURE__ */ new Set([
15
15
  "_layout",
16
16
  "index",
17
17
  "_root"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumapress",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "An opinionated docs framework powered by Fumadocs",
5
5
  "keywords": [
6
6
  "Docs",
@@ -58,36 +58,36 @@
58
58
  "dependencies": {
59
59
  "@fuma-translate/react": "^1.0.2",
60
60
  "@orama/orama": "^3.1.18",
61
- "@takumi-rs/image-response": "^1.8.1",
61
+ "@takumi-rs/image-response": "^1.8.7",
62
62
  "class-variance-authority": "^0.7.1",
63
63
  "flexsearch": "^0.8.212",
64
- "lucide-react": "^1.17.0",
64
+ "lucide-react": "^1.22.0",
65
65
  "tailwind-merge": "^3.6.0",
66
- "vite": "^8.0.16",
66
+ "vite": "^8.1.0",
67
67
  "xml-js": "^1.6.11",
68
68
  "zod": "^4.4.3"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@fastify/deepmerge": "^3.2.1",
72
- "@fumadocs/asyncapi": "^0.0.2",
73
- "@tailwindcss/oxide": "^4.3.0",
72
+ "@fumadocs/asyncapi": "0.0.4",
73
+ "@tailwindcss/oxide": "^4.3.2",
74
74
  "@types/http-cache-semantics": "^4.2.0",
75
75
  "@types/mdx": "^2.0.14",
76
- "@types/node": "^25.9.3",
76
+ "@types/node": "^26.0.1",
77
77
  "@types/react": "^19.2.17",
78
78
  "@types/react-dom": "^19.2.3",
79
- "fumadocs-core": "^16.10.2",
80
- "fumadocs-mdx": "^15.0.12",
81
- "fumadocs-openapi": "^11.0.1",
82
- "fumadocs-ui": "^16.10.2",
83
- "hono": "^4.12.25",
79
+ "fumadocs-core": "^16.10.7",
80
+ "fumadocs-mdx": "^15.0.13",
81
+ "fumadocs-openapi": "^11.0.6",
82
+ "fumadocs-ui": "^16.10.7",
83
+ "hono": "^4.12.27",
84
84
  "http-cache-semantics": "^4.2.0",
85
85
  "react": "^19.2.7",
86
86
  "react-dom": "^19.2.7",
87
- "sharp": "^0.35.1",
88
- "tsdown": "0.22.2",
87
+ "sharp": "^0.35.2",
88
+ "tsdown": "0.22.3",
89
89
  "typescript": "^6.0.3",
90
- "waku": "1.0.0-beta.3"
90
+ "waku": "1.0.0-beta.6"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "@fumadocs/asyncapi": "0.x.x",
@@ -101,7 +101,7 @@
101
101
  "react": "^19.2.0",
102
102
  "react-dom": "^19.2.0",
103
103
  "sharp": "^0.34.0",
104
- "waku": "1.0.0-beta.3"
104
+ "waku": "1.0.0-beta.6"
105
105
  },
106
106
  "peerDependenciesMeta": {
107
107
  "@fumadocs/asyncapi": {