chore: upgrade dependencies (#11470)

* chore: upgrade dependencies

* chore: upgrade some major dependencies

* chore: bump shiki to v4

* chore: bump actions dependencies

* chore: upgrade meilisearch dependency

* chore: set aria-hidden on GitHubIcon

* fix: use official github icon
This commit is contained in:
Almeida
2026-03-31 09:57:57 +01:00
committed by GitHub
parent 9b7ea5a1b7
commit 339b8b5655
37 changed files with 6548 additions and 6496 deletions

View File

@@ -3,14 +3,14 @@ title: Updating to v15
icon: ArrowDownToLine
---
import { Github } from 'lucide-react';
import { GitHubIcon } from '@/components/GitHubIcon.tsx';
<Callout type="idea">
**Version 15 is in a pre-release** state, but should be usable!
That being said, we do not recommend you update your production instance without careful and thorough testing!
Please report any bugs you experience at our GitHub repository:
<Github className="inline text-red-400"/> https://github.com/discordjs/discord.js/issues
<GitHubIcon className="inline text-red-400"/> https://github.com/discordjs/discord.js/issues
</Callout>

View File

@@ -48,18 +48,18 @@
"homepage": "https://discord.js.org",
"funding": "https://github.com/discordjs/discord.js?sponsor",
"dependencies": {
"@opennextjs/cloudflare": "^1.16.5",
"@vercel/analytics": "^1.6.1",
"fumadocs-core": "^16.6.3",
"fumadocs-mdx": "^14.2.7",
"fumadocs-twoslash": "^3.1.13",
"fumadocs-ui": "^16.6.3",
"@opennextjs/cloudflare": "^1.18.0",
"@vercel/analytics": "^2.0.1",
"fumadocs-core": "^16.7.7",
"fumadocs-mdx": "^14.2.11",
"fumadocs-twoslash": "^3.1.14",
"fumadocs-ui": "^16.7.7",
"geist": "^1.7.0",
"lucide-react": "^0.559.0",
"mermaid": "^11.12.3",
"next": "^16.1.6",
"lucide-react": "^1.7.0",
"mermaid": "^11.13.0",
"next": "^16.2.1",
"next-themes": "^0.4.6",
"p-retry": "^7.1.1",
"p-retry": "^8.0.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"sharp": "^0.34.5",
@@ -68,31 +68,31 @@
"twoslash": "^0.3.6"
},
"devDependencies": {
"@shikijs/rehype": "^3.22.0",
"@tailwindcss/postcss": "^4.2.0",
"@shikijs/rehype": "^4.0.2",
"@tailwindcss/postcss": "^4.2.2",
"@types/mdx": "^2.0.13",
"@types/node": "^24.10.13",
"@types/node": "^24.12.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"autoprefixer": "^10.4.24",
"autoprefixer": "^10.4.27",
"babel-plugin-react-compiler": "^1.0.0",
"cpy-cli": "^6.0.0",
"cpy-cli": "^7.0.0",
"cross-env": "^10.1.0",
"eslint": "^9.39.2",
"eslint": "^9.39.4",
"eslint-config-neon": "^0.3.2",
"eslint-formatter-pretty": "^7.0.0",
"git-describe": "^4.1.1",
"postcss": "^8.5.6",
"postcss": "^8.5.8",
"prettier": "^3.8.1",
"prettier-plugin-tailwindcss": "^0.7.2",
"remark-gfm": "^4.0.1",
"remark-rehype": "^11.1.2",
"shiki": "^3.22.0",
"tailwindcss": "^4.2.0",
"turbo": "^2.8.10",
"shiki": "^4.0.2",
"tailwindcss": "^4.2.2",
"turbo": "^2.8.21",
"typescript": "~5.9.3",
"vercel": "^49.2.0",
"wrangler": "^4.67.0"
"vercel": "^50.37.3",
"wrangler": "^4.78.0"
},
"engines": {
"node": ">=22.12.0"

View File

@@ -0,0 +1,27 @@
import type { ComponentProps } from 'react';
export function GitHubIcon(props: ComponentProps<'svg'>) {
return (
<svg
aria-hidden
fill="none"
height={96}
viewBox="0 0 98 96"
width={98}
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<g clipPath="url(#clip0_730_27126)">
<path
d="M41.44 69.385C28.807 67.853 19.906 58.762 19.906 46.99c0-4.785 1.723-9.953 4.594-13.398-1.244-3.158-1.053-9.858.383-12.633 3.828-.479 8.996 1.531 12.058 4.307 3.637-1.149 7.465-1.723 12.155-1.723 4.69 0 8.517.574 11.963 1.627 2.966-2.68 8.23-4.69 12.058-4.211 1.34 2.584 1.531 9.283.287 12.537 3.063 3.637 4.69 8.518 4.69 13.494 0 11.772-8.9 20.672-21.725 22.3 3.254 2.104 5.455 6.698 5.455 11.962v9.953c0 2.871 2.393 4.498 5.264 3.35C84.41 87.95 98 70.629 98 49.19 98 22.107 75.988 0 48.904 0 21.82 0 0 22.107 0 49.191c0 21.246 13.494 38.856 31.678 45.46 2.584.956 5.072-.766 5.072-3.35v-7.657c-1.34.575-3.063.958-4.594.958-6.316 0-10.049-3.446-12.728-9.858-1.053-2.584-2.201-4.115-4.403-4.402-1.148-.096-1.53-.574-1.53-1.149 0-1.148 1.913-2.01 3.827-2.01 2.776 0 5.168 1.723 7.657 5.264 1.914 2.776 3.923 4.02 6.316 4.02 2.392 0 3.924-.861 6.125-3.063 1.627-1.627 2.871-3.062 4.02-4.02z"
fill="#000"
/>
</g>
<defs>
<clipPath id="clip0_730_27126">
<path d="M0 0H98V96H0z" fill="#fff" />
</clipPath>
</defs>
</svg>
);
}

View File

@@ -6,7 +6,7 @@ import { Mermaid } from '@/components/mdx/mermaid';
export function getMDXComponents(components?: MDXComponents): MDXComponents {
return {
...defaultMdxComponents,
...(defaultMdxComponents as MDXComponents),
Popup,
PopupContent,
PopupTrigger,

View File

@@ -50,16 +50,16 @@
"tslib": "^2.8.1"
},
"devDependencies": {
"@types/node": "^24.10.13",
"@types/node": "^24.12.0",
"cross-env": "^10.1.0",
"eslint": "^9.39.2",
"eslint": "^9.39.4",
"eslint-config-neon": "^0.3.2",
"eslint-formatter-compact": "^9.0.1",
"eslint-formatter-pretty": "^7.0.0",
"prettier": "^3.8.1",
"terser": "^5.46.0",
"terser": "^5.46.1",
"tsup": "^8.5.1",
"turbo": "^2.8.10",
"turbo": "^2.8.21",
"typescript": "~5.9.3"
},
"engines": {

View File

@@ -51,27 +51,27 @@
"homepage": "https://discord.js.org",
"funding": "https://github.com/discordjs/discord.js?sponsor",
"dependencies": {
"@opennextjs/cloudflare": "^1.16.5",
"@opennextjs/cloudflare": "^1.18.0",
"@radix-ui/react-collapsible": "^1.1.12",
"@react-icons/all-files": "^4.1.0",
"@tanstack/react-query": "^5.90.21",
"@vercel/analytics": "^1.6.1",
"@tanstack/react-query": "^5.95.2",
"@vercel/analytics": "^2.0.1",
"@vercel/postgres": "^0.10.0",
"cloudflare": "^5.2.0",
"cmdk": "^1.1.1",
"cva": "1.0.0-beta.3",
"geist": "^1.7.0",
"jotai": "^2.18.0",
"lucide-react": "^0.559.0",
"meilisearch": "^0.54.0",
"next": "^16.1.6",
"jotai": "^2.19.0",
"lucide-react": "^1.7.0",
"meilisearch": "^0.56.0",
"next": "^16.2.1",
"next-themes": "^0.4.6",
"nuqs": "^2.8.8",
"nuqs": "^2.8.9",
"overlayscrollbars": "^2.14.0",
"overlayscrollbars-react": "^0.5.6",
"react": "^19.2.4",
"react-aria": "^3.46.0",
"react-aria-components": "^1.15.1",
"react-aria": "^3.47.0",
"react-aria-components": "^1.16.0",
"react-dom": "^19.2.4",
"safe-mdx": "^1.3.9",
"sharp": "^0.34.5",
@@ -80,32 +80,32 @@
"usehooks-ts": "^3.1.1"
},
"devDependencies": {
"@shikijs/rehype": "^3.22.0",
"@tailwindcss/postcss": "^4.2.0",
"@shikijs/rehype": "^4.0.2",
"@tailwindcss/postcss": "^4.2.2",
"@tailwindcss/typography": "^0.5.19",
"@types/node": "^24.10.13",
"@types/node": "^24.12.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"autoprefixer": "^10.4.24",
"autoprefixer": "^10.4.27",
"babel-plugin-react-compiler": "^1.0.0",
"cpy-cli": "^6.0.0",
"cpy-cli": "^7.0.0",
"cross-env": "^10.1.0",
"eslint": "^9.39.2",
"eslint": "^9.39.4",
"eslint-config-neon": "^0.3.2",
"eslint-formatter-pretty": "^7.0.0",
"git-describe": "^4.1.1",
"postcss": "^8.5.6",
"postcss": "^8.5.8",
"prettier": "^3.8.1",
"prettier-plugin-tailwindcss": "^0.7.2",
"remark-gfm": "^4.0.1",
"remark-rehype": "^11.1.2",
"shiki": "^3.22.0",
"tailwindcss": "^4.2.0",
"shiki": "^4.0.2",
"tailwindcss": "^4.2.2",
"tailwindcss-react-aria-components": "^2.0.1",
"turbo": "^2.8.10",
"turbo": "^2.8.21",
"typescript": "~5.9.3",
"vercel": "^49.2.0",
"wrangler": "^4.67.0"
"vercel": "^50.37.3",
"wrangler": "^4.78.0"
},
"engines": {
"node": ">=22.12.0"

View File

@@ -3,7 +3,7 @@
import { Command } from 'cmdk';
import { useAtom, useSetAtom } from 'jotai';
import { ArrowRight } from 'lucide-react';
import MeiliSearch from 'meilisearch';
import { MeiliSearch } from 'meilisearch';
import dynamic from 'next/dynamic';
import { usePathname, useRouter } from 'next/navigation';
import { useEffect, useState } from 'react';

View File

@@ -4,18 +4,35 @@ import type {
DynamicImportThemeRegistration,
HighlighterGeneric,
} from 'shiki/types';
import { createSingletonShorthands, createdBundledHighlighter } from 'shiki/core';
import { createBundledHighlighter, createSingletonShorthands } from 'shiki/core';
import { createJavaScriptRegexEngine } from 'shiki/engine-javascript.mjs';
type BundledLanguage = 'typescript' | 'ts' | 'javascript' | 'js' | 'shellscript' | 'bash' | 'sh' | 'shell' | 'zsh';
type BundledLanguage =
| 'typescript'
| 'ts'
| 'cts'
| 'mts'
| 'javascript'
| 'js'
| 'cjs'
| 'mjs'
| 'shellscript'
| 'bash'
| 'sh'
| 'shell'
| 'zsh';
type BundledTheme = 'github-light' | 'github-dark-dimmed';
type Highlighter = HighlighterGeneric<BundledLanguage, BundledTheme>;
const bundledLanguages = {
typescript: () => import('shiki/langs/typescript.mjs'),
ts: () => import('shiki/langs/typescript.mjs'),
cts: () => import('shiki/langs/typescript.mjs'),
mts: () => import('shiki/langs/typescript.mjs'),
javascript: () => import('shiki/langs/javascript.mjs'),
js: () => import('shiki/langs/javascript.mjs'),
cjs: () => import('shiki/langs/javascript.mjs'),
mjs: () => import('shiki/langs/javascript.mjs'),
shellscript: () => import('shiki/langs/shellscript.mjs'),
bash: () => import('shiki/langs/shellscript.mjs'),
sh: () => import('shiki/langs/shellscript.mjs'),
@@ -28,7 +45,7 @@ const bundledThemes = {
'github-dark-dimmed': () => import('shiki/themes/github-dark-dimmed.mjs'),
} as Record<BundledTheme, DynamicImportThemeRegistration>;
const createHighlighter = /* @__PURE__ */ createdBundledHighlighter<BundledLanguage, BundledTheme>({
const createHighlighter = /* @__PURE__ */ createBundledHighlighter<BundledLanguage, BundledTheme>({
langs: bundledLanguages,
themes: bundledThemes,
engine: () => createJavaScriptRegexEngine(),