mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
build: bump dependencies (#10457)
* build: bump `@vladfrangu/async_event_emitter` * chore: bump again + fixes * build: bump types/node and some dev deps * build: bump discord-api-types again * style: remove unused eslint-ignore comment * build: sync dependencies and update templates * build: bump turbo * build: vercel + vitest * build: bump undici --------- Co-authored-by: Vlad Frangu <me@vladfrangu.dev>
This commit is contained in:
@@ -69,14 +69,14 @@
|
|||||||
"@testing-library/react": "^15.0.7",
|
"@testing-library/react": "^15.0.7",
|
||||||
"@testing-library/user-event": "^14.5.2",
|
"@testing-library/user-event": "^14.5.2",
|
||||||
"@types/html-escaper": "^3.0.2",
|
"@types/html-escaper": "^3.0.2",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@types/react": "^18.3.3",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@unocss/eslint-plugin": "^0.60.4",
|
"@unocss/eslint-plugin": "^0.60.4",
|
||||||
"@unocss/postcss": "^0.60.4",
|
"@unocss/postcss": "^0.60.4",
|
||||||
"@unocss/reset": "^0.60.4",
|
"@unocss/reset": "^0.60.4",
|
||||||
"@vitejs/plugin-react": "^4.3.0",
|
"@vitejs/plugin-react": "^4.3.0",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
@@ -86,12 +86,12 @@
|
|||||||
"hastscript": "^8.0.0",
|
"hastscript": "^8.0.0",
|
||||||
"html-escaper": "^3.0.3",
|
"html-escaper": "^3.0.3",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.4.38",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"unocss": "^0.60.4",
|
"unocss": "^0.60.4",
|
||||||
"vercel": "^34.2.4",
|
"vercel": "^37.0.0",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -50,10 +50,9 @@
|
|||||||
"@radix-ui/react-collapsible": "^1.0.3",
|
"@radix-ui/react-collapsible": "^1.0.3",
|
||||||
"@react-icons/all-files": "^4.1.0",
|
"@react-icons/all-files": "^4.1.0",
|
||||||
"@vercel/analytics": "^1.3.1",
|
"@vercel/analytics": "^1.3.1",
|
||||||
"@vercel/blob": "^0.23.3",
|
|
||||||
"@vercel/edge-config": "^1.1.1",
|
"@vercel/edge-config": "^1.1.1",
|
||||||
"@vercel/og": "^0.6.2",
|
"@vercel/og": "^0.6.2",
|
||||||
"@vercel/postgres": "^0.8.0",
|
"@vercel/postgres": "^0.9.0",
|
||||||
"cmdk": "^1.0.0",
|
"cmdk": "^1.0.0",
|
||||||
"geist": "^1.3.0",
|
"geist": "^1.3.0",
|
||||||
"jotai": "^2.8.2",
|
"jotai": "^2.8.2",
|
||||||
@@ -76,11 +75,11 @@
|
|||||||
"@tailwindcss/typography": "^0.5.13",
|
"@tailwindcss/typography": "^0.5.13",
|
||||||
"@testing-library/react": "^15.0.7",
|
"@testing-library/react": "^15.0.7",
|
||||||
"@testing-library/user-event": "^14.5.2",
|
"@testing-library/user-event": "^14.5.2",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@types/react": "^18.3.3",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@vitejs/plugin-react": "^4.3.0",
|
"@vitejs/plugin-react": "^4.3.0",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.19",
|
||||||
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
||||||
"cpy-cli": "^5.0.0",
|
"cpy-cli": "^5.0.0",
|
||||||
@@ -90,16 +89,16 @@
|
|||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"happy-dom": "^14.12.0",
|
"happy-dom": "^14.12.0",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.4.38",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.14",
|
"prettier-plugin-tailwindcss": "^0.5.14",
|
||||||
"remark-gfm": "^4.0.0",
|
"remark-gfm": "^4.0.0",
|
||||||
"remark-rehype": "^11.1.0",
|
"remark-rehype": "^11.1.0",
|
||||||
"shiki": "^1.6.2",
|
"shiki": "^1.6.2",
|
||||||
"tailwindcss": "^3.4.3",
|
"tailwindcss": "^3.4.3",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vercel": "^34.2.4",
|
"vercel": "^37.0.0",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { BuiltinDocumentationLinks } from '~/util/builtinDocumentationLinks';
|
|||||||
|
|
||||||
export async function ExcerptNode({ node, version }: { readonly node?: any; readonly version: string }) {
|
export async function ExcerptNode({ node, version }: { readonly node?: any; readonly version: string }) {
|
||||||
const createExcerpt = (excerpts: any) => {
|
const createExcerpt = (excerpts: any) => {
|
||||||
const excerpt = Array.isArray(excerpts) ? excerpts : excerpts.excerpts ?? [excerpts];
|
const excerpt = Array.isArray(excerpts) ? excerpts : (excerpts.excerpts ?? [excerpts]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
|
|||||||
24
package.json
24
package.json
@@ -50,28 +50,28 @@
|
|||||||
"homepage": "https://discord.js.org",
|
"homepage": "https://discord.js.org",
|
||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^19.3.0",
|
"@commitlint/cli": "^19.4.0",
|
||||||
"@commitlint/config-angular": "^19.3.0",
|
"@commitlint/config-angular": "^19.3.0",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@favware/npm-deprecate": "^1.0.7",
|
"@favware/npm-deprecate": "^1.0.7",
|
||||||
"@types/lodash.merge": "^4.6.9",
|
"@types/lodash.merge": "^4.6.9",
|
||||||
"@unocss/eslint-plugin": "^0.59.4",
|
"@unocss/eslint-plugin": "^0.59.4",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"conventional-changelog-cli": "^4.1.0",
|
"conventional-changelog-cli": "^4.1.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"husky": "^9.0.11",
|
"husky": "^9.1.5",
|
||||||
"is-ci": "^3.0.1",
|
"is-ci": "^3.0.1",
|
||||||
"lint-staged": "^15.2.5",
|
"lint-staged": "^15.2.9",
|
||||||
"lodash.merge": "^4.6.2",
|
"lodash.merge": "^4.6.2",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"typescript-eslint": "^7.11.0",
|
"typescript-eslint": "^8.2.0",
|
||||||
"unocss": "^0.60.4",
|
"unocss": "^0.60.4",
|
||||||
"vercel": "^34.2.4",
|
"vercel": "^37.0.0",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"peerDependencyRules": {
|
"peerDependencyRules": {
|
||||||
@@ -97,5 +97,5 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.1.4"
|
"packageManager": "pnpm@9.8.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,27 +42,27 @@
|
|||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
"@actions/glob": "^0.4.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@vercel/blob": "^0.22.3",
|
"@vercel/blob": "^0.23.4",
|
||||||
"@vercel/postgres": "^0.8.0",
|
"@vercel/postgres": "^0.9.0",
|
||||||
"meilisearch": "^0.38.0",
|
"meilisearch": "^0.38.0",
|
||||||
"p-limit": "^5.0.0",
|
"p-limit": "^6.1.0",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.3",
|
||||||
"undici": "6.18.2"
|
"undici": "6.19.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export function formatTag(tag: string) {
|
|||||||
|
|
||||||
if (parsed?.groups) {
|
if (parsed?.groups) {
|
||||||
const isSubpackage = typeof parsed.groups.package === 'string';
|
const isSubpackage = typeof parsed.groups.package === 'string';
|
||||||
const pkg = isSubpackage ? parsed.groups.package : parsedPackage?.groups?.package ?? 'discord.js';
|
const pkg = isSubpackage ? parsed.groups.package : (parsedPackage?.groups?.package ?? 'discord.js');
|
||||||
const semver = parsed.groups.semver;
|
const semver = parsed.groups.semver;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ try {
|
|||||||
console.log('Uploading indices...');
|
console.log('Uploading indices...');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
||||||
promises = indices.map(async (index) =>
|
promises = indices.map(async (index) =>
|
||||||
limit(async () => {
|
limit(async () => {
|
||||||
console.log(`Uploading ${index.index}...`);
|
console.log(`Uploading ${index.index}...`);
|
||||||
|
|||||||
@@ -37,14 +37,14 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/node": "^18.19.33",
|
"@types/node": "^18.19.45",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3"
|
"turbo": "^2.0.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ export class ApiPackage extends ApiItemContainerMixin(ApiNameMixin(ApiDocumented
|
|||||||
toolPackage: ioptions.toolPackage ?? packageJson.name,
|
toolPackage: ioptions.toolPackage ?? packageJson.name,
|
||||||
// In test mode, we don't write the real version, since that would cause spurious diffs whenever
|
// In test mode, we don't write the real version, since that would cause spurious diffs whenever
|
||||||
// the version is bumped. Instead we write a placeholder string.
|
// the version is bumped. Instead we write a placeholder string.
|
||||||
toolVersion: ioptions.testMode ? '[test mode]' : ioptions.toolVersion ?? packageJson.version,
|
toolVersion: ioptions.testMode ? '[test mode]' : (ioptions.toolVersion ?? packageJson.version),
|
||||||
schemaVersion: ApiJsonSchemaVersion.LATEST,
|
schemaVersion: ApiJsonSchemaVersion.LATEST,
|
||||||
oldestForwardsCompatibleVersion: ApiJsonSchemaVersion.OLDEST_FORWARDS_COMPATIBLE,
|
oldestForwardsCompatibleVersion: ApiJsonSchemaVersion.OLDEST_FORWARDS_COMPATIBLE,
|
||||||
tsdocConfig,
|
tsdocConfig,
|
||||||
|
|||||||
@@ -182,7 +182,9 @@ export interface DocgenJson {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function formatVarType(type: DocgenVarTypeJson): string {
|
function formatVarType(type: DocgenVarTypeJson): string {
|
||||||
return (Array.isArray(type) ? type : type.types ?? []).map((t1) => t1.map((t2) => t2.join('')).join('')).join(' | ');
|
return (Array.isArray(type) ? type : (type.types ?? []))
|
||||||
|
.map((t1) => t1.map((t2) => t2.join('')).join(''))
|
||||||
|
.join(' | ');
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFirstType(type: DocgenVarTypeJson): string {
|
function getFirstType(type: DocgenVarTypeJson): string {
|
||||||
@@ -192,7 +194,7 @@ function getFirstType(type: DocgenVarTypeJson): string {
|
|||||||
// function mapEvent(_event: DocgenEventJson, _package: string, _parent: DocgenClassJson): void {}
|
// function mapEvent(_event: DocgenEventJson, _package: string, _parent: DocgenClassJson): void {}
|
||||||
|
|
||||||
function mapVarType(type: DocgenVarTypeJson, _package: string): IExcerptToken[] {
|
function mapVarType(type: DocgenVarTypeJson, _package: string): IExcerptToken[] {
|
||||||
const mapper = Array.isArray(type) ? type : type.types ?? [];
|
const mapper = Array.isArray(type) ? type : (type.types ?? []);
|
||||||
return mapper.flatMap((typ) =>
|
return mapper.flatMap((typ) =>
|
||||||
typ.reduce<IExcerptToken[]>(
|
typ.reduce<IExcerptToken[]>(
|
||||||
(arr, [_class, symbol]) => [
|
(arr, [_class, symbol]) => [
|
||||||
|
|||||||
@@ -50,15 +50,15 @@
|
|||||||
"@microsoft/tsdoc": "0.14.2"
|
"@microsoft/tsdoc": "0.14.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5"
|
"typescript": "~5.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ export function genToken(model: ApiModel, token: ExcerptToken, version: string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const item = token.canonicalReference
|
const item = token.canonicalReference
|
||||||
? model.resolveDeclarationReference(token.canonicalReference, undefined).resolvedApiItem ?? null
|
? (model.resolveDeclarationReference(token.canonicalReference, undefined).resolvedApiItem ?? null)
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -61,12 +61,12 @@
|
|||||||
"resolve": "~1.22.1",
|
"resolve": "~1.22.1",
|
||||||
"semver": "~7.5.4",
|
"semver": "~7.5.4",
|
||||||
"source-map": "0.6.1",
|
"source-map": "0.6.1",
|
||||||
"typescript": "^5.4.5"
|
"typescript": "~5.5.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/lodash": "^4.17.4",
|
"@types/lodash": "^4.17.4",
|
||||||
"@types/node": "^18.19.33",
|
"@types/node": "^18.19.45",
|
||||||
"@types/resolve": "^1.20.6",
|
"@types/resolve": "^1.20.6",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"cpy-cli": "^5.0.0",
|
"cpy-cli": "^5.0.0",
|
||||||
@@ -75,8 +75,8 @@
|
|||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3"
|
"turbo": "^2.0.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1423,7 +1423,9 @@ export class ApiModelGenerator {
|
|||||||
}${
|
}${
|
||||||
'returns' in jsDoc
|
'returns' in jsDoc
|
||||||
? jsDoc.returns
|
? jsDoc.returns
|
||||||
.map((ret) => ` * @returns ${Array.isArray(ret) ? '' : this._fixLinkTags(ret.description) ?? ''}\n`)
|
.map(
|
||||||
|
(ret) => ` * @returns ${Array.isArray(ret) ? '' : (this._fixLinkTags(ret.description) ?? '')}\n`,
|
||||||
|
)
|
||||||
.join('')
|
.join('')
|
||||||
: ''
|
: ''
|
||||||
} */`,
|
} */`,
|
||||||
@@ -1764,7 +1766,7 @@ export class ApiModelGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _mapVarType(typey: DocgenVarTypeJson): IExcerptToken[] {
|
private _mapVarType(typey: DocgenVarTypeJson): IExcerptToken[] {
|
||||||
const mapper = Array.isArray(typey) ? typey : typey.types ?? [];
|
const mapper = Array.isArray(typey) ? typey : (typey.types ?? []);
|
||||||
const lookup: { [K in ts.SyntaxKind]?: string } = {
|
const lookup: { [K in ts.SyntaxKind]?: string } = {
|
||||||
[ts.SyntaxKind.ClassDeclaration]: 'class',
|
[ts.SyntaxKind.ClassDeclaration]: 'class',
|
||||||
[ts.SyntaxKind.EnumDeclaration]: 'enum',
|
[ts.SyntaxKind.EnumDeclaration]: 'enum',
|
||||||
|
|||||||
@@ -68,25 +68,25 @@
|
|||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@msgpack/msgpack": "^3.0.0-beta2",
|
"@msgpack/msgpack": "^3.0.0-beta2",
|
||||||
"@vladfrangu/async_event_emitter": "^2.2.4",
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||||
"ioredis": "^5.4.1"
|
"ioredis": "^5.4.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -30,17 +30,17 @@ export const DefaultBrokerOptions = {
|
|||||||
} as const satisfies Required<BaseBrokerOptions>;
|
} as const satisfies Required<BaseBrokerOptions>;
|
||||||
|
|
||||||
export type ToEventMap<
|
export type ToEventMap<
|
||||||
TRecord extends Record<string, any>,
|
TRecord extends Record<string, any[]>,
|
||||||
TResponses extends Record<keyof TRecord, any> | undefined = undefined,
|
TResponses extends Record<keyof TRecord, any> | undefined = undefined,
|
||||||
> = {
|
> = {
|
||||||
[TKey in keyof TRecord]: [
|
[TKey in keyof TRecord]: [
|
||||||
event: TResponses extends Record<keyof TRecord, any>
|
event: TResponses extends Record<keyof TRecord, any>
|
||||||
? { ack(): Promise<void>; reply(data: TResponses[TKey]): Promise<void> }
|
? { ack(): Promise<void>; reply(data: TResponses[TKey]): Promise<void> }
|
||||||
: { ack(): Promise<void> } & { data: TRecord[TKey] },
|
: { ack(): Promise<void>; data: TRecord[TKey] },
|
||||||
];
|
];
|
||||||
} & { [K: string]: any };
|
};
|
||||||
|
|
||||||
export interface IBaseBroker<TEvents extends Record<string, any>> {
|
export interface IBaseBroker<TEvents extends {}> {
|
||||||
/**
|
/**
|
||||||
* Subscribes to the given events
|
* Subscribes to the given events
|
||||||
*/
|
*/
|
||||||
@@ -51,7 +51,7 @@ export interface IBaseBroker<TEvents extends Record<string, any>> {
|
|||||||
unsubscribe(events: (keyof TEvents)[]): Promise<void>;
|
unsubscribe(events: (keyof TEvents)[]): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IPubSubBroker<TEvents extends Record<string, any>>
|
export interface IPubSubBroker<TEvents extends {}>
|
||||||
extends IBaseBroker<TEvents>,
|
extends IBaseBroker<TEvents>,
|
||||||
AsyncEventEmitter<ToEventMap<TEvents>> {
|
AsyncEventEmitter<ToEventMap<TEvents>> {
|
||||||
/**
|
/**
|
||||||
@@ -60,7 +60,7 @@ export interface IPubSubBroker<TEvents extends Record<string, any>>
|
|||||||
publish<Event extends keyof TEvents>(event: Event, data: TEvents[Event]): Promise<void>;
|
publish<Event extends keyof TEvents>(event: Event, data: TEvents[Event]): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IRPCBroker<TEvents extends Record<string, any>, TResponses extends Record<keyof TEvents, any>>
|
export interface IRPCBroker<TEvents extends Record<string, any[]>, TResponses extends Record<keyof TEvents, any>>
|
||||||
extends IBaseBroker<TEvents>,
|
extends IBaseBroker<TEvents>,
|
||||||
AsyncEventEmitter<ToEventMap<TEvents, TResponses>> {
|
AsyncEventEmitter<ToEventMap<TEvents, TResponses>> {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -57,8 +57,11 @@ export const DefaultRedisBrokerOptions = {
|
|||||||
/**
|
/**
|
||||||
* Helper class with shared Redis logic
|
* Helper class with shared Redis logic
|
||||||
*/
|
*/
|
||||||
export abstract class BaseRedisBroker<TEvents extends Record<string, any>>
|
export abstract class BaseRedisBroker<
|
||||||
extends AsyncEventEmitter<ToEventMap<TEvents>>
|
TEvents extends Record<string, any[]>,
|
||||||
|
TResponses extends Record<keyof TEvents, any> | undefined = undefined,
|
||||||
|
>
|
||||||
|
extends AsyncEventEmitter<ToEventMap<TEvents, TResponses>>
|
||||||
implements IBaseBroker<TEvents>
|
implements IBaseBroker<TEvents>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -182,6 +185,7 @@ export abstract class BaseRedisBroker<TEvents extends Record<string, any>>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
// @ts-expect-error: Intended
|
||||||
this.emit('error', error);
|
this.emit('error', error);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export class PubSubRedisBroker<TEvents extends Record<string, any>>
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// @ts-expect-error: Intended
|
||||||
this.emit(event, payload);
|
this.emit(event, payload);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,8 +54,8 @@ export const DefaultRPCRedisBrokerOptions = {
|
|||||||
* await broker.subscribe('responders', ['testcall']);
|
* await broker.subscribe('responders', ['testcall']);
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
export class RPCRedisBroker<TEvents extends Record<string, any>, TResponses extends Record<keyof TEvents, any>>
|
export class RPCRedisBroker<TEvents extends Record<string, any[]>, TResponses extends Record<keyof TEvents, any>>
|
||||||
extends BaseRedisBroker<TEvents>
|
extends BaseRedisBroker<TEvents, TResponses>
|
||||||
implements IRPCBroker<TEvents, TResponses>
|
implements IRPCBroker<TEvents, TResponses>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -125,6 +125,7 @@ export class RPCRedisBroker<TEvents extends Record<string, any>, TResponses exte
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// @ts-expect-error: Intended
|
||||||
this.emit(event, payload);
|
this.emit(event, payload);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,27 +68,27 @@
|
|||||||
"@discordjs/formatters": "workspace:^",
|
"@discordjs/formatters": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@sapphire/shapeshift": "^4.0.0",
|
"@sapphire/shapeshift": "^4.0.0",
|
||||||
"discord-api-types": "0.37.96",
|
"discord-api-types": "0.37.97",
|
||||||
"fast-deep-equal": "^3.1.3",
|
"fast-deep-equal": "^3.1.3",
|
||||||
"ts-mixer": "^6.0.4",
|
"ts-mixer": "^6.0.4",
|
||||||
"tslib": "^2.6.2"
|
"tslib": "^2.6.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "16.18.60",
|
"@types/node": "^16.18.105",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.11.0"
|
"node": ">=16.11.0"
|
||||||
|
|||||||
@@ -64,18 +64,18 @@
|
|||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -69,25 +69,25 @@
|
|||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@discordjs/ws": "workspace:^",
|
"@discordjs/ws": "workspace:^",
|
||||||
"@sapphire/snowflake": "^3.5.3",
|
"@sapphire/snowflake": "^3.5.3",
|
||||||
"@vladfrangu/async_event_emitter": "^2.2.4",
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||||
"discord-api-types": "0.37.96"
|
"discord-api-types": "0.37.97"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
type RESTGetAPIEntitlementsQuery,
|
type RESTGetAPIEntitlementsQuery,
|
||||||
type RESTGetAPIEntitlementsResult,
|
type RESTGetAPIEntitlementsResult,
|
||||||
type RESTGetAPISKUsResult,
|
type RESTGetAPISKUsResult,
|
||||||
type RESTPostAPIEntitlementBody,
|
type RESTPostAPIEntitlementJSONBody,
|
||||||
type RESTPostAPIEntitlementResult,
|
type RESTPostAPIEntitlementResult,
|
||||||
type Snowflake,
|
type Snowflake,
|
||||||
} from 'discord-api-types/v10';
|
} from 'discord-api-types/v10';
|
||||||
@@ -53,7 +53,7 @@ export class MonetizationAPI {
|
|||||||
*/
|
*/
|
||||||
public async createTestEntitlement(
|
public async createTestEntitlement(
|
||||||
applicationId: Snowflake,
|
applicationId: Snowflake,
|
||||||
body: RESTPostAPIEntitlementBody,
|
body: RESTPostAPIEntitlementJSONBody,
|
||||||
{ signal }: Pick<RequestData, 'signal'> = {},
|
{ signal }: Pick<RequestData, 'signal'> = {},
|
||||||
) {
|
) {
|
||||||
return this.rest.post(Routes.entitlements(applicationId), {
|
return this.rest.post(Routes.entitlements(applicationId), {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import type { RequestData, REST } from '@discordjs/rest';
|
import type { RequestData, REST } from '@discordjs/rest';
|
||||||
import {
|
import {
|
||||||
Routes,
|
Routes,
|
||||||
type RESTGetAPIStickerPack,
|
type RESTGetAPIStickerPackResult,
|
||||||
type RESTGetAPIStickerResult,
|
type RESTGetAPIStickerResult,
|
||||||
type RESTGetStickerPacksResult,
|
type RESTGetStickerPacksResult,
|
||||||
type Snowflake,
|
type Snowflake,
|
||||||
@@ -20,7 +20,7 @@ export class StickersAPI {
|
|||||||
* @param options - The options for fetching the sticker pack
|
* @param options - The options for fetching the sticker pack
|
||||||
*/
|
*/
|
||||||
public async getStickerPack(packId: Snowflake, { signal }: Pick<RequestData, 'signal'> = {}) {
|
public async getStickerPack(packId: Snowflake, { signal }: Pick<RequestData, 'signal'> = {}) {
|
||||||
return this.rest.get(Routes.stickerPack(packId), { signal }) as Promise<RESTGetAPIStickerPack>;
|
return this.rest.get(Routes.stickerPack(packId), { signal }) as Promise<RESTGetAPIStickerPackResult>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -238,11 +238,9 @@ export class Client extends AsyncEventEmitter<MappedEvents> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const iterator = AsyncEventEmitter.on<
|
const iterator = AsyncEventEmitter.on(this, GatewayDispatchEvents.GuildMembersChunk, {
|
||||||
typeof this,
|
signal: controller.signal,
|
||||||
ManagerShardEventsMap,
|
});
|
||||||
GatewayDispatchEvents.GuildMembersChunk
|
|
||||||
>(this, GatewayDispatchEvents.GuildMembersChunk, { signal: controller.signal });
|
|
||||||
|
|
||||||
for await (const [{ data }] of iterator) {
|
for await (const [{ data }] of iterator) {
|
||||||
if (data.nonce !== nonce) continue;
|
if (data.nonce !== nonce) continue;
|
||||||
|
|||||||
@@ -58,19 +58,19 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@types/prompts": "^2.4.9",
|
"@types/prompts": "^2.4.9",
|
||||||
"@types/validate-npm-package-name": "^4.0.2",
|
"@types/validate-npm-package-name": "^4.0.2",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"terser": "^5.31.0",
|
"terser": "^5.31.0",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -12,14 +12,13 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/core": "^1.2.0",
|
"@discordjs/core": "^1.2.0",
|
||||||
"discord.js": "^14.15.0"
|
"discord.js": "^14.15.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sapphire/ts-config": "^4.0.1",
|
"eslint": "^8.57.0",
|
||||||
"eslint": "^8.53.0",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-config-neon": "^0.1.57",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"eslint-formatter-pretty": "^5.0.0",
|
"prettier": "^3.3.3",
|
||||||
"prettier": "^3.1.0",
|
"zod": "^3.23.8"
|
||||||
"zod": "^3.22.4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,16 +12,16 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/core": "^1.2.0",
|
"@discordjs/core": "^1.2.0",
|
||||||
"discord.js": "^14.15.0"
|
"discord.js": "^14.15.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sapphire/ts-config": "^5.0.0",
|
"@sapphire/ts-config": "^5.0.1",
|
||||||
"bun-types": "^1.0.9",
|
"@types/bun": "^1.1.6",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.57",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^5.0.0",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.1.0",
|
||||||
"typescript": "^5.2.2",
|
"typescript": "~5.5.4",
|
||||||
"zod": "^3.22.4"
|
"zod": "^3.23.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"types": ["bun-types"],
|
|
||||||
"skipLibCheck": true
|
"skipLibCheck": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { RESTPostAPIApplicationCommandsJSONBody, CommandInteraction } from 'npm:discord.js@^14.14.1';
|
import type { RESTPostAPIApplicationCommandsJSONBody, CommandInteraction } from 'npm:discord.js@^14.15.3';
|
||||||
import { z } from 'npm:zod@^3.22.4';
|
import { z } from 'npm:zod@^3.23.8';
|
||||||
import type { StructurePredicate } from '../util/loaders.ts';
|
import type { StructurePredicate } from '../util/loaders.ts';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { ClientEvents } from 'npm:discord.js@^14.14.1';
|
import type { ClientEvents } from 'npm:discord.js@^14.15.3';
|
||||||
import { z } from 'npm:zod@^3.22.4';
|
import { z } from 'npm:zod@^3.23.8';
|
||||||
import type { StructurePredicate } from '../util/loaders.ts';
|
import type { StructurePredicate } from '../util/loaders.ts';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import 'https://deno.land/std@0.199.0/dotenv/load.ts';
|
import 'https://deno.land/std@0.199.0/dotenv/load.ts';
|
||||||
import { URL } from 'node:url';
|
import { URL } from 'node:url';
|
||||||
import { Client, GatewayIntentBits } from 'npm:discord.js@^14.15.0';
|
import { Client, GatewayIntentBits } from 'npm:discord.js@^14.15.3';
|
||||||
import { loadCommands, loadEvents } from './util/loaders.ts';
|
import { loadCommands, loadEvents } from './util/loaders.ts';
|
||||||
import { registerEvents } from './util/registerEvents.ts';
|
import { registerEvents } from './util/registerEvents.ts';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import 'https://deno.land/std@0.199.0/dotenv/load.ts';
|
import 'https://deno.land/std@0.223.0/dotenv/load.ts';
|
||||||
import { URL } from 'node:url';
|
import { URL } from 'node:url';
|
||||||
import { API } from 'npm:@discordjs/core@^1.1.1/http-only';
|
import { API } from 'npm:@discordjs/core@^1.2.0/http-only';
|
||||||
import { REST } from 'npm:discord.js@^14.14.1';
|
import { REST } from 'npm:discord.js@^14.15.3';
|
||||||
import { loadCommands } from './loaders.ts';
|
import { loadCommands } from './loaders.ts';
|
||||||
|
|
||||||
const commands = await loadCommands(new URL('../commands/', import.meta.url));
|
const commands = await loadCommands(new URL('../commands/', import.meta.url));
|
||||||
|
|||||||
@@ -12,14 +12,14 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/core": "^1.2.0",
|
"@discordjs/core": "^1.2.0",
|
||||||
"discord.js": "^14.15.0",
|
"discord.js": "^14.15.3",
|
||||||
"dotenv": "^16.3.1"
|
"dotenv": "^16.4.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.57",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^5.0.0",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.3.3",
|
||||||
"zod": "^3.22.4"
|
"zod": "^3.23.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,17 +13,17 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/core": "^1.2.0",
|
"@discordjs/core": "^1.2.0",
|
||||||
"discord.js": "^14.15.0",
|
"discord.js": "^14.15.3",
|
||||||
"dotenv": "^16.3.1"
|
"dotenv": "^16.4.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sapphire/ts-config": "^5.0.0",
|
"@sapphire/ts-config": "^5.0.1",
|
||||||
"@types/node": "^18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.57",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^5.0.0",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.3.3",
|
||||||
"typescript": "^5.2.2",
|
"typescript": "~5.5.4",
|
||||||
"zod": "^3.22.4"
|
"zod": "^3.23.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,30 +72,30 @@
|
|||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@discordjs/ws": "1.1.1",
|
"@discordjs/ws": "1.1.1",
|
||||||
"@sapphire/snowflake": "3.5.3",
|
"@sapphire/snowflake": "3.5.3",
|
||||||
"discord-api-types": "0.37.96",
|
"discord-api-types": "0.37.97",
|
||||||
"fast-deep-equal": "3.1.3",
|
"fast-deep-equal": "3.1.3",
|
||||||
"lodash.snakecase": "4.1.1",
|
"lodash.snakecase": "4.1.1",
|
||||||
"tslib": "2.6.2",
|
"tslib": "^2.6.3",
|
||||||
"undici": "6.18.2"
|
"undici": "6.19.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/docgen": "workspace:^",
|
"@discordjs/docgen": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "3.0.2",
|
"@favware/cliff-jumper": "^3.0.2",
|
||||||
"@types/node": "16.18.60",
|
"@types/node": "^16.18.105",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
"@typescript-eslint/eslint-plugin": "^8.2.0",
|
||||||
"@typescript-eslint/parser": "^7.11.0",
|
"@typescript-eslint/parser": "^8.2.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"dtslint": "4.2.1",
|
"dtslint": "4.2.1",
|
||||||
"eslint": "8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-formatter-pretty": "5.0.0",
|
"eslint-formatter-pretty": "^5.0.0",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"prettier": "3.2.5",
|
"prettier": "^3.3.3",
|
||||||
"tsd": "0.31.0",
|
"tsd": "^0.31.1",
|
||||||
"tslint": "6.1.3",
|
"tslint": "6.1.3",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "5.4.5"
|
"typescript": "~5.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.11.0"
|
"node": ">=16.11.0"
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class BaseInteraction extends Base {
|
|||||||
* If this interaction was sent in a guild, the member which sent it
|
* If this interaction was sent in a guild, the member which sent it
|
||||||
* @type {?(GuildMember|APIInteractionGuildMember)}
|
* @type {?(GuildMember|APIInteractionGuildMember)}
|
||||||
*/
|
*/
|
||||||
this.member = data.member ? this.guild?.members._add(data.member) ?? data.member : null;
|
this.member = data.member ? (this.guild?.members._add(data.member) ?? data.member) : null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The version
|
* The version
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ class ClientApplication extends Application {
|
|||||||
? new Team(this.client, data.team)
|
? new Team(this.client, data.team)
|
||||||
: data.owner
|
: data.owner
|
||||||
? this.client.users._add(data.owner)
|
? this.client.users._add(data.owner)
|
||||||
: this.owner ?? null;
|
: (this.owner ?? null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ class Embed {
|
|||||||
get hexColor() {
|
get hexColor() {
|
||||||
return typeof this.data.color === 'number'
|
return typeof this.data.color === 'number'
|
||||||
? `#${this.data.color.toString(16).padStart(6, '0')}`
|
? `#${this.data.color.toString(16).padStart(6, '0')}`
|
||||||
: this.data.color ?? null;
|
: (this.data.color ?? null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ class GuildAuditLogsEntry {
|
|||||||
this.executor = data.user_id
|
this.executor = data.user_id
|
||||||
? guild.client.options.partials.includes(Partials.User)
|
? guild.client.options.partials.includes(Partials.User)
|
||||||
? guild.client.users._add({ id: data.user_id })
|
? guild.client.users._add({ id: data.user_id })
|
||||||
: guild.client.users.cache.get(data.user_id) ?? null
|
: (guild.client.users.cache.get(data.user_id) ?? null)
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -300,7 +300,7 @@ class GuildAuditLogsEntry {
|
|||||||
} else if (targetType === Targets.User && data.target_id) {
|
} else if (targetType === Targets.User && data.target_id) {
|
||||||
this.target = guild.client.options.partials.includes(Partials.User)
|
this.target = guild.client.options.partials.includes(Partials.User)
|
||||||
? guild.client.users._add({ id: data.target_id })
|
? guild.client.users._add({ id: data.target_id })
|
||||||
: guild.client.users.cache.get(data.target_id) ?? null;
|
: (guild.client.users.cache.get(data.target_id) ?? null);
|
||||||
} else if (targetType === Targets.Guild) {
|
} else if (targetType === Targets.Guild) {
|
||||||
this.target = guild.client.guilds.cache.get(data.target_id);
|
this.target = guild.client.guilds.cache.get(data.target_id);
|
||||||
} else if (targetType === Targets.Webhook) {
|
} else if (targetType === Targets.Webhook) {
|
||||||
@@ -323,8 +323,8 @@ class GuildAuditLogsEntry {
|
|||||||
// Discord sends a channel id for the MessageBulkDelete action type.
|
// Discord sends a channel id for the MessageBulkDelete action type.
|
||||||
this.target =
|
this.target =
|
||||||
data.action_type === AuditLogEvent.MessageBulkDelete
|
data.action_type === AuditLogEvent.MessageBulkDelete
|
||||||
? guild.channels.cache.get(data.target_id) ?? { id: data.target_id }
|
? (guild.channels.cache.get(data.target_id) ?? { id: data.target_id })
|
||||||
: guild.client.users.cache.get(data.target_id) ?? null;
|
: (guild.client.users.cache.get(data.target_id) ?? null);
|
||||||
} else if (targetType === Targets.Integration) {
|
} else if (targetType === Targets.Integration) {
|
||||||
this.target =
|
this.target =
|
||||||
logs?.integrations.get(data.target_id) ??
|
logs?.integrations.get(data.target_id) ??
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ class MessagePayload {
|
|||||||
let message_reference;
|
let message_reference;
|
||||||
if (typeof this.options.reply === 'object') {
|
if (typeof this.options.reply === 'object') {
|
||||||
const reference = this.options.reply.messageReference;
|
const reference = this.options.reply.messageReference;
|
||||||
const message_id = this.isMessage ? reference.id ?? reference : this.target.messages.resolveId(reference);
|
const message_id = this.isMessage ? (reference.id ?? reference) : this.target.messages.resolveId(reference);
|
||||||
if (message_id) {
|
if (message_id) {
|
||||||
message_reference = {
|
message_reference = {
|
||||||
message_id,
|
message_id,
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class ThreadChannel extends BaseChannel {
|
|||||||
* <info>This property is always `null` in public threads.</info>
|
* <info>This property is always `null` in public threads.</info>
|
||||||
* @type {?boolean}
|
* @type {?boolean}
|
||||||
*/
|
*/
|
||||||
this.invitable = this.type === ChannelType.PrivateThread ? data.thread_metadata.invitable ?? false : null;
|
this.invitable = this.type === ChannelType.PrivateThread ? (data.thread_metadata.invitable ?? false) : null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the thread is archived
|
* Whether the thread is archived
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ function transformAPIGuildForumTag(tag) {
|
|||||||
name: tag.name,
|
name: tag.name,
|
||||||
moderated: tag.moderated,
|
moderated: tag.moderated,
|
||||||
emoji:
|
emoji:
|
||||||
tag.emoji_id ?? tag.emoji_name
|
(tag.emoji_id ?? tag.emoji_name)
|
||||||
? {
|
? {
|
||||||
id: tag.emoji_id,
|
id: tag.emoji_id,
|
||||||
name: tag.emoji_name,
|
name: tag.emoji_name,
|
||||||
|
|||||||
@@ -62,21 +62,21 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": "^12.1.0",
|
"commander": "^12.1.0",
|
||||||
"jsdoc-to-markdown": "^8.0.1",
|
"jsdoc-to-markdown": "^8.0.1",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.3",
|
||||||
"typedoc": "^0.25.13"
|
"typedoc": "^0.25.13"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/jsdoc-to-markdown": "^7.0.6",
|
"@types/jsdoc-to-markdown": "^7.0.6",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5"
|
"typescript": "~5.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -112,11 +112,11 @@ export class DocumentedClass extends DocumentedItem<Class | DeclarationReflectio
|
|||||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||||
abstract: signature.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
abstract: signature.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
||||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||||
? signature.comment.blockTags
|
? (signature.comment.blockTags
|
||||||
.find((block) => block.tag === '@deprecated')
|
.find((block) => block.tag === '@deprecated')
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||||
.trim() ?? true
|
.trim() ?? true)
|
||||||
: undefined,
|
: undefined,
|
||||||
construct: this.construct?.serialize(),
|
construct: this.construct?.serialize(),
|
||||||
props: this.props.size ? [...this.props.values()].map((param) => param.serialize()) : undefined,
|
props: this.props.size ? [...this.props.values()].map((param) => param.serialize()) : undefined,
|
||||||
|
|||||||
@@ -44,11 +44,11 @@ export class DocumentedEvent extends DocumentedItem<DeclarationReflection | Even
|
|||||||
: undefined,
|
: undefined,
|
||||||
examples,
|
examples,
|
||||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||||
? signature.comment.blockTags
|
? (signature.comment.blockTags
|
||||||
.find((block) => block.tag === '@deprecated')
|
.find((block) => block.tag === '@deprecated')
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||||
.trim() ?? true
|
.trim() ?? true)
|
||||||
: undefined,
|
: undefined,
|
||||||
// @ts-expect-error: Parameters type is not available
|
// @ts-expect-error: Parameters type is not available
|
||||||
params: signature.parameters
|
params: signature.parameters
|
||||||
|
|||||||
@@ -39,11 +39,11 @@ export class DocumentedMember extends DocumentedItem<DeclarationReflection | Mem
|
|||||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||||
abstract: signature.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
abstract: signature.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
||||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||||
? signature.comment.blockTags
|
? (signature.comment.blockTags
|
||||||
.find((block) => block.tag === '@deprecated')
|
.find((block) => block.tag === '@deprecated')
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||||
.trim() ?? true
|
.trim() ?? true)
|
||||||
: undefined,
|
: undefined,
|
||||||
default:
|
default:
|
||||||
(data.defaultValue === '...' ? undefined : data.defaultValue) ??
|
(data.defaultValue === '...' ? undefined : data.defaultValue) ??
|
||||||
@@ -92,11 +92,11 @@ export class DocumentedMember extends DocumentedItem<DeclarationReflection | Mem
|
|||||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||||
abstract: getter.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
abstract: getter.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
||||||
deprecated: getter.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
deprecated: getter.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||||
? getter.comment.blockTags
|
? (getter.comment.blockTags
|
||||||
.find((block) => block.tag === '@deprecated')
|
.find((block) => block.tag === '@deprecated')
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||||
.trim() ?? true
|
.trim() ?? true)
|
||||||
: undefined,
|
: undefined,
|
||||||
default:
|
default:
|
||||||
base.default ??
|
base.default ??
|
||||||
|
|||||||
@@ -46,11 +46,11 @@ export class DocumentedMethod extends DocumentedItem<DeclarationReflection | Met
|
|||||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||||
abstract: signature.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
abstract: signature.comment?.blockTags?.some((block) => block.tag === '@abstract') || undefined,
|
||||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||||
? signature.comment.blockTags
|
? (signature.comment.blockTags
|
||||||
.find((block) => block.tag === '@deprecated')
|
.find((block) => block.tag === '@deprecated')
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||||
.trim() ?? true
|
.trim() ?? true)
|
||||||
: undefined,
|
: undefined,
|
||||||
// emits: signature.comment?.blockTags?.filter((t) => t.tag === '@emits').map((t) => t.content),
|
// emits: signature.comment?.blockTags?.filter((t) => t.tag === '@emits').map((t) => t.content),
|
||||||
// @ts-expect-error: Typescript doesn't know that this is a SignatureReflection
|
// @ts-expect-error: Typescript doesn't know that this is a SignatureReflection
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
|
|||||||
? 'private'
|
? 'private'
|
||||||
: undefined,
|
: undefined,
|
||||||
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
deprecated: signature.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||||
? signature.comment.blockTags
|
? (signature.comment.blockTags
|
||||||
.find((block) => block.tag === '@deprecated')
|
.find((block) => block.tag === '@deprecated')
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||||
.trim() ?? true
|
.trim() ?? true)
|
||||||
: undefined,
|
: undefined,
|
||||||
type: signature.type
|
type: signature.type
|
||||||
? new DocumentedVarType({ names: [parseType(signature.type)] }, this.config).serialize()
|
? new DocumentedVarType({ names: [parseType(signature.type)] }, this.config).serialize()
|
||||||
@@ -163,11 +163,11 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
|
|||||||
? 'private'
|
? 'private'
|
||||||
: undefined,
|
: undefined,
|
||||||
deprecated: sig?.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
deprecated: sig?.comment?.blockTags?.some((block) => block.tag === '@deprecated')
|
||||||
? sig.comment.blockTags
|
? (sig.comment.blockTags
|
||||||
.find((block) => block.tag === '@deprecated')
|
.find((block) => block.tag === '@deprecated')
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
?.content.reduce((prev, curr) => (prev += curr.text), '')
|
||||||
.trim() ?? true
|
.trim() ?? true)
|
||||||
: undefined,
|
: undefined,
|
||||||
params,
|
params,
|
||||||
returns: sig?.type
|
returns: sig?.type
|
||||||
|
|||||||
@@ -55,24 +55,24 @@
|
|||||||
"homepage": "https://discord.js.org",
|
"homepage": "https://discord.js.org",
|
||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"discord-api-types": "0.37.96"
|
"discord-api-types": "0.37.97"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "16.18.60",
|
"@types/node": "^16.18.105",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.11.0"
|
"node": ">=16.11.0"
|
||||||
|
|||||||
@@ -72,24 +72,24 @@
|
|||||||
"@discordjs/rest": "workspace:^",
|
"@discordjs/rest": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@discordjs/ws": "workspace:^",
|
"@discordjs/ws": "workspace:^",
|
||||||
"discord-api-types": "0.37.96"
|
"discord-api-types": "0.37.97"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -47,18 +47,18 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/proxy": "workspace:^",
|
"@discordjs/proxy": "workspace:^",
|
||||||
"@discordjs/rest": "workspace:^",
|
"@discordjs/rest": "workspace:^",
|
||||||
"tslib": "^2.6.2"
|
"tslib": "^2.6.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5"
|
"typescript": "~5.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -67,27 +67,27 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/rest": "workspace:^",
|
"@discordjs/rest": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.3",
|
||||||
"undici": "6.18.2"
|
"undici": "6.19.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@types/supertest": "^6.0.2",
|
"@types/supertest": "^6.0.2",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"supertest": "^7.0.0",
|
"supertest": "^7.0.0",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -85,30 +85,30 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/collection": "workspace:^",
|
"@discordjs/collection": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@sapphire/async-queue": "^1.5.2",
|
"@sapphire/async-queue": "^1.5.3",
|
||||||
"@sapphire/snowflake": "^3.5.3",
|
"@sapphire/snowflake": "^3.5.3",
|
||||||
"@vladfrangu/async_event_emitter": "^2.2.4",
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||||
"discord-api-types": "0.37.96",
|
"discord-api-types": "0.37.97",
|
||||||
"magic-bytes.js": "^1.10.0",
|
"magic-bytes.js": "^1.10.0",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.3",
|
||||||
"undici": "6.18.2"
|
"undici": "6.19.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "18.17.9",
|
"@types/node": "18.17.9",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.11.0"
|
"node": ">=16.11.0"
|
||||||
|
|||||||
@@ -59,32 +59,32 @@
|
|||||||
"homepage": "https://discord.js.org",
|
"homepage": "https://discord.js.org",
|
||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/glob": "^0.4.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@discordjs/api-extractor-model": "workspace:^",
|
"@discordjs/api-extractor-model": "workspace:^",
|
||||||
"@discordjs/api-extractor-utils": "workspace:^",
|
"@discordjs/api-extractor-utils": "workspace:^",
|
||||||
"@microsoft/tsdoc": "0.14.2",
|
"@microsoft/tsdoc": "0.14.2",
|
||||||
"@microsoft/tsdoc-config": "0.16.2",
|
"@microsoft/tsdoc-config": "0.16.2",
|
||||||
"@vercel/blob": "^0.22.3",
|
"@vercel/blob": "^0.23.4",
|
||||||
"@vercel/postgres": "^0.8.0",
|
"@vercel/postgres": "^0.9.0",
|
||||||
"commander": "^12.1.0",
|
"commander": "^12.1.0",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.3",
|
||||||
"undici": "6.18.2",
|
"undici": "6.19.8",
|
||||||
"yaml": "2.4.3"
|
"yaml": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@turbo/gen": "^1.13.3",
|
"@turbo/gen": "^2.0.14",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"env-cmd": "^10.1.0",
|
"env-cmd": "^10.1.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ function itemTsDoc(item: DocNode, apiItem: ApiItem) {
|
|||||||
resolvedPackage: {
|
resolvedPackage: {
|
||||||
packageName: resolved?.package ?? apiItem.getAssociatedPackage()?.displayName.replace('@discordjs/', ''),
|
packageName: resolved?.package ?? apiItem.getAssociatedPackage()?.displayName.replace('@discordjs/', ''),
|
||||||
version: resolved?.package
|
version: resolved?.package
|
||||||
? apiItem.getAssociatedPackage()?.dependencies?.[resolved.package] ?? null
|
? (apiItem.getAssociatedPackage()?.dependencies?.[resolved.package] ?? null)
|
||||||
: null,
|
: null,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -999,7 +999,7 @@ export async function generateSplitDocumentation({
|
|||||||
containerKey = ApiFunction.getContainerKey(name, Number.parseInt(overloadIndex, 10));
|
containerKey = ApiFunction.getContainerKey(name, Number.parseInt(overloadIndex, 10));
|
||||||
}
|
}
|
||||||
|
|
||||||
const foundMember = memberName && containerKey ? findMemberByKey(model, pkgName, containerKey) ?? null : null;
|
const foundMember = memberName && containerKey ? (findMemberByKey(model, pkgName, containerKey) ?? null) : null;
|
||||||
|
|
||||||
const returnValue = memberKind(foundMember);
|
const returnValue = memberKind(foundMember);
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,6 @@
|
|||||||
{ "name": "{{name}}", "org": "discordjs", "packagePath": "packages/{{name}}", "identifierBase": false }
|
{
|
||||||
|
"name": "{{name}}",
|
||||||
|
"org": "discordjs",
|
||||||
|
"packagePath": "packages/{{name}}",
|
||||||
|
"identifierBase": false
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,2 +1,28 @@
|
|||||||
# Packages node_modules # Log files logs *.log npm-debug.log* # Runtime data pids *.pid *.seed # Env .env # Dist dist
|
# Packages
|
||||||
dist-docs # Docs docs/**/* !docs/README.md # Miscellaneous .turbo .tmp coverage
|
node_modules
|
||||||
|
|
||||||
|
# Log files
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
|
||||||
|
# Runtime data
|
||||||
|
pids
|
||||||
|
*.pid
|
||||||
|
*.seed
|
||||||
|
|
||||||
|
# Env
|
||||||
|
.env
|
||||||
|
|
||||||
|
# Dist
|
||||||
|
dist
|
||||||
|
dist-docs
|
||||||
|
|
||||||
|
# Docs
|
||||||
|
docs/**/*
|
||||||
|
!docs/README.md
|
||||||
|
|
||||||
|
# Miscellaneous
|
||||||
|
.turbo
|
||||||
|
.tmp
|
||||||
|
coverage
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
/** @type {import('lint-staged').Config} */
|
||||||
module.exports = require('../../.lintstagedrc.json');
|
module.exports = require('../../.lintstagedrc.json');
|
||||||
|
|||||||
@@ -1 +1,7 @@
|
|||||||
.turbo coverage dist dist-docs docs/docs.api.json CHANGELOG.md tsup.config.bundled*
|
.turbo
|
||||||
|
coverage
|
||||||
|
dist
|
||||||
|
dist-docs
|
||||||
|
docs/docs.api.json
|
||||||
|
CHANGELOG.md
|
||||||
|
tsup.config.bundled*
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
/** @type {import('prettier').Config} */
|
||||||
module.exports = require('../../.prettierrc.json');
|
module.exports = require('../../.prettierrc.json');
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"name": "@discordjs/{{name}}",
|
"name": "@discordjs/{{name}}",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "{{description}}",
|
"description": "{{description}}",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vitest run",
|
|
||||||
"build": "tsc --noEmit && tsup",
|
"build": "tsc --noEmit && tsup",
|
||||||
"build:docs": "tsc -p tsconfig.docs.json",
|
"build:docs": "tsc -p tsconfig.docs.json",
|
||||||
"lint": "prettier --check . && cross-env TIMING=1 eslint --format=pretty src __tests__",
|
"test": "vitest run",
|
||||||
"format": "prettier --write . && cross-env TIMING=1 eslint --fix --format=pretty src __tests__",
|
"lint": "prettier --check . && cross-env TIMING=1 eslint --format=pretty src",
|
||||||
|
"format": "prettier --write . && cross-env TIMING=1 eslint --fix --format=pretty src",
|
||||||
|
"fmt": "pnpm run format",
|
||||||
"docs": "pnpm run build:docs && api-extractor run --local",
|
"docs": "pnpm run build:docs && api-extractor run --local",
|
||||||
"prepack": "pnpm run build && pnpm run lint",
|
"prepack": "pnpm run build && pnpm run lint",
|
||||||
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/{{name}}/*'",
|
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/{{name}}/*'",
|
||||||
@@ -32,7 +34,9 @@
|
|||||||
"lib": "src",
|
"lib": "src",
|
||||||
"test": "__tests__"
|
"test": "__tests__"
|
||||||
},
|
},
|
||||||
"files": ["dist"],
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
"contributors": [
|
"contributors": [
|
||||||
"Crawl <icrawltogo@gmail.com>",
|
"Crawl <icrawltogo@gmail.com>",
|
||||||
"SpaceEEC <spaceeec@yahoo.com>",
|
"SpaceEEC <spaceeec@yahoo.com>",
|
||||||
@@ -54,18 +58,19 @@
|
|||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^2.2.1",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@vitest/coverage-v8": "^0.34.6",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.57",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^5.0.0",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^7.2.0",
|
"tsup": "^8.2.4",
|
||||||
"typescript": "^5.2.2",
|
"turbo": "^2.0.14",
|
||||||
"vitest": "^0.34.6"
|
"typescript": "~5.5.4",
|
||||||
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -68,27 +68,27 @@
|
|||||||
"@storybook/react": "^8.1.5",
|
"@storybook/react": "^8.1.5",
|
||||||
"@storybook/react-vite": "^8.1.5",
|
"@storybook/react-vite": "^8.1.5",
|
||||||
"@storybook/testing-library": "^0.2.2",
|
"@storybook/testing-library": "^0.2.2",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "^18.19.45",
|
||||||
"@types/react": "^18.3.3",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@unocss/eslint-plugin": "^0.60.4",
|
"@unocss/eslint-plugin": "^0.60.4",
|
||||||
"@unocss/reset": "^0.60.4",
|
"@unocss/reset": "^0.60.4",
|
||||||
"@vitejs/plugin-react": "^4.3.0",
|
"@vitejs/plugin-react": "^4.3.0",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"chromatic": "^11.5.0",
|
"chromatic": "^11.5.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"storybook": "^8.1.5",
|
"storybook": "^8.1.5",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"unocss": "^0.60.4",
|
"unocss": "^0.60.4",
|
||||||
"vite": "^5.2.12",
|
"vite": "^5.2.12",
|
||||||
"vite-plugin-dts": "^3.9.1",
|
"vite-plugin-dts": "^3.9.1",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -31,12 +31,12 @@ export function DiscordMessage({
|
|||||||
className={`pl-18 hover:bg-[rgb(4_4_5)]/7 group py-0.5 pr-12 leading-snug ${followUp ? '' : 'mt-4'}`}
|
className={`pl-18 hover:bg-[rgb(4_4_5)]/7 group py-0.5 pr-12 leading-snug ${followUp ? '' : 'mt-4'}`}
|
||||||
id="message-wrapper"
|
id="message-wrapper"
|
||||||
>
|
>
|
||||||
{(reply || replyNode) && !followUp ? reply ? <DiscordMessageReply {...reply} /> : replyNode ?? null : null}
|
{(reply || replyNode) && !followUp ? reply ? <DiscordMessageReply {...reply} /> : (replyNode ?? null) : null}
|
||||||
{(interaction || interactionNode) && !(reply || replyNode) && !followUp ? (
|
{(interaction || interactionNode) && !(reply || replyNode) && !followUp ? (
|
||||||
interaction ? (
|
interaction ? (
|
||||||
<DiscordMessageInteraction {...interaction} />
|
<DiscordMessageInteraction {...interaction} />
|
||||||
) : (
|
) : (
|
||||||
interactionNode ?? null
|
(interactionNode ?? null)
|
||||||
)
|
)
|
||||||
) : null}
|
) : null}
|
||||||
<div className="static" id="content-wrapper">
|
<div className="static" id="content-wrapper">
|
||||||
|
|||||||
@@ -36,12 +36,12 @@ export function DiscordMessageEmbed({
|
|||||||
<div className="grid max-w-max border-l-4 border-l-blurple rounded bg-[rgb(47_49_54)]" id="embed-wrapper">
|
<div className="grid max-w-max border-l-4 border-l-blurple rounded bg-[rgb(47_49_54)]" id="embed-wrapper">
|
||||||
<div className="max-w-128 flex">
|
<div className="max-w-128 flex">
|
||||||
<div className="pb-4 pl-3 pr-4 pt-2">
|
<div className="pb-4 pl-3 pr-4 pt-2">
|
||||||
{author ? <DiscordMessageEmbedAuthor {...author} /> : authorNode ?? null}
|
{author ? <DiscordMessageEmbedAuthor {...author} /> : (authorNode ?? null)}
|
||||||
{title ? <DiscordMessageEmbedTitle {...title} /> : titleNode ?? null}
|
{title ? <DiscordMessageEmbedTitle {...title} /> : (titleNode ?? null)}
|
||||||
{children ? <div className="mt-2 text-sm">{children}</div> : null}
|
{children ? <div className="mt-2 text-sm">{children}</div> : null}
|
||||||
{fields ? <DiscordMessageEmbedFields fields={fields} /> : null}
|
{fields ? <DiscordMessageEmbedFields fields={fields} /> : null}
|
||||||
{image ? <DiscordMessageEmbedImage {...image} /> : null}
|
{image ? <DiscordMessageEmbedImage {...image} /> : null}
|
||||||
{footer ? <DiscordMessageEmbedFooter {...footer} /> : footerNode ?? null}
|
{footer ? <DiscordMessageEmbedFooter {...footer} /> : (footerNode ?? null)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{thumbnail ? <DiscordMessageEmbedThumbnail {...thumbnail} /> : null}
|
{thumbnail ? <DiscordMessageEmbedThumbnail {...thumbnail} /> : null}
|
||||||
|
|||||||
@@ -65,19 +65,19 @@
|
|||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "16.18.60",
|
"@types/node": "^16.18.105",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsd": "^0.31.0",
|
"tsd": "^0.31.1",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^1.6.0"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.11.0"
|
"node": ">=16.11.0"
|
||||||
|
|||||||
@@ -63,11 +63,11 @@
|
|||||||
"homepage": "https://discord.js.org",
|
"homepage": "https://discord.js.org",
|
||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/ws": "^8.5.10",
|
"@types/ws": "^8.5.12",
|
||||||
"discord-api-types": "0.37.96",
|
"discord-api-types": "0.37.97",
|
||||||
"prism-media": "^1.3.5",
|
"prism-media": "^1.3.5",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.3",
|
||||||
"ws": "^8.17.0"
|
"ws": "^8.18.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.24.6",
|
"@babel/core": "^7.24.6",
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/node": "16.18.60",
|
"@types/node": "^16.18.105",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
@@ -86,11 +86,11 @@
|
|||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"jest-websocket-mock": "^2.5.0",
|
"jest-websocket-mock": "^2.5.0",
|
||||||
"mock-socket": "^9.3.1",
|
"mock-socket": "^9.3.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"tweetnacl": "^1.0.3",
|
"tweetnacl": "^1.0.3",
|
||||||
"typescript": "^5.4.5"
|
"typescript": "~5.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.11.0"
|
"node": ">=16.11.0"
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
export function abortAfter(delay: number): [AbortController, AbortSignal] {
|
export function abortAfter(delay: number): [AbortController, AbortSignal] {
|
||||||
const ac = new AbortController();
|
const ac = new AbortController();
|
||||||
const timeout = setTimeout(() => ac.abort(), delay);
|
const timeout = setTimeout(() => ac.abort(), delay);
|
||||||
// @ts-expect-error: No type for timeout
|
|
||||||
ac.signal.addEventListener('abort', () => clearTimeout(timeout));
|
ac.signal.addEventListener('abort', () => clearTimeout(timeout));
|
||||||
return [ac, ac.signal];
|
return [ac, ac.signal];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,32 +76,32 @@
|
|||||||
"@discordjs/collection": "workspace:^",
|
"@discordjs/collection": "workspace:^",
|
||||||
"@discordjs/rest": "workspace:^",
|
"@discordjs/rest": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@sapphire/async-queue": "^1.5.2",
|
"@sapphire/async-queue": "^1.5.3",
|
||||||
"@types/ws": "^8.5.10",
|
"@types/ws": "^8.5.12",
|
||||||
"@vladfrangu/async_event_emitter": "^2.2.4",
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||||
"discord-api-types": "0.37.96",
|
"discord-api-types": "0.37.97",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.3",
|
||||||
"ws": "^8.17.0"
|
"ws": "^8.18.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^3.0.3",
|
"@favware/cliff-jumper": "^3.0.3",
|
||||||
"@types/node": "18.17.9",
|
"@types/node": "^18.19.45",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"mock-socket": "^9.3.1",
|
"mock-socket": "^9.3.1",
|
||||||
"prettier": "^3.3.0",
|
"prettier": "^3.3.3",
|
||||||
"tsd": "^0.31.0",
|
"tsd": "^0.31.1",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "~5.5.4",
|
||||||
"undici": "6.18.2",
|
"undici": "6.19.8",
|
||||||
"vitest": "^1.6.0",
|
"vitest": "^2.0.5",
|
||||||
"zlib-sync": "^0.1.9"
|
"zlib-sync": "^0.1.9"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ export class SimpleShardingStrategy implements IShardingStrategy {
|
|||||||
for (const shardId of shardIds) {
|
for (const shardId of shardIds) {
|
||||||
const strategy = new SimpleContextFetchingStrategy(this.manager, strategyOptions);
|
const strategy = new SimpleContextFetchingStrategy(this.manager, strategyOptions);
|
||||||
const shard = new WebSocketShard(strategy, shardId);
|
const shard = new WebSocketShard(strategy, shardId);
|
||||||
|
|
||||||
for (const event of Object.values(WebSocketShardEvents)) {
|
for (const event of Object.values(WebSocketShardEvents)) {
|
||||||
|
// @ts-expect-error Ugly casts are needed because when we try to collect all args, TS doesn't handle that nicely due to the strictness + lack of context
|
||||||
shard.on(event, (...args) => this.manager.emit(event, ...args, shardId));
|
shard.on(event, (...args) => this.manager.emit(event, ...args, shardId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -148,13 +148,14 @@ export class WorkerBootstrapper {
|
|||||||
for (const shardId of this.data.shardIds) {
|
for (const shardId of this.data.shardIds) {
|
||||||
const shard = new WebSocketShard(new WorkerContextFetchingStrategy(this.data), shardId);
|
const shard = new WebSocketShard(new WorkerContextFetchingStrategy(this.data), shardId);
|
||||||
for (const event of options.forwardEvents ?? Object.values(WebSocketShardEvents)) {
|
for (const event of options.forwardEvents ?? Object.values(WebSocketShardEvents)) {
|
||||||
shard.on(event, (...args) => {
|
shard.on(event, (...args: unknown[]) => {
|
||||||
const payload: WorkerReceivePayload = {
|
const payload: WorkerReceivePayload = {
|
||||||
op: WorkerReceivePayloadOp.Event,
|
op: WorkerReceivePayloadOp.Event,
|
||||||
event,
|
event,
|
||||||
data: args,
|
data: args,
|
||||||
shardId,
|
shardId,
|
||||||
};
|
};
|
||||||
|
|
||||||
parentPort!.postMessage(payload);
|
parentPort!.postMessage(payload);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
|
|||||||
|
|
||||||
private initialHeartbeatTimeoutController: AbortController | null = null;
|
private initialHeartbeatTimeoutController: AbortController | null = null;
|
||||||
|
|
||||||
private heartbeatInterval: NodeJS.Timer | null = null;
|
private heartbeatInterval: NodeJS.Timeout | null = null;
|
||||||
|
|
||||||
private lastHeartbeatAt = -1;
|
private lastHeartbeatAt = -1;
|
||||||
|
|
||||||
|
|||||||
17010
pnpm-lock.yaml
generated
17010
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
48
turbo.json
48
turbo.json
@@ -4,18 +4,18 @@
|
|||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
"globalDependencies": ["tsconfig.json"],
|
"globalDependencies": ["tsconfig.json"],
|
||||||
"pipeline": {
|
"tasks": {
|
||||||
"build": {
|
"build": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"inputs": ["bin/**", "src/**", "scripts/**", "package.json", "tsconfig.json", "tsup.config.ts", "vite.config.ts"],
|
"inputs": ["bin/**", "src/**", "scripts/**", "package.json", "tsconfig.json", "tsup.config.ts", "vite.config.ts"],
|
||||||
"outputs": ["dist/**"],
|
"outputs": ["dist/**"],
|
||||||
"outputMode": "errors-only"
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"@discordjs/ui#build-storybook": {
|
"@discordjs/ui#build-storybook": {
|
||||||
"dependsOn": ["build"],
|
"dependsOn": ["build"],
|
||||||
"inputs": [".storybook/**/*", "src/**", "package.json", "tsconfig.json", "vite.config.ts"],
|
"inputs": [".storybook/**/*", "src/**", "package.json", "tsconfig.json", "vite.config.ts"],
|
||||||
"outputs": ["dist/**", "storybook-static/**"],
|
"outputs": ["dist/**", "storybook-static/**"],
|
||||||
"outputMode": "errors-only"
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"@discordjs/guide#build:local": {
|
"@discordjs/guide#build:local": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
"tsconfig.json"
|
"tsconfig.json"
|
||||||
],
|
],
|
||||||
"outputs": [".next/**", ".next/cache/**", ".contentlayer/**"],
|
"outputs": [".next/**", ".next/cache/**", ".contentlayer/**"],
|
||||||
"outputMode": "full"
|
"outputLogs": "full"
|
||||||
},
|
},
|
||||||
"@discordjs/guide#build:prod": {
|
"@discordjs/guide#build:prod": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"tsconfig.json"
|
"tsconfig.json"
|
||||||
],
|
],
|
||||||
"outputs": [".next/**", ".next/cache/**", ".contentlayer/**"],
|
"outputs": [".next/**", ".next/cache/**", ".contentlayer/**"],
|
||||||
"outputMode": "full"
|
"outputLogs": "full"
|
||||||
},
|
},
|
||||||
"@discordjs/website#build:local": {
|
"@discordjs/website#build:local": {
|
||||||
"env": ["VERCEL_ENV", "NEXT_PUBLIC_LOCAL_DEV"],
|
"env": ["VERCEL_ENV", "NEXT_PUBLIC_LOCAL_DEV"],
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
"tsconfig.json"
|
"tsconfig.json"
|
||||||
],
|
],
|
||||||
"outputs": [".next/**", ".next/cache/**", "src/assets/readme/**"],
|
"outputs": [".next/**", ".next/cache/**", "src/assets/readme/**"],
|
||||||
"outputMode": "full"
|
"outputLogs": "full"
|
||||||
},
|
},
|
||||||
"@discordjs/website#build:prod": {
|
"@discordjs/website#build:prod": {
|
||||||
"env": ["VERCEL_ENV", "NEXT_PUBLIC_LOCAL_DEV"],
|
"env": ["VERCEL_ENV", "NEXT_PUBLIC_LOCAL_DEV"],
|
||||||
@@ -77,18 +77,18 @@
|
|||||||
"tsconfig.json"
|
"tsconfig.json"
|
||||||
],
|
],
|
||||||
"outputs": [".next/**", ".next/cache/**", "src/assets/readme/**"],
|
"outputs": [".next/**", ".next/cache/**", "src/assets/readme/**"],
|
||||||
"outputMode": "full"
|
"outputLogs": "full"
|
||||||
},
|
},
|
||||||
"@discordjs/guide#generate:contentlayer": {
|
"@discordjs/guide#generate:contentlayer": {
|
||||||
"inputs": ["src/**/*.mdx"],
|
"inputs": ["src/**/*.mdx"],
|
||||||
"outputs": [".contentlayer/**"],
|
"outputs": [".contentlayer/**"],
|
||||||
"outputMode": "errors-only"
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"inputs": ["__mocks__/**", "__tests__/**", "src/**", "jest.config.js", "package.json", "tsconfig.json"],
|
"inputs": ["__mocks__/**", "__tests__/**", "src/**", "jest.config.js", "package.json", "tsconfig.json"],
|
||||||
"outputs": ["coverage/**"],
|
"outputs": ["coverage/**"],
|
||||||
"outputMode": "new-only"
|
"outputLogs": "new-only"
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
"tsconfig.eslint.json"
|
"tsconfig.eslint.json"
|
||||||
],
|
],
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"outputMode": "errors-only"
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"@discordjs/guide#lint": {
|
"@discordjs/guide#lint": {
|
||||||
"dependsOn": ["^build", "build:local", "generate:contentlayer"],
|
"dependsOn": ["^build", "build:local", "generate:contentlayer"],
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
"tsconfig.eslint.json"
|
"tsconfig.eslint.json"
|
||||||
],
|
],
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"outputMode": "errors-only"
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"@discordjs/website#lint": {
|
"@discordjs/website#lint": {
|
||||||
"dependsOn": ["^build", "build:local"],
|
"dependsOn": ["^build", "build:local"],
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
"tsconfig.eslint.json"
|
"tsconfig.eslint.json"
|
||||||
],
|
],
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"outputMode": "errors-only"
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"format": {
|
"format": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
@@ -148,7 +148,7 @@
|
|||||||
"tsconfig.eslint.json"
|
"tsconfig.eslint.json"
|
||||||
],
|
],
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"outputMode": "errors-only"
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"@discordjs/guide#format": {
|
"@discordjs/guide#format": {
|
||||||
"dependsOn": ["^build", "generate:contentlayer"],
|
"dependsOn": ["^build", "generate:contentlayer"],
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
"tsconfig.eslint.json"
|
"tsconfig.eslint.json"
|
||||||
],
|
],
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"outputMode": "errors-only"
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"docs": {
|
"docs": {
|
||||||
"dependsOn": ["build"],
|
"dependsOn": ["build"],
|
||||||
@@ -181,38 +181,38 @@
|
|||||||
"tsconfig.docs.json"
|
"tsconfig.docs.json"
|
||||||
],
|
],
|
||||||
"outputs": ["dist-docs/**", "docs/docs.json", "docs/docs.api.json", "docs/*/split/**"],
|
"outputs": ["dist-docs/**", "docs/docs.json", "docs/docs.api.json", "docs/*/split/**"],
|
||||||
"outputMode": "errors-only",
|
"cache": false,
|
||||||
"cache": false
|
"outputLogs": "errors-only"
|
||||||
},
|
},
|
||||||
"changelog": {
|
"changelog": {
|
||||||
"inputs": ["cliff.toml"],
|
"inputs": ["cliff.toml"],
|
||||||
"outputs": ["CHANGELOG.md"],
|
"outputs": ["CHANGELOG.md"],
|
||||||
"outputMode": "full"
|
"outputLogs": "full"
|
||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"inputs": ["CHANGELOG.md", "package.json"],
|
"inputs": ["CHANGELOG.md", "package.json"],
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"outputMode": "full"
|
"outputLogs": "full"
|
||||||
},
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputMode": "full",
|
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"persistent": true
|
"persistent": true,
|
||||||
|
"outputLogs": "full"
|
||||||
},
|
},
|
||||||
"@discordjs/guide#dev": {
|
"@discordjs/guide#dev": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputMode": "full",
|
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"persistent": true
|
"persistent": true,
|
||||||
|
"outputLogs": "full"
|
||||||
},
|
},
|
||||||
"@discordjs/website#dev": {
|
"@discordjs/website#dev": {
|
||||||
"env": ["VERCEL_ENV", "NEXT_PUBLIC_LOCAL_DEV"],
|
"env": ["VERCEL_ENV", "NEXT_PUBLIC_LOCAL_DEV"],
|
||||||
"dependsOn": ["^build", "^docs"],
|
"dependsOn": ["^build", "^docs"],
|
||||||
"outputMode": "full",
|
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"persistent": true
|
"persistent": true,
|
||||||
|
"outputLogs": "full"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export default defineConfig({
|
|||||||
passWithNoTests: true,
|
passWithNoTests: true,
|
||||||
typecheck: {
|
typecheck: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
include: ["**/__tests__/types.test.ts"]
|
include: ['**/__tests__/types.test.ts'],
|
||||||
},
|
},
|
||||||
coverage: {
|
coverage: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user