Commit graph

439 commits

Author SHA1 Message Date
Cam Cope
f61c044b26 Mark peer dependencies as optional (#3066) 2019-02-24 08:43:42 +00:00
Amish Shah
73be952406 use official release of prism 2019-02-21 11:56:46 +00:00
Kyra
ab55acffdb webpack: Fix module warning when building (#3076)
Warning:
```
WARNING in ./src/client/Client.js
Module not found: Error: Can't resolve 'worker_threads' in 'D:\Repositories\discordjs\discord.js\src\client'
 @ ./src/client/Client.js
 @ ./src/index.js
```
2019-02-11 16:29:20 +00:00
Kyra
0c5b9c6870 chore(deps): Updated all required, peer, and development dependencies (#3073)
* chore(deps): Updated all required, peer, and development dependencies

And engines.node to require 10

* chore(peerDeps): Updated uws to 11.149.1

Clarified my doubts with iCrawl
2019-02-11 07:41:37 +00:00
Isabella
f3cad81f53
feat: Internal sharding (#2902)
* internal sharding

* ready event

* the square deal

* the new deal

* the second new deal

* add actual documentation

* the new freedom

* the great society

* federal intervention

* some of requested changes

* i ran out of things to call these

* destroy this

* fix: Client#uptime went missing

* fix(Client): destroy the client on login failure

This may happen duo invalid sharding config / invalid token / user requested destroy

* fix(Client): reject login promise when the client is destroyed before ready

* fix(WebSocketManager): remove redundancy in destroy method (#2491)

* typo(ErrorMessages): duo -> duo to

* typo(ErrorMessages): duo -> due

* fix: docs and options

* docs(WebSocketManager): WebSockethard -> WebSocketShard (#2502)

* fix(ClientUser): lazily load to account for extended user structure (#2501)

* docs(WebSocketShard): document class to make it visible in documentation (#2504)

* fix: WebSocketShard#reconnect

* fix: presenceUpdate & userUpdate
* presenceUpdate wasn't really being handled at all
* userUpdate handled incorrectly because as of v7 in the Discord API, it comes inside presenceUpdate

* re-add raw event

* member is now part of message create payload

* feat: Add functionality to support multiple servers with different shards (#2395)

* Added functionallity to spawn multiple sharding managers due to adding start and end shards

* Small fixes and limiting shard amount to max recommended

* Forgot a check in spawn()

* Fixed indentation

* Removed optiosn object documentation for totalShards

* More fixes and a check that the startShard + amount doesnt go over the recommended shard amount

* fix getting max recommended

* Removed async from constructor (my fault)

* Changed start and end shard to a shardList or "auto" + fixed some brainfarts with isNaN

* Changed the loop and totalShard count calculation

* shards are actually 0 based

* Fixed a problem with the gateway and handled some range errors and type errors

* Changed Number.isNan to isNaN and changed a few Integer checks to use Number.isInteger

* Added check if shardList contains smth greater than totalShards; made spawn use totalShards again; shardList will be ignored and rebuild if totalShards is 'auto'; fixed docs

* ShardingManager#spawn now uses a for..of loop; fixed the if statement inside the new for..of loop to still work as intended; made the totalShards be set to a new amount if smth manual is put into ShardingManager#spawn just like before; Fixed some spelling

* internal sharding

* ready event

* the square deal

* the new deal

* the second new deal

* add actual documentation

* the new freedom

* the great society

* federal intervention

* some of requested changes

* i ran out of things to call these

* destroy this

* fix: Client#uptime went missing

* fix(Client): destroy the client on login failure

This may happen duo invalid sharding config / invalid token / user requested destroy

* fix(Client): reject login promise when the client is destroyed before ready

* fix(WebSocketManager): remove redundancy in destroy method (#2491)

* typo(ErrorMessages): duo -> duo to

* typo(ErrorMessages): duo -> due

* fix: docs and options

* docs(WebSocketManager): WebSockethard -> WebSocketShard (#2502)

* fix(ClientUser): lazily load to account for extended user structure (#2501)

* docs(WebSocketShard): document class to make it visible in documentation (#2504)

* fix: WebSocketShard#reconnect

* fix: presenceUpdate & userUpdate
* presenceUpdate wasn't really being handled at all
* userUpdate handled incorrectly because as of v7 in the Discord API, it comes inside presenceUpdate

* Internal Sharding adaptation

Adapted to internal sharding
Fixed a bug where non ready invalidated sessions wouldnt respawn

* Fixed shardCount not retrieving

* Fixing style

removed unnecessary parenthesis

* Fixing and rebasing

lets hope i didnt dun hecklered it

* Fixing my own retardation

* Thanks git rebase

* fix: assigning member in message create payload

* fix: resumes

* fix: IS wont give up reconnecting now

* docs: add missing docs mostly

* fix: found lost methods

* fix: WebSocketManager#broadcast check if shard exists

* fix: ShardClientUtil#id returning undefined

* feat: handle new session rate limits (#2796)

* feat: handle new session rate limits

* i have no idea what i was doing last night

* fix if statement weirdness

* fix: re-add presence parsing from ClientOptions (#2893)

* resolve conflicts

* typings: missing typings

* re-add missing linter rule

* fix: replacing ClientUser wrongly

* address unecessary performance waste

* docs: missing disconnect event

* fix(typings): Fix 2 issues with typings (#2909)

* (Typings) Update typings to reflect current ClientOptions

* fix(Typings) fixes a bug with Websockets and DOM Types

* fix travis

* feat: allow setting presence per shard

* add WebSocketManager#shardX events

* adjust typings, docs and performance issues

* readjust shard events, now provide shardId parameter instead

* fix: ready event should check shardCount, not actualShardCount

* fix: re-add replayed parameter of Client#resume

* fix(Sharding): fixes several things in Internal Sharding (#2914)

* fix(Sharding) fixes several things in Internal Sharding

* add default value for shards property

* better implement checking for shards array

* fix travis & some casing

* split shard count into 2 words

* update to latest Internal Sharding, fix requested changes

* make sure totalShardCount is a number

* fix comment

* fix small typo

* dynamically set totalShardCount if either shards or shardCount is provided

* consistency: rename shardID to shardId

* remove Client#shardIds

* fix: typo in GuildIntegrationsUpdate handler

* fix: incorrect packet data being passed in some events (#2919)

* fix: edgecase of ShardingManager and totalShardCount (#2918)

* fix: Client#userUpdate being passed wrong parameter
and fix a potential edgecase of returning null in ClientUser#edit from this event

* fix consistency and typings issues

* consistency: shardId instances renamed to shardID

* typings: fix typings regarding WebSocket

* style(.eslintrc): remove additional whitespace

* fix(Client): remove ondisconnect handler on timeout

* docs(BaseClient): fix typo of Immediate

* nitpick: typings, private fields and methods

* typo: improve grammar a bit

* fix: error assigning client in WebSocketManager

* typo: actually spell milliseconds properly
2018-11-03 13:21:23 -05:00
SpaceEEC
fcf4745a43
typings: fix lint script and linter errors 2018-10-04 19:29:12 +02:00
Crawl
8a6d029c00
build(dev-deps): update to use terser instead of uglifyjs 2018-09-19 01:20:07 +02:00
Crawl
641ee86105 build(peer-deps): use uws fork backport (#2782)
* build(peer-deps): uws backport

* chore: update to 149 for uws
2018-08-30 17:55:31 -05:00
Crawl
9b329a457c
build(peer-deps): use uws fork (#2781)
* feat: use uws fork

* chore: update to 149 for uws
2018-08-24 16:51:33 +02:00
Crawl
02f98cd7e6
fix(webpack): properly minifying 2018-08-22 05:05:11 +02:00
Crawl
7684ad3ca6
fix(webpack): properly emitting process deprecation warnings 2018-08-22 04:54:09 +02:00
Isabella
d3e7dbc738
fix: pin & update deps 2018-08-21 11:37:08 -05:00
Crawl
ab0ede0d5a
fix: pin peer-deps to the latest version we allow 2018-08-20 18:43:53 +02:00
Crawl
8afc1fa545
fix: pin dev-deps to a higher version to avoid problems with upath on node 10 2018-08-20 18:38:26 +02:00
zajrik
68c832957d tests: Add typings lint runner to test script 2018-08-18 22:23:13 -05:00
zajrik
3b91fa0b49 tests(lint): Update typings lint script 2018-08-18 05:40:42 -05:00
zajrik
29d51fa582 tests: Fix typings lint script
Forgot to update it after moving the typings.
2018-08-17 23:11:06 -05:00
dependabot[bot]
e55f822ad4 build(deps-dev): update tslint requirement from ^3.15.1 to ^5.11.0 (#2745)
Updates the requirements on [tslint](https://github.com/palantir/tslint) to permit the latest version.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/palantir/tslint/commits/5.11.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-17 23:07:08 -05:00
dependabot[bot]
418be7bef1 build(deps-dev): update tslint-config-typings requirement from ^0.2.4 to ^0.3.1 (#2746)
Updates the requirements on [tslint-config-typings](https://github.com/typings/tslint-config-typings) to permit the latest version.
- [Release notes](https://github.com/typings/tslint-config-typings/releases)
- [Commits](https://github.com/typings/tslint-config-typings/commits/v0.3.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-17 23:01:01 -05:00
zajrik
efc8445260 refactor: Merge typings into 11.4-dev branch 2018-08-13 22:20:33 -05:00
zajrik
1ff56eb09d Merge typings into master 2018-08-13 20:51:41 -05:00
Amish Shah
ebfbf20f07
Bump to 11.4.2 2018-08-13 15:19:21 +01:00
Lewdcario
6775684ff0
chore: update typings & bump version 2018-08-12 13:14:52 -05:00
Amish Shah
72bb9cb532
voice deps: fix prism-media requirement 2018-08-09 22:40:31 +01:00
Lewdcario
bef07152c8
chore: update typings & bump version 2018-08-09 11:47:52 -05:00
Amish Shah
382afee436
deps: update prism peer dep to point to right account 2018-08-07 18:25:42 +01:00
dependabot[bot]
92d753abe4 build(deps): update ws requirement to ^6.0.0 (#2670)
Updates the requirements on [ws](https://github.com/websockets/ws) to permit the latest version.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits/6.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-26 04:38:56 +02:00
Amish Shah
7d2744be89
voice: use development version of prism 2018-07-12 16:11:04 +01:00
dependabot[bot]
bcdb8011e3 build(devDeps): update eslint requirement to ^5.0.1 (#2629)
* build(devDeps): update eslint requirement to ^5.0.1

Updates the requirements on [eslint](https://github.com/eslint/eslint) to permit the latest version.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v5.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* fix(eslint): disable getter-return rule
2018-06-26 23:14:54 +02:00
Amish Shah
99a9a813d7
voice dep: bump prism-media to 0.3.0 2018-06-20 20:44:27 +01:00
Will Nelson
5e011dbc11 switch to node-fetch (#2587)
* switch to node-fetch

* remove useless var declaration

* remove method uppercasing

* rework concurrency

* Revert "rework concurrency"

This reverts commit ef6aa2697e.

* fix headers
2018-06-19 20:10:55 +02:00
dependabot[bot]
fc96cfbc00 Revert "build: update snekfetch requirement to ^4.0.1 (#2580)"
This reverts commit 46af6e3396.
2018-06-06 09:09:27 -06:00
dependabot[bot]
46af6e3396 build: update snekfetch requirement to ^4.0.1 (#2580)
Updates the requirements on [snekfetch](https://github.com/devsnek/snekfetch) to permit the latest version.
- [Release notes](https://github.com/devsnek/snekfetch/releases)
- [Commits](https://github.com/devsnek/snekfetch/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-05 09:26:20 +02:00
dependabot[bot]
276109ed3c build: update webpack-cli requirement to ^3.0.1 (#2579)
Updates the requirements on [webpack-cli](https://github.com/webpack/webpack-cli) to permit the latest version.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/commits/v3.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-04 09:26:10 +02:00
dependabot[bot]
21cc2952eb build: update @types/node requirement to ^10.0.3 (#2532)
Updates the requirements on [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) to permit the latest version.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-05-03 19:03:42 +02:00
Crawl
f2474845ba
fix: webpack building and upgrading to webpack 4.5 2018-04-11 13:49:42 +02:00
Amish Shah
e263063ba6
voice: update prism and fix framesize to work for opusscript 2018-03-05 19:30:18 +00:00
Amish Shah
e5bd6ec150
11.3.2 2018-03-04 18:08:54 +00:00
Schuyler Cebulskie
419a2eea3f Bump version to 11.3.1 2018-03-03 15:38:24 -05:00
Pascal
c6f92c1bc5
fix: if present, wait for libsodium-wrappers' ready to support v0.7.3 2018-02-26 11:35:51 +01:00
iCrawl
a7b46be923
fix: webpack minified and bump deps 2018-02-17 18:01:20 +01:00
Crawl
d720ad6334
Merge branch 'master' into refactor/webpacks 2018-02-16 09:48:54 +01:00
iCrawl
332558a3d8
fix: npm scripts 2018-02-16 08:46:31 +01:00
iCrawl
672f93f5bd
chore: bump deps and remove unneeded ones 2018-02-16 08:43:46 +01:00
Pascal
2fd4c6def7
chore(deps): update uws to 9.14.0
Closes #2327
2018-02-13 17:40:43 +01:00
Amish Shah
86da7af4f1
Update prism dependency 2018-01-21 17:47:26 +00:00
Amish Shah
066fbfe330
Move voice UDP client and Websocket client to networking folder 2018-01-19 22:53:55 +00:00
Schuyler Cebulskie
f649610c26 Merge branch 'master' into voice-rewrite 2018-01-18 19:49:23 -05:00
Schuyler Cebulskie
16a910c988 Update repository references 2018-01-18 14:46:35 -05:00
Schuyler Cebulskie
51ddd6595c Update repository references 2018-01-18 14:40:02 -05:00
Amish Shah
c49c5576d0
Point discord.js-docgen dependency to its new location 2018-01-18 17:56:46 +00:00
Amish Shah
c522b65adb
Point discord.js-docgen dependency to its new location 2018-01-18 17:54:45 +00:00
Amish Shah
c4b1be8506
i didnt even want to update deps but no here we are updating deps for a version nobody will use because they all use v12 2018-01-13 20:39:47 +00:00
Amish Shah
c27ecf678e
Update dependencies 2018-01-13 18:52:20 +00:00
Isabella
b6c89ef638 fix(verson): update package.json (#2196) 2017-12-31 20:19:42 +01:00
Schuyler Cebulskie
96971c432d Merge master into voice-rewrite 2017-12-02 19:48:43 -05:00
Gus Caplan
4f4f0764e6
Merge branch 'master' into refactor/webpacks 2017-12-02 15:11:44 -06:00
bdistin
6a222ec6e9 Backport: erlpack dep fix (#2142) 2017-12-01 18:50:33 +01:00
Schuyler Cebulskie
a2074e8f25 Bump deps 2017-11-18 21:08:06 -05:00
Drahcirius
8237bc054c So long, long (#1994)
* refactor: remove long dep

* fix linter issue

* remove file extensions

* optimize methods
2017-11-17 14:37:07 +01:00
Gus Caplan
f63861a334
fix prepublish script 2017-10-29 18:40:56 -05:00
Amish Shah
ac0cc9a009
Remove useless SecretKey class 2017-10-26 14:02:44 +01:00
Amish Shah
65673197d4
Start rewrite with new prism 2017-10-25 23:14:41 +01:00
Gus Caplan
f8f804da36
wew 2017-10-25 16:09:36 -05:00
Gus Caplan
0589b7d7f1 zlib stream compression (#2028) 2017-10-25 17:30:03 +01:00
Amish Shah
3e460162ca
Update prism-media dependency to 0.0.2 2017-10-22 22:00:14 +01:00
Amish Shah
07bacf2a7d
Update opusscript dependency to 0.0.4 2017-10-22 22:00:04 +01:00
Amish Shah
96ce1b0945
Update libsodium-wrappers peer dep and fix support for the newest version 2017-10-22 21:59:30 +01:00
Gus Caplan
339bcfd325 clean up webpack/deploy stuff (#2044)
* fix stuff i think

* Update deploy.sh

* Update deploy.sh
2017-10-22 14:45:32 +02:00
Gus Caplan
296046dbc6 remove ua manager (#2015) 2017-10-19 07:11:07 +02:00
Gus Caplan
27ccad1f1c tinify webpacks (#1975)
* tinify webpack

* meme

* fix long version

* more changes

* even smoler

* fix up logic

* fix build

* undo changes to user agent manager because its not webpack'd anymore

* the heck

* fix stupid

* clean up browser rules

* typo
2017-09-26 07:18:12 +02:00
Gus Caplan
4d4d2f2db7 add agent support (#1973) 2017-09-25 20:46:19 +02:00
Gus Caplan
6ce9a8743f update browser stuff and browser eslint (#1938)
* Update browser.js

* Update .eslintrc.json

* Update package.json

* Update package.json

* stop doing manually what webpack can do for us

* Update .eslintrc.json

* Update package.json
2017-09-24 21:01:47 +01:00
Gus Caplan
f2502e29b9 update dep for org name change (#1953) 2017-09-20 21:03:00 +02:00
iCrawl
9e66e806ce
fix: minified webpack builds 2017-09-05 19:03:06 +02:00
Amish Shah
d9f772cdc1 11.2.1 2017-09-03 19:54:59 +01:00
iCrawl
18de265fcc
lock version numbers, prepare release 2017-09-03 18:03:13 +02:00
Amish Shah
b8315b79c7 Store and Model Refactor (#1618)
* UserStore refactor

* Create ChannelStore, remove redundant methods in ClientDataManager

* Create GuildStore

* Emoji stuff

* Use a Base class where possible to reduce code duplication

* Remove unnecessary comments from ChannelStore

* Add Base._clone();

* Remove unused ClientDataManager methods

* Refactor some more stuff

* ESLint

* Move Client#fetchUser to client.users.fetch

* Remove .has checks and just see if .get is truthy

* Fix guild member chunk error

* ESLint

* Fix typo

* Fix channel storing for user bots

* Remove ClientDataManager

* GuildChannelStore

* Reduce use of Util.cloneObject

* and this one too

* update typings

* Fix MessageUpdate handling (#1507)

* Fix role updates (probably fixes #1525)

* fix for eslint

* Address some of appell's comments

* Use debug constant

* start message store crap if it's ugly tell me later k

* fix that

* message store but works™️

* clean up guild stuff

* clean up channel store stuff

* clean up channel event handling

* does this message stuff work? find out soon in the next episode of dIsCoRd.Js

* eslint

* emojis

* emojis and reactions

* hi my name is eslint and im A LIL SHIT

* so i forgot this huh

* user stuff

* Fix @class

* Fix message stuff

* Fix user store docs

* Document all the bases

* fix the super things

* tidy up remove

* fix textbasedchannel

* fix that too

* fix emoji store

* make voice state stuff less ugly

* make voice states even less ugly

* make members less bad

* fix bug

* fix that too

* fix reactions

* how was this broken for so long

* role store

* remove super._patch from UserConnection

* Rename UserProfile#setup to _patch

* remove unnecessary super calls

* update docgen dep (pls fix travis thx)

* doc messagestore

* fix docs

* message store docs

* things

* DOCS PLS

* more things

* Document TextBasedChannel#messages as a MessageStore

* Rebase

* All the stores!
2017-08-25 21:08:58 +01:00
iCrawl
b3216f26d6 Update deps 2017-08-20 21:39:27 +02:00
iCrawl
fff8b764af Update package.json 2017-08-17 20:20:20 +02:00
Crawl
26e5ef3205 Update deps and fix webpack 2017-07-16 14:34:23 +02:00
Crawl
116fcbd54e Oops, might use the right version number 2017-07-08 06:34:50 +02:00
Crawl
516c2025ba Use the uglifyjs-webpack-plugin beta on npm 2017-07-08 06:32:29 +02:00
Crawl
0c34f3a313 Update dependencies & make webpack great again 2017-07-05 11:53:53 +02:00
Schuyler Cebulskie
2a96296e95 Identify version as development 2017-06-02 00:19:02 -04:00
Crawl
375b89a94a Force node 8 2017-06-01 10:42:35 +02:00
Amish Shah
535a640534 Update ws and tweetnacl dependencies to new major versions 2017-05-30 12:51:31 +01:00
Crawl
8a7a805d92 Fix webpack uglify 2017-05-13 18:18:15 +02:00
Crawl
b0d4b53d6b Fix webpack uglify 2017-05-13 18:17:25 +02:00
Crawl
2a23941020 Update version 2017-05-05 17:08:41 +02:00
Crawl
328d75be7d Update version 2017-05-05 17:08:22 +02:00
Amish Shah
9841615775 Merge branch 'master' of https://github.com/hydrabolt/discord.js 2017-04-30 12:10:27 +01:00
Amish Shah
c880f10714 Update bufferutil peerdep requirement from ^2.0.0 to ^3.0.0 2017-04-30 12:10:22 +01:00
Crawl
bd6317cf99 Add uws back to package.json 2017-04-30 12:59:11 +02:00
Crawl
fb5b8f8548 Remove uws from package.json 2017-04-24 08:22:28 +02:00
Crawl
7d5bfccd67 Update package.json 2017-04-22 18:15:26 +02:00
Crawl
6c4f63ed72 Make @types/node a devDependency 2017-04-22 15:00:37 +02:00
Crawl
c3bc6d5234 Update to latest eslint 2017-04-22 14:56:10 +02:00
Skiptir Engu
8475a4abee Use libsodium.js if available (#1390)
* Use libsodium.js if available

* Style consistency

* Added peer dep and update README

* Link should point to npmjs 🤔
2017-04-19 18:35:45 +02:00
Gus Caplan
47442eeba3 snekfetch v3 hype (#1391) 2017-04-19 16:40:07 +01:00
Crawl
6bae7a135f Update package.json to v11.1
This is to reflect version of the master branch
2017-04-16 02:22:18 +02:00
Amish Shah
bdf6f30990 Update package.json to depend on npm distribution of prism-media rather than the git repo 2017-04-15 19:46:36 +01:00
Gus Caplan
d7cf4a0919 switch snekfetch to npm dep because not everyone has git (#1349)
* Update package.json

* Update package.json
2017-04-09 15:55:35 +02:00
Crawl
4ebf4307e8 Update package.json 2017-04-05 21:40:38 +02:00
Crawl
dde6eb003c Force newest node-opus and opusscript 2017-04-02 19:45:10 +02:00
Gus Caplan
cb3f6d9646 http rewrite (actually works this time!!1!) (#1257)
* rewrite http

* browser fun

* all the mimes dammit

* i need a newline

* whoops

* forgot about this

* use promises and HTTPRequest.method

* fluent

* move httpclient to external module

* branding

* middleware

* revert middleware
2017-04-01 09:04:01 +02:00
Alexandre B
c86ebefecb Updated uws package version. (#1315) 2017-03-29 21:51:30 +02:00
Schuyler Cebulskie
41c67766d8 Update ESLint dependency (forgot to include this) 2017-03-17 01:25:30 -04:00
Gus Caplan
fa609caee2 remove pako (#1258) 2017-03-16 09:15:48 -04:00
Schuyler Cebulskie
0f6fceebb4 Update voice webpack exclusions 2017-02-06 01:57:08 -05:00
Schuyler Cebulskie
d6f17a9319 Merge branch 'master' into indev-prism 2017-02-06 01:54:31 -05:00
Schuyler Cebulskie
4dc70d8cef Update dependencies and fix tweetnacl webpack exclusion 2017-02-06 01:27:04 -05:00
Jacob
49944747ae Sodium (#1172)
* Use Native libsodium when available

* add newline

* fix typo of exports

* add to webpack ignore

* Update Secretbox.js
2017-02-06 01:24:54 -05:00
Schuyler Cebulskie
e8ac18489e Merge branch 'master' into indev-prism 2017-02-01 15:29:45 -05:00
Schuyler Cebulskie
d51e45f3b9 Add bufferutil info, and uws warning 2017-02-01 02:01:36 -05:00
Schuyler Cebulskie
a5b901f4ef Update ws and opusscript 2017-02-01 01:52:22 -05:00
Schuyler Cebulskie
e9ab9c9f92 Improve scripts 2017-01-30 20:21:53 -05:00
Schuyler Cebulskie
3545e731c0 Renamed webpack build script 2017-01-19 22:07:02 -05:00
Schuyler Cebulskie
f51ba3fb06 Update to Webpack 2.2 stable 2017-01-19 22:04:18 -05:00
Amish Shah
098ad195bd Merge branch 'master' into indev-prism 2017-01-14 21:00:13 +00:00
Schuyler Cebulskie
ee1c343d78 Update dependencies 2017-01-13 21:26:25 -05:00
Schuyler Cebulskie
bac599b52e Merge branch 'master' into indev-prism 2017-01-07 03:42:39 -05:00
Schuyler Cebulskie
2156ce1e15 Remove unnecessary branch specification 2016-12-30 18:06:08 -05:00
Amish Shah
56e01291e2 Merge branch 'master' into indev-prism 2016-12-30 18:05:29 +00:00
Gus Caplan
beffb390e6 Add search (#1043)
* add search

* Update ClientDataResolver.js
2016-12-30 02:44:19 -05:00
Schuyler Cebulskie
bcbd187223 Fix test-docs script 2016-12-30 00:07:24 -05:00
Schuyler Cebulskie
89cea574be Add prism-media dependency 2016-12-29 20:06:48 -05:00
Amish Shah
ebd2f0e73f Update ws dependency to 1.1.1 for security 2016-12-29 17:31:49 +00:00
Amish Shah
f613cc3c50 Version bump package.json 2016-12-29 16:37:39 +00:00
Schuyler Cebulskie
a014b59790 Update webpack 2016-12-28 21:35:19 -05:00
Schuyler Cebulskie
fb6a8d1637 Update webpack and clean up deps 2016-12-24 20:25:29 -05:00
Gus Caplan
6c38b83923 fix runkit/tonicdev example (#998) 2016-12-17 17:44:25 +00:00
Gus Caplan
1e5afc1608 Add etf encoding support with erlpack (#943)
* the performance from this is astounding

* help uws

* save 15 bytes in webpacks

* update readme

* why is markdown like this

* optimizations

* Update WebSocketManager.js
2016-12-02 21:35:59 -05:00
Hackzzila
6afd80cf53 Make uws a peer dep, and readd ws (#928)
* Make uws a peer dep, and readd ws

* if -> else if
2016-11-27 19:59:50 +00:00
acdenisSK
b85a589a01 Add typings (#925) 2016-11-27 15:28:46 +00:00
Schuyler Cebulskie
c683790de7 Remove old uws-specific code (0.11.1 has the good stuff) 2016-11-25 19:40:53 -05:00
Schuyler Cebulskie
91a69fb761 Update docgen dependency 2016-11-23 20:07:37 -05:00
Gus Caplan
c91ee7a3e7 Replace ws with uws (#918)
* change to uws (waiting for the next release tho)

* clean up, fix reconnections (maybe)

* change voice to use uws

* so messy
2016-11-23 19:30:00 -05:00
Schuyler Cebulskie
338aa58386 Set up new-new custom docs mechanism 2016-11-22 19:50:05 -05:00
Schuyler Cebulskie
7c97244854 Move to new docgen 2016-11-22 18:24:29 -05:00
Schuyler Cebulskie
c8858de71e Change to zlibjs release 2016-11-22 01:05:53 -05:00
Schuyler Cebulskie
0d754d1fbb Change the way modules are excluded from webpack 2016-11-20 23:19:53 -05:00
Schuyler Cebulskie
f6a60581c4 Remove even more stuff from web dists 2016-11-20 22:40:06 -05:00
Schuyler Cebulskie
049ab42eb4 Do stuff slightly better 2016-11-20 20:54:40 -05:00
Schuyler Cebulskie
411c9bd32c Update to Webpack 2.1 beta 27 2016-11-20 20:19:43 -05:00
Schuyler Cebulskie
6383d42eb5 Update to superagent 3 2016-11-20 20:08:59 -05:00
Gus Caplan
2440a4a2c8 Add webpack building (#907)
* friggin webpack tho

* probably important

* add all the stuff to the package.json

* add minify builds and a nice package.json script to run it all

* clean up

* use uglify harmony branch so we can actually run minify builds that work

* update build system

* make test better

* clean up

* fix issues with compression

* ‮

* c++ requirements in a node lib? whaaaaat?

* fix travis yml?

* put railings on voice connections

* 🖕🏻

* aaaaaa

* handle arraybuffers in the unlikely event one is sent

* support arraybuffers in resolvebuffer

* this needs to be fixed at some point

* this was fixed

* disable filename versioning if env VERSIONED is set to false

* Update ClientDataResolver.js

* Update ClientVoiceManager.js

* Update WebSocketManager.js

* Update ConvertArrayBuffer.js

* Update webpack.html

* enable compression for browser and fix ws error handler

* Update WebSocketManager.js

* everything will be okay gawdl3y

* compression is slower in browser, so rip the last three hours of my life

* Update Constants.js

* Update .gitignore
2016-11-20 19:38:16 -05:00
Schuyler Cebulskie
686cf297d2 Clean up various script things 2016-11-20 18:19:58 -05:00
Schuyler Cebulskie
acdf2d14c2 Undo that dummy commit 2016-11-12 21:50:17 -05:00
Schuyler Cebulskie
2b7c7bfd8f Dummy commit to force a travis build 2016-11-12 21:50:05 -05:00
Schuyler Cebulskie
3230d90a58 Remove fs-extra dependency 2016-11-12 17:23:54 -05:00
Schuyler Cebulskie
73261646fc Fix ESLint warnings 2016-10-30 17:23:39 -04:00
Schuyler Cebulskie
c1926b6221 Prepare 10.0.1 release 2016-10-27 19:52:54 -04:00
Schuyler Cebulskie
b8946d5904 Give the docgen a facelift 2016-10-26 23:30:37 -04:00
Schuyler Cebulskie
c5c9d0265c Evie 😒 2016-10-24 01:10:52 -04:00
Evelyne Lachance
a7d16e66b7 Version bump for indev+troubleshooting 2016-10-24 00:50:15 -04:00
Schuyler Cebulskie
1ef00d0fe7 Change node-opus and opusscript to peer deps 2016-10-14 00:52:25 -04:00
Amish Shah
124965425a Version bump to 9.3.0 \o/ 2016-09-24 19:54:29 +01:00
Amish Shah
92775abb49 Version bump to 9.2.0 2016-09-12 18:35:47 +01:00
Amish Shah
b476473a2c Make npm test harder to pass (includes jsdoc now) 2016-09-11 17:50:28 +01:00
Amish Shah
9d1d7c5162 Version bump to 9.1.1 2016-09-10 14:27:29 +01:00
Amish Shah
e57fe71387 version bump to 9.1.0 2016-09-09 17:34:27 +01:00
Amish Shah
cb22f8efea Update dependencies 2016-09-04 14:59:52 +01:00
Amish Shah
ab6c99f155 9.0.2 2016-09-04 13:48:39 +01:00
Amish Shah
9ce3b93827 9.0.1 2016-09-04 13:41:08 +01:00
Amish Shah
4598f90183 bump to 8.0.0 2016-09-04 12:46:02 +01:00
Schuyler Cebulskie
68acf37fd4 Add stricter/better ESLint config (#589)
* Add stricter/better ESLint config

* Remove more unnecessary @returns
2016-09-03 20:45:23 +01:00
Schuyler Cebulskie
2682c07bd8 Add dev dependencies and cleanup ESLint file (#588) 2016-09-03 19:32:04 +01:00
Schuyler Cebulskie
44efcf3f52 Lower Node version requirement to 6.0.0 (#583) 2016-09-03 09:56:33 +01:00
Manuel Kraus
d9ae732bfd Add sendFile function (#562)
* sendFile

* Add default value to filename

* eslint

* (╯°□°)╯︵ ┻━┻
2016-08-29 19:01:05 +01:00
Amish Shah
6ea2a523d6 Update node engine requirements 2016-08-28 18:56:12 +01:00
Amish Shah
3462bbc8d4 Remove opusscript from optionals whoops 2016-08-28 18:55:46 +01:00
Amish Shah
93771ce6d0 Make opusscript a dependency 2016-08-28 18:55:26 +01:00
abal
ac7e1a052c Add opusscript as a possible opus encoder (#558)
* Add opusscript as a possible opus encoder

* Make weird eslint rule happy
2016-08-28 17:35:59 +01:00
Amish Shah
ee6ccc5e17 Fix fs-extra dependencies 2016-08-26 18:05:36 +01:00
Hackzzila
d215e283e6 Fixed fs-extra again, hydrapls (#547) 2016-08-26 16:16:39 +01:00
Amish Shah
7ba37a3511 fix eslint for opus 2016-08-25 22:02:41 +01:00
Amish Shah
fe3fdb7d6a document voice 2016-08-25 19:12:23 +01:00
Amish Shah
8683f45816 errory voice 2016-08-24 21:38:52 +01:00
Amish Shah
0916cd71a5 Change test script to ESLint 2016-08-23 14:06:10 +01:00
Amish Shah
6ad970e311 Removed unused dependencies 2016-08-22 19:25:19 +01:00
Amish Shah
985681f1f6 change doc gen 2016-08-21 17:26:38 +01:00
Amish Shah
dcba580d89 Implement Sequential Rate Limiting 2016-08-19 18:01:28 +01:00
Amish Shah
18299970bd Updated to docs format v3, adds support for interfaces 2016-08-18 13:07:45 +01:00
Amish Shah
62856ff57a start work on documentation generator 2016-08-14 18:12:59 +01:00
Amish Shah
b8db4c4f4b ESLint stuff... 2016-08-13 14:44:49 +01:00
Amish Shah
849b8df2da Added guild.createRole() 2016-07-02 21:28:49 +01:00
hydrabolt
ccffe09bca remove unused shim object.entries 2016-04-16 23:01:58 +01:00
hydrabolt
9956e43c8e initial 2016-04-16 22:58:49 +01:00