mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
build: Upgrade dependencies and pnpm (#11420)
* build: upgrade dependencies * build: upgrade pnpm * test: fix voice * build: regenerate file * fix: reports by ESLint * fix: docs errors * build: downgrades * build: no upstream bump * build: discord-api-types 0.38.40 * build: pnpm 10.30.1 * fix: ignore @typescript-eslint/no-duplicate-type-constituents * fix: jsdoc lint in api-extractor * build: update template for ESLint Co-authored-by: Almeida <github@almeidx.dev> * chore: explicit TODO Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com> * chore: revert typings lint change --------- Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com> Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
@@ -65,13 +65,17 @@ describe('createAudioResource', () => {
|
||||
});
|
||||
|
||||
test('Only infers type if not explicitly given', () => {
|
||||
const resource = createAudioResource(new opus.Encoder(), { inputType: StreamType.Arbitrary });
|
||||
const resource = createAudioResource(new opus.Encoder({ rate: 48_000, channels: 2, frameSize: 960 }), {
|
||||
inputType: StreamType.Arbitrary,
|
||||
});
|
||||
expect(findPipeline).toHaveBeenCalledWith(StreamType.Arbitrary, NO_CONSTRAINT);
|
||||
expect(resource.volume).toBeUndefined();
|
||||
});
|
||||
|
||||
test('Infers from opus.Encoder', () => {
|
||||
const resource = createAudioResource(new opus.Encoder(), { inlineVolume: true });
|
||||
const resource = createAudioResource(new opus.Encoder({ rate: 48_000, channels: 2, frameSize: 960 }), {
|
||||
inlineVolume: true,
|
||||
});
|
||||
expect(findPipeline).toHaveBeenCalledWith(StreamType.Opus, VOLUME_CONSTRAINT);
|
||||
expect(resource.volume).toBeInstanceOf(VolumeTransformer);
|
||||
expect(resource.encoder).toBeInstanceOf(opus.Encoder);
|
||||
@@ -91,7 +95,7 @@ describe('createAudioResource', () => {
|
||||
});
|
||||
|
||||
test('Infers from opus.Decoder', () => {
|
||||
const resource = createAudioResource(new opus.Decoder());
|
||||
const resource = createAudioResource(new opus.Decoder({ rate: 48_000, channels: 2, frameSize: 960 }));
|
||||
expect(findPipeline).toHaveBeenCalledWith(StreamType.Raw, NO_CONSTRAINT);
|
||||
expect(resource.volume).toBeUndefined();
|
||||
});
|
||||
|
||||
@@ -63,32 +63,32 @@
|
||||
"homepage": "https://discord.js.org",
|
||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||
"dependencies": {
|
||||
"@snazzah/davey": "^0.1.8",
|
||||
"@snazzah/davey": "^0.1.9",
|
||||
"@types/ws": "^8.18.1",
|
||||
"discord-api-types": "^0.38.36",
|
||||
"discord-api-types": "^0.38.40",
|
||||
"prism-media": "^1.3.5",
|
||||
"tslib": "^2.8.1",
|
||||
"ws": "^8.18.3"
|
||||
"ws": "^8.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/opus": "^0.9.0",
|
||||
"@discordjs/opus": "^0.10.0",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^6.0.0",
|
||||
"@noble/ciphers": "^2.1.1",
|
||||
"@types/node": "^22.19.2",
|
||||
"@vitest/coverage-v8": "^4.0.15",
|
||||
"@types/node": "^22.19.11",
|
||||
"@vitest/coverage-v8": "^4.0.18",
|
||||
"cross-env": "^10.1.0",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-config-neon": "^0.2.9",
|
||||
"eslint": "^9.39.2",
|
||||
"eslint-config-neon": "^0.3.2",
|
||||
"eslint-formatter-compact": "^9.0.1",
|
||||
"eslint-formatter-pretty": "^7.0.0",
|
||||
"prettier": "^3.7.4",
|
||||
"prettier": "^3.8.1",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.6.3",
|
||||
"turbo": "^2.8.10",
|
||||
"typescript": "~5.9.3",
|
||||
"vitest": "^4.0.15",
|
||||
"vitest": "^4.0.18",
|
||||
"vitest-websocket-mock": "^0.5.0"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
Reference in New Issue
Block a user