@ahmedrowaihi/8n 6.0.64 → 6.0.65

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/index.mjs CHANGED
@@ -3494,7 +3494,7 @@ async function checkSelfUpdate() {
3494
3494
  });
3495
3495
  if (!res.ok) return;
3496
3496
  const { version: latest } = await res.json();
3497
- const current = "6.0.64";
3497
+ const current = "6.0.65";
3498
3498
  if (latest !== current) console.log(pc.yellow("⚠") + pc.dim(` new version available: `) + pc.cyan(latest) + pc.dim(` (current: ${current}) — run `) + pc.cyan("npm i -g @ahmedrowaihi/8n") + pc.dim(" to update"));
3499
3499
  } catch {}
3500
3500
  }
@@ -3599,7 +3599,7 @@ async function dev() {
3599
3599
  async function build({ server = false } = {}) {
3600
3600
  const { config, contentDir } = await resolveProject();
3601
3601
  const projectDir = process.cwd();
3602
- console.log(pc.cyan("8n") + pc.dim(` v6.0.64 build → ${contentDir}`));
3602
+ console.log(pc.cyan("8n") + pc.dim(` v6.0.65 build → ${contentDir}`));
3603
3603
  if (server) await runNextFlat(projectDir, "build", buildEnv({
3604
3604
  config,
3605
3605
  contentDir,
@@ -3974,7 +3974,7 @@ async function mcp() {
3974
3974
  const mcpDir = join(getStarterDir(), "content", "mcp");
3975
3975
  const server = new McpServer({
3976
3976
  name: "8n",
3977
- version: "6.0.64"
3977
+ version: "6.0.65"
3978
3978
  });
3979
3979
  server.registerTool("read_me", {
3980
3980
  description: "Returns how to use the 8n MCP tools. Call this BEFORE documenting anything with 8n.",
@@ -4092,7 +4092,7 @@ async function generateApi({ input, output }) {
4092
4092
 
4093
4093
  //#endregion
4094
4094
  //#region src/index.ts
4095
- const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.64").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4095
+ const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.65").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4096
4096
  if (cmd.opts().debug) process.env.DEBUG_8N = "1";
4097
4097
  });
4098
4098
  program.command("init").description("Scaffold a new docs project in the current directory").action(init);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahmedrowaihi/8n",
3
- "version": "6.0.64",
3
+ "version": "6.0.65",
4
4
  "description": "8n docs — run your docs site from your content directory",
5
5
  "bin": {
6
6
  "8n": "./dist/index.mjs"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahmedrowaihi/8n-starter",
3
- "version": "6.0.64",
3
+ "version": "6.0.65",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{notFound as e,redirect as r}from"next/navigation";import{relative as o}from"node:path";import{DocsPageContent as i}from".";import{getMDXComponentsForLang as a}from"../../components/fumadocs/mdx-server.js";import{getSections as n}from"../../lib/source";import{getDocsPageMeta as l,resolveDocsPage as s}from"../../lib/docs-page";import{localeConfig as m,locales as c}from"../../locale.config";import{env as p}from"../../config";export async function generateStaticParams(){return Object.entries(await n()).flatMap(([t,e])=>{let r=e.generateParams().map(e=>({section:t,...e}));for(let e of c)r.some(t=>t.lang===e&&0===t.slug.length)||r.push({section:t,lang:e,slug:[]});return r})}export async function generateMetadata({params:t}){let{lang:e,section:r,slug:o=[]}=await t,i=await l(r,o,e);if(!i||"redirect"===i.type)return{};let a=m[e]?.siteName??m.en.siteName;return{title:`${i.title} — ${a}`,description:i.description}}export default async function f({params:n}){let{lang:l,section:m,slug:c=[]}=await n,d=await s(m,c,l);return d||e(),"redirect"===d.type&&r(d.url),t(i,{toc:d.toc,frontmatter:{title:d.title,description:d.description},github:p.NEXT_PUBLIC_GITHUB_REPO?{repo:p.NEXT_PUBLIC_GITHUB_REPO,fileUrl:`${p.NEXT_PUBLIC_GITHUB_REPO}/blob/HEAD/${o(process.cwd(),d.filePath)}`}:void 0,markdownUrl:d.markdownUrl,path:d.path,lang:l,lastModified:d.lastModified,neighbours:d.neighbours,full:d.full,children:t(d.MDX,{components:a(l,d.title,p.NEXT_PUBLIC_GITHUB_REPO)})})}
1
+ import{jsx as t}from"react/jsx-runtime";import{notFound as e,redirect as r}from"next/navigation";import{relative as o}from"node:path";import{DocsPageContent as i}from".";import{getMDXComponentsForLang as a}from"../../components/fumadocs/mdx-server.js";import{getSections as n}from"../../lib/source";import{getDocsPageMeta as l,resolveDocsPage as s}from"../../lib/docs-page";import{localeConfig as m,locales as c}from"../../locale.config";import{env as f}from"../../config";export async function generateStaticParams(){return Object.entries(await n()).flatMap(([t,e])=>{let r=e.generateParams().map(e=>({section:t,...e}));for(let e of c)r.some(t=>t.lang===e&&0===t.slug.length)||r.push({section:t,lang:e,slug:[]});return r})}export async function generateMetadata({params:t}){let{lang:e,section:r,slug:o=[]}=await t,i=await l(r,o,e);if(!i||"redirect"===i.type)return{};let a=m[e]?.siteName??m.en.siteName;return{title:`${i.title} — ${a}`,description:i.description}}export default async function p({params:n}){let{lang:l,section:m,slug:c=[]}=await n,d=await s(m,c,l);return d||e(),"redirect"===d.type&&r(d.url),t(i,{toc:d.toc,frontmatter:{title:d.title,description:d.description},github:f.NEXT_PUBLIC_GITHUB_REPO?{repo:f.NEXT_PUBLIC_GITHUB_REPO,fileUrl:`${f.NEXT_PUBLIC_GITHUB_REPO}/blob/HEAD/${o(process.cwd(),d.filePath)}`}:void 0,markdownUrl:d.markdownUrl,lang:l,lastModified:d.lastModified,neighbours:d.neighbours,full:d.full,children:t(d.MDX,{components:a(l,d.title,f.NEXT_PUBLIC_GITHUB_REPO)})})}