chore: deps

This commit is contained in:
iCrawl
2024-02-06 01:53:30 +01:00
parent 3755e66d41
commit ae57d7facb
47 changed files with 4634 additions and 3664 deletions

View File

@@ -47,13 +47,13 @@
"@code-hike/mdx": "^0.9.0",
"@discordjs/ui": "workspace:^",
"@react-icons/all-files": "^4.1.0",
"@vercel/analytics": "^1.1.1",
"@vercel/analytics": "^1.1.3",
"@vercel/edge-config": "^0.4.1",
"@vercel/og": "^0.5.20",
"@vercel/og": "^0.6.2",
"ariakit": "2.0.0-next.44",
"cmdk": "^0.2.0",
"cmdk": "^0.2.1",
"contentlayer": "^0.3.4",
"next": "14.0.5-canary.21",
"next": "14.1.0",
"next-contentlayer": "^0.3.4",
"next-themes": "^0.2.1",
"react": "^18.2.0",
@@ -62,36 +62,36 @@
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",
"remark-gfm": "^3.0.1",
"sharp": "^0.32.6"
"sharp": "^0.33.2"
},
"devDependencies": {
"@next/bundle-analyzer": "14.0.5-canary.21",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.1",
"@next/bundle-analyzer": "14.1.0",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/html-escaper": "^3.0.2",
"@types/node": "18.18.8",
"@types/react": "^18.2.45",
"@types/react": "^18.2.54",
"@types/react-dom": "^18.2.18",
"@unocss/eslint-plugin": "^0.57.7",
"@unocss/postcss": "^0.57.7",
"@unocss/reset": "^0.57.7",
"@unocss/eslint-plugin": "^0.58.5",
"@unocss/postcss": "^0.58.5",
"@unocss/reset": "^0.58.5",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/coverage-v8": "^1.2.2",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint-config-neon": "^0.1.57",
"eslint-formatter-pretty": "^5.0.0",
"happy-dom": "^12.10.3",
"eslint-config-neon": "^0.1.58",
"eslint-formatter-pretty": "^6.0.1",
"happy-dom": "^13.3.8",
"hast-util-to-string": "^2.0.0",
"hastscript": "^8.0.0",
"html-escaper": "^3.0.3",
"postcss": "^8.4.32",
"prettier": "^3.1.1",
"turbo": "^1.11.2",
"typescript": "^5.2.2",
"unocss": "^0.57.3",
"vercel": "^32.7.2",
"vitest": "^0.34.6"
"postcss": "^8.4.34",
"prettier": "^3.2.5",
"turbo": "^1.12.2",
"typescript": "^5.3.3",
"unocss": "^0.58.5",
"vercel": "^33.4.1",
"vitest": "^1.2.2"
},
"engines": {
"node": ">=18"

View File

@@ -6,7 +6,7 @@ export default function NotFound() {
<h1 className="text-[9rem] font-black leading-none md:text-[12rem]">404</h1>
<h2 className="text-[2rem] md:text-[3rem]">Not found.</h2>
<Link
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base font-semibold leading-none text-white no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base text-white font-semibold leading-none no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
href="/guide"
>
Take me back

View File

@@ -53,51 +53,51 @@
"@microsoft/tsdoc": "^0.14.2",
"@microsoft/tsdoc-config": "0.16.2",
"@react-icons/all-files": "^4.1.0",
"@vercel/analytics": "^1.1.1",
"@vercel/analytics": "^1.1.3",
"@vercel/edge-config": "^0.4.1",
"@vercel/og": "^0.5.20",
"@vercel/postgres": "^0.5.1",
"@vercel/og": "^0.6.2",
"@vercel/postgres": "^0.7.2",
"ariakit": "2.0.0-next.44",
"bright": "^0.8.4",
"class-variance-authority": "^0.7.0",
"cmdk": "^0.2.0",
"meilisearch": "^0.35.1",
"next": "14.0.5-canary.21",
"cmdk": "^0.2.1",
"meilisearch": "^0.37.0",
"next": "14.1.0",
"next-mdx-remote": "^4.4.1",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-custom-scrollbars-2": "^4.5.0",
"react-dom": "^18.2.0",
"react-use": "^17.4.2",
"react-use": "^17.5.0",
"rehype-slug": "^5.1.0",
"remark-gfm": "^3.0.1",
"sharp": "^0.32.6",
"sharp": "^0.33.2",
"swr": "^2.2.4"
},
"devDependencies": {
"@next/bundle-analyzer": "14.0.5-canary.21",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.1",
"@next/bundle-analyzer": "14.1.0",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/node": "18.18.8",
"@types/react": "^18.2.45",
"@types/react": "^18.2.54",
"@types/react-dom": "^18.2.18",
"@unocss/eslint-plugin": "^0.57.7",
"@unocss/postcss": "^0.57.7",
"@unocss/reset": "^0.57.7",
"@unocss/eslint-plugin": "^0.58.5",
"@unocss/postcss": "^0.58.5",
"@unocss/reset": "^0.58.5",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/coverage-v8": "^1.2.2",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint-config-neon": "^0.1.57",
"eslint-formatter-pretty": "^5.0.0",
"happy-dom": "^12.10.3",
"postcss": "^8.4.32",
"prettier": "^3.1.1",
"turbo": "^1.11.2",
"typescript": "^5.2.2",
"vercel": "^32.7.2",
"vitest": "^0.34.6"
"eslint-config-neon": "^0.1.58",
"eslint-formatter-pretty": "^6.0.1",
"happy-dom": "^13.3.8",
"postcss": "^8.4.34",
"prettier": "^3.2.5",
"turbo": "^1.12.2",
"typescript": "^5.3.3",
"vercel": "^33.4.1",
"vitest": "^1.2.2"
},
"engines": {
"node": ">=18"

View File

@@ -13,7 +13,7 @@ export default function NotFound() {
<h1 className="text-[9rem] font-black leading-none md:text-[12rem]">404</h1>
<h2 className="text-[2rem] md:text-[3rem]">Not found.</h2>
<Link
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base font-semibold leading-none text-white no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base text-white font-semibold leading-none no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
href={href as Route}
>
Take me back

View File

@@ -7,7 +7,7 @@ export default function NotFound() {
<h1 className="text-[9rem] font-black leading-none md:text-[12rem]">404</h1>
<h2 className="text-[2rem] md:text-[3rem]">Not found.</h2>
<Link
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base font-semibold leading-none text-white no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base text-white font-semibold leading-none no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
href={'/docs' as Route}
>
Take me back

View File

@@ -18,7 +18,7 @@ export default function Page() {
The <span className="relative rounded bg-blurple px-3 py-1 text-white">most popular</span> way to build
Discord bots.
</h1>
<p className="my-6 leading-normal text-neutral-700 dark:text-neutral-300">{DESCRIPTION}</p>
<p className="my-6 text-neutral-700 leading-normal dark:text-neutral-300">{DESCRIPTION}</p>
<div className="flex flex-wrap place-content-center gap-4 md:flex-row">
<Link className={buttonVariants()} href={'/docs' as Route}>
Docs

View File

@@ -52,7 +52,7 @@ export function CmdKDialog() {
() =>
searchResults?.map((item, idx) => (
<Command.Item
className="my-1 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-content-center rounded bg-transparent px-4 py-2 text-base font-semibold leading-none text-black outline-none active:translate-y-px dark:border-dark-100 active:bg-neutral-200 hover:bg-neutral-100 dark:text-white [&[aria-selected]]:ring [&[aria-selected]]:ring-width-2 [&[aria-selected]]:ring-blurple dark:active:bg-dark-200 dark:hover:bg-dark-300"
className="my-1 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-content-center rounded bg-transparent px-4 py-2 text-base text-black font-semibold leading-none outline-none active:translate-y-px dark:border-dark-100 active:bg-neutral-200 hover:bg-neutral-100 dark:text-white [&[aria-selected]]:ring [&[aria-selected]]:ring-width-2 [&[aria-selected]]:ring-blurple dark:active:bg-dark-200 dark:hover:bg-dark-300"
key={`${item.id}-${idx}`}
onSelect={() => {
router.push(item.path);

View File

@@ -7,7 +7,7 @@ export function InheritanceText({ parent }: { readonly parent: ApiDeclaredItem }
<span className="font-semibold">
Inherited from{' '}
<ItemLink
className="rounded font-mono text-blurple outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
className="rounded text-blurple font-mono outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
itemURI={resolveItemURI(parent)}
>
{parent.displayName}

View File

@@ -27,7 +27,7 @@ export function InstallButton() {
}}
type="button"
>
<span className="font-semibold text-blurple">{'>'}</span> npm install discord.js{' '}
<span className="text-blurple font-semibold">{'>'}</span> npm install discord.js{' '}
{state.value && interacted ? (
<FiCheck className="ml-1 inline-block text-green-500" />
) : (

View File

@@ -80,7 +80,7 @@ export function TSDoc({ item, tsdoc }: { readonly item: ApiItem; readonly tsdoc:
return (
<ItemLink
className="rounded font-mono text-blurple outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
className="rounded text-blurple font-mono outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
itemURI={resolveItemURI(foundItem ?? resolved!.item)}
key={idx}
packageName={resolved?.package ?? item.getAssociatedPackage()?.displayName.replace('@discordjs/', '')}
@@ -99,7 +99,7 @@ export function TSDoc({ item, tsdoc }: { readonly item: ApiItem; readonly tsdoc:
if (urlDestination) {
return (
<Link
className="rounded font-mono text-blurple outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
className="rounded text-blurple font-mono outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
href={urlDestination as Route}
key={idx}
>

View File

@@ -19,8 +19,9 @@ export function MethodDocumentation({ method, inheritedFrom }: MethodDocumentati
const parent = method.parent as ApiDeclaredItem;
const firstOverload = method
.getMergedSiblings()
.find((meth): meth is ApiMethod => meth.kind === ApiItemKind.Method && (meth as ApiMethod).overloadIndex === 1)
?.tsdocComment;
.find(
(meth): meth is ApiMethod => meth.kind === ApiItemKind.Method && (meth as ApiMethod).overloadIndex === 1,
)?.tsdocComment;
if (!(method.tsdocComment?.summarySection || firstOverload?.summarySection || method.parameters.length > 0)) {
return null;