@discordjs/voice 0.13.0-dev.1664798688-b2ec865.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -49
- package/dist/index.d.ts +9 -1
- package/dist/index.js +11 -100
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -100
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [@discordjs/voice@0.13.0](https://github.com/discordjs/discord.js/compare/@discordjs/voice@0.11.0...@discordjs/voice@0.13.0) - (2022-10-08)
|
|
6
|
+
|
|
7
|
+
## Bug Fixes
|
|
8
|
+
|
|
9
|
+
- Footer / sidebar / deprecation alert ([ba3e0ed](https://github.com/discordjs/discord.js/commit/ba3e0ed348258fe8e51eefb4aa7379a1230616a9))
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
- Change name (#8604) ([dd5a089](https://github.com/discordjs/discord.js/commit/dd5a08944c258a847fc4377f1d5e953264ab47d0))
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- Web-components (#8715) ([0ac3e76](https://github.com/discordjs/discord.js/commit/0ac3e766bd9dbdeb106483fa4bb085d74de346a2))
|
|
18
|
+
- **website:** Show `constructor` information (#8540) ([e42fd16](https://github.com/discordjs/discord.js/commit/e42fd1636973b10dd7ed6fb4280ee1a4a8f82007))
|
|
19
|
+
- **WebSocketShard:** Support new resume url (#8480) ([bc06cc6](https://github.com/discordjs/discord.js/commit/bc06cc638d2f57ab5c600e8cdb6afc8eb2180166))
|
|
20
|
+
|
|
21
|
+
## Refactor
|
|
22
|
+
|
|
23
|
+
- Website components (#8600) ([c334157](https://github.com/discordjs/discord.js/commit/c3341570d983aea9ecc419979d5a01de658c9d67))
|
|
24
|
+
- Use `eslint-config-neon` for packages. (#8579) ([edadb9f](https://github.com/discordjs/discord.js/commit/edadb9fe5dfd9ff51a3cfc9b25cb242d3f9f5241))
|
|
25
|
+
- Docs design (#8487) ([4ab1d09](https://github.com/discordjs/discord.js/commit/4ab1d09997a18879a9eb9bda39df6f15aa22557e))
|
|
26
|
+
|
|
5
27
|
# [@discordjs/voice@0.11.0](https://github.com/discordjs/discord.js/compare/@discordjs/voice@0.10.0...@discordjs/voice@0.11.0) - (2022-07-17)
|
|
6
28
|
|
|
7
29
|
## Bug Fixes
|
|
@@ -36,19 +58,7 @@ All notable changes to this project will be documented in this file.
|
|
|
36
58
|
|
|
37
59
|
- **voice:** Bring back typed events (#8109) ([70b42bb](https://github.com/discordjs/discord.js/commit/70b42bb64a4f83da0da242569b9c7921c8d1e26f))
|
|
38
60
|
|
|
39
|
-
# [@discordjs/voice@0.10.0](https://github.com/discordjs/discord.js/compare/@discordjs/voice@0.
|
|
40
|
-
|
|
41
|
-
## Styling
|
|
42
|
-
|
|
43
|
-
- Cleanup tests and tsup configs ([6b8ef20](https://github.com/discordjs/discord.js/commit/6b8ef20cb3af5b5cfd176dd0aa0a1a1e98551629))
|
|
44
|
-
|
|
45
|
-
# [@discordjs/voice@0.10.0](https://github.com/discordjs/discord.js/compare/@discordjs/voice@0.9.0...@discordjs/voice@0.10.0) - (2022-06-04)
|
|
46
|
-
|
|
47
|
-
## Styling
|
|
48
|
-
|
|
49
|
-
- Cleanup tests and tsup configs ([6b8ef20](https://github.com/discordjs/discord.js/commit/6b8ef20cb3af5b5cfd176dd0aa0a1a1e98551629))
|
|
50
|
-
|
|
51
|
-
# [@discordjs/voice@0.9.0](https://github.com/discordjs/discord.js/compare/@discordjs/voice@0.8.0...@discordjs/voice@0.9.0) - (2022-04-17)
|
|
61
|
+
# [@discordjs/voice@0.10.0](https://github.com/discordjs/discord.js/compare/@discordjs/voice@0.8.0...@discordjs/voice@0.10.0) - (2022-06-04)
|
|
52
62
|
|
|
53
63
|
## Bug Fixes
|
|
54
64
|
|
|
@@ -76,39 +86,3 @@ All notable changes to this project will be documented in this file.
|
|
|
76
86
|
- **voice:** Fix tests ([62c74b8](https://github.com/discordjs/discord.js/commit/62c74b8333066465e5bd295b8b102b35a506751d))
|
|
77
87
|
- Fix voice secretbox tests ([4a2dbd6](https://github.com/discordjs/discord.js/commit/4a2dbd62382f904d596b34da0116d50e724b81c4))
|
|
78
88
|
- Fix voice tests ([b593bd3](https://github.com/discordjs/discord.js/commit/b593bd32a98282a92fa28f2fb0a8ef239866622c))
|
|
79
|
-
|
|
80
|
-
# [0.7.5](https://github.com/discordjs/voice/compare/v0.7.4...v0.7.5) (2021-11-12)
|
|
81
|
-
|
|
82
|
-
## Bug Fixes
|
|
83
|
-
|
|
84
|
-
- postbuild script ([644af95](https://github.com/discordjs/voice/commit/644af9579f02724c489514f482640b8413d2c305))
|
|
85
|
-
|
|
86
|
-
# [0.7.4](https://github.com/discordjs/voice/compare/v0.7.3...v0.7.4) (2021-11-12)
|
|
87
|
-
|
|
88
|
-
## Bug Fixes
|
|
89
|
-
|
|
90
|
-
- conditionally apply banner only to esm build ([8c4e8c4](https://github.com/discordjs/voice/commit/8c4e8c4ba5b9013a90de0238a7f2771e9113a62d))
|
|
91
|
-
|
|
92
|
-
# [0.7.3](https://github.com/discordjs/voice/compare/v0.7.2...v0.7.3) (2021-11-11)
|
|
93
|
-
|
|
94
|
-
## Bug Fixes
|
|
95
|
-
|
|
96
|
-
- **esm:** resolve esm imports ([#229](https://github.com/discordjs/voice/issues/229)) ([616f2bc](https://github.com/discordjs/voice/commit/616f2bcfde47e55ac7b09f4faaa07f15d78c11a5))
|
|
97
|
-
|
|
98
|
-
# [0.7.2](https://github.com/discordjs/voice/compare/v0.7.1...v0.7.2) (2021-10-30)
|
|
99
|
-
|
|
100
|
-
## Bug Fixes
|
|
101
|
-
|
|
102
|
-
- prism imports for ems ([0bfd6d5](https://github.com/discordjs/voice/commit/0bfd6d5247f89cfc125e7645e9fb7ebfed94bb2f))
|
|
103
|
-
|
|
104
|
-
# [0.7.1](https://github.com/discordjs/voice/compare/v0.7.0...v0.7.1) (2021-10-30)
|
|
105
|
-
|
|
106
|
-
## Bug Fixes
|
|
107
|
-
|
|
108
|
-
- prism imports for esm ([9222dbf](https://github.com/discordjs/voice/commit/9222dbfedd8bfaeb679133dfa41330ea75a03a70))
|
|
109
|
-
|
|
110
|
-
# [0.7.0](https://github.com/discordjs/voice/compare/v0.6.0...v0.7.0) (2021-10-30)
|
|
111
|
-
|
|
112
|
-
## Features
|
|
113
|
-
|
|
114
|
-
- export some types so they render in docs ([#211](https://github.com/discordjs/voice/issues/211)) ([a6dad47](https://github.com/discordjs/voice/commit/a6dad4781fb479d22d7bff99888e42368d6d6411))
|
package/dist/index.d.ts
CHANGED
|
@@ -1633,4 +1633,12 @@ interface ProbeInfo {
|
|
|
1633
1633
|
*/
|
|
1634
1634
|
declare function demuxProbe(stream: Readable, probeSize?: number, validator?: typeof validateDiscordOpusHead): Promise<ProbeInfo>;
|
|
1635
1635
|
|
|
1636
|
-
|
|
1636
|
+
/**
|
|
1637
|
+
* The [\@discordjs/voice](https://github.com/discordjs/discord.js/blob/main/packages/voice/#readme) version
|
|
1638
|
+
* that you are currently using.
|
|
1639
|
+
*
|
|
1640
|
+
* Note to developers: This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
|
1641
|
+
*/
|
|
1642
|
+
declare const version: string;
|
|
1643
|
+
|
|
1644
|
+
export { AudioPlayer, AudioPlayerBufferingState, AudioPlayerError, AudioPlayerIdleState, AudioPlayerPausedState, AudioPlayerPlayingState, AudioPlayerState, AudioPlayerStatus, AudioReceiveStream, AudioReceiveStreamOptions, AudioResource, CreateAudioPlayerOptions, CreateAudioResourceOptions, CreateVoiceConnectionOptions, DiscordGatewayAdapterCreator, DiscordGatewayAdapterImplementerMethods, DiscordGatewayAdapterLibraryMethods, EndBehavior, EndBehaviorType, JoinConfig, JoinVoiceChannelOptions, NoSubscriberBehavior, PlayerSubscription, ProbeInfo, SSRCMap, SpeakingMap, StreamType, VoiceConnection, VoiceConnectionConnectingState, VoiceConnectionDestroyedState, VoiceConnectionDisconnectReason, VoiceConnectionDisconnectedBaseState, VoiceConnectionDisconnectedOtherState, VoiceConnectionDisconnectedState, VoiceConnectionDisconnectedWebSocketState, VoiceConnectionReadyState, VoiceConnectionSignallingState, VoiceConnectionState, VoiceConnectionStatus, VoiceReceiver, VoiceUserData, createAudioPlayer, createAudioResource, createDefaultAudioReceiveStreamOptions, demuxProbe, entersState, generateDependencyReport, getGroups, getVoiceConnection, getVoiceConnections, joinVoiceChannel, validateDiscordOpusHead, version };
|
package/dist/index.js
CHANGED
|
@@ -7,9 +7,6 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
9
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
10
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
11
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
-
};
|
|
13
10
|
var __export = (target, all) => {
|
|
14
11
|
for (var name in all)
|
|
15
12
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -32,100 +29,6 @@ var __publicField = (obj, key, value) => {
|
|
|
32
29
|
return value;
|
|
33
30
|
};
|
|
34
31
|
|
|
35
|
-
// package.json
|
|
36
|
-
var require_package = __commonJS({
|
|
37
|
-
"package.json"(exports, module2) {
|
|
38
|
-
module2.exports = {
|
|
39
|
-
name: "@discordjs/voice",
|
|
40
|
-
version: "0.13.0-dev.1664798688-b2ec865.0",
|
|
41
|
-
description: "Implementation of the Discord Voice API for node.js",
|
|
42
|
-
scripts: {
|
|
43
|
-
build: "tsup",
|
|
44
|
-
test: "jest --coverage",
|
|
45
|
-
lint: "prettier --check . && cross-env TIMING=1 eslint src __tests__ --ext mjs,js,ts",
|
|
46
|
-
format: "prettier --write . && cross-env TIMING=1 eslint src __tests__ --ext mjs,js,ts --fix",
|
|
47
|
-
fmt: "yarn format",
|
|
48
|
-
docs: "downlevel-dts dist docs/dist --to=3.7 && docgen -i src/index.ts -c docs/index.json -o docs/docs.json --typescript && api-extractor run --local",
|
|
49
|
-
prepack: "yarn lint && yarn test && yarn build",
|
|
50
|
-
changelog: "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/voice/*'",
|
|
51
|
-
release: "cliff-jumper"
|
|
52
|
-
},
|
|
53
|
-
main: "./dist/index.js",
|
|
54
|
-
module: "./dist/index.mjs",
|
|
55
|
-
typings: "./dist/index.d.ts",
|
|
56
|
-
exports: {
|
|
57
|
-
import: "./dist/index.mjs",
|
|
58
|
-
require: "./dist/index.js",
|
|
59
|
-
types: "./dist/index.d.ts"
|
|
60
|
-
},
|
|
61
|
-
directories: {
|
|
62
|
-
lib: "src",
|
|
63
|
-
test: "__tests__"
|
|
64
|
-
},
|
|
65
|
-
files: [
|
|
66
|
-
"dist"
|
|
67
|
-
],
|
|
68
|
-
contributors: [
|
|
69
|
-
"Crawl <icrawltogo@gmail.com>",
|
|
70
|
-
"Amish Shah <amishshah.2k@gmail.com>",
|
|
71
|
-
"SpaceEEC <spaceeec@yahoo.com>",
|
|
72
|
-
"Vlad Frangu <kingdgrizzle@gmail.com>",
|
|
73
|
-
"Aura Rom\xE1n <kyradiscord@gmail.com>"
|
|
74
|
-
],
|
|
75
|
-
license: "Apache-2.0",
|
|
76
|
-
keywords: [
|
|
77
|
-
"discord",
|
|
78
|
-
"discord.js",
|
|
79
|
-
"audio",
|
|
80
|
-
"voice",
|
|
81
|
-
"streaming"
|
|
82
|
-
],
|
|
83
|
-
repository: {
|
|
84
|
-
type: "git",
|
|
85
|
-
url: "git+https://github.com/discordjs/discord.js.git"
|
|
86
|
-
},
|
|
87
|
-
bugs: {
|
|
88
|
-
url: "https://github.com/discordjs/discord.js/issues"
|
|
89
|
-
},
|
|
90
|
-
homepage: "https://discord.js.org",
|
|
91
|
-
dependencies: {
|
|
92
|
-
"@types/ws": "^8.5.3",
|
|
93
|
-
"discord-api-types": "^0.37.11",
|
|
94
|
-
"prism-media": "^1.3.4",
|
|
95
|
-
tslib: "^2.4.0",
|
|
96
|
-
ws: "^8.9.0"
|
|
97
|
-
},
|
|
98
|
-
devDependencies: {
|
|
99
|
-
"@babel/core": "^7.19.1",
|
|
100
|
-
"@babel/preset-env": "^7.19.1",
|
|
101
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
102
|
-
"@discordjs/docgen": "workspace:^",
|
|
103
|
-
"@favware/cliff-jumper": "^1.8.7",
|
|
104
|
-
"@microsoft/api-extractor": "^7.31.2",
|
|
105
|
-
"@types/jest": "^29.0.3",
|
|
106
|
-
"@types/node": "^16.11.60",
|
|
107
|
-
"cross-env": "^7.0.3",
|
|
108
|
-
"downlevel-dts": "^0.10.1",
|
|
109
|
-
eslint: "^8.24.0",
|
|
110
|
-
"eslint-config-neon": "^0.1.33",
|
|
111
|
-
jest: "^29.0.3",
|
|
112
|
-
"jest-websocket-mock": "^2.4.0",
|
|
113
|
-
"mock-socket": "^9.1.5",
|
|
114
|
-
prettier: "^2.7.1",
|
|
115
|
-
tsup: "^6.2.3",
|
|
116
|
-
tweetnacl: "^1.0.3",
|
|
117
|
-
typescript: "^4.8.3"
|
|
118
|
-
},
|
|
119
|
-
engines: {
|
|
120
|
-
node: ">=16.9.0"
|
|
121
|
-
},
|
|
122
|
-
publishConfig: {
|
|
123
|
-
access: "public"
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
|
|
129
32
|
// src/index.ts
|
|
130
33
|
var src_exports = {};
|
|
131
34
|
__export(src_exports, {
|
|
@@ -154,7 +57,8 @@ __export(src_exports, {
|
|
|
154
57
|
getVoiceConnection: () => getVoiceConnection,
|
|
155
58
|
getVoiceConnections: () => getVoiceConnections,
|
|
156
59
|
joinVoiceChannel: () => joinVoiceChannel,
|
|
157
|
-
validateDiscordOpusHead: () => validateDiscordOpusHead
|
|
60
|
+
validateDiscordOpusHead: () => validateDiscordOpusHead,
|
|
61
|
+
version: () => version2
|
|
158
62
|
});
|
|
159
63
|
module.exports = __toCommonJS(src_exports);
|
|
160
64
|
|
|
@@ -1979,7 +1883,10 @@ function findPackageJSON(dir, packageName, depth) {
|
|
|
1979
1883
|
__name(findPackageJSON, "findPackageJSON");
|
|
1980
1884
|
function version(name) {
|
|
1981
1885
|
try {
|
|
1982
|
-
|
|
1886
|
+
if (name === "@discordjs/voice") {
|
|
1887
|
+
return "0.13.0";
|
|
1888
|
+
}
|
|
1889
|
+
const pkg = findPackageJSON((0, import_node_path.dirname)(require.resolve(name)), name, 3);
|
|
1983
1890
|
return pkg?.version ?? "not found";
|
|
1984
1891
|
} catch {
|
|
1985
1892
|
return "not found";
|
|
@@ -2118,6 +2025,9 @@ async function demuxProbe(stream, probeSize = 1024, validator = validateDiscordO
|
|
|
2118
2025
|
});
|
|
2119
2026
|
}
|
|
2120
2027
|
__name(demuxProbe, "demuxProbe");
|
|
2028
|
+
|
|
2029
|
+
// src/index.ts
|
|
2030
|
+
var version2 = "0.13.0";
|
|
2121
2031
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2122
2032
|
0 && (module.exports = {
|
|
2123
2033
|
AudioPlayer,
|
|
@@ -2145,6 +2055,7 @@ __name(demuxProbe, "demuxProbe");
|
|
|
2145
2055
|
getVoiceConnection,
|
|
2146
2056
|
getVoiceConnections,
|
|
2147
2057
|
joinVoiceChannel,
|
|
2148
|
-
validateDiscordOpusHead
|
|
2058
|
+
validateDiscordOpusHead,
|
|
2059
|
+
version
|
|
2149
2060
|
});
|
|
2150
2061
|
//# sourceMappingURL=index.js.map
|