Skip to content

Commit

Permalink
[docs] regenerate yarn.lock (#6815)
Browse files Browse the repository at this point in the history
the existing pins were causing problems on node 17.

instead of downgrading node, refresh the lock file to pick up new versions. 

## Test Plan

make dev
  • Loading branch information
alangenfeld committed Feb 28, 2022
1 parent 779e27f commit 6ac6349
Show file tree
Hide file tree
Showing 6 changed files with 2,561 additions and 2,486 deletions.
4 changes: 2 additions & 2 deletions docs/next/components/mdx/SidebarNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function getItems(node, current) {
} else if (node.type === `paragraph`) {
visit(node, (item) => {
if (item.type === `link`) {
const url: string = item.url as any;
const url: string = item["url"];
// workaround for https://github.com/syntax-tree/mdast-util-toc/issues/70
// remove ids of HTML elements from the headings, i.e. "experimental", "cross", "check"
current.url = url
Expand All @@ -19,7 +19,7 @@ export function getItems(node, current) {
.replace(/-experimental-?$/, "");
}
if (item.type === `text`) {
current.title = item.value;
current.title = item["value"];
}
});
return current;
Expand Down
13 changes: 4 additions & 9 deletions docs/next/pages/changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,8 @@ function MDXRenderer({ data }: { data: MDXData }) {
const { query } = useRouter();
const { editMode } = query;

const {
mdxSource,
frontMatter,
searchIndex,
tableOfContents,
githubLink,
} = data;
const { mdxSource, frontMatter, searchIndex, tableOfContents, githubLink } =
data;

const content = hydrate(mdxSource, {
components,
Expand Down Expand Up @@ -222,10 +217,10 @@ function getItems(node, current) {
} else if (node.type === `paragraph`) {
visit(node, (item) => {
if (item.type === `link`) {
current.url = item.url;
current.url = item["url"];
}
if (item.type === `text`) {
current.title = item.value;
current.title = item["value"];
}
});
return current;
Expand Down
13 changes: 4 additions & 9 deletions docs/next/pages/migration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,8 @@ function MDXRenderer({ data }: { data: MDXData }) {
const { query } = useRouter();
const { editMode } = query;

const {
mdxSource,
frontMatter,
searchIndex,
tableOfContents,
githubLink,
} = data;
const { mdxSource, frontMatter, searchIndex, tableOfContents, githubLink } =
data;

const content = hydrate(mdxSource, {
components,
Expand Down Expand Up @@ -220,10 +215,10 @@ function getItems(node, current) {
} else if (node.type === `paragraph`) {
visit(node, (item) => {
if (item.type === `link`) {
current.url = item.url;
current.url = item["url"];
}
if (item.type === `text`) {
current.title = item.value;
current.title = item["value"];
}
});
return current;
Expand Down
1 change: 0 additions & 1 deletion docs/next/util/bolt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default function (receiver) {
dryRun: event.text.includes("--skip-issue"),
});

// @ts-expect-error
await say({ text: `Created issue at: ${issue}`, thread_ts });
}
});
Expand Down
10 changes: 5 additions & 5 deletions docs/next/util/codeTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default ({ setSnapshotStats }: CodeTransformerOptions) => async (
};

for (const [node] of codes) {
const meta = ((node.meta as string) || "").split(" ");
const meta = ((node["meta"] as string) || "").split(" ");
const fileMeta = meta.find((m) => m.startsWith("file="));
if (!fileMeta) {
continue;
Expand Down Expand Up @@ -78,12 +78,12 @@ export default ({ setSnapshotStats }: CodeTransformerOptions) => async (
}

stats.totalSnapshots++;
if (node.value !== contentWithLimit) {
stats.updatedSnapshots.push(node.meta as string);
node.value = `${contentWithLimit}`;
if (node["value"] !== contentWithLimit) {
stats.updatedSnapshots.push(node["meta"] as string);
node["value"] = `${contentWithLimit}`;
}
} catch (err) {
node.value = err.message;
node["value"] = err.message;
}
}

Expand Down

1 comment on commit 6ac6349

@vercel
Copy link

@vercel vercel bot commented on 6ac6349 Feb 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.