@farming-labs/next 0.2.52 → 0.2.53

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/api.d.mts CHANGED
@@ -23,6 +23,7 @@ declare function createDocsMCPAPI(options?: DocsMCPAPIOptions): {
23
23
  GET(request: Request): Promise<Response>;
24
24
  POST(request: Request): Promise<Response>;
25
25
  DELETE(request: Request): Promise<Response>;
26
+ OPTIONS(request: Request): Promise<Response>;
26
27
  };
27
28
  //#endregion
28
29
  export { DocsAPICloudIntegration, DocsAPICloudOptions, type DocsCloudRouteHandlerOptions, type DocsCloudRouteHandlers, type DocsCloudServer, createDocsAPI, createDocsCloudRouteHandler, createDocsMCPAPI, resolveNextProjectRoot };
package/dist/config.mjs CHANGED
@@ -94,7 +94,7 @@ ${GENERATED_BANNER}
94
94
  import docsConfig from "@/docs.config";
95
95
  import { createDocsMCPAPI } from "@farming-labs/next/api";
96
96
 
97
- export const { GET, POST, DELETE } = createDocsMCPAPI(docsConfig);
97
+ export const { GET, POST, DELETE, OPTIONS } = createDocsMCPAPI(docsConfig);
98
98
 
99
99
  export const revalidate = false;
100
100
  `;
@@ -169,12 +169,14 @@ const DEFAULT_SITEMAP_MD_DOCS_ROUTE = "/docs/sitemap.md";
169
169
  const DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE = "/.well-known/sitemap.md";
170
170
  const DEFAULT_SITEMAP_MANIFEST_PATH = ".farming-labs/sitemap-manifest.json";
171
171
  const MARKDOWN_ACCEPT_HEADER_VALUE = [
172
- "(?:^|.*,\\s*)",
173
- "text/markdown",
172
+ "^",
173
+ "(?!.*(?:^|,)\\s*(?:[Tt][Ee][Xx][Tt]/[Hh][Tt][Mm][Ll]|[Tt][Ee][Xx][Tt]/\\*|\\*/\\*)(?:\\s*;[^,]*)?\\s*(?:,|$))",
174
+ "(?=.*(?:^|,)\\s*[Tt][Ee][Xx][Tt]/[Mm][Aa][Rr][Kk][Dd][Oo][Ww][Nn]",
174
175
  "(?:\\s*;",
175
- "(?!\\s*(?:[^,;]*;\\s*)*q\\s*=\\s*(?:0+(?:\\.0*)?|\\.0+)\\s*(?:;|,|$))",
176
+ "(?!\\s*(?:[^,;]*;\\s*)*[Qq]\\s*=\\s*(?:0+(?:\\.0*)?|\\.0+)\\s*(?:;|,|$))",
176
177
  "[^,]*)?",
177
- "(?:\\s*,.*|$)"
178
+ "\\s*(?:,|$))",
179
+ ".*$"
178
180
  ].join("");
179
181
  function resolvePackageAlias(packageName, fallbacks = []) {
180
182
  return [join(NEXT_PACKAGE_ROOT, "node_modules", packageName), ...fallbacks.map((value) => join(NEXT_PACKAGE_ROOT, value))].find((value) => existsSync(value));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/next",
3
- "version": "0.2.52",
3
+ "version": "0.2.53",
4
4
  "description": "Next.js adapter for @farming-labs/docs — MDX config wrapper",
5
5
  "keywords": [
6
6
  "docs",
@@ -106,8 +106,8 @@
106
106
  "tsdown": "^0.20.3",
107
107
  "typescript": "^5.9.3",
108
108
  "vitest": "^4.1.8",
109
- "@farming-labs/docs": "0.2.52",
110
- "@farming-labs/theme": "0.2.52"
109
+ "@farming-labs/theme": "0.2.53",
110
+ "@farming-labs/docs": "0.2.53"
111
111
  },
112
112
  "peerDependencies": {
113
113
  "@farming-labs/docs": ">=0.0.1",